diff --git a/server/pkg/proto/api/v1/auth_service.pb.go b/server/pkg/proto/api/v1/auth_service.pb.go index 0f702b12..5697125c 100644 --- a/server/pkg/proto/api/v1/auth_service.pb.go +++ b/server/pkg/proto/api/v1/auth_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: api/v1/auth_service.proto @@ -23,15 +23,14 @@ const ( ) type SignupRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` - PasswordConfirmation string `protobuf:"bytes,3,opt,name=password_confirmation,json=passwordConfirmation,proto3" json:"password_confirmation,omitempty"` - FirstName string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + PasswordConfirmation string `protobuf:"bytes,3,opt,name=password_confirmation,json=passwordConfirmation,proto3" json:"password_confirmation,omitempty"` + FirstName string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SignupRequest) Reset() { @@ -100,9 +99,9 @@ func (x *SignupRequest) GetLastName() string { } type SignupResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SignupResponse) Reset() { @@ -136,12 +135,11 @@ func (*SignupResponse) Descriptor() ([]byte, []int) { } type LoginRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` unknownFields protoimpl.UnknownFields - - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LoginRequest) Reset() { @@ -189,11 +187,10 @@ func (x *LoginRequest) GetPassword() string { } type LoginResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` unknownFields protoimpl.UnknownFields - - AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LoginResponse) Reset() { @@ -234,9 +231,9 @@ func (x *LoginResponse) GetAccessToken() string { } type RefreshTokenRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RefreshTokenRequest) Reset() { @@ -270,11 +267,10 @@ func (*RefreshTokenRequest) Descriptor() ([]byte, []int) { } type RefreshTokenResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` unknownFields protoimpl.UnknownFields - - AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RefreshTokenResponse) Reset() { @@ -315,9 +311,9 @@ func (x *RefreshTokenResponse) GetAccessToken() string { } type LogoutRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LogoutRequest) Reset() { @@ -351,9 +347,9 @@ func (*LogoutRequest) Descriptor() ([]byte, []int) { } type LogoutResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LogoutResponse) Reset() { @@ -387,11 +383,10 @@ func (*LogoutResponse) Descriptor() ([]byte, []int) { } type VerifyEmailRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` unknownFields protoimpl.UnknownFields - - Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` + sizeCache protoimpl.SizeCache } func (x *VerifyEmailRequest) Reset() { @@ -432,9 +427,9 @@ func (x *VerifyEmailRequest) GetToken() string { } type VerifyEmailResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *VerifyEmailResponse) Reset() { @@ -468,11 +463,10 @@ func (*VerifyEmailResponse) Descriptor() ([]byte, []int) { } type ResetPasswordRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` unknownFields protoimpl.UnknownFields - - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ResetPasswordRequest) Reset() { @@ -513,9 +507,9 @@ func (x *ResetPasswordRequest) GetEmail() string { } type ResetPasswordResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ResetPasswordResponse) Reset() { @@ -549,13 +543,12 @@ func (*ResetPasswordResponse) Descriptor() ([]byte, []int) { } type UpdatePasswordRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` - PasswordConfirmation string `protobuf:"bytes,3,opt,name=password_confirmation,json=passwordConfirmation,proto3" json:"password_confirmation,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + PasswordConfirmation string `protobuf:"bytes,3,opt,name=password_confirmation,json=passwordConfirmation,proto3" json:"password_confirmation,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdatePasswordRequest) Reset() { @@ -610,9 +603,9 @@ func (x *UpdatePasswordRequest) GetPasswordConfirmation() string { } type UpdatePasswordResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdatePasswordResponse) Reset() { diff --git a/server/pkg/proto/api/v1/errors.pb.go b/server/pkg/proto/api/v1/errors.pb.go index cc90753f..60bd1b1f 100644 --- a/server/pkg/proto/api/v1/errors.pb.go +++ b/server/pkg/proto/api/v1/errors.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: api/v1/errors.proto @@ -71,11 +71,10 @@ func (Error) EnumDescriptor() ([]byte, []int) { } type ErrorDetail struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=api.v1.Error" json:"error,omitempty"` unknownFields protoimpl.UnknownFields - - Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=api.v1.Error" json:"error,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ErrorDetail) Reset() { diff --git a/server/pkg/proto/api/v1/exercise_service.pb.go b/server/pkg/proto/api/v1/exercise_service.pb.go index fc4aca44..890f0de1 100644 --- a/server/pkg/proto/api/v1/exercise_service.pb.go +++ b/server/pkg/proto/api/v1/exercise_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: api/v1/exercise_service.proto @@ -24,12 +24,11 @@ const ( ) type CreateExerciseRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateExerciseRequest) Reset() { @@ -77,11 +76,10 @@ func (x *CreateExerciseRequest) GetLabel() string { } type CreateExerciseResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateExerciseResponse) Reset() { @@ -122,11 +120,10 @@ func (x *CreateExerciseResponse) GetId() string { } type GetExerciseRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetExerciseRequest) Reset() { @@ -167,11 +164,10 @@ func (x *GetExerciseRequest) GetId() string { } type GetExerciseResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Exercise *Exercise `protobuf:"bytes,1,opt,name=exercise,proto3" json:"exercise,omitempty"` unknownFields protoimpl.UnknownFields - - Exercise *Exercise `protobuf:"bytes,1,opt,name=exercise,proto3" json:"exercise,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetExerciseResponse) Reset() { @@ -212,12 +208,11 @@ func (x *GetExerciseResponse) GetExercise() *Exercise { } type UpdateExerciseRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Exercise *Exercise `protobuf:"bytes,1,opt,name=exercise,proto3" json:"exercise,omitempty"` + UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` unknownFields protoimpl.UnknownFields - - Exercise *Exercise `protobuf:"bytes,1,opt,name=exercise,proto3" json:"exercise,omitempty"` - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateExerciseRequest) Reset() { @@ -265,11 +260,10 @@ func (x *UpdateExerciseRequest) GetUpdateMask() *fieldmaskpb.FieldMask { } type UpdateExerciseResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Exercise *Exercise `protobuf:"bytes,1,opt,name=exercise,proto3" json:"exercise,omitempty"` unknownFields protoimpl.UnknownFields - - Exercise *Exercise `protobuf:"bytes,1,opt,name=exercise,proto3" json:"exercise,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateExerciseResponse) Reset() { @@ -310,11 +304,10 @@ func (x *UpdateExerciseResponse) GetExercise() *Exercise { } type DeleteExerciseRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteExerciseRequest) Reset() { @@ -355,9 +348,9 @@ func (x *DeleteExerciseRequest) GetId() string { } type DeleteExerciseResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteExerciseResponse) Reset() { @@ -391,13 +384,12 @@ func (*DeleteExerciseResponse) Descriptor() ([]byte, []int) { } type ListExercisesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + ExerciseIds []string `protobuf:"bytes,2,rep,name=exercise_ids,json=exerciseIds,proto3" json:"exercise_ids,omitempty"` + Pagination *PaginationRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - ExerciseIds []string `protobuf:"bytes,2,rep,name=exercise_ids,json=exerciseIds,proto3" json:"exercise_ids,omitempty"` - Pagination *PaginationRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListExercisesRequest) Reset() { @@ -452,12 +444,11 @@ func (x *ListExercisesRequest) GetPagination() *PaginationRequest { } type ListExercisesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Exercises []*Exercise `protobuf:"bytes,1,rep,name=exercises,proto3" json:"exercises,omitempty"` + Pagination *PaginationResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` unknownFields protoimpl.UnknownFields - - Exercises []*Exercise `protobuf:"bytes,1,rep,name=exercises,proto3" json:"exercises,omitempty"` - Pagination *PaginationResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListExercisesResponse) Reset() { @@ -505,11 +496,10 @@ func (x *ListExercisesResponse) GetPagination() *PaginationResponse { } type GetPreviousWorkoutSetsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ExerciseIds []string `protobuf:"bytes,1,rep,name=exercise_ids,json=exerciseIds,proto3" json:"exercise_ids,omitempty"` unknownFields protoimpl.UnknownFields - - ExerciseIds []string `protobuf:"bytes,1,rep,name=exercise_ids,json=exerciseIds,proto3" json:"exercise_ids,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetPreviousWorkoutSetsRequest) Reset() { @@ -550,11 +540,10 @@ func (x *GetPreviousWorkoutSetsRequest) GetExerciseIds() []string { } type GetPreviousWorkoutSetsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ExerciseSets []*ExerciseSets `protobuf:"bytes,1,rep,name=exercise_sets,json=exerciseSets,proto3" json:"exercise_sets,omitempty"` unknownFields protoimpl.UnknownFields - - ExerciseSets []*ExerciseSets `protobuf:"bytes,1,rep,name=exercise_sets,json=exerciseSets,proto3" json:"exercise_sets,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetPreviousWorkoutSetsResponse) Reset() { @@ -595,11 +584,10 @@ func (x *GetPreviousWorkoutSetsResponse) GetExerciseSets() []*ExerciseSets { } type GetPersonalBestsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetPersonalBestsRequest) Reset() { @@ -640,11 +628,10 @@ func (x *GetPersonalBestsRequest) GetUserId() string { } type GetPersonalBestsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + PersonalBests []*PersonalBest `protobuf:"bytes,1,rep,name=personal_bests,json=personalBests,proto3" json:"personal_bests,omitempty"` unknownFields protoimpl.UnknownFields - - PersonalBests []*PersonalBest `protobuf:"bytes,1,rep,name=personal_bests,json=personalBests,proto3" json:"personal_bests,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetPersonalBestsResponse) Reset() { @@ -685,12 +672,11 @@ func (x *GetPersonalBestsResponse) GetPersonalBests() []*PersonalBest { } type ListSetsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ExerciseId string `protobuf:"bytes,1,opt,name=exercise_id,json=exerciseId,proto3" json:"exercise_id,omitempty"` + Pagination *PaginationRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` unknownFields protoimpl.UnknownFields - - ExerciseId string `protobuf:"bytes,1,opt,name=exercise_id,json=exerciseId,proto3" json:"exercise_id,omitempty"` - Pagination *PaginationRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListSetsRequest) Reset() { @@ -738,12 +724,11 @@ func (x *ListSetsRequest) GetPagination() *PaginationRequest { } type ListSetsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Sets []*Set `protobuf:"bytes,1,rep,name=sets,proto3" json:"sets,omitempty"` + Pagination *PaginationResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` unknownFields protoimpl.UnknownFields - - Sets []*Set `protobuf:"bytes,1,rep,name=sets,proto3" json:"sets,omitempty"` - Pagination *PaginationResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListSetsResponse) Reset() { @@ -791,12 +776,11 @@ func (x *ListSetsResponse) GetPagination() *PaginationResponse { } type PersonalBest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Exercise *Exercise `protobuf:"bytes,1,opt,name=exercise,proto3" json:"exercise,omitempty"` + Set *Set `protobuf:"bytes,2,opt,name=set,proto3" json:"set,omitempty"` unknownFields protoimpl.UnknownFields - - Exercise *Exercise `protobuf:"bytes,1,opt,name=exercise,proto3" json:"exercise,omitempty"` - Set *Set `protobuf:"bytes,2,opt,name=set,proto3" json:"set,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PersonalBest) Reset() { diff --git a/server/pkg/proto/api/v1/feed_service.pb.go b/server/pkg/proto/api/v1/feed_service.pb.go index 7f872a5f..09a0bd73 100644 --- a/server/pkg/proto/api/v1/feed_service.pb.go +++ b/server/pkg/proto/api/v1/feed_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: api/v1/feed_service.proto @@ -23,12 +23,11 @@ const ( ) type ListFeedItemsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + FollowedOnly bool `protobuf:"varint,1,opt,name=followed_only,json=followedOnly,proto3" json:"followed_only,omitempty"` + Pagination *PaginationRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` unknownFields protoimpl.UnknownFields - - FollowedOnly bool `protobuf:"varint,1,opt,name=followed_only,json=followedOnly,proto3" json:"followed_only,omitempty"` - Pagination *PaginationRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListFeedItemsRequest) Reset() { @@ -76,12 +75,11 @@ func (x *ListFeedItemsRequest) GetPagination() *PaginationRequest { } type ListFeedItemsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Items []*FeedItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` + Pagination *PaginationResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` unknownFields protoimpl.UnknownFields - - Items []*FeedItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` - Pagination *PaginationResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListFeedItemsResponse) Reset() { @@ -129,14 +127,13 @@ func (x *ListFeedItemsResponse) GetPagination() *PaginationResponse { } type FeedItem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Type: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Type: // // *FeedItem_Workout - Type isFeedItem_Type `protobuf_oneof:"type"` + Type isFeedItem_Type `protobuf_oneof:"type"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FeedItem) Reset() { @@ -169,16 +166,18 @@ func (*FeedItem) Descriptor() ([]byte, []int) { return file_api_v1_feed_service_proto_rawDescGZIP(), []int{2} } -func (m *FeedItem) GetType() isFeedItem_Type { - if m != nil { - return m.Type +func (x *FeedItem) GetType() isFeedItem_Type { + if x != nil { + return x.Type } return nil } func (x *FeedItem) GetWorkout() *Workout { - if x, ok := x.GetType().(*FeedItem_Workout); ok { - return x.Workout + if x != nil { + if x, ok := x.Type.(*FeedItem_Workout); ok { + return x.Workout + } } return nil } diff --git a/server/pkg/proto/api/v1/notification_service.pb.go b/server/pkg/proto/api/v1/notification_service.pb.go index a4fe086f..71391b57 100644 --- a/server/pkg/proto/api/v1/notification_service.pb.go +++ b/server/pkg/proto/api/v1/notification_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: api/v1/notification_service.proto @@ -23,11 +23,10 @@ const ( ) type ListNotificationsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListNotificationsRequest) Reset() { @@ -68,12 +67,11 @@ func (x *ListNotificationsRequest) GetPagination() *PaginationRequest { } type ListNotificationsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` + Pagination *PaginationResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` unknownFields protoimpl.UnknownFields - - Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` - Pagination *PaginationResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListNotificationsResponse) Reset() { @@ -121,9 +119,9 @@ func (x *ListNotificationsResponse) GetPagination() *PaginationResponse { } type MarkNotificationsAsReadRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MarkNotificationsAsReadRequest) Reset() { @@ -157,9 +155,9 @@ func (*MarkNotificationsAsReadRequest) Descriptor() ([]byte, []int) { } type MarkNotificationsAsReadResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MarkNotificationsAsReadResponse) Reset() { @@ -193,9 +191,9 @@ func (*MarkNotificationsAsReadResponse) Descriptor() ([]byte, []int) { } type UnreadNotificationsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UnreadNotificationsRequest) Reset() { @@ -229,11 +227,10 @@ func (*UnreadNotificationsRequest) Descriptor() ([]byte, []int) { } type UnreadNotificationsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` unknownFields protoimpl.UnknownFields - - Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UnreadNotificationsResponse) Reset() { @@ -274,18 +271,17 @@ func (x *UnreadNotificationsResponse) GetCount() int64 { } type Notification struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // DEBT: This should be a timestamp but the client is not able to parse it. NotifiedAtUnix int64 `protobuf:"varint,2,opt,name=notified_at_unix,json=notifiedAtUnix,proto3" json:"notified_at_unix,omitempty"` - // Types that are assignable to Type: + // Types that are valid to be assigned to Type: // // *Notification_UserFollowed_ // *Notification_WorkoutComment_ - Type isNotification_Type `protobuf_oneof:"type"` + Type isNotification_Type `protobuf_oneof:"type"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Notification) Reset() { @@ -332,23 +328,27 @@ func (x *Notification) GetNotifiedAtUnix() int64 { return 0 } -func (m *Notification) GetType() isNotification_Type { - if m != nil { - return m.Type +func (x *Notification) GetType() isNotification_Type { + if x != nil { + return x.Type } return nil } func (x *Notification) GetUserFollowed() *Notification_UserFollowed { - if x, ok := x.GetType().(*Notification_UserFollowed_); ok { - return x.UserFollowed + if x != nil { + if x, ok := x.Type.(*Notification_UserFollowed_); ok { + return x.UserFollowed + } } return nil } func (x *Notification) GetWorkoutComment() *Notification_WorkoutComment { - if x, ok := x.GetType().(*Notification_WorkoutComment_); ok { - return x.WorkoutComment + if x != nil { + if x, ok := x.Type.(*Notification_WorkoutComment_); ok { + return x.WorkoutComment + } } return nil } @@ -370,11 +370,10 @@ func (*Notification_UserFollowed_) isNotification_Type() {} func (*Notification_WorkoutComment_) isNotification_Type() {} type Notification_UserFollowed struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Actor *User `protobuf:"bytes,1,opt,name=actor,proto3" json:"actor,omitempty"` unknownFields protoimpl.UnknownFields - - Actor *User `protobuf:"bytes,1,opt,name=actor,proto3" json:"actor,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Notification_UserFollowed) Reset() { @@ -415,12 +414,11 @@ func (x *Notification_UserFollowed) GetActor() *User { } type Notification_WorkoutComment struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Actor *User `protobuf:"bytes,1,opt,name=actor,proto3" json:"actor,omitempty"` + Workout *Workout `protobuf:"bytes,2,opt,name=workout,proto3" json:"workout,omitempty"` unknownFields protoimpl.UnknownFields - - Actor *User `protobuf:"bytes,1,opt,name=actor,proto3" json:"actor,omitempty"` - Workout *Workout `protobuf:"bytes,2,opt,name=workout,proto3" json:"workout,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Notification_WorkoutComment) Reset() { diff --git a/server/pkg/proto/api/v1/options.pb.go b/server/pkg/proto/api/v1/options.pb.go index 892e5217..f80e0e21 100644 --- a/server/pkg/proto/api/v1/options.pb.go +++ b/server/pkg/proto/api/v1/options.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: api/v1/options.proto diff --git a/server/pkg/proto/api/v1/routine_service.pb.go b/server/pkg/proto/api/v1/routine_service.pb.go index d78b52db..eb416904 100644 --- a/server/pkg/proto/api/v1/routine_service.pb.go +++ b/server/pkg/proto/api/v1/routine_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: api/v1/routine_service.proto @@ -23,12 +23,11 @@ const ( ) type CreateRoutineRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + ExerciseIds []string `protobuf:"bytes,2,rep,name=exercise_ids,json=exerciseIds,proto3" json:"exercise_ids,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - ExerciseIds []string `protobuf:"bytes,2,rep,name=exercise_ids,json=exerciseIds,proto3" json:"exercise_ids,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateRoutineRequest) Reset() { @@ -76,11 +75,10 @@ func (x *CreateRoutineRequest) GetExerciseIds() []string { } type CreateRoutineResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateRoutineResponse) Reset() { @@ -121,11 +119,10 @@ func (x *CreateRoutineResponse) GetId() string { } type GetRoutineRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRoutineRequest) Reset() { @@ -166,11 +163,10 @@ func (x *GetRoutineRequest) GetId() string { } type GetRoutineResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Routine *Routine `protobuf:"bytes,1,opt,name=routine,proto3" json:"routine,omitempty"` unknownFields protoimpl.UnknownFields - - Routine *Routine `protobuf:"bytes,1,opt,name=routine,proto3" json:"routine,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRoutineResponse) Reset() { @@ -211,11 +207,10 @@ func (x *GetRoutineResponse) GetRoutine() *Routine { } type UpdateRoutineRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Routine *Routine `protobuf:"bytes,1,opt,name=routine,proto3" json:"routine,omitempty"` unknownFields protoimpl.UnknownFields - - Routine *Routine `protobuf:"bytes,1,opt,name=routine,proto3" json:"routine,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateRoutineRequest) Reset() { @@ -256,11 +251,10 @@ func (x *UpdateRoutineRequest) GetRoutine() *Routine { } type UpdateRoutineResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Routine *Routine `protobuf:"bytes,1,opt,name=routine,proto3" json:"routine,omitempty"` unknownFields protoimpl.UnknownFields - - Routine *Routine `protobuf:"bytes,1,opt,name=routine,proto3" json:"routine,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateRoutineResponse) Reset() { @@ -301,11 +295,10 @@ func (x *UpdateRoutineResponse) GetRoutine() *Routine { } type DeleteRoutineRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteRoutineRequest) Reset() { @@ -346,9 +339,9 @@ func (x *DeleteRoutineRequest) GetId() string { } type DeleteRoutineResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteRoutineResponse) Reset() { @@ -382,12 +375,11 @@ func (*DeleteRoutineResponse) Descriptor() ([]byte, []int) { } type ListRoutinesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Pagination *PaginationRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Pagination *PaginationRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListRoutinesRequest) Reset() { @@ -435,12 +427,11 @@ func (x *ListRoutinesRequest) GetPagination() *PaginationRequest { } type ListRoutinesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Routines []*Routine `protobuf:"bytes,1,rep,name=routines,proto3" json:"routines,omitempty"` + Pagination *PaginationResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` unknownFields protoimpl.UnknownFields - - Routines []*Routine `protobuf:"bytes,1,rep,name=routines,proto3" json:"routines,omitempty"` - Pagination *PaginationResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListRoutinesResponse) Reset() { @@ -488,12 +479,11 @@ func (x *ListRoutinesResponse) GetPagination() *PaginationResponse { } type AddExerciseRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RoutineId string `protobuf:"bytes,1,opt,name=routine_id,json=routineId,proto3" json:"routine_id,omitempty"` + ExerciseId string `protobuf:"bytes,2,opt,name=exercise_id,json=exerciseId,proto3" json:"exercise_id,omitempty"` unknownFields protoimpl.UnknownFields - - RoutineId string `protobuf:"bytes,1,opt,name=routine_id,json=routineId,proto3" json:"routine_id,omitempty"` - ExerciseId string `protobuf:"bytes,2,opt,name=exercise_id,json=exerciseId,proto3" json:"exercise_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AddExerciseRequest) Reset() { @@ -541,9 +531,9 @@ func (x *AddExerciseRequest) GetExerciseId() string { } type AddExerciseResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AddExerciseResponse) Reset() { @@ -577,12 +567,11 @@ func (*AddExerciseResponse) Descriptor() ([]byte, []int) { } type RemoveExerciseRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RoutineId string `protobuf:"bytes,1,opt,name=routine_id,json=routineId,proto3" json:"routine_id,omitempty"` + ExerciseId string `protobuf:"bytes,2,opt,name=exercise_id,json=exerciseId,proto3" json:"exercise_id,omitempty"` unknownFields protoimpl.UnknownFields - - RoutineId string `protobuf:"bytes,1,opt,name=routine_id,json=routineId,proto3" json:"routine_id,omitempty"` - ExerciseId string `protobuf:"bytes,2,opt,name=exercise_id,json=exerciseId,proto3" json:"exercise_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RemoveExerciseRequest) Reset() { @@ -630,9 +619,9 @@ func (x *RemoveExerciseRequest) GetExerciseId() string { } type RemoveExerciseResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RemoveExerciseResponse) Reset() { @@ -666,12 +655,11 @@ func (*RemoveExerciseResponse) Descriptor() ([]byte, []int) { } type UpdateExerciseOrderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RoutineId string `protobuf:"bytes,1,opt,name=routine_id,json=routineId,proto3" json:"routine_id,omitempty"` + ExerciseIds []string `protobuf:"bytes,2,rep,name=exercise_ids,json=exerciseIds,proto3" json:"exercise_ids,omitempty"` unknownFields protoimpl.UnknownFields - - RoutineId string `protobuf:"bytes,1,opt,name=routine_id,json=routineId,proto3" json:"routine_id,omitempty"` - ExerciseIds []string `protobuf:"bytes,2,rep,name=exercise_ids,json=exerciseIds,proto3" json:"exercise_ids,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateExerciseOrderRequest) Reset() { @@ -719,9 +707,9 @@ func (x *UpdateExerciseOrderRequest) GetExerciseIds() []string { } type UpdateExerciseOrderResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateExerciseOrderResponse) Reset() { @@ -755,13 +743,12 @@ func (*UpdateExerciseOrderResponse) Descriptor() ([]byte, []int) { } type Routine struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Exercises []*Exercise `protobuf:"bytes,3,rep,name=exercises,proto3" json:"exercises,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Exercises []*Exercise `protobuf:"bytes,3,rep,name=exercises,proto3" json:"exercises,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Routine) Reset() { diff --git a/server/pkg/proto/api/v1/shared.pb.go b/server/pkg/proto/api/v1/shared.pb.go index b56687f3..1d1f33a0 100644 --- a/server/pkg/proto/api/v1/shared.pb.go +++ b/server/pkg/proto/api/v1/shared.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: api/v1/shared.proto @@ -24,12 +24,11 @@ const ( ) type ExerciseSets struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Exercise *Exercise `protobuf:"bytes,1,opt,name=exercise,proto3" json:"exercise,omitempty"` + Sets []*Set `protobuf:"bytes,2,rep,name=sets,proto3" json:"sets,omitempty"` unknownFields protoimpl.UnknownFields - - Exercise *Exercise `protobuf:"bytes,1,opt,name=exercise,proto3" json:"exercise,omitempty"` - Sets []*Set `protobuf:"bytes,2,rep,name=sets,proto3" json:"sets,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ExerciseSets) Reset() { @@ -77,14 +76,13 @@ func (x *ExerciseSets) GetSets() []*Set { } type Exercise struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Exercise) Reset() { @@ -146,13 +144,12 @@ func (x *Exercise) GetLabel() string { } type Set struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Weight float64 `protobuf:"fixed64,1,opt,name=weight,proto3" json:"weight,omitempty"` // The weight can be less than zero. + Reps int32 `protobuf:"varint,2,opt,name=reps,proto3" json:"reps,omitempty"` + Metadata *MetadataSet `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` unknownFields protoimpl.UnknownFields - - Weight float64 `protobuf:"fixed64,1,opt,name=weight,proto3" json:"weight,omitempty"` // The weight can be less than zero. - Reps int32 `protobuf:"varint,2,opt,name=reps,proto3" json:"reps,omitempty"` - Metadata *MetadataSet `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Set) Reset() { @@ -207,12 +204,11 @@ func (x *Set) GetMetadata() *MetadataSet { } type MetadataSet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + WorkoutId string `protobuf:"bytes,1,opt,name=workout_id,json=workoutId,proto3" json:"workout_id,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` unknownFields protoimpl.UnknownFields - - WorkoutId string `protobuf:"bytes,1,opt,name=workout_id,json=workoutId,proto3" json:"workout_id,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MetadataSet) Reset() { @@ -260,15 +256,14 @@ func (x *MetadataSet) GetCreatedAt() *timestamppb.Timestamp { } type User struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` + Followed bool `protobuf:"varint,5,opt,name=followed,proto3" json:"followed,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` - Followed bool `protobuf:"varint,5,opt,name=followed,proto3" json:"followed,omitempty"` + sizeCache protoimpl.SizeCache } func (x *User) Reset() { @@ -337,12 +332,11 @@ func (x *User) GetFollowed() bool { } type PaginationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + PageLimit int32 `protobuf:"varint,1,opt,name=page_limit,json=pageLimit,proto3" json:"page_limit,omitempty"` + PageToken []byte `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` unknownFields protoimpl.UnknownFields - - PageLimit int32 `protobuf:"varint,1,opt,name=page_limit,json=pageLimit,proto3" json:"page_limit,omitempty"` - PageToken []byte `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PaginationRequest) Reset() { @@ -390,11 +384,10 @@ func (x *PaginationRequest) GetPageToken() []byte { } type PaginationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + NextPageToken []byte `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` unknownFields protoimpl.UnknownFields - - NextPageToken []byte `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PaginationResponse) Reset() { diff --git a/server/pkg/proto/api/v1/user_service.pb.go b/server/pkg/proto/api/v1/user_service.pb.go index 3ed40234..13a56733 100644 --- a/server/pkg/proto/api/v1/user_service.pb.go +++ b/server/pkg/proto/api/v1/user_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: api/v1/user_service.proto @@ -23,11 +23,10 @@ const ( ) type GetUserRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetUserRequest) Reset() { @@ -68,11 +67,10 @@ func (x *GetUserRequest) GetId() string { } type GetUserResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields - - User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetUserResponse) Reset() { @@ -113,11 +111,10 @@ func (x *GetUserResponse) GetUser() *User { } type FollowUserRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + FollowId string `protobuf:"bytes,1,opt,name=follow_id,json=followId,proto3" json:"follow_id,omitempty"` unknownFields protoimpl.UnknownFields - - FollowId string `protobuf:"bytes,1,opt,name=follow_id,json=followId,proto3" json:"follow_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *FollowUserRequest) Reset() { @@ -158,9 +155,9 @@ func (x *FollowUserRequest) GetFollowId() string { } type FollowUserResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FollowUserResponse) Reset() { @@ -194,11 +191,10 @@ func (*FollowUserResponse) Descriptor() ([]byte, []int) { } type UnfollowUserRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UnfollowId string `protobuf:"bytes,1,opt,name=unfollow_id,json=unfollowId,proto3" json:"unfollow_id,omitempty"` unknownFields protoimpl.UnknownFields - - UnfollowId string `protobuf:"bytes,1,opt,name=unfollow_id,json=unfollowId,proto3" json:"unfollow_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UnfollowUserRequest) Reset() { @@ -239,9 +235,9 @@ func (x *UnfollowUserRequest) GetUnfollowId() string { } type UnfollowUserResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UnfollowUserResponse) Reset() { @@ -275,11 +271,10 @@ func (*UnfollowUserResponse) Descriptor() ([]byte, []int) { } type ListFollowersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + FollowerId string `protobuf:"bytes,1,opt,name=follower_id,json=followerId,proto3" json:"follower_id,omitempty"` unknownFields protoimpl.UnknownFields - - FollowerId string `protobuf:"bytes,1,opt,name=follower_id,json=followerId,proto3" json:"follower_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListFollowersRequest) Reset() { @@ -320,11 +315,10 @@ func (x *ListFollowersRequest) GetFollowerId() string { } type ListFollowersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Followers []*User `protobuf:"bytes,1,rep,name=followers,proto3" json:"followers,omitempty"` unknownFields protoimpl.UnknownFields - - Followers []*User `protobuf:"bytes,1,rep,name=followers,proto3" json:"followers,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListFollowersResponse) Reset() { @@ -365,11 +359,10 @@ func (x *ListFollowersResponse) GetFollowers() []*User { } type ListFolloweesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + FolloweeId string `protobuf:"bytes,1,opt,name=followee_id,json=followeeId,proto3" json:"followee_id,omitempty"` unknownFields protoimpl.UnknownFields - - FolloweeId string `protobuf:"bytes,1,opt,name=followee_id,json=followeeId,proto3" json:"followee_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListFolloweesRequest) Reset() { @@ -410,11 +403,10 @@ func (x *ListFolloweesRequest) GetFolloweeId() string { } type ListFolloweesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Followees []*User `protobuf:"bytes,1,rep,name=followees,proto3" json:"followees,omitempty"` unknownFields protoimpl.UnknownFields - - Followees []*User `protobuf:"bytes,1,rep,name=followees,proto3" json:"followees,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListFolloweesResponse) Reset() { @@ -455,12 +447,11 @@ func (x *ListFolloweesResponse) GetFollowees() []*User { } type SearchUsersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` + Pagination *PaginationRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` unknownFields protoimpl.UnknownFields - - Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` - Pagination *PaginationRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SearchUsersRequest) Reset() { @@ -508,12 +499,11 @@ func (x *SearchUsersRequest) GetPagination() *PaginationRequest { } type SearchUsersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` + Pagination *PaginationResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` unknownFields protoimpl.UnknownFields - - Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` - Pagination *PaginationResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SearchUsersResponse) Reset() { diff --git a/server/pkg/proto/api/v1/workout_service.pb.go b/server/pkg/proto/api/v1/workout_service.pb.go index 4e1e615f..dc65f235 100644 --- a/server/pkg/proto/api/v1/workout_service.pb.go +++ b/server/pkg/proto/api/v1/workout_service.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: api/v1/workout_service.proto @@ -24,14 +24,13 @@ const ( ) type CreateWorkoutRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RoutineId string `protobuf:"bytes,1,opt,name=routine_id,json=routineId,proto3" json:"routine_id,omitempty"` + ExerciseSets []*ExerciseSets `protobuf:"bytes,2,rep,name=exercise_sets,json=exerciseSets,proto3" json:"exercise_sets,omitempty"` + StartedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + FinishedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"` unknownFields protoimpl.UnknownFields - - RoutineId string `protobuf:"bytes,1,opt,name=routine_id,json=routineId,proto3" json:"routine_id,omitempty"` - ExerciseSets []*ExerciseSets `protobuf:"bytes,2,rep,name=exercise_sets,json=exerciseSets,proto3" json:"exercise_sets,omitempty"` - StartedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - FinishedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateWorkoutRequest) Reset() { @@ -93,11 +92,10 @@ func (x *CreateWorkoutRequest) GetFinishedAt() *timestamppb.Timestamp { } type CreateWorkoutResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + WorkoutId string `protobuf:"bytes,1,opt,name=workout_id,json=workoutId,proto3" json:"workout_id,omitempty"` unknownFields protoimpl.UnknownFields - - WorkoutId string `protobuf:"bytes,1,opt,name=workout_id,json=workoutId,proto3" json:"workout_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateWorkoutResponse) Reset() { @@ -138,12 +136,11 @@ func (x *CreateWorkoutResponse) GetWorkoutId() string { } type ListWorkoutsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserIds []string `protobuf:"bytes,1,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` + Pagination *PaginationRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` unknownFields protoimpl.UnknownFields - - UserIds []string `protobuf:"bytes,1,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` - Pagination *PaginationRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListWorkoutsRequest) Reset() { @@ -191,12 +188,11 @@ func (x *ListWorkoutsRequest) GetPagination() *PaginationRequest { } type ListWorkoutsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Workouts []*Workout `protobuf:"bytes,1,rep,name=workouts,proto3" json:"workouts,omitempty"` + Pagination *PaginationResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` unknownFields protoimpl.UnknownFields - - Workouts []*Workout `protobuf:"bytes,1,rep,name=workouts,proto3" json:"workouts,omitempty"` - Pagination *PaginationResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListWorkoutsResponse) Reset() { @@ -244,11 +240,10 @@ func (x *ListWorkoutsResponse) GetPagination() *PaginationResponse { } type GetWorkoutRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetWorkoutRequest) Reset() { @@ -289,11 +284,10 @@ func (x *GetWorkoutRequest) GetId() string { } type GetWorkoutResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Workout *Workout `protobuf:"bytes,1,opt,name=workout,proto3" json:"workout,omitempty"` unknownFields protoimpl.UnknownFields - - Workout *Workout `protobuf:"bytes,1,opt,name=workout,proto3" json:"workout,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetWorkoutResponse) Reset() { @@ -334,11 +328,10 @@ func (x *GetWorkoutResponse) GetWorkout() *Workout { } type DeleteWorkoutRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteWorkoutRequest) Reset() { @@ -379,9 +372,9 @@ func (x *DeleteWorkoutRequest) GetId() string { } type DeleteWorkoutResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteWorkoutResponse) Reset() { @@ -415,12 +408,11 @@ func (*DeleteWorkoutResponse) Descriptor() ([]byte, []int) { } type PostCommentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + WorkoutId string `protobuf:"bytes,1,opt,name=workout_id,json=workoutId,proto3" json:"workout_id,omitempty"` + Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` unknownFields protoimpl.UnknownFields - - WorkoutId string `protobuf:"bytes,1,opt,name=workout_id,json=workoutId,proto3" json:"workout_id,omitempty"` - Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostCommentRequest) Reset() { @@ -468,11 +460,10 @@ func (x *PostCommentRequest) GetComment() string { } type PostCommentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Comment *WorkoutComment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` unknownFields protoimpl.UnknownFields - - Comment *WorkoutComment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostCommentResponse) Reset() { @@ -513,11 +504,10 @@ func (x *PostCommentResponse) GetComment() *WorkoutComment { } type UpdateWorkoutRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Workout *Workout `protobuf:"bytes,1,opt,name=workout,proto3" json:"workout,omitempty"` unknownFields protoimpl.UnknownFields - - Workout *Workout `protobuf:"bytes,1,opt,name=workout,proto3" json:"workout,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateWorkoutRequest) Reset() { @@ -558,9 +548,9 @@ func (x *UpdateWorkoutRequest) GetWorkout() *Workout { } type UpdateWorkoutResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateWorkoutResponse) Reset() { @@ -594,17 +584,16 @@ func (*UpdateWorkoutResponse) Descriptor() ([]byte, []int) { } type Workout struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` + ExerciseSets []*ExerciseSets `protobuf:"bytes,4,rep,name=exercise_sets,json=exerciseSets,proto3" json:"exercise_sets,omitempty"` + Comments []*WorkoutComment `protobuf:"bytes,5,rep,name=comments,proto3" json:"comments,omitempty"` + StartedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + FinishedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` - ExerciseSets []*ExerciseSets `protobuf:"bytes,4,rep,name=exercise_sets,json=exerciseSets,proto3" json:"exercise_sets,omitempty"` - Comments []*WorkoutComment `protobuf:"bytes,5,rep,name=comments,proto3" json:"comments,omitempty"` - StartedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - FinishedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Workout) Reset() { @@ -687,14 +676,13 @@ func (x *Workout) GetFinishedAt() *timestamppb.Timestamp { } type WorkoutComment struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` + Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` - Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + sizeCache protoimpl.SizeCache } func (x *WorkoutComment) Reset() {