akkaserverless.entity.proto Maven / Gradle / Ivy
// Copyright 2021 Lightbend Inc.
// Entity level extensions for protobuf.
syntax = "proto3";
package akkaserverless;
option go_package = "github.com/lightbend/akkaserverless-go-sdk/akkaserverless;akkaserverless";
option java_multiple_files = true;
option java_outer_classname = "EntityProto";
option java_package = "com.akkaserverless";
message EntityMethodOptions {
enum Generator {
UNSPECIFIED = 0;
// Generate a Version 4 (random) UUID. The UUID will be generated using a cryptographically secure random
// number generator.
VERSION_4_UUID = 1;
}
// Indicates that Akka Serverless should generate an entity key when this method is invoked.
//
// The generated entity key will be accessible via the entity context supplied in the SDK.
//
// The incoming message MUST NOT declare an entity_key annotated field, if it does, an error will be raised.
Generator key_generator = 1;
}