UNPKG

@aneoconsultingfr/armonik.api.angular

Version:

gRPC API to interact with ArmoniK built for Angular

215 lines (214 loc) 8.64 kB
import { GrpcMessage, RecursivePartial, ToProtobufJSONOptions } from '@ngx-grpc/common'; import { BinaryReader, BinaryWriter, ByteSource } from 'google-protobuf'; /** * Message implementation for armonik.api.grpc.v1.auth.User */ export declare class User implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): User; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: User): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: User, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: User, _writer: BinaryWriter): void; private _username; private _roles; private _permissions; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of User to deeply clone from */ constructor(_value?: RecursivePartial<User.AsObject>); get username(): string; set username(value: string); get roles(): string[]; set roles(value: string[]); get permissions(): string[]; set permissions(value: string[]); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): Uint8Array; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): User.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): User.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): User.AsProtobufJSON; } export declare namespace User { /** * Standard JavaScript object representation for User */ interface AsObject { username: string; roles: string[]; permissions: string[]; } /** * Protobuf JSON representation for User */ interface AsProtobufJSON { username: string; roles: string[]; permissions: string[]; } } /** * Message implementation for armonik.api.grpc.v1.auth.GetCurrentUserRequest */ export declare class GetCurrentUserRequest implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): GetCurrentUserRequest; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: GetCurrentUserRequest): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: GetCurrentUserRequest, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: GetCurrentUserRequest, _writer: BinaryWriter): void; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of GetCurrentUserRequest to deeply clone from */ constructor(_value?: RecursivePartial<GetCurrentUserRequest.AsObject>); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): Uint8Array; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): GetCurrentUserRequest.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): GetCurrentUserRequest.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): GetCurrentUserRequest.AsProtobufJSON; } export declare namespace GetCurrentUserRequest { /** * Standard JavaScript object representation for GetCurrentUserRequest */ interface AsObject { } /** * Protobuf JSON representation for GetCurrentUserRequest */ interface AsProtobufJSON { } } /** * Message implementation for armonik.api.grpc.v1.auth.GetCurrentUserResponse */ export declare class GetCurrentUserResponse implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): GetCurrentUserResponse; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: GetCurrentUserResponse): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: GetCurrentUserResponse, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: GetCurrentUserResponse, _writer: BinaryWriter): void; private _user?; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of GetCurrentUserResponse to deeply clone from */ constructor(_value?: RecursivePartial<GetCurrentUserResponse.AsObject>); get user(): User | undefined; set user(value: User | undefined); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): Uint8Array; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): GetCurrentUserResponse.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): GetCurrentUserResponse.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): GetCurrentUserResponse.AsProtobufJSON; } export declare namespace GetCurrentUserResponse { /** * Standard JavaScript object representation for GetCurrentUserResponse */ interface AsObject { user?: User.AsObject; } /** * Protobuf JSON representation for GetCurrentUserResponse */ interface AsProtobufJSON { user: User.AsProtobufJSON | null; } }