UNPKG

@lightbend/akkaserverless-javascript-sdk

Version:
1,198 lines (982 loc) 672 kB
import * as $protobuf from "protobufjs"; /** Namespace akkaserverless. */ export namespace akkaserverless { /** Properties of a FieldOptions. */ interface IFieldOptions { /** FieldOptions entityKey */ entityKey?: (boolean|null); /** FieldOptions jwt */ jwt?: (akkaserverless.IJwtFieldOptions|null); } /** Represents a FieldOptions. */ class FieldOptions implements IFieldOptions { /** * Constructs a new FieldOptions. * @param [properties] Properties to set */ constructor(properties?: akkaserverless.IFieldOptions); /** FieldOptions entityKey. */ public entityKey: boolean; /** FieldOptions jwt. */ public jwt?: (akkaserverless.IJwtFieldOptions|null); /** * Creates a new FieldOptions instance using the specified properties. * @param [properties] Properties to set * @returns FieldOptions instance */ public static create(properties?: akkaserverless.IFieldOptions): akkaserverless.FieldOptions; /** * Encodes the specified FieldOptions message. Does not implicitly {@link akkaserverless.FieldOptions.verify|verify} messages. * @param message FieldOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: akkaserverless.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link akkaserverless.FieldOptions.verify|verify} messages. * @param message FieldOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: akkaserverless.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a FieldOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns FieldOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): akkaserverless.FieldOptions; /** * Decodes a FieldOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns FieldOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): akkaserverless.FieldOptions; /** * Verifies a FieldOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns FieldOptions */ public static fromObject(object: { [k: string]: any }): akkaserverless.FieldOptions; /** * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. * @param message FieldOptions * @param [options] Conversion options * @returns Plain object */ public static toObject(message: akkaserverless.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this FieldOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a FileOptions. */ interface IFileOptions { /** FileOptions eventSourcedEntity */ eventSourcedEntity?: (akkaserverless.IEventSourcedEntity|null); /** FileOptions valueEntity */ valueEntity?: (akkaserverless.IValueEntity|null); /** FileOptions replicatedEntity */ replicatedEntity?: (akkaserverless.IReplicatedEntity|null); } /** Represents a FileOptions. */ class FileOptions implements IFileOptions { /** * Constructs a new FileOptions. * @param [properties] Properties to set */ constructor(properties?: akkaserverless.IFileOptions); /** FileOptions eventSourcedEntity. */ public eventSourcedEntity?: (akkaserverless.IEventSourcedEntity|null); /** FileOptions valueEntity. */ public valueEntity?: (akkaserverless.IValueEntity|null); /** FileOptions replicatedEntity. */ public replicatedEntity?: (akkaserverless.IReplicatedEntity|null); /** * Creates a new FileOptions instance using the specified properties. * @param [properties] Properties to set * @returns FileOptions instance */ public static create(properties?: akkaserverless.IFileOptions): akkaserverless.FileOptions; /** * Encodes the specified FileOptions message. Does not implicitly {@link akkaserverless.FileOptions.verify|verify} messages. * @param message FileOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: akkaserverless.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link akkaserverless.FileOptions.verify|verify} messages. * @param message FileOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: akkaserverless.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a FileOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns FileOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): akkaserverless.FileOptions; /** * Decodes a FileOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns FileOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): akkaserverless.FileOptions; /** * Verifies a FileOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns FileOptions */ public static fromObject(object: { [k: string]: any }): akkaserverless.FileOptions; /** * Creates a plain object from a FileOptions message. Also converts values to other types if specified. * @param message FileOptions * @param [options] Conversion options * @returns Plain object */ public static toObject(message: akkaserverless.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this FileOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a MessageOptions. */ interface IMessageOptions { /** MessageOptions jwt */ jwt?: (akkaserverless.IJwtMessageOptions|null); } /** Represents a MessageOptions. */ class MessageOptions implements IMessageOptions { /** * Constructs a new MessageOptions. * @param [properties] Properties to set */ constructor(properties?: akkaserverless.IMessageOptions); /** MessageOptions jwt. */ public jwt?: (akkaserverless.IJwtMessageOptions|null); /** * Creates a new MessageOptions instance using the specified properties. * @param [properties] Properties to set * @returns MessageOptions instance */ public static create(properties?: akkaserverless.IMessageOptions): akkaserverless.MessageOptions; /** * Encodes the specified MessageOptions message. Does not implicitly {@link akkaserverless.MessageOptions.verify|verify} messages. * @param message MessageOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: akkaserverless.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link akkaserverless.MessageOptions.verify|verify} messages. * @param message MessageOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: akkaserverless.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a MessageOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns MessageOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): akkaserverless.MessageOptions; /** * Decodes a MessageOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns MessageOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): akkaserverless.MessageOptions; /** * Verifies a MessageOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns MessageOptions */ public static fromObject(object: { [k: string]: any }): akkaserverless.MessageOptions; /** * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. * @param message MessageOptions * @param [options] Conversion options * @returns Plain object */ public static toObject(message: akkaserverless.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this MessageOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a MethodOptions. */ interface IMethodOptions { /** MethodOptions eventing */ eventing?: (akkaserverless.IEventing|null); /** MethodOptions view */ view?: (akkaserverless.IView|null); /** MethodOptions jwt */ jwt?: (akkaserverless.IJwtMethodOptions|null); /** MethodOptions entity */ entity?: (akkaserverless.IEntityMethodOptions|null); } /** Represents a MethodOptions. */ class MethodOptions implements IMethodOptions { /** * Constructs a new MethodOptions. * @param [properties] Properties to set */ constructor(properties?: akkaserverless.IMethodOptions); /** MethodOptions eventing. */ public eventing?: (akkaserverless.IEventing|null); /** MethodOptions view. */ public view?: (akkaserverless.IView|null); /** MethodOptions jwt. */ public jwt?: (akkaserverless.IJwtMethodOptions|null); /** MethodOptions entity. */ public entity?: (akkaserverless.IEntityMethodOptions|null); /** * Creates a new MethodOptions instance using the specified properties. * @param [properties] Properties to set * @returns MethodOptions instance */ public static create(properties?: akkaserverless.IMethodOptions): akkaserverless.MethodOptions; /** * Encodes the specified MethodOptions message. Does not implicitly {@link akkaserverless.MethodOptions.verify|verify} messages. * @param message MethodOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: akkaserverless.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link akkaserverless.MethodOptions.verify|verify} messages. * @param message MethodOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: akkaserverless.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a MethodOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns MethodOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): akkaserverless.MethodOptions; /** * Decodes a MethodOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns MethodOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): akkaserverless.MethodOptions; /** * Verifies a MethodOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns MethodOptions */ public static fromObject(object: { [k: string]: any }): akkaserverless.MethodOptions; /** * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. * @param message MethodOptions * @param [options] Conversion options * @returns Plain object */ public static toObject(message: akkaserverless.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this MethodOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a ServiceOptions. */ interface IServiceOptions { /** ServiceOptions type */ type?: (akkaserverless.ServiceOptions.ServiceType|null); /** ServiceOptions component */ component?: (string|null); } /** Represents a ServiceOptions. */ class ServiceOptions implements IServiceOptions { /** * Constructs a new ServiceOptions. * @param [properties] Properties to set */ constructor(properties?: akkaserverless.IServiceOptions); /** ServiceOptions type. */ public type: akkaserverless.ServiceOptions.ServiceType; /** ServiceOptions component. */ public component: string; /** * Creates a new ServiceOptions instance using the specified properties. * @param [properties] Properties to set * @returns ServiceOptions instance */ public static create(properties?: akkaserverless.IServiceOptions): akkaserverless.ServiceOptions; /** * Encodes the specified ServiceOptions message. Does not implicitly {@link akkaserverless.ServiceOptions.verify|verify} messages. * @param message ServiceOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: akkaserverless.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link akkaserverless.ServiceOptions.verify|verify} messages. * @param message ServiceOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: akkaserverless.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ServiceOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ServiceOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): akkaserverless.ServiceOptions; /** * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ServiceOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): akkaserverless.ServiceOptions; /** * Verifies a ServiceOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ServiceOptions */ public static fromObject(object: { [k: string]: any }): akkaserverless.ServiceOptions; /** * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. * @param message ServiceOptions * @param [options] Conversion options * @returns Plain object */ public static toObject(message: akkaserverless.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ServiceOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } namespace ServiceOptions { /** ServiceType enum. */ enum ServiceType { SERVICE_TYPE_UNSPECIFIED = 0, SERVICE_TYPE_ACTION = 1, SERVICE_TYPE_ENTITY = 2, SERVICE_TYPE_VIEW = 3 } } /** Properties of a CodegenOptions. */ interface ICodegenOptions { /** CodegenOptions eventSourcedEntity */ eventSourcedEntity?: (akkaserverless.IEventSourcedEntityDef|null); /** CodegenOptions valueEntity */ valueEntity?: (akkaserverless.IValueEntityDef|null); /** CodegenOptions replicatedEntity */ replicatedEntity?: (akkaserverless.IReplicatedEntityDef|null); /** CodegenOptions action */ action?: (akkaserverless.IActionDef|null); /** CodegenOptions view */ view?: (akkaserverless.IViewDef|null); } /** Represents a CodegenOptions. */ class CodegenOptions implements ICodegenOptions { /** * Constructs a new CodegenOptions. * @param [properties] Properties to set */ constructor(properties?: akkaserverless.ICodegenOptions); /** CodegenOptions eventSourcedEntity. */ public eventSourcedEntity?: (akkaserverless.IEventSourcedEntityDef|null); /** CodegenOptions valueEntity. */ public valueEntity?: (akkaserverless.IValueEntityDef|null); /** CodegenOptions replicatedEntity. */ public replicatedEntity?: (akkaserverless.IReplicatedEntityDef|null); /** CodegenOptions action. */ public action?: (akkaserverless.IActionDef|null); /** CodegenOptions view. */ public view?: (akkaserverless.IViewDef|null); /** CodegenOptions codegen. */ public codegen?: ("eventSourcedEntity"|"valueEntity"|"replicatedEntity"|"action"|"view"); /** * Creates a new CodegenOptions instance using the specified properties. * @param [properties] Properties to set * @returns CodegenOptions instance */ public static create(properties?: akkaserverless.ICodegenOptions): akkaserverless.CodegenOptions; /** * Encodes the specified CodegenOptions message. Does not implicitly {@link akkaserverless.CodegenOptions.verify|verify} messages. * @param message CodegenOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: akkaserverless.ICodegenOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CodegenOptions message, length delimited. Does not implicitly {@link akkaserverless.CodegenOptions.verify|verify} messages. * @param message CodegenOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: akkaserverless.ICodegenOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CodegenOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns CodegenOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): akkaserverless.CodegenOptions; /** * Decodes a CodegenOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns CodegenOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): akkaserverless.CodegenOptions; /** * Verifies a CodegenOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a CodegenOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns CodegenOptions */ public static fromObject(object: { [k: string]: any }): akkaserverless.CodegenOptions; /** * Creates a plain object from a CodegenOptions message. Also converts values to other types if specified. * @param message CodegenOptions * @param [options] Conversion options * @returns Plain object */ public static toObject(message: akkaserverless.CodegenOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CodegenOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of an ActionDef. */ interface IActionDef { /** ActionDef name */ name?: (string|null); } /** Represents an ActionDef. */ class ActionDef implements IActionDef { /** * Constructs a new ActionDef. * @param [properties] Properties to set */ constructor(properties?: akkaserverless.IActionDef); /** ActionDef name. */ public name: string; /** * Creates a new ActionDef instance using the specified properties. * @param [properties] Properties to set * @returns ActionDef instance */ public static create(properties?: akkaserverless.IActionDef): akkaserverless.ActionDef; /** * Encodes the specified ActionDef message. Does not implicitly {@link akkaserverless.ActionDef.verify|verify} messages. * @param message ActionDef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: akkaserverless.IActionDef, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ActionDef message, length delimited. Does not implicitly {@link akkaserverless.ActionDef.verify|verify} messages. * @param message ActionDef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: akkaserverless.IActionDef, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an ActionDef message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ActionDef * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): akkaserverless.ActionDef; /** * Decodes an ActionDef message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ActionDef * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): akkaserverless.ActionDef; /** * Verifies an ActionDef message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an ActionDef message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ActionDef */ public static fromObject(object: { [k: string]: any }): akkaserverless.ActionDef; /** * Creates a plain object from an ActionDef message. Also converts values to other types if specified. * @param message ActionDef * @param [options] Conversion options * @returns Plain object */ public static toObject(message: akkaserverless.ActionDef, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ActionDef to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a ViewDef. */ interface IViewDef { /** ViewDef name */ name?: (string|null); } /** Represents a ViewDef. */ class ViewDef implements IViewDef { /** * Constructs a new ViewDef. * @param [properties] Properties to set */ constructor(properties?: akkaserverless.IViewDef); /** ViewDef name. */ public name: string; /** * Creates a new ViewDef instance using the specified properties. * @param [properties] Properties to set * @returns ViewDef instance */ public static create(properties?: akkaserverless.IViewDef): akkaserverless.ViewDef; /** * Encodes the specified ViewDef message. Does not implicitly {@link akkaserverless.ViewDef.verify|verify} messages. * @param message ViewDef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: akkaserverless.IViewDef, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ViewDef message, length delimited. Does not implicitly {@link akkaserverless.ViewDef.verify|verify} messages. * @param message ViewDef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: akkaserverless.IViewDef, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ViewDef message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ViewDef * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): akkaserverless.ViewDef; /** * Decodes a ViewDef message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ViewDef * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): akkaserverless.ViewDef; /** * Verifies a ViewDef message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a ViewDef message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ViewDef */ public static fromObject(object: { [k: string]: any }): akkaserverless.ViewDef; /** * Creates a plain object from a ViewDef message. Also converts values to other types if specified. * @param message ViewDef * @param [options] Conversion options * @returns Plain object */ public static toObject(message: akkaserverless.ViewDef, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ViewDef to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of an EventSourcedEntityDef. */ interface IEventSourcedEntityDef { /** EventSourcedEntityDef name */ name?: (string|null); /** EventSourcedEntityDef entityType */ entityType?: (string|null); /** EventSourcedEntityDef state */ state?: (string|null); /** EventSourcedEntityDef events */ events?: (string[]|null); } /** Represents an EventSourcedEntityDef. */ class EventSourcedEntityDef implements IEventSourcedEntityDef { /** * Constructs a new EventSourcedEntityDef. * @param [properties] Properties to set */ constructor(properties?: akkaserverless.IEventSourcedEntityDef); /** EventSourcedEntityDef name. */ public name: string; /** EventSourcedEntityDef entityType. */ public entityType: string; /** EventSourcedEntityDef state. */ public state: string; /** EventSourcedEntityDef events. */ public events: string[]; /** * Creates a new EventSourcedEntityDef instance using the specified properties. * @param [properties] Properties to set * @returns EventSourcedEntityDef instance */ public static create(properties?: akkaserverless.IEventSourcedEntityDef): akkaserverless.EventSourcedEntityDef; /** * Encodes the specified EventSourcedEntityDef message. Does not implicitly {@link akkaserverless.EventSourcedEntityDef.verify|verify} messages. * @param message EventSourcedEntityDef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: akkaserverless.IEventSourcedEntityDef, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified EventSourcedEntityDef message, length delimited. Does not implicitly {@link akkaserverless.EventSourcedEntityDef.verify|verify} messages. * @param message EventSourcedEntityDef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: akkaserverless.IEventSourcedEntityDef, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an EventSourcedEntityDef message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns EventSourcedEntityDef * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): akkaserverless.EventSourcedEntityDef; /** * Decodes an EventSourcedEntityDef message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns EventSourcedEntityDef * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): akkaserverless.EventSourcedEntityDef; /** * Verifies an EventSourcedEntityDef message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an EventSourcedEntityDef message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns EventSourcedEntityDef */ public static fromObject(object: { [k: string]: any }): akkaserverless.EventSourcedEntityDef; /** * Creates a plain object from an EventSourcedEntityDef message. Also converts values to other types if specified. * @param message EventSourcedEntityDef * @param [options] Conversion options * @returns Plain object */ public static toObject(message: akkaserverless.EventSourcedEntityDef, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this EventSourcedEntityDef to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a ValueEntityDef. */ interface IValueEntityDef { /** ValueEntityDef name */ name?: (string|null); /** ValueEntityDef entityType */ entityType?: (string|null); /** ValueEntityDef state */ state?: (string|null); } /** Represents a ValueEntityDef. */ class ValueEntityDef implements IValueEntityDef { /** * Constructs a new ValueEntityDef. * @param [properties] Properties to set */ constructor(properties?: akkaserverless.IValueEntityDef); /** ValueEntityDef name. */ public name: string; /** ValueEntityDef entityType. */ public entityType: string; /** ValueEntityDef state. */ public state: string; /** * Creates a new ValueEntityDef instance using the specified properties. * @param [properties] Properties to set * @returns ValueEntityDef instance */ public static create(properties?: akkaserverless.IValueEntityDef): akkaserverless.ValueEntityDef; /** * Encodes the specified ValueEntityDef message. Does not implicitly {@link akkaserverless.ValueEntityDef.verify|verify} messages. * @param message ValueEntityDef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: akkaserverless.IValueEntityDef, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ValueEntityDef message, length delimited. Does not implicitly {@link akkaserverless.ValueEntityDef.verify|verify} messages. * @param message ValueEntityDef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: akkaserverless.IValueEntityDef, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ValueEntityDef message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ValueEntityDef * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): akkaserverless.ValueEntityDef; /** * Decodes a ValueEntityDef message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ValueEntityDef * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): akkaserverless.ValueEntityDef; /** * Verifies a ValueEntityDef message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a ValueEntityDef message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ValueEntityDef */ public static fromObject(object: { [k: string]: any }): akkaserverless.ValueEntityDef; /** * Creates a plain object from a ValueEntityDef message. Also converts values to other types if specified. * @param message ValueEntityDef * @param [options] Conversion options * @returns Plain object */ public static toObject(message: akkaserverless.ValueEntityDef, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ValueEntityDef to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a ReplicatedEntityDef. */ interface IReplicatedEntityDef { /** ReplicatedEntityDef name */ name?: (string|null); /** ReplicatedEntityDef entityType */ entityType?: (string|null); /** ReplicatedEntityDef replicatedCounter */ replicatedCounter?: (akkaserverless.IReplicatedCounterDef|null); /** ReplicatedEntityDef replicatedRegister */ replicatedRegister?: (akkaserverless.IReplicatedRegisterDef|null); /** ReplicatedEntityDef replicatedSet */ replicatedSet?: (akkaserverless.IReplicatedSetDef|null); /** ReplicatedEntityDef replicatedMap */ replicatedMap?: (akkaserverless.IReplicatedMapDef|null); /** ReplicatedEntityDef replicatedCounterMap */ replicatedCounterMap?: (akkaserverless.IReplicatedCounterMapDef|null); /** ReplicatedEntityDef replicatedRegisterMap */ replicatedRegisterMap?: (akkaserverless.IReplicatedRegisterMapDef|null); /** ReplicatedEntityDef replicatedMultiMap */ replicatedMultiMap?: (akkaserverless.IReplicatedMultiMapDef|null); /** ReplicatedEntityDef replicatedVote */ replicatedVote?: (akkaserverless.IReplicatedVoteDef|null); } /** Represents a ReplicatedEntityDef. */ class ReplicatedEntityDef implements IReplicatedEntityDef { /** * Constructs a new ReplicatedEntityDef. * @param [properties] Properties to set */ constructor(properties?: akkaserverless.IReplicatedEntityDef); /** ReplicatedEntityDef name. */ public name: string; /** ReplicatedEntityDef entityType. */ public entityType: string; /** ReplicatedEntityDef replicatedCounter. */ public replicatedCounter?: (akkaserverless.IReplicatedCounterDef|null); /** ReplicatedEntityDef replicatedRegister. */ public replicatedRegister?: (akkaserverless.IReplicatedRegisterDef|null); /** ReplicatedEntityDef replicatedSet. */ public replicatedSet?: (akkaserverless.IReplicatedSetDef|null); /** ReplicatedEntityDef replicatedMap. */ public replicatedMap?: (akkaserverless.IReplicatedMapDef|null); /** ReplicatedEntityDef replicatedCounterMap. */ public replicatedCounterMap?: (akkaserverless.IReplicatedCounterMapDef|null); /** ReplicatedEntityDef replicatedRegisterMap. */ public replicatedRegisterMap?: (akkaserverless.IReplicatedRegisterMapDef|null); /** ReplicatedEntityDef replicatedMultiMap. */ public replicatedMultiMap?: (akkaserverless.IReplicatedMultiMapDef|null); /** ReplicatedEntityDef replicatedVote. */ public replicatedVote?: (akkaserverless.IReplicatedVoteDef|null); /** ReplicatedEntityDef replicatedData. */ public replicatedData?: ("replicatedCounter"|"replicatedRegister"|"replicatedSet"|"replicatedMap"|"replicatedCounterMap"|"replicatedRegisterMap"|"replicatedMultiMap"|"replicatedVote"); /** * Creates a new ReplicatedEntityDef instance using the specified properties. * @param [properties] Properties to set * @returns ReplicatedEntityDef instance */ public static create(properties?: akkaserverless.IReplicatedEntityDef): akkaserverless.ReplicatedEntityDef; /** * Encodes the specified ReplicatedEntityDef message. Does not implicitly {@link akkaserverless.ReplicatedEntityDef.verify|verify} messages. * @param message ReplicatedEntityDef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: akkaserverless.IReplicatedEntityDef, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ReplicatedEntityDef message, length delimited. Does not implicitly {@link akkaserverless.ReplicatedEntityDef.verify|verify} messages. * @param message ReplicatedEntityDef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: akkaserverless.IReplicatedEntityDef, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ReplicatedEntityDef message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ReplicatedEntityDef * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): akkaserverless.ReplicatedEntityDef; /** * Decodes a ReplicatedEntityDef message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ReplicatedEntityDef * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): akkaserverless.ReplicatedEntityDef; /** * Verifies a ReplicatedEntityDef message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a ReplicatedEntityDef message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ReplicatedEntityDef */ public static fromObject(object: { [k: string]: any }): akkaserverless.ReplicatedEntityDef; /** * Creates a plain object from a ReplicatedEntityDef message. Also converts values to other types if specified. * @param message ReplicatedEntityDef * @param [options] Conversion options * @returns Plain object */ public static toObject(message: akkaserverless.ReplicatedEntityDef, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ReplicatedEntityDef to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a ReplicatedCounterDef. */ interface IReplicatedCounterDef { } /** Represents a ReplicatedCounterDef. */ class ReplicatedCounterDef implements IReplicatedCounterDef { /** * Constructs a new ReplicatedCounterDef. * @param [properties] Properties to set */ constructor(properties?: akkaserverless.IReplicatedCounterDef); /** * Creates a new ReplicatedCounterDef instance using the specified properties. * @param [properties] Properties to set * @returns ReplicatedCounterDef instance */ public static create(properties?: akkaserverless.IReplicatedCounterDef): akkaserverless.ReplicatedCounterDef; /** * Encodes the specified ReplicatedCounterDef message. Does not implicitly {@link akkaserverless.ReplicatedCounterDef.verify|verify} messages. * @param message ReplicatedCounterDef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: akkaserverless.IReplicatedCounterDef, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ReplicatedCounterDef message, length delimited. Does not implicitly {@link akkaserverless.ReplicatedCounterDef.verify|verify} messages. * @param message ReplicatedCounterDef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: akkaserverless.IReplicatedCounterDef, writer?: $protobuf.Writer): $protobuf.Writer;