Skip to content

Commit

Permalink
fix: removing deprecated kalix proto annotations (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
aludwiko authored Feb 29, 2024
1 parent d17728f commit b2d0e65
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/g8/src/main/protobuf/$package$/counter_api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ import "google/api/annotations.proto";
package $package$;

message IncreaseValue {
string counter_id = 1 [(kalix.field).entity_key = true];
string counter_id = 1 [(kalix.field).id = true];
int32 value = 2;
}

message DecreaseValue {
string counter_id = 1 [(kalix.field).entity_key = true];
string counter_id = 1 [(kalix.field).id = true];
int32 value = 2;
}

message ResetValue {
string counter_id = 1 [(kalix.field).entity_key = true];
string counter_id = 1 [(kalix.field).id = true];
}

message GetCounter {
string counter_id = 1 [(kalix.field).entity_key = true];
string counter_id = 1 [(kalix.field).id = true];
}

message CurrentCounter {
Expand All @@ -33,7 +33,7 @@ service CounterService {
option (kalix.codegen) = {
value_entity: {
name: "$package$.domain.Counter"
entity_type: "counter"
type_id: "counter"
state: "$package$.domain.CounterState"
}
};
Expand Down

0 comments on commit b2d0e65

Please sign in to comment.