From c439c42bc3cd73cbcb8635e3d5cbc56770d11265 Mon Sep 17 00:00:00 2001 From: Roman Azami Date: Thu, 26 Jul 2018 11:59:44 -0700 Subject: [PATCH] Resolution for NGP-1036, changed all google.protobuf.empty responses to have a response --- pkg/pb/contacts.pb.go | 352 ++++++++++++++++++--------------- pkg/pb/contacts.pb.gorm.go | 40 ++-- pkg/pb/contacts.pb.validate.go | 168 ++++++++++++++++ pkg/pb/contacts.proto | 17 +- 4 files changed, 388 insertions(+), 189 deletions(-) diff --git a/pkg/pb/contacts.pb.go b/pkg/pb/contacts.pb.go index e547904..ce1b504 100644 --- a/pkg/pb/contacts.pb.go +++ b/pkg/pb/contacts.pb.go @@ -16,6 +16,7 @@ It has these top-level messages: UpdateProfileRequest UpdateProfileResponse DeleteProfileRequest + DeleteProfileResponse ListProfileRequest ListProfilesResponse Group @@ -26,6 +27,7 @@ It has these top-level messages: UpdateGroupRequest UpdateGroupResponse DeleteGroupRequest + DeleteGroupResponse ListGroupRequest ListGroupsResponse Contact @@ -38,8 +40,10 @@ It has these top-level messages: UpdateContactRequest UpdateContactResponse DeleteContactRequest + DeleteContactResponse ListContactsResponse SMSRequest + SMSResponse ListContactRequest */ package pb @@ -47,7 +51,6 @@ package pb import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import google_protobuf "github.com/golang/protobuf/ptypes/empty" import _ "google.golang.org/genproto/googleapis/api/annotations" import _ "github.com/lyft/protoc-gen-validate/validate" import _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options" @@ -232,6 +235,14 @@ func (m *DeleteProfileRequest) GetId() *atlas_rpc.Identifier { return nil } +type DeleteProfileResponse struct { +} + +func (m *DeleteProfileResponse) Reset() { *m = DeleteProfileResponse{} } +func (m *DeleteProfileResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteProfileResponse) ProtoMessage() {} +func (*DeleteProfileResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } + type ListProfileRequest struct { Filter *infoblox_api.Filtering `protobuf:"bytes,1,opt,name=filter" json:"filter,omitempty"` OrderBy *infoblox_api.Sorting `protobuf:"bytes,2,opt,name=order_by,json=orderBy" json:"order_by,omitempty"` @@ -242,7 +253,7 @@ type ListProfileRequest struct { func (m *ListProfileRequest) Reset() { *m = ListProfileRequest{} } func (m *ListProfileRequest) String() string { return proto.CompactTextString(m) } func (*ListProfileRequest) ProtoMessage() {} -func (*ListProfileRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } +func (*ListProfileRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } func (m *ListProfileRequest) GetFilter() *infoblox_api.Filtering { if m != nil { @@ -279,7 +290,7 @@ type ListProfilesResponse struct { func (m *ListProfilesResponse) Reset() { *m = ListProfilesResponse{} } func (m *ListProfilesResponse) String() string { return proto.CompactTextString(m) } func (*ListProfilesResponse) ProtoMessage() {} -func (*ListProfilesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } +func (*ListProfilesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } func (m *ListProfilesResponse) GetResults() []*Profile { if m != nil { @@ -299,7 +310,7 @@ type Group struct { func (m *Group) Reset() { *m = Group{} } func (m *Group) String() string { return proto.CompactTextString(m) } func (*Group) ProtoMessage() {} -func (*Group) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } +func (*Group) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } func (m *Group) GetId() *atlas_rpc.Identifier { if m != nil { @@ -343,7 +354,7 @@ type CreateGroupRequest struct { func (m *CreateGroupRequest) Reset() { *m = CreateGroupRequest{} } func (m *CreateGroupRequest) String() string { return proto.CompactTextString(m) } func (*CreateGroupRequest) ProtoMessage() {} -func (*CreateGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } +func (*CreateGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } func (m *CreateGroupRequest) GetPayload() *Group { if m != nil { @@ -359,7 +370,7 @@ type CreateGroupResponse struct { func (m *CreateGroupResponse) Reset() { *m = CreateGroupResponse{} } func (m *CreateGroupResponse) String() string { return proto.CompactTextString(m) } func (*CreateGroupResponse) ProtoMessage() {} -func (*CreateGroupResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } +func (*CreateGroupResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } func (m *CreateGroupResponse) GetResult() *Group { if m != nil { @@ -375,7 +386,7 @@ type ReadGroupRequest struct { func (m *ReadGroupRequest) Reset() { *m = ReadGroupRequest{} } func (m *ReadGroupRequest) String() string { return proto.CompactTextString(m) } func (*ReadGroupRequest) ProtoMessage() {} -func (*ReadGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } +func (*ReadGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } func (m *ReadGroupRequest) GetId() *atlas_rpc.Identifier { if m != nil { @@ -391,7 +402,7 @@ type ReadGroupResponse struct { func (m *ReadGroupResponse) Reset() { *m = ReadGroupResponse{} } func (m *ReadGroupResponse) String() string { return proto.CompactTextString(m) } func (*ReadGroupResponse) ProtoMessage() {} -func (*ReadGroupResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } +func (*ReadGroupResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } func (m *ReadGroupResponse) GetResult() *Group { if m != nil { @@ -407,7 +418,7 @@ type UpdateGroupRequest struct { func (m *UpdateGroupRequest) Reset() { *m = UpdateGroupRequest{} } func (m *UpdateGroupRequest) String() string { return proto.CompactTextString(m) } func (*UpdateGroupRequest) ProtoMessage() {} -func (*UpdateGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } +func (*UpdateGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } func (m *UpdateGroupRequest) GetPayload() *Group { if m != nil { @@ -423,7 +434,7 @@ type UpdateGroupResponse struct { func (m *UpdateGroupResponse) Reset() { *m = UpdateGroupResponse{} } func (m *UpdateGroupResponse) String() string { return proto.CompactTextString(m) } func (*UpdateGroupResponse) ProtoMessage() {} -func (*UpdateGroupResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } +func (*UpdateGroupResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } func (m *UpdateGroupResponse) GetResult() *Group { if m != nil { @@ -439,7 +450,7 @@ type DeleteGroupRequest struct { func (m *DeleteGroupRequest) Reset() { *m = DeleteGroupRequest{} } func (m *DeleteGroupRequest) String() string { return proto.CompactTextString(m) } func (*DeleteGroupRequest) ProtoMessage() {} -func (*DeleteGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } +func (*DeleteGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } func (m *DeleteGroupRequest) GetId() *atlas_rpc.Identifier { if m != nil { @@ -448,6 +459,14 @@ func (m *DeleteGroupRequest) GetId() *atlas_rpc.Identifier { return nil } +type DeleteGroupResponse struct { +} + +func (m *DeleteGroupResponse) Reset() { *m = DeleteGroupResponse{} } +func (m *DeleteGroupResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteGroupResponse) ProtoMessage() {} +func (*DeleteGroupResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } + type ListGroupRequest struct { Filter *infoblox_api.Filtering `protobuf:"bytes,1,opt,name=filter" json:"filter,omitempty"` OrderBy *infoblox_api.Sorting `protobuf:"bytes,2,opt,name=order_by,json=orderBy" json:"order_by,omitempty"` @@ -458,7 +477,7 @@ type ListGroupRequest struct { func (m *ListGroupRequest) Reset() { *m = ListGroupRequest{} } func (m *ListGroupRequest) String() string { return proto.CompactTextString(m) } func (*ListGroupRequest) ProtoMessage() {} -func (*ListGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } +func (*ListGroupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} } func (m *ListGroupRequest) GetFilter() *infoblox_api.Filtering { if m != nil { @@ -495,7 +514,7 @@ type ListGroupsResponse struct { func (m *ListGroupsResponse) Reset() { *m = ListGroupsResponse{} } func (m *ListGroupsResponse) String() string { return proto.CompactTextString(m) } func (*ListGroupsResponse) ProtoMessage() {} -func (*ListGroupsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } +func (*ListGroupsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} } func (m *ListGroupsResponse) GetResults() []*Group { if m != nil { @@ -509,21 +528,21 @@ type Contact struct { FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName" json:"first_name,omitempty"` MiddleName string `protobuf:"bytes,3,opt,name=middle_name,json=middleName" json:"middle_name,omitempty"` LastName string `protobuf:"bytes,4,opt,name=last_name,json=lastName" json:"last_name,omitempty"` - PrimaryEmail string `protobuf:"bytes,6,opt,name=primary_email,json=primaryEmail" json:"primary_email,omitempty"` - Notes string `protobuf:"bytes,7,opt,name=notes" json:"notes,omitempty"` - Emails []*Email `protobuf:"bytes,8,rep,name=emails" json:"emails,omitempty"` - HomeAddress *Address `protobuf:"bytes,9,opt,name=home_address,json=homeAddress" json:"home_address,omitempty"` - WorkAddress *Address `protobuf:"bytes,10,opt,name=work_address,json=workAddress" json:"work_address,omitempty"` - ProfileId *atlas_rpc.Identifier `protobuf:"bytes,11,opt,name=profile_id,json=profileId" json:"profile_id,omitempty"` - Groups []*Group `protobuf:"bytes,13,rep,name=groups" json:"groups,omitempty"` + PrimaryEmail string `protobuf:"bytes,5,opt,name=primary_email,json=primaryEmail" json:"primary_email,omitempty"` + Notes string `protobuf:"bytes,6,opt,name=notes" json:"notes,omitempty"` + Emails []*Email `protobuf:"bytes,7,rep,name=emails" json:"emails,omitempty"` + HomeAddress *Address `protobuf:"bytes,8,opt,name=home_address,json=homeAddress" json:"home_address,omitempty"` + WorkAddress *Address `protobuf:"bytes,9,opt,name=work_address,json=workAddress" json:"work_address,omitempty"` + ProfileId *atlas_rpc.Identifier `protobuf:"bytes,10,opt,name=profile_id,json=profileId" json:"profile_id,omitempty"` + Groups []*Group `protobuf:"bytes,11,rep,name=groups" json:"groups,omitempty"` // nicknames is arbitrary json, but should be used for a list of strings - Nicknames *gorm_types.JSONValue `protobuf:"bytes,14,opt,name=nicknames" json:"nicknames,omitempty"` + Nicknames *gorm_types.JSONValue `protobuf:"bytes,12,opt,name=nicknames" json:"nicknames,omitempty"` } func (m *Contact) Reset() { *m = Contact{} } func (m *Contact) String() string { return proto.CompactTextString(m) } func (*Contact) ProtoMessage() {} -func (*Contact) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} } +func (*Contact) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} } func (m *Contact) GetId() *atlas_rpc.Identifier { if m != nil { @@ -617,7 +636,7 @@ type Email struct { func (m *Email) Reset() { *m = Email{} } func (m *Email) String() string { return proto.CompactTextString(m) } func (*Email) ProtoMessage() {} -func (*Email) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} } +func (*Email) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} } func (m *Email) GetId() uint64 { if m != nil { @@ -644,7 +663,7 @@ type Address struct { func (m *Address) Reset() { *m = Address{} } func (m *Address) String() string { return proto.CompactTextString(m) } func (*Address) ProtoMessage() {} -func (*Address) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} } +func (*Address) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} } func (m *Address) GetAddress() string { if m != nil { @@ -688,7 +707,7 @@ type CreateContactRequest struct { func (m *CreateContactRequest) Reset() { *m = CreateContactRequest{} } func (m *CreateContactRequest) String() string { return proto.CompactTextString(m) } func (*CreateContactRequest) ProtoMessage() {} -func (*CreateContactRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} } +func (*CreateContactRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{25} } func (m *CreateContactRequest) GetPayload() *Contact { if m != nil { @@ -704,7 +723,7 @@ type CreateContactResponse struct { func (m *CreateContactResponse) Reset() { *m = CreateContactResponse{} } func (m *CreateContactResponse) String() string { return proto.CompactTextString(m) } func (*CreateContactResponse) ProtoMessage() {} -func (*CreateContactResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} } +func (*CreateContactResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{26} } func (m *CreateContactResponse) GetResult() *Contact { if m != nil { @@ -720,7 +739,7 @@ type ReadContactRequest struct { func (m *ReadContactRequest) Reset() { *m = ReadContactRequest{} } func (m *ReadContactRequest) String() string { return proto.CompactTextString(m) } func (*ReadContactRequest) ProtoMessage() {} -func (*ReadContactRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{25} } +func (*ReadContactRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{27} } func (m *ReadContactRequest) GetId() *atlas_rpc.Identifier { if m != nil { @@ -736,7 +755,7 @@ type ReadContactResponse struct { func (m *ReadContactResponse) Reset() { *m = ReadContactResponse{} } func (m *ReadContactResponse) String() string { return proto.CompactTextString(m) } func (*ReadContactResponse) ProtoMessage() {} -func (*ReadContactResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{26} } +func (*ReadContactResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{28} } func (m *ReadContactResponse) GetResult() *Contact { if m != nil { @@ -752,7 +771,7 @@ type UpdateContactRequest struct { func (m *UpdateContactRequest) Reset() { *m = UpdateContactRequest{} } func (m *UpdateContactRequest) String() string { return proto.CompactTextString(m) } func (*UpdateContactRequest) ProtoMessage() {} -func (*UpdateContactRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{27} } +func (*UpdateContactRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{29} } func (m *UpdateContactRequest) GetPayload() *Contact { if m != nil { @@ -768,7 +787,7 @@ type UpdateContactResponse struct { func (m *UpdateContactResponse) Reset() { *m = UpdateContactResponse{} } func (m *UpdateContactResponse) String() string { return proto.CompactTextString(m) } func (*UpdateContactResponse) ProtoMessage() {} -func (*UpdateContactResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{28} } +func (*UpdateContactResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{30} } func (m *UpdateContactResponse) GetResult() *Contact { if m != nil { @@ -784,7 +803,7 @@ type DeleteContactRequest struct { func (m *DeleteContactRequest) Reset() { *m = DeleteContactRequest{} } func (m *DeleteContactRequest) String() string { return proto.CompactTextString(m) } func (*DeleteContactRequest) ProtoMessage() {} -func (*DeleteContactRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{29} } +func (*DeleteContactRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{31} } func (m *DeleteContactRequest) GetId() *atlas_rpc.Identifier { if m != nil { @@ -793,6 +812,14 @@ func (m *DeleteContactRequest) GetId() *atlas_rpc.Identifier { return nil } +type DeleteContactResponse struct { +} + +func (m *DeleteContactResponse) Reset() { *m = DeleteContactResponse{} } +func (m *DeleteContactResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteContactResponse) ProtoMessage() {} +func (*DeleteContactResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{32} } + type ListContactsResponse struct { Results []*Contact `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"` } @@ -800,7 +827,7 @@ type ListContactsResponse struct { func (m *ListContactsResponse) Reset() { *m = ListContactsResponse{} } func (m *ListContactsResponse) String() string { return proto.CompactTextString(m) } func (*ListContactsResponse) ProtoMessage() {} -func (*ListContactsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{30} } +func (*ListContactsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{33} } func (m *ListContactsResponse) GetResults() []*Contact { if m != nil { @@ -817,7 +844,7 @@ type SMSRequest struct { func (m *SMSRequest) Reset() { *m = SMSRequest{} } func (m *SMSRequest) String() string { return proto.CompactTextString(m) } func (*SMSRequest) ProtoMessage() {} -func (*SMSRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{31} } +func (*SMSRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{34} } func (m *SMSRequest) GetId() uint64 { if m != nil { @@ -833,6 +860,14 @@ func (m *SMSRequest) GetMessage() string { return "" } +type SMSResponse struct { +} + +func (m *SMSResponse) Reset() { *m = SMSResponse{} } +func (m *SMSResponse) String() string { return proto.CompactTextString(m) } +func (*SMSResponse) ProtoMessage() {} +func (*SMSResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{35} } + type ListContactRequest struct { Filter *infoblox_api.Filtering `protobuf:"bytes,1,opt,name=filter" json:"filter,omitempty"` OrderBy *infoblox_api.Sorting `protobuf:"bytes,2,opt,name=order_by,json=orderBy" json:"order_by,omitempty"` @@ -843,7 +878,7 @@ type ListContactRequest struct { func (m *ListContactRequest) Reset() { *m = ListContactRequest{} } func (m *ListContactRequest) String() string { return proto.CompactTextString(m) } func (*ListContactRequest) ProtoMessage() {} -func (*ListContactRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{32} } +func (*ListContactRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{36} } func (m *ListContactRequest) GetFilter() *infoblox_api.Filtering { if m != nil { @@ -882,6 +917,7 @@ func init() { proto.RegisterType((*UpdateProfileRequest)(nil), "api.contacts.UpdateProfileRequest") proto.RegisterType((*UpdateProfileResponse)(nil), "api.contacts.UpdateProfileResponse") proto.RegisterType((*DeleteProfileRequest)(nil), "api.contacts.DeleteProfileRequest") + proto.RegisterType((*DeleteProfileResponse)(nil), "api.contacts.DeleteProfileResponse") proto.RegisterType((*ListProfileRequest)(nil), "api.contacts.ListProfileRequest") proto.RegisterType((*ListProfilesResponse)(nil), "api.contacts.ListProfilesResponse") proto.RegisterType((*Group)(nil), "api.contacts.Group") @@ -892,6 +928,7 @@ func init() { proto.RegisterType((*UpdateGroupRequest)(nil), "api.contacts.UpdateGroupRequest") proto.RegisterType((*UpdateGroupResponse)(nil), "api.contacts.UpdateGroupResponse") proto.RegisterType((*DeleteGroupRequest)(nil), "api.contacts.DeleteGroupRequest") + proto.RegisterType((*DeleteGroupResponse)(nil), "api.contacts.DeleteGroupResponse") proto.RegisterType((*ListGroupRequest)(nil), "api.contacts.ListGroupRequest") proto.RegisterType((*ListGroupsResponse)(nil), "api.contacts.ListGroupsResponse") proto.RegisterType((*Contact)(nil), "api.contacts.Contact") @@ -904,8 +941,10 @@ func init() { proto.RegisterType((*UpdateContactRequest)(nil), "api.contacts.UpdateContactRequest") proto.RegisterType((*UpdateContactResponse)(nil), "api.contacts.UpdateContactResponse") proto.RegisterType((*DeleteContactRequest)(nil), "api.contacts.DeleteContactRequest") + proto.RegisterType((*DeleteContactResponse)(nil), "api.contacts.DeleteContactResponse") proto.RegisterType((*ListContactsResponse)(nil), "api.contacts.ListContactsResponse") proto.RegisterType((*SMSRequest)(nil), "api.contacts.SMSRequest") + proto.RegisterType((*SMSResponse)(nil), "api.contacts.SMSResponse") proto.RegisterType((*ListContactRequest)(nil), "api.contacts.ListContactRequest") } @@ -923,7 +962,7 @@ type ProfilesClient interface { Create(ctx context.Context, in *CreateProfileRequest, opts ...grpc.CallOption) (*CreateProfileResponse, error) Read(ctx context.Context, in *ReadProfileRequest, opts ...grpc.CallOption) (*ReadProfileResponse, error) Update(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*UpdateProfileResponse, error) - Delete(ctx context.Context, in *DeleteProfileRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) + Delete(ctx context.Context, in *DeleteProfileRequest, opts ...grpc.CallOption) (*DeleteProfileResponse, error) List(ctx context.Context, in *ListProfileRequest, opts ...grpc.CallOption) (*ListProfilesResponse, error) } @@ -962,8 +1001,8 @@ func (c *profilesClient) Update(ctx context.Context, in *UpdateProfileRequest, o return out, nil } -func (c *profilesClient) Delete(ctx context.Context, in *DeleteProfileRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) { - out := new(google_protobuf.Empty) +func (c *profilesClient) Delete(ctx context.Context, in *DeleteProfileRequest, opts ...grpc.CallOption) (*DeleteProfileResponse, error) { + out := new(DeleteProfileResponse) err := grpc.Invoke(ctx, "/api.contacts.Profiles/Delete", in, out, c.cc, opts...) if err != nil { return nil, err @@ -986,7 +1025,7 @@ type ProfilesServer interface { Create(context.Context, *CreateProfileRequest) (*CreateProfileResponse, error) Read(context.Context, *ReadProfileRequest) (*ReadProfileResponse, error) Update(context.Context, *UpdateProfileRequest) (*UpdateProfileResponse, error) - Delete(context.Context, *DeleteProfileRequest) (*google_protobuf.Empty, error) + Delete(context.Context, *DeleteProfileRequest) (*DeleteProfileResponse, error) List(context.Context, *ListProfileRequest) (*ListProfilesResponse, error) } @@ -1119,7 +1158,7 @@ type GroupsClient interface { Create(ctx context.Context, in *CreateGroupRequest, opts ...grpc.CallOption) (*CreateGroupResponse, error) Read(ctx context.Context, in *ReadGroupRequest, opts ...grpc.CallOption) (*ReadGroupResponse, error) Update(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*UpdateGroupResponse, error) - Delete(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) + Delete(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*DeleteGroupResponse, error) List(ctx context.Context, in *ListGroupRequest, opts ...grpc.CallOption) (*ListGroupsResponse, error) } @@ -1158,8 +1197,8 @@ func (c *groupsClient) Update(ctx context.Context, in *UpdateGroupRequest, opts return out, nil } -func (c *groupsClient) Delete(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) { - out := new(google_protobuf.Empty) +func (c *groupsClient) Delete(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*DeleteGroupResponse, error) { + out := new(DeleteGroupResponse) err := grpc.Invoke(ctx, "/api.contacts.Groups/Delete", in, out, c.cc, opts...) if err != nil { return nil, err @@ -1182,7 +1221,7 @@ type GroupsServer interface { Create(context.Context, *CreateGroupRequest) (*CreateGroupResponse, error) Read(context.Context, *ReadGroupRequest) (*ReadGroupResponse, error) Update(context.Context, *UpdateGroupRequest) (*UpdateGroupResponse, error) - Delete(context.Context, *DeleteGroupRequest) (*google_protobuf.Empty, error) + Delete(context.Context, *DeleteGroupRequest) (*DeleteGroupResponse, error) List(context.Context, *ListGroupRequest) (*ListGroupsResponse, error) } @@ -1315,9 +1354,9 @@ type ContactsClient interface { Create(ctx context.Context, in *CreateContactRequest, opts ...grpc.CallOption) (*CreateContactResponse, error) Read(ctx context.Context, in *ReadContactRequest, opts ...grpc.CallOption) (*ReadContactResponse, error) Update(ctx context.Context, in *UpdateContactRequest, opts ...grpc.CallOption) (*UpdateContactResponse, error) - Delete(ctx context.Context, in *DeleteContactRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) + Delete(ctx context.Context, in *DeleteContactRequest, opts ...grpc.CallOption) (*DeleteContactResponse, error) List(ctx context.Context, in *ListContactRequest, opts ...grpc.CallOption) (*ListContactsResponse, error) - SendSMS(ctx context.Context, in *SMSRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) + SendSMS(ctx context.Context, in *SMSRequest, opts ...grpc.CallOption) (*SMSResponse, error) } type contactsClient struct { @@ -1355,8 +1394,8 @@ func (c *contactsClient) Update(ctx context.Context, in *UpdateContactRequest, o return out, nil } -func (c *contactsClient) Delete(ctx context.Context, in *DeleteContactRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) { - out := new(google_protobuf.Empty) +func (c *contactsClient) Delete(ctx context.Context, in *DeleteContactRequest, opts ...grpc.CallOption) (*DeleteContactResponse, error) { + out := new(DeleteContactResponse) err := grpc.Invoke(ctx, "/api.contacts.Contacts/Delete", in, out, c.cc, opts...) if err != nil { return nil, err @@ -1373,8 +1412,8 @@ func (c *contactsClient) List(ctx context.Context, in *ListContactRequest, opts return out, nil } -func (c *contactsClient) SendSMS(ctx context.Context, in *SMSRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) { - out := new(google_protobuf.Empty) +func (c *contactsClient) SendSMS(ctx context.Context, in *SMSRequest, opts ...grpc.CallOption) (*SMSResponse, error) { + out := new(SMSResponse) err := grpc.Invoke(ctx, "/api.contacts.Contacts/SendSMS", in, out, c.cc, opts...) if err != nil { return nil, err @@ -1388,9 +1427,9 @@ type ContactsServer interface { Create(context.Context, *CreateContactRequest) (*CreateContactResponse, error) Read(context.Context, *ReadContactRequest) (*ReadContactResponse, error) Update(context.Context, *UpdateContactRequest) (*UpdateContactResponse, error) - Delete(context.Context, *DeleteContactRequest) (*google_protobuf.Empty, error) + Delete(context.Context, *DeleteContactRequest) (*DeleteContactResponse, error) List(context.Context, *ListContactRequest) (*ListContactsResponse, error) - SendSMS(context.Context, *SMSRequest) (*google_protobuf.Empty, error) + SendSMS(context.Context, *SMSRequest) (*SMSResponse, error) } func RegisterContactsServer(s *grpc.Server, srv ContactsServer) { @@ -1543,110 +1582,111 @@ func init() { } var fileDescriptor0 = []byte{ - // 1676 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x59, 0x4d, 0x6f, 0xdb, 0x46, - 0x1a, 0x5e, 0xca, 0xb2, 0x3e, 0x5e, 0x3b, 0x8e, 0x33, 0x71, 0x12, 0x5a, 0x71, 0x12, 0x85, 0x8b, - 0x05, 0x02, 0x7b, 0x25, 0x3a, 0x8a, 0xb1, 0xbb, 0xb1, 0xb1, 0x40, 0x22, 0xe7, 0x03, 0x09, 0x36, - 0xd9, 0x40, 0x42, 0x0b, 0x34, 0x40, 0xa1, 0x52, 0xe2, 0x58, 0x9e, 0x98, 0xe2, 0x30, 0x24, 0xd5, - 0x54, 0x2d, 0x02, 0x14, 0x2d, 0xd0, 0x1f, 0xd0, 0x5e, 0xfa, 0x2f, 0x7a, 0xe8, 0xc9, 0x3a, 0xf5, - 0xd4, 0x1f, 0xd0, 0x00, 0xbd, 0x15, 0xbd, 0xb4, 0x87, 0xfe, 0x8b, 0x82, 0xf3, 0x41, 0x91, 0x14, - 0x25, 0x2b, 0x4a, 0xd0, 0x43, 0x2e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 0xbe, 0x0b, 0x1a, 0x8a, 0x45, 0xf0, 0x52, - 0xf7, 0x7a, 0xde, 0xae, 0xb2, 0x29, 0x19, 0x5b, 0xff, 0x49, 0xf9, 0xfa, 0xf6, 0xb7, 0x0a, 0xb2, - 0x47, 0xbc, 0xd5, 0x3e, 0x84, 0x95, 0x87, 0xf4, 0xd0, 0x2e, 0xd7, 0xb1, 0x65, 0xf4, 0x0c, 0x97, - 0x74, 0x50, 0xed, 0xd0, 0xf7, 0x1d, 0x6f, 0x57, 0xd7, 0x67, 0xff, 0x95, 0xbe, 0x74, 0xe1, 0x59, - 0x5b, 0xca, 0xdf, 0x0a, 0x8f, 0xf0, 0x0e, 0xed, 0xd5, 0x16, 0xae, 0x57, 0xb7, 0x37, 0x33, 0x4a, - 0xa6, 0xb6, 0x6a, 0x38, 0x8e, 0x45, 0x3a, 0xec, 0x34, 0xd7, 0x9f, 0x79, 0xd4, 0xde, 0x1d, 0xfb, - 0xf2, 0x74, 0xe7, 0xb5, 0xff, 0x2f, 0xb0, 0xe7, 0xb4, 0xdb, 0x39, 0x96, 0x8b, 0x1b, 0x7f, 0x06, - 0x00, 0x00, 0xff, 0xff, 0xa1, 0x5b, 0xd1, 0x69, 0x56, 0x18, 0x00, 0x00, + // 1684 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x59, 0xdd, 0x6e, 0xdb, 0xc8, + 0x15, 0x2e, 0x65, 0x59, 0x3f, 0xc7, 0x4e, 0xe2, 0x8c, 0xed, 0x9a, 0x52, 0x9d, 0x44, 0x61, 0x51, + 0x20, 0xb0, 0x2b, 0xd1, 0x51, 0x8c, 0xb6, 0xb1, 0x51, 0x20, 0x91, 0xf3, 0x83, 0x04, 0x4d, 0x1a, + 0x48, 0x68, 0x81, 0x16, 0x08, 0xd4, 0x91, 0x38, 0x96, 0x27, 0xa6, 0x38, 0x0c, 0x49, 0x35, 0x55, + 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f8, 0x2b, 0x54, 0x1f, 0xce, 0xae, 0x27, 0xb6, 0xed, 0xaa, 0xc7, 0x98, + 0x79, 0x4a, 0x3d, 0xfd, 0xf9, 0x80, 0x38, 0x43, 0xbd, 0xcb, 0x4c, 0x93, 0x74, 0xfd, 0x10, 0xda, + 0xcc, 0x26, 0x0e, 0xf6, 0x98, 0x23, 0x6d, 0xdd, 0x9d, 0xdf, 0x96, 0x63, 0x77, 0x75, 0x87, 0xb8, + 0x6c, 0xe0, 0x74, 0x49, 0xf8, 0x10, 0x98, 0xd1, 0xbe, 0x51, 0x20, 0xff, 0xc4, 0x61, 0xc7, 0xd4, + 0x24, 0xe8, 0x8f, 0x90, 0xa1, 0x86, 0xaa, 0x54, 0x94, 0x6b, 0x2b, 0xf5, 0xcd, 0x1a, 0xb7, 0x53, + 0x73, 0xec, 0x6e, 0xed, 0x81, 0x41, 0x2c, 0x8f, 0x1e, 0x53, 0xe2, 0x34, 0xd6, 0x46, 0x67, 0xa5, + 0x55, 0x00, 0x94, 0x73, 0x89, 0x43, 0xb1, 0x79, 0x4d, 0x69, 0x66, 0xa8, 0x81, 0x10, 0x64, 0x2d, + 0xdc, 0x27, 0x6a, 0xa6, 0xa2, 0x5c, 0x2b, 0x36, 0xf9, 0x33, 0xda, 0x80, 0x65, 0x8b, 0x79, 0xc4, + 0x55, 0x97, 0xf8, 0xc7, 0xe0, 0x05, 0x5d, 0x87, 0x82, 0x44, 0x83, 0x9a, 0xad, 0x2c, 0x05, 0x8e, + 0x22, 0x10, 0xa9, 0x1d, 0x05, 0x0f, 0xcd, 0x50, 0x0c, 0xed, 0x42, 0xae, 0xe7, 0xb0, 0x81, 0xed, + 0xaa, 0xcb, 0x5c, 0x61, 0x3d, 0xae, 0x70, 0xdf, 0x5f, 0x6b, 0x0a, 0x91, 0x83, 0xc2, 0xe8, 0xac, + 0x94, 0x2d, 0x28, 0x15, 0x45, 0xbb, 0x0f, 0x1b, 0x47, 0x0e, 0xc1, 0x1e, 0x11,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0x89, 0xbf, 0x86, 0x03, 0x8d, 0x40, 0xce, 0xdf, 0xca, 0x48, 0x82, 0x6e, + 0xb8, 0x01, 0x3a, 0xe4, 0x83, 0xda, 0xba, 0xaa, 0x92, 0xd6, 0x5f, 0xe1, 0x56, 0x0a, 0x29, 0xed, + 0x47, 0x05, 0x96, 0x79, 0x0f, 0xfd, 0x12, 0xed, 0xbf, 0x0f, 0x60, 0x07, 0x01, 0xb4, 0xa9, 0x21, + 0x72, 0x9d, 0xb2, 0xbf, 0x45, 0x21, 0xf8, 0xc0, 0x40, 0x37, 0x23, 0xa4, 0xb1, 0x3c, 0x83, 0x34, + 0x1a, 0xb9, 0xd1, 0x59, 0x29, 0x53, 0xff, 0xd5, 0x98, 0x3c, 0x22, 0x7c, 0x70, 0x04, 0x28, 0x68, + 0xe3, 0x80, 0x30, 0x04, 0x22, 0xaa, 0x49, 0xe4, 0xa7, 0xb2, 0x4b, 0x88, 0xfb, 0x06, 0xac, 0xc7, + 0x8c, 0x88, 0xa2, 0xef, 0x26, 0x50, 0x9f, 0x4e, 0x51, 0x02, 0xf3, 0x37, 0x61, 0xcd, 0x6f, 0xe5, + 0x58, 0x18, 0x73, 0xe2, 0xfd, 0x16, 0x5c, 0x8c, 0xa8, 0x2e, 0xe2, 0xfc, 0x08, 0x50, 0xd0, 0xb8, + 0xef, 0x59, 0x85, 0x98, 0x91, 0x45, 0x02, 0x39, 0x04, 0x14, 0xb4, 0xee, 0x22, 0x75, 0xd8, 0x84, + 0xf5, 0x98, 0xb2, 0xe8, 0xfa, 0x6f, 0x15, 0x58, 0xf3, 0x9b, 0x22, 0x66, 0xf2, 0x23, 0xea, 0xf9, + 0xa3, 0x80, 0xd4, 0x78, 0x7a, 0x6e, 0x84, 0x72, 0x13, 0x1d, 0x9f, 0xbe, 0x79, 0xb2, 0xdf, 0xbf, + 0xcc, 0x42, 0x5e, 0xf4, 0xcb, 0xe2, 0x1d, 0x7f, 0x09, 0xe0, 0x98, 0x3a, 0xae, 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7, 0x7f, 0xc7, 0xe6, 0x80, 0x34, 0xc7, 0x72, 0x11, 0x42, 0xed, 0xc0, 0x72, 0x50, + 0xf9, 0xf3, 0x21, 0x8a, 0xb2, 0x1c, 0x1c, 0xbb, 0x90, 0x97, 0x75, 0xe0, 0xc8, 0x68, 0x5c, 0xf4, + 0x75, 0x20, 0xb3, 0x17, 0xd9, 0x3b, 0x29, 0x71, 0xb0, 0x3d, 0x3a, 0x2b, 0xa9, 0x05, 0xc5, 0x3f, + 0x43, 0x3a, 0x8c, 0x99, 0x08, 0xa8, 0xdb, 0x16, 0xfb, 0x5a, 0x51, 0xb4, 0xff, 0x2b, 0x90, 0x97, + 0x95, 0x52, 0xc7, 0x66, 0x15, 0xbe, 0xc5, 0xf2, 0xd5, 0xd7, 0xed, 0x52, 0x6f, 0x28, 0xcf, 0x1f, + 0xff, 0xd9, 0x87, 0x83, 0xeb, 0x61, 0x4f, 0x82, 0x2f, 0x78, 0x41, 0x6b, 0xb0, 0xf4, 0x92, 0xda, + 0x02, 0x71, 0xfe, 0xa3, 0x6f, 0xb5, 0xcb, 0x06, 0x96, 0xe7, 0x0c, 0x03, 0x98, 0x35, 0xe5, 0x6b, + 0xda, 0x28, 0x29, 0x87, 0xd3, 0x39, 0xc7, 0x26, 0x29, 0x3e, 0x39, 0x4a, 0x86, 0x86, 0xe6, 0x1b, + 0x9b, 0xa4, 0x78, 0x62, 0x94, 0x4c, 0x84, 0xf3, 0x6e, 0xa3, 0xe4, 0x7b, 0x86, 0x10, 0x8e, 0x92, + 0x1f, 0xa0, 0x26, 0x09, 0x43, 0x8b, 0x05, 0x14, 0x8e, 0x92, 0x8b, 0x55, 0x25, 0x1c, 0x25, 0x13, + 0x61, 0xc8, 0x41, 0xeb, 0x48, 0x76, 0xcf, 0xbc, 0x83, 0x56, 0x98, 0xa8, 0x24, 0xde, 0x3f, 0x00, + 0xb4, 0x1e, 0xb5, 0x64, 0x58, 0xc9, 0xa6, 0x51, 0x21, 0xdf, 0x27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0x94, 0xfa, 0x17, 0x59, 0xc8, 0x05, 0x73, 0x14, 0xea, 0x85, 0x08, 0xab, 0xa4, 0xa1, 0x27, + 0x3a, 0x4c, 0x26, 0x37, 0x3d, 0xe5, 0x2e, 0xa0, 0xa9, 0xdc, 0x29, 0xd2, 0xf2, 0xba, 0xf8, 0x49, + 0x22, 0xac, 0x30, 0x15, 0xd8, 0xba, 0x3c, 0x89, 0x9c, 0x98, 0x93, 0x2b, 0x53, 0xd7, 0x85, 0x8b, + 0x0a, 0x77, 0x51, 0x46, 0xaa, 0x70, 0x31, 0x59, 0xc7, 0xff, 0x8d, 0x51, 0x55, 0x49, 0x43, 0xcc, + 0xac, 0xa4, 0x52, 0x46, 0x7b, 0xed, 0x3a, 0xf7, 0xb8, 0x5b, 0xae, 0x84, 0x1e, 0xdf, 0x8a, 0xa7, + 0x97, 0x21, 0x9c, 0x2a, 0x69, 0x50, 0x99, 0x15, 0x41, 0xda, 0x6c, 0xbf, 0x3b, 0x3a, 0x2b, 0xe5, + 0xc5, 0x4d, 0x35, 0x48, 0x7f, 0x67, 0x7a, 0xfa, 0xff, 0x10, 0x30, 0xba, 0x3c, 0x09, 0x92, 0x98, + 0xdf, 0xca, 0x94, 0xf5, 0x31, 0x84, 0x2e, 0x70, 0x5f, 0x45, 0x24, 0x77, 0x33, 0x04, 0xd0, 0x9b, + 0x65, 0x28, 0xc8, 0x33, 0xe1, 0x6d, 0x24, 0x15, 0xa7, 0xea, 0x74, 0x92, 0x4a, 0x1e, 0x3b, 0x63, + 0x92, 0x0a, 0xef, 0xb2, 0xf3, 0x90, 0x54, 0xc2, 0xd5, 0xd5, 0x19, 0x12, 0x13, 0x24, 0x25, 0xc5, + 0xde, 0x9d, 0xa4, 0x66, 0x27, 0x98, 0x7a, 0xbc, 0x47, 0x48, 0x6a, 0xec, 0xf7, 0xbd, 0x49, 0x6a, + 0x76, 0x20, 0xe9, 0x07, 0xbc, 0x20, 0x29, 0xf1, 0x39, 0x24, 0xa9, 0xe9, 0xd5, 0x98, 0x41, 0x52, + 0x09, 0xff, 0xda, 0x54, 0x89, 0x34, 0x92, 0x0a, 0x7f, 0xf1, 0x7c, 0x0a, 0xf9, 0x16, 0xb1, 0x8c, + 0xd6, 0xa3, 0x16, 0x52, 0xe3, 0x16, 0xc6, 0x03, 0x44, 0xb9, 0x94, 0xb2, 0x22, 0x4c, 0x5e, 0xe2, + 0x26, 0xb7, 0x34, 0x14, 0x4b, 0xe2, 0x95, 0xee, 0xf6, 0xdd, 0x03, 0x65, 0x47, 0x42, 0xb8, 0xf1, + 0x95, 0xf2, 0xe9, 0xed, 0xcf, 0x15, 0x64, 0x8d, 0x81, 0xac, 0x3d, 0x85, 0xf3, 0x0f, 0xd9, 0x89, + 0x55, 0x69, 0x10, 0x13, 0xf7, 0xb1, 0x43, 0xbb, 0xa8, 0x7e, 0xe2, 0x79, 0xb6, 0x7b, 0xa0, 0xeb, + 0xf3, 0xff, 0x2b, 0xa0, 0xbc, 0xf5, 0xac, 0x23, 0xf5, 0x6f, 0x85, 0x87, 0x7d, 0x97, 0xf5, 0xeb, + 0x4b, 0xd7, 0x6b, 0x7b, 0x3b, 0x19, 0x25, 0x53, 0x5f, 0xc3, 0xb6, 0x6d, 0xd2, 0x2e, 0x3f, 0xf7, + 0xf5, 0x67, 0x2e, 0xb3, 0x0e, 0x26, 0xbe, 0xfc, 0x73, 0xff, 0x9d, 0xff, 0xf9, 0x70, 0x68, 0x77, + 0x3a, 0x39, 0xfe, 0xb3, 0xf6, 0x8d, 0x9f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x4e, 0xfa, 0xeb, 0x28, + 0xbb, 0x18, 0x00, 0x00, } diff --git a/pkg/pb/contacts.pb.gorm.go b/pkg/pb/contacts.pb.gorm.go index d20f6d5..4e00eba 100644 --- a/pkg/pb/contacts.pb.gorm.go +++ b/pkg/pb/contacts.pb.gorm.go @@ -16,6 +16,7 @@ It has these top-level messages: UpdateProfileRequest UpdateProfileResponse DeleteProfileRequest + DeleteProfileResponse ListProfileRequest ListProfilesResponse Group @@ -26,6 +27,7 @@ It has these top-level messages: UpdateGroupRequest UpdateGroupResponse DeleteGroupRequest + DeleteGroupResponse ListGroupRequest ListGroupsResponse Contact @@ -38,8 +40,10 @@ It has these top-level messages: UpdateContactRequest UpdateContactResponse DeleteContactRequest + DeleteContactResponse ListContactsResponse SMSRequest + SMSResponse ListContactRequest */ package pb @@ -58,7 +62,6 @@ import types1 "github.com/infobloxopen/protoc-gen-gorm/types" import fmt "fmt" import math "math" -import google_protobuf "github.com/golang/protobuf/ptypes/empty" import _ "google.golang.org/genproto/googleapis/api/annotations" import _ "github.com/lyft/protoc-gen-validate/validate" import _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options" @@ -707,7 +710,6 @@ func DefaultReadProfile(ctx context.Context, in *Profile, db *gorm1.DB) (*Profil if in == nil { return nil, errors.New("Nil argument to DefaultReadProfile") } - db = db.Set("gorm:auto_preload", true) ormParams, err := in.ToORM(ctx) if err != nil { return nil, err @@ -846,9 +848,6 @@ func DefaultListProfile(ctx context.Context, db *gorm1.DB, req interface{}) ([]* if err != nil { return nil, err } - if fs.GetFields() == nil { - db = db.Set("gorm:auto_preload", true) - } in := Profile{} ormParams, err := in.ToORM(ctx) if err != nil { @@ -891,7 +890,6 @@ func DefaultReadGroup(ctx context.Context, in *Group, db *gorm1.DB) (*Group, err if in == nil { return nil, errors.New("Nil argument to DefaultReadGroup") } - db = db.Set("gorm:auto_preload", true) ormParams, err := in.ToORM(ctx) if err != nil { return nil, err @@ -985,9 +983,6 @@ func DefaultListGroup(ctx context.Context, db *gorm1.DB, req interface{}) ([]*Gr if err != nil { return nil, err } - if fs.GetFields() == nil { - db = db.Set("gorm:auto_preload", true) - } in := Group{} ormParams, err := in.ToORM(ctx) if err != nil { @@ -1030,7 +1025,6 @@ func DefaultReadContact(ctx context.Context, in *Contact, db *gorm1.DB) (*Contac if in == nil { return nil, errors.New("Nil argument to DefaultReadContact") } - db = db.Set("gorm:auto_preload", true) ormParams, err := in.ToORM(ctx) if err != nil { return nil, err @@ -1154,9 +1148,6 @@ func DefaultListContact(ctx context.Context, db *gorm1.DB, req interface{}) ([]* if err != nil { return nil, err } - if fs.GetFields() == nil { - db = db.Set("gorm:auto_preload", true) - } in := Contact{} ormParams, err := in.ToORM(ctx) if err != nil { @@ -1199,7 +1190,6 @@ func DefaultReadEmail(ctx context.Context, in *Email, db *gorm1.DB) (*Email, err if in == nil { return nil, errors.New("Nil argument to DefaultReadEmail") } - db = db.Set("gorm:auto_preload", true) ormParams, err := in.ToORM(ctx) if err != nil { return nil, err @@ -1293,9 +1283,6 @@ func DefaultListEmail(ctx context.Context, db *gorm1.DB, req interface{}) ([]*Em if err != nil { return nil, err } - if fs.GetFields() == nil { - db = db.Set("gorm:auto_preload", true) - } in := Email{} ormParams, err := in.ToORM(ctx) if err != nil { @@ -1344,9 +1331,6 @@ func DefaultListAddress(ctx context.Context, db *gorm1.DB, req interface{}) ([]* if err != nil { return nil, err } - if fs.GetFields() == nil { - db = db.Set("gorm:auto_preload", true) - } in := Address{} ormParams, err := in.ToORM(ctx) if err != nil { @@ -1438,7 +1422,7 @@ type ProfilesProfileWithBeforeUpdate interface { } // Delete ... -func (m *ProfilesDefaultServer) Delete(ctx context.Context, in *DeleteProfileRequest) (*google_protobuf.Empty, error) { +func (m *ProfilesDefaultServer) Delete(ctx context.Context, in *DeleteProfileRequest) (*DeleteProfileResponse, error) { db := m.DB if custom, ok := interface{}(in).(ProfilesProfileWithBeforeDelete); ok { var err error @@ -1447,7 +1431,7 @@ func (m *ProfilesDefaultServer) Delete(ctx context.Context, in *DeleteProfileReq return nil, err } } - return &google_protobuf.Empty{}, DefaultDeleteProfile(ctx, &Profile{Id: in.GetId()}, db) + return &DeleteProfileResponse{}, DefaultDeleteProfile(ctx, &Profile{Id: in.GetId()}, db) } // ProfilesProfileWithBeforeDelete called before DefaultDeleteProfile in the default Delete handler @@ -1547,7 +1531,7 @@ type GroupsGroupWithBeforeUpdate interface { } // Delete ... -func (m *GroupsDefaultServer) Delete(ctx context.Context, in *DeleteGroupRequest) (*google_protobuf.Empty, error) { +func (m *GroupsDefaultServer) Delete(ctx context.Context, in *DeleteGroupRequest) (*DeleteGroupResponse, error) { db := m.DB if custom, ok := interface{}(in).(GroupsGroupWithBeforeDelete); ok { var err error @@ -1556,7 +1540,7 @@ func (m *GroupsDefaultServer) Delete(ctx context.Context, in *DeleteGroupRequest return nil, err } } - return &google_protobuf.Empty{}, DefaultDeleteGroup(ctx, &Group{Id: in.GetId()}, db) + return &DeleteGroupResponse{}, DefaultDeleteGroup(ctx, &Group{Id: in.GetId()}, db) } // GroupsGroupWithBeforeDelete called before DefaultDeleteGroup in the default Delete handler @@ -1656,7 +1640,7 @@ type ContactsContactWithBeforeUpdate interface { } // Delete ... -func (m *ContactsDefaultServer) Delete(ctx context.Context, in *DeleteContactRequest) (*google_protobuf.Empty, error) { +func (m *ContactsDefaultServer) Delete(ctx context.Context, in *DeleteContactRequest) (*DeleteContactResponse, error) { db := m.DB if custom, ok := interface{}(in).(ContactsContactWithBeforeDelete); ok { var err error @@ -1665,7 +1649,7 @@ func (m *ContactsDefaultServer) Delete(ctx context.Context, in *DeleteContactReq return nil, err } } - return &google_protobuf.Empty{}, DefaultDeleteContact(ctx, &Contact{Id: in.GetId()}, db) + return &DeleteContactResponse{}, DefaultDeleteContact(ctx, &Contact{Id: in.GetId()}, db) } // ContactsContactWithBeforeDelete called before DefaultDeleteContact in the default Delete handler @@ -1696,6 +1680,6 @@ type ContactsContactWithBeforeList interface { } // SendSMS ... -func (m *ContactsDefaultServer) SendSMS(ctx context.Context, in *SMSRequest) (*google_protobuf.Empty, error) { - return &google_protobuf.Empty{}, nil +func (m *ContactsDefaultServer) SendSMS(ctx context.Context, in *SMSRequest) (*SMSResponse, error) { + return &SMSResponse{}, nil } diff --git a/pkg/pb/contacts.pb.validate.go b/pkg/pb/contacts.pb.validate.go index 0ebf080..5da771d 100644 --- a/pkg/pb/contacts.pb.validate.go +++ b/pkg/pb/contacts.pb.validate.go @@ -503,6 +503,48 @@ func (e DeleteProfileRequestValidationError) Error() string { var _ error = DeleteProfileRequestValidationError{} +// Validate checks the field values on DeleteProfileResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DeleteProfileResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// DeleteProfileResponseValidationError is the validation error returned by +// DeleteProfileResponse.Validate if the designated constraints aren't met. +type DeleteProfileResponseValidationError struct { + Field string + Reason string + Cause error + Key bool +} + +// Error satisfies the builtin error interface +func (e DeleteProfileResponseValidationError) Error() string { + cause := "" + if e.Cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.Cause) + } + + key := "" + if e.Key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDeleteProfileResponse.%s: %s%s", + key, + e.Field, + e.Reason, + cause) +} + +var _ error = DeleteProfileResponseValidationError{} + // Validate checks the field values on ListProfileRequest with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned. @@ -1116,6 +1158,48 @@ func (e DeleteGroupRequestValidationError) Error() string { var _ error = DeleteGroupRequestValidationError{} +// Validate checks the field values on DeleteGroupResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DeleteGroupResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// DeleteGroupResponseValidationError is the validation error returned by +// DeleteGroupResponse.Validate if the designated constraints aren't met. +type DeleteGroupResponseValidationError struct { + Field string + Reason string + Cause error + Key bool +} + +// Error satisfies the builtin error interface +func (e DeleteGroupResponseValidationError) Error() string { + cause := "" + if e.Cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.Cause) + } + + key := "" + if e.Key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDeleteGroupResponse.%s: %s%s", + key, + e.Field, + e.Reason, + cause) +} + +var _ error = DeleteGroupResponseValidationError{} + // Validate checks the field values on ListGroupRequest with the rules defined // in the proto definition for this message. If any rules are violated, an // error is returned. @@ -1996,6 +2080,48 @@ func (e DeleteContactRequestValidationError) Error() string { var _ error = DeleteContactRequestValidationError{} +// Validate checks the field values on DeleteContactResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DeleteContactResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// DeleteContactResponseValidationError is the validation error returned by +// DeleteContactResponse.Validate if the designated constraints aren't met. +type DeleteContactResponseValidationError struct { + Field string + Reason string + Cause error + Key bool +} + +// Error satisfies the builtin error interface +func (e DeleteContactResponseValidationError) Error() string { + cause := "" + if e.Cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.Cause) + } + + key := "" + if e.Key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDeleteContactResponse.%s: %s%s", + key, + e.Field, + e.Reason, + cause) +} + +var _ error = DeleteContactResponseValidationError{} + // Validate checks the field values on ListContactsResponse with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned. @@ -2100,6 +2226,48 @@ func (e SMSRequestValidationError) Error() string { var _ error = SMSRequestValidationError{} +// Validate checks the field values on SMSResponse with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *SMSResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// SMSResponseValidationError is the validation error returned by +// SMSResponse.Validate if the designated constraints aren't met. +type SMSResponseValidationError struct { + Field string + Reason string + Cause error + Key bool +} + +// Error satisfies the builtin error interface +func (e SMSResponseValidationError) Error() string { + cause := "" + if e.Cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.Cause) + } + + key := "" + if e.Key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSMSResponse.%s: %s%s", + key, + e.Field, + e.Reason, + cause) +} + +var _ error = SMSResponseValidationError{} + // Validate checks the field values on ListContactRequest with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned. diff --git a/pkg/pb/contacts.proto b/pkg/pb/contacts.proto index e6d5843..be13e8f 100644 --- a/pkg/pb/contacts.proto +++ b/pkg/pb/contacts.proto @@ -2,7 +2,6 @@ syntax = "proto3"; package api.contacts; -import "google/protobuf/empty.proto"; import "google/api/annotations.proto"; import "github.com/lyft/protoc-gen-validate/validate/validate.proto"; import "protoc-gen-swagger/options/annotations.proto"; @@ -53,6 +52,8 @@ message DeleteProfileRequest { atlas.rpc.Identifier id = 1; } +message DeleteProfileResponse{} + message ListProfileRequest { infoblox.api.Filtering filter = 1; infoblox.api.Sorting order_by = 2; @@ -86,7 +87,7 @@ service Profiles { }; } - rpc Delete (DeleteProfileRequest) returns (google.protobuf.Empty) { + rpc Delete (DeleteProfileRequest) returns (DeleteProfileResponse) { option (google.api.http) = { delete: "/profiles/{id.resource_id}" }; @@ -141,6 +142,8 @@ message DeleteGroupRequest { atlas.rpc.Identifier id = 1; } +message DeleteGroupResponse {} + message ListGroupRequest { infoblox.api.Filtering filter = 1; infoblox.api.Sorting order_by = 2; @@ -174,7 +177,7 @@ service Groups { }; } - rpc Delete (DeleteGroupRequest) returns (google.protobuf.Empty) { + rpc Delete (DeleteGroupRequest) returns (DeleteGroupResponse) { option (google.api.http) = { delete: "/groups/{id.resource_id}" }; @@ -260,6 +263,8 @@ message DeleteContactRequest { atlas.rpc.Identifier id = 1; } +message DeleteContactResponse {} + message ListContactsResponse { repeated Contact results = 1; } @@ -269,6 +274,8 @@ message SMSRequest { string message = 2; } +message SMSResponse {} + message ListContactRequest { infoblox.api.Filtering filter = 1; infoblox.api.Sorting order_by = 2; @@ -299,7 +306,7 @@ service Contacts { }; } - rpc Delete (DeleteContactRequest) returns (google.protobuf.Empty) { + rpc Delete (DeleteContactRequest) returns (DeleteContactResponse) { option (google.api.http) = { delete: "/contacts/{id.resource_id}" }; @@ -312,7 +319,7 @@ service Contacts { }; } - rpc SendSMS (SMSRequest) returns (google.protobuf.Empty) { + rpc SendSMS (SMSRequest) returns (SMSResponse) { option (google.api.http) = { post: "/contacts/{id}/sms" body: "*"