Skip to content

Commit 67be08c

Browse files
Improve code layout.
1 parent 54f82d8 commit 67be08c

File tree

6 files changed

+13
-17
lines changed

6 files changed

+13
-17
lines changed

client/src/main/proto/spine/annotations.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ extend google.protobuf.FileOptions {
109109
extend google.protobuf.ServiceOptions {
110110
// Indicates that the service is a part of Service Provider Interface (SPI).
111111
bool SPI_service = 58012;
112-
}
112+
}

client/src/main/proto/spine/validate.proto

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,11 @@ option java_multiple_files = true;
3434
option java_outer_classname = "ValidationProto";
3535
option java_package = "org.spine3.validate.internal";
3636

37+
option (internal_all) = true;
38+
3739
import "google/protobuf/descriptor.proto";
3840
import "spine/annotations.proto";
3941

40-
41-
option (internal_all) = true;
42-
4342
// TODO:2016-02-18:alexander.litus: obtain globally unique field number(s) for opts from Google.
4443

4544
// A type of an entity.

server/src/main/proto/spine/server/storage/aggregate_storage.proto

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,12 @@ option java_outer_classname = "AggregateStorageProto";
2626
option java_multiple_files = true;
2727
option java_generate_equals_and_hash = true;
2828

29+
option (SPI_all) = true;
30+
2931
import public "spine/server/aggregate/snapshot.proto";
3032
import public "spine/base/event.proto";
3133
import "spine/annotations.proto";
3234

33-
34-
option (SPI_all) = true;
35-
3635
// A record in the storage of events and snapshots of an aggregate type.
3736
//
3837
// Different types of aggregates are managed by different storages.

server/src/main/proto/spine/server/storage/command_storage.proto

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ option java_multiple_files = true;
2626
option java_outer_classname = "CommandStoreProto";
2727
option java_generate_equals_and_hash = true;
2828

29+
option (SPI_all) = true;
30+
2931
import "google/protobuf/timestamp.proto";
3032
import "google/protobuf/any.proto";
3133

@@ -34,9 +36,6 @@ import "spine/base/error.proto";
3436
import "spine/base/failure.proto";
3537
import "spine/annotations.proto";
3638

37-
38-
option (SPI_all) = true;
39-
4039
// This type defines the way commands are stored in command storage.
4140
// Some of the fields are defined as string representation of corresponding message types
4241
// so that these fields are available for querying.

server/src/main/proto/spine/server/storage/entity_storage.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ option java_multiple_files = true;
2626
option java_outer_classname = "EntityStorageProto";
2727
option java_package = "org.spine3.server.storage";
2828

29-
import public "google/protobuf/timestamp.proto";
30-
import public "google/protobuf/any.proto";
31-
import "spine/annotations.proto";
29+
option (SPI_all) = true;
3230

31+
import "google/protobuf/timestamp.proto";
32+
import "google/protobuf/any.proto";
3333

34-
option (SPI_all) = true;
34+
import "spine/annotations.proto";
3535

3636
// Used to store entities in the entity storage.
3737
message EntityStorageRecord {

server/src/main/proto/spine/server/storage/event_storage.proto

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@ option java_multiple_files = true;
2626
option java_outer_classname = "EventStorageProto";
2727
option java_generate_equals_and_hash = true;
2828

29+
option (SPI_all) = true;
30+
2931
import "google/protobuf/any.proto";
3032
import "google/protobuf/timestamp.proto";
3133
import "spine/base/event.proto";
3234
import "spine/annotations.proto";
3335

34-
35-
option (SPI_all) = true;
36-
3736
// This type defines the way events are stored in event storage.
3837
// Some of the fields are defined as string representation of corresponding message types
3938
// so that these fields are available for querying.

0 commit comments

Comments
 (0)