UNPKG

1.36 kBTypeScriptView Raw
1// package: google.rpc
2// file: status.proto
3
4/* tslint:disable */
5
6import * as jspb from "google-protobuf";
7import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb";
8
9export class Status extends jspb.Message {
10 getCode(): number;
11 setCode(value: number): void;
12
13 getMessage(): string;
14 setMessage(value: string): void;
15
16 clearDetailsList(): void;
17 getDetailsList(): Array<google_protobuf_any_pb.Any>;
18 setDetailsList(value: Array<google_protobuf_any_pb.Any>): void;
19 addDetails(value?: google_protobuf_any_pb.Any, index?: number): google_protobuf_any_pb.Any;
20
21
22 serializeBinary(): Uint8Array;
23 toObject(includeInstance?: boolean): Status.AsObject;
24 static toObject(includeInstance: boolean, msg: Status): Status.AsObject;
25 static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
26 static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
27 static serializeBinaryToWriter(message: Status, writer: jspb.BinaryWriter): void;
28 static deserializeBinary(bytes: Uint8Array): Status;
29 static deserializeBinaryFromReader(message: Status, reader: jspb.BinaryReader): Status;
30}
31
32export namespace Status {
33 export type AsObject = {
34 code: number,
35 message: string,
36 detailsList: Array<google_protobuf_any_pb.Any.AsObject>,
37 }
38}