@argus-labs/proto
Version:
Generated TypeScript protobuf definitions for Argus Labs World Engine
101 lines (88 loc) • 3.59 kB
text/typescript
// @generated by protoc-gen-es v2.2.3 with parameter "target=ts"
// @generated from file micro/v1/response.proto (package micro.v1, syntax proto3)
/* eslint-disable */
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
import type { Any } from "@bufbuild/protobuf/wkt";
import { file_google_protobuf_any } from "@bufbuild/protobuf/wkt";
import type { Status } from "../../google/rpc/status_pb";
import { file_google_rpc_status } from "../../google/rpc/status_pb";
import type { ServiceAddress } from "./service_pb";
import { file_micro_v1_service } from "./service_pb";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file micro/v1/response.proto.
*/
export const file_micro_v1_response: GenFile = /*@__PURE__*/
fileDesc("ChdtaWNyby92MS9yZXNwb25zZS5wcm90bxIIbWljcm8udjEiiwEKB1JlcXVlc3QSFwoKcmVxdWVzdF9pZBgBIAEoCUgAiAEBEjEKD3NlcnZpY2VfYWRkcmVzcxgCIAEoCzIYLm1pY3JvLnYxLlNlcnZpY2VBZGRyZXNzEiUKB3BheWxvYWQYAyABKAsyFC5nb29nbGUucHJvdG9idWYuQW55Qg0KC19yZXF1ZXN0X2lkIrABCghSZXNwb25zZRIXCgpyZXF1ZXN0X2lkGAEgASgJSACIAQESMQoPc2VydmljZV9hZGRyZXNzGAIgASgLMhgubWljcm8udjEuU2VydmljZUFkZHJlc3MSIgoGc3RhdHVzGAMgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXMSJQoHcGF5bG9hZBgEIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlCDQoLX3JlcXVlc3RfaWRCPFo6Z2l0aHViLmNvbS9hcmd1cy1sYWJzL2dvLWVjcy9wcm90by9nZW4vZ28vbWljcm8vdjE7bWljcm92MWIGcHJvdG8z", [file_google_protobuf_any, file_google_rpc_status, file_micro_v1_service]);
/**
* Generic request message that can be used for various microservice operations.
*
* @generated from message micro.v1.Request
*/
export type Request = Message<"micro.v1.Request"> & {
/**
* Unique identifier for the request. Optional.
*
* @generated from field: optional string request_id = 1;
*/
requestId?: string;
/**
* Target service address where the request should be handled.
*
* @generated from field: micro.v1.ServiceAddress service_address = 2;
*/
serviceAddress?: ServiceAddress;
/**
* Arbitrary message payload.
* As a general rule of thumb, the payload must be protobuf encoded.
*
* @generated from field: google.protobuf.Any payload = 3;
*/
payload?: Any;
};
/**
* Describes the message micro.v1.Request.
* Use `create(RequestSchema)` to create a new message.
*/
export const RequestSchema: GenMessage<Request> = /*@__PURE__*/
messageDesc(file_micro_v1_response, 0);
/**
* Generic response message returned from microservice operations.
*
* @generated from message micro.v1.Response
*/
export type Response = Message<"micro.v1.Response"> & {
/**
* Unique identifier corresponding to the request.
*
* @generated from field: optional string request_id = 1;
*/
requestId?: string;
/**
* Service address where the message was handled.
*
* @generated from field: micro.v1.ServiceAddress service_address = 2;
*/
serviceAddress?: ServiceAddress;
/**
* Standard Google RPC status that follows Google API Design Guide.
* This includes a code, message, and details.
*
* @generated from field: google.rpc.Status status = 3;
*/
status?: Status;
/**
* Arbitrary blind response payload.
* As a general rule of thumb, the payload must be protobuf encoded.
*
* @generated from field: google.protobuf.Any payload = 4;
*/
payload?: Any;
};
/**
* Describes the message micro.v1.Response.
* Use `create(ResponseSchema)` to create a new message.
*/
export const ResponseSchema: GenMessage<Response> = /*@__PURE__*/
messageDesc(file_micro_v1_response, 1);