forked from TrueCloudLab/frostfs-api
[#84] Fix string presentation object type enum
Default string presentations of enums in protobuf are the same as definitions. In our case it is going to be UPPER_SNAKE_CASE string constants. Default presentation is easier to maintain. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
260db6b3df
commit
233f777d0c
1 changed files with 5 additions and 6 deletions
|
@ -9,14 +9,13 @@ import "refs/types.proto";
|
||||||
import "session/types.proto";
|
import "session/types.proto";
|
||||||
|
|
||||||
// Type of the object payload content. Only `REGULAR` type objects can be split,
|
// Type of the object payload content. Only `REGULAR` type objects can be split,
|
||||||
// hence `TOMBSTONE` and `STORAGEGROUP` payload is limited by maximal object
|
// hence `TOMBSTONE` and `STORAGE_GROUP` payload is limited by maximal object
|
||||||
// size.
|
// size.
|
||||||
//
|
//
|
||||||
// String presentation of object type is PascalCased `ObjectType` enumeration
|
// String presentation of object type is the same as definition:
|
||||||
// item name:
|
// * REGULAR
|
||||||
// * Regular
|
// * TOMBSTONE
|
||||||
// * Tombstone
|
// * STORAGE_GROUP
|
||||||
// * StorageGroup
|
|
||||||
enum ObjectType {
|
enum ObjectType {
|
||||||
// Just a normal object
|
// Just a normal object
|
||||||
REGULAR = 0;
|
REGULAR = 0;
|
||||||
|
|
Loading…
Reference in a new issue