github.com/GoogleCloudPlatform/testgrid@v0.0.174/web/src/gen/pb/api/v1/data.client.ts (about) 1 // @generated by protobuf-ts 2.8.3 with parameter long_type_string 2 // @generated from protobuf file "pb/api/v1/data.proto" (package "testgrid.api.v1", syntax proto3) 3 // tslint:disable 4 import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; 5 import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; 6 import { TestGridData } from "./data"; 7 import type { GetDashboardSummaryResponse } from "./data"; 8 import type { GetDashboardSummaryRequest } from "./data"; 9 import type { ListDashboardSummariesResponse } from "./data"; 10 import type { ListDashboardSummariesRequest } from "./data"; 11 import type { GetTabSummaryResponse } from "./data"; 12 import type { GetTabSummaryRequest } from "./data"; 13 import type { ListTabSummariesResponse } from "./data"; 14 import type { ListTabSummariesRequest } from "./data"; 15 import type { ListRowsResponse } from "./data"; 16 import type { ListRowsRequest } from "./data"; 17 import type { ListHeadersResponse } from "./data"; 18 import type { ListHeadersRequest } from "./data"; 19 import type { GetDashboardGroupResponse } from "./data"; 20 import type { GetDashboardGroupRequest } from "./data"; 21 import type { GetDashboardResponse } from "./data"; 22 import type { GetDashboardRequest } from "./data"; 23 import type { ListDashboardTabsResponse } from "./data"; 24 import type { ListDashboardTabsRequest } from "./data"; 25 import type { ListDashboardGroupsResponse } from "./data"; 26 import type { ListDashboardGroupsRequest } from "./data"; 27 import { stackIntercept } from "@protobuf-ts/runtime-rpc"; 28 import type { ListDashboardsResponse } from "./data"; 29 import type { ListDashboardsRequest } from "./data"; 30 import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; 31 import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; 32 /** 33 * @generated from protobuf service testgrid.api.v1.TestGridData 34 */ 35 export interface ITestGridDataClient { 36 /** 37 * GET /dashboards 38 * Lists dashboard names 39 * 40 * @generated from protobuf rpc: ListDashboards(testgrid.api.v1.ListDashboardsRequest) returns (testgrid.api.v1.ListDashboardsResponse); 41 */ 42 listDashboards(input: ListDashboardsRequest, options?: RpcOptions): UnaryCall<ListDashboardsRequest, ListDashboardsResponse>; 43 /** 44 * GET /dashboard-groups 45 * Lists the dashboard group names 46 * 47 * @generated from protobuf rpc: ListDashboardGroups(testgrid.api.v1.ListDashboardGroupsRequest) returns (testgrid.api.v1.ListDashboardGroupsResponse); 48 */ 49 listDashboardGroups(input: ListDashboardGroupsRequest, options?: RpcOptions): UnaryCall<ListDashboardGroupsRequest, ListDashboardGroupsResponse>; 50 /** 51 * GET /dashboards/{dashboard}/tabs 52 * Lists the dashboard tab names 53 * 54 * @generated from protobuf rpc: ListDashboardTabs(testgrid.api.v1.ListDashboardTabsRequest) returns (testgrid.api.v1.ListDashboardTabsResponse); 55 */ 56 listDashboardTabs(input: ListDashboardTabsRequest, options?: RpcOptions): UnaryCall<ListDashboardTabsRequest, ListDashboardTabsResponse>; 57 /** 58 * GET /dashboards/{dashboard} 59 * Returns a Dashboard config's metadata 60 * Excludes subtabs, accessed through the /tabs list method instead 61 * 62 * @generated from protobuf rpc: GetDashboard(testgrid.api.v1.GetDashboardRequest) returns (testgrid.api.v1.GetDashboardResponse); 63 */ 64 getDashboard(input: GetDashboardRequest, options?: RpcOptions): UnaryCall<GetDashboardRequest, GetDashboardResponse>; 65 /** 66 * GET /dashboard-groups/{dashboard-group} 67 * Lists the dashboard names in that group 68 * 69 * @generated from protobuf rpc: GetDashboardGroup(testgrid.api.v1.GetDashboardGroupRequest) returns (testgrid.api.v1.GetDashboardGroupResponse); 70 */ 71 getDashboardGroup(input: GetDashboardGroupRequest, options?: RpcOptions): UnaryCall<GetDashboardGroupRequest, GetDashboardGroupResponse>; 72 /** 73 * GET /dashboards/{dashboard}/tabs/{tab}/headers 74 * Returns the headers for grid results 75 * 76 * @generated from protobuf rpc: ListHeaders(testgrid.api.v1.ListHeadersRequest) returns (testgrid.api.v1.ListHeadersResponse); 77 */ 78 listHeaders(input: ListHeadersRequest, options?: RpcOptions): UnaryCall<ListHeadersRequest, ListHeadersResponse>; 79 /** 80 * GET /dashboards/{dashboard}/tabs/{tab}/rows 81 * Returns information on grid rows, and data within those rows 82 * 83 * @generated from protobuf rpc: ListRows(testgrid.api.v1.ListRowsRequest) returns (testgrid.api.v1.ListRowsResponse); 84 */ 85 listRows(input: ListRowsRequest, options?: RpcOptions): UnaryCall<ListRowsRequest, ListRowsResponse>; 86 /** 87 * GET /dashboards/{dashboard}/tab-summaries 88 * Returns the list of tab summaries for dashboard. 89 * 90 * @generated from protobuf rpc: ListTabSummaries(testgrid.api.v1.ListTabSummariesRequest) returns (testgrid.api.v1.ListTabSummariesResponse); 91 */ 92 listTabSummaries(input: ListTabSummariesRequest, options?: RpcOptions): UnaryCall<ListTabSummariesRequest, ListTabSummariesResponse>; 93 /** 94 * GET /dashboards/{dashboard}/tab-summaries/{tab} 95 * 96 * @generated from protobuf rpc: GetTabSummary(testgrid.api.v1.GetTabSummaryRequest) returns (testgrid.api.v1.GetTabSummaryResponse); 97 */ 98 getTabSummary(input: GetTabSummaryRequest, options?: RpcOptions): UnaryCall<GetTabSummaryRequest, GetTabSummaryResponse>; 99 /** 100 * GET /dashboard-groups/{dashboard-group}/dashboard-summaries 101 * 102 * @generated from protobuf rpc: ListDashboardSummaries(testgrid.api.v1.ListDashboardSummariesRequest) returns (testgrid.api.v1.ListDashboardSummariesResponse); 103 */ 104 listDashboardSummaries(input: ListDashboardSummariesRequest, options?: RpcOptions): UnaryCall<ListDashboardSummariesRequest, ListDashboardSummariesResponse>; 105 /** 106 * GET /dashboards/{dashboard}/summary 107 * 108 * @generated from protobuf rpc: GetDashboardSummary(testgrid.api.v1.GetDashboardSummaryRequest) returns (testgrid.api.v1.GetDashboardSummaryResponse); 109 */ 110 getDashboardSummary(input: GetDashboardSummaryRequest, options?: RpcOptions): UnaryCall<GetDashboardSummaryRequest, GetDashboardSummaryResponse>; 111 } 112 /** 113 * @generated from protobuf service testgrid.api.v1.TestGridData 114 */ 115 export class TestGridDataClient implements ITestGridDataClient, ServiceInfo { 116 typeName = TestGridData.typeName; 117 methods = TestGridData.methods; 118 options = TestGridData.options; 119 constructor(private readonly _transport: RpcTransport) { 120 } 121 /** 122 * GET /dashboards 123 * Lists dashboard names 124 * 125 * @generated from protobuf rpc: ListDashboards(testgrid.api.v1.ListDashboardsRequest) returns (testgrid.api.v1.ListDashboardsResponse); 126 */ 127 listDashboards(input: ListDashboardsRequest, options?: RpcOptions): UnaryCall<ListDashboardsRequest, ListDashboardsResponse> { 128 const method = this.methods[0], opt = this._transport.mergeOptions(options); 129 return stackIntercept<ListDashboardsRequest, ListDashboardsResponse>("unary", this._transport, method, opt, input); 130 } 131 /** 132 * GET /dashboard-groups 133 * Lists the dashboard group names 134 * 135 * @generated from protobuf rpc: ListDashboardGroups(testgrid.api.v1.ListDashboardGroupsRequest) returns (testgrid.api.v1.ListDashboardGroupsResponse); 136 */ 137 listDashboardGroups(input: ListDashboardGroupsRequest, options?: RpcOptions): UnaryCall<ListDashboardGroupsRequest, ListDashboardGroupsResponse> { 138 const method = this.methods[1], opt = this._transport.mergeOptions(options); 139 return stackIntercept<ListDashboardGroupsRequest, ListDashboardGroupsResponse>("unary", this._transport, method, opt, input); 140 } 141 /** 142 * GET /dashboards/{dashboard}/tabs 143 * Lists the dashboard tab names 144 * 145 * @generated from protobuf rpc: ListDashboardTabs(testgrid.api.v1.ListDashboardTabsRequest) returns (testgrid.api.v1.ListDashboardTabsResponse); 146 */ 147 listDashboardTabs(input: ListDashboardTabsRequest, options?: RpcOptions): UnaryCall<ListDashboardTabsRequest, ListDashboardTabsResponse> { 148 const method = this.methods[2], opt = this._transport.mergeOptions(options); 149 return stackIntercept<ListDashboardTabsRequest, ListDashboardTabsResponse>("unary", this._transport, method, opt, input); 150 } 151 /** 152 * GET /dashboards/{dashboard} 153 * Returns a Dashboard config's metadata 154 * Excludes subtabs, accessed through the /tabs list method instead 155 * 156 * @generated from protobuf rpc: GetDashboard(testgrid.api.v1.GetDashboardRequest) returns (testgrid.api.v1.GetDashboardResponse); 157 */ 158 getDashboard(input: GetDashboardRequest, options?: RpcOptions): UnaryCall<GetDashboardRequest, GetDashboardResponse> { 159 const method = this.methods[3], opt = this._transport.mergeOptions(options); 160 return stackIntercept<GetDashboardRequest, GetDashboardResponse>("unary", this._transport, method, opt, input); 161 } 162 /** 163 * GET /dashboard-groups/{dashboard-group} 164 * Lists the dashboard names in that group 165 * 166 * @generated from protobuf rpc: GetDashboardGroup(testgrid.api.v1.GetDashboardGroupRequest) returns (testgrid.api.v1.GetDashboardGroupResponse); 167 */ 168 getDashboardGroup(input: GetDashboardGroupRequest, options?: RpcOptions): UnaryCall<GetDashboardGroupRequest, GetDashboardGroupResponse> { 169 const method = this.methods[4], opt = this._transport.mergeOptions(options); 170 return stackIntercept<GetDashboardGroupRequest, GetDashboardGroupResponse>("unary", this._transport, method, opt, input); 171 } 172 /** 173 * GET /dashboards/{dashboard}/tabs/{tab}/headers 174 * Returns the headers for grid results 175 * 176 * @generated from protobuf rpc: ListHeaders(testgrid.api.v1.ListHeadersRequest) returns (testgrid.api.v1.ListHeadersResponse); 177 */ 178 listHeaders(input: ListHeadersRequest, options?: RpcOptions): UnaryCall<ListHeadersRequest, ListHeadersResponse> { 179 const method = this.methods[5], opt = this._transport.mergeOptions(options); 180 return stackIntercept<ListHeadersRequest, ListHeadersResponse>("unary", this._transport, method, opt, input); 181 } 182 /** 183 * GET /dashboards/{dashboard}/tabs/{tab}/rows 184 * Returns information on grid rows, and data within those rows 185 * 186 * @generated from protobuf rpc: ListRows(testgrid.api.v1.ListRowsRequest) returns (testgrid.api.v1.ListRowsResponse); 187 */ 188 listRows(input: ListRowsRequest, options?: RpcOptions): UnaryCall<ListRowsRequest, ListRowsResponse> { 189 const method = this.methods[6], opt = this._transport.mergeOptions(options); 190 return stackIntercept<ListRowsRequest, ListRowsResponse>("unary", this._transport, method, opt, input); 191 } 192 /** 193 * GET /dashboards/{dashboard}/tab-summaries 194 * Returns the list of tab summaries for dashboard. 195 * 196 * @generated from protobuf rpc: ListTabSummaries(testgrid.api.v1.ListTabSummariesRequest) returns (testgrid.api.v1.ListTabSummariesResponse); 197 */ 198 listTabSummaries(input: ListTabSummariesRequest, options?: RpcOptions): UnaryCall<ListTabSummariesRequest, ListTabSummariesResponse> { 199 const method = this.methods[7], opt = this._transport.mergeOptions(options); 200 return stackIntercept<ListTabSummariesRequest, ListTabSummariesResponse>("unary", this._transport, method, opt, input); 201 } 202 /** 203 * GET /dashboards/{dashboard}/tab-summaries/{tab} 204 * 205 * @generated from protobuf rpc: GetTabSummary(testgrid.api.v1.GetTabSummaryRequest) returns (testgrid.api.v1.GetTabSummaryResponse); 206 */ 207 getTabSummary(input: GetTabSummaryRequest, options?: RpcOptions): UnaryCall<GetTabSummaryRequest, GetTabSummaryResponse> { 208 const method = this.methods[8], opt = this._transport.mergeOptions(options); 209 return stackIntercept<GetTabSummaryRequest, GetTabSummaryResponse>("unary", this._transport, method, opt, input); 210 } 211 /** 212 * GET /dashboard-groups/{dashboard-group}/dashboard-summaries 213 * 214 * @generated from protobuf rpc: ListDashboardSummaries(testgrid.api.v1.ListDashboardSummariesRequest) returns (testgrid.api.v1.ListDashboardSummariesResponse); 215 */ 216 listDashboardSummaries(input: ListDashboardSummariesRequest, options?: RpcOptions): UnaryCall<ListDashboardSummariesRequest, ListDashboardSummariesResponse> { 217 const method = this.methods[9], opt = this._transport.mergeOptions(options); 218 return stackIntercept<ListDashboardSummariesRequest, ListDashboardSummariesResponse>("unary", this._transport, method, opt, input); 219 } 220 /** 221 * GET /dashboards/{dashboard}/summary 222 * 223 * @generated from protobuf rpc: GetDashboardSummary(testgrid.api.v1.GetDashboardSummaryRequest) returns (testgrid.api.v1.GetDashboardSummaryResponse); 224 */ 225 getDashboardSummary(input: GetDashboardSummaryRequest, options?: RpcOptions): UnaryCall<GetDashboardSummaryRequest, GetDashboardSummaryResponse> { 226 const method = this.methods[10], opt = this._transport.mergeOptions(options); 227 return stackIntercept<GetDashboardSummaryRequest, GetDashboardSummaryResponse>("unary", this._transport, method, opt, input); 228 } 229 }