Skip to content

Commit d81ec8e

Browse files
committed
Update golden tests - use input/output templates
1 parent bc66ebf commit d81ec8e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+393
-393
lines changed

packages/proto-loader/golden-generated/google/api/CustomHttpPattern.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/**
55
* A custom pattern is used for defining custom HTTP verb.
66
*/
7-
export interface CustomHttpPattern {
7+
export interface ICustomHttpPattern {
88
/**
99
* The name of this custom HTTP verb.
1010
*/
@@ -18,7 +18,7 @@ export interface CustomHttpPattern {
1818
/**
1919
* A custom pattern is used for defining custom HTTP verb.
2020
*/
21-
export interface CustomHttpPattern__Output {
21+
export interface OCustomHttpPattern {
2222
/**
2323
* The name of this custom HTTP verb.
2424
*/

packages/proto-loader/golden-generated/google/api/Http.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
// Original file: deps/googleapis/google/api/http.proto
22

3-
import type { HttpRule as _google_api_HttpRule, HttpRule__Output as _google_api_HttpRule__Output } from '../../google/api/HttpRule';
3+
import type { IHttpRule as I_google_api_HttpRule, OHttpRule as O_google_api_HttpRule } from '../../google/api/HttpRule';
44

55
/**
66
* Defines the HTTP configuration for an API service. It contains a list of
77
* [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
88
* to one or more HTTP REST API methods.
99
*/
10-
export interface Http {
10+
export interface IHttp {
1111
/**
1212
* A list of HTTP configuration rules that apply to individual API methods.
1313
*
1414
* **NOTE:** All service configuration rules follow "last one wins" order.
1515
*/
16-
'rules'?: (_google_api_HttpRule)[];
16+
'rules'?: (I_google_api_HttpRule)[];
1717
/**
1818
* When set to true, URL path parameters will be fully URI-decoded except in
1919
* cases of single segment matches in reserved expansion, where "%2F" will be
@@ -30,13 +30,13 @@ export interface Http {
3030
* [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
3131
* to one or more HTTP REST API methods.
3232
*/
33-
export interface Http__Output {
33+
export interface OHttp {
3434
/**
3535
* A list of HTTP configuration rules that apply to individual API methods.
3636
*
3737
* **NOTE:** All service configuration rules follow "last one wins" order.
3838
*/
39-
'rules': (_google_api_HttpRule__Output)[];
39+
'rules': (O_google_api_HttpRule)[];
4040
/**
4141
* When set to true, URL path parameters will be fully URI-decoded except in
4242
* cases of single segment matches in reserved expansion, where "%2F" will be

packages/proto-loader/golden-generated/google/api/HttpRule.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Original file: deps/googleapis/google/api/http.proto
22

3-
import type { CustomHttpPattern as _google_api_CustomHttpPattern, CustomHttpPattern__Output as _google_api_CustomHttpPattern__Output } from '../../google/api/CustomHttpPattern';
4-
import type { HttpRule as _google_api_HttpRule, HttpRule__Output as _google_api_HttpRule__Output } from '../../google/api/HttpRule';
3+
import type { ICustomHttpPattern as I_google_api_CustomHttpPattern, OCustomHttpPattern as O_google_api_CustomHttpPattern } from '../../google/api/CustomHttpPattern';
4+
import type { IHttpRule as I_google_api_HttpRule, OHttpRule as O_google_api_HttpRule } from '../../google/api/HttpRule';
55

66
/**
77
* # gRPC Transcoding
@@ -274,7 +274,7 @@ import type { HttpRule as _google_api_HttpRule, HttpRule__Output as _google_api_
274274
* the request or response body to a repeated field. However, some gRPC
275275
* Transcoding implementations may not support this feature.
276276
*/
277-
export interface HttpRule {
277+
export interface IHttpRule {
278278
/**
279279
* Selects a method to which this rule applies.
280280
*
@@ -317,13 +317,13 @@ export interface HttpRule {
317317
* HTTP method unspecified for this rule. The wild-card rule is useful
318318
* for services that provide content to Web (HTML) clients.
319319
*/
320-
'custom'?: (_google_api_CustomHttpPattern | null);
320+
'custom'?: (I_google_api_CustomHttpPattern | null);
321321
/**
322322
* Additional HTTP bindings for the selector. Nested bindings must
323323
* not contain an `additional_bindings` field themselves (that is,
324324
* the nesting may only be one level deep).
325325
*/
326-
'additional_bindings'?: (_google_api_HttpRule)[];
326+
'additional_bindings'?: (I_google_api_HttpRule)[];
327327
/**
328328
* Optional. The name of the response field whose value is mapped to the HTTP
329329
* response body. When omitted, the entire response message will be used
@@ -612,7 +612,7 @@ export interface HttpRule {
612612
* the request or response body to a repeated field. However, some gRPC
613613
* Transcoding implementations may not support this feature.
614614
*/
615-
export interface HttpRule__Output {
615+
export interface OHttpRule {
616616
/**
617617
* Selects a method to which this rule applies.
618618
*
@@ -655,13 +655,13 @@ export interface HttpRule__Output {
655655
* HTTP method unspecified for this rule. The wild-card rule is useful
656656
* for services that provide content to Web (HTML) clients.
657657
*/
658-
'custom'?: (_google_api_CustomHttpPattern__Output | null);
658+
'custom'?: (O_google_api_CustomHttpPattern | null);
659659
/**
660660
* Additional HTTP bindings for the selector. Nested bindings must
661661
* not contain an `additional_bindings` field themselves (that is,
662662
* the nesting may only be one level deep).
663663
*/
664-
'additional_bindings': (_google_api_HttpRule__Output)[];
664+
'additional_bindings': (O_google_api_HttpRule)[];
665665
/**
666666
* Optional. The name of the response field whose value is mapped to the HTTP
667667
* response body. When omitted, the entire response message will be used

packages/proto-loader/golden-generated/google/longrunning/CancelOperationRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/**
55
* The request message for [Operations.CancelOperation][google.longrunning.Operations.CancelOperation].
66
*/
7-
export interface CancelOperationRequest {
7+
export interface ICancelOperationRequest {
88
/**
99
* The name of the operation resource to be cancelled.
1010
*/
@@ -14,7 +14,7 @@ export interface CancelOperationRequest {
1414
/**
1515
* The request message for [Operations.CancelOperation][google.longrunning.Operations.CancelOperation].
1616
*/
17-
export interface CancelOperationRequest__Output {
17+
export interface OCancelOperationRequest {
1818
/**
1919
* The name of the operation resource to be cancelled.
2020
*/

packages/proto-loader/golden-generated/google/longrunning/DeleteOperationRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/**
55
* The request message for [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation].
66
*/
7-
export interface DeleteOperationRequest {
7+
export interface IDeleteOperationRequest {
88
/**
99
* The name of the operation resource to be deleted.
1010
*/
@@ -14,7 +14,7 @@ export interface DeleteOperationRequest {
1414
/**
1515
* The request message for [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation].
1616
*/
17-
export interface DeleteOperationRequest__Output {
17+
export interface ODeleteOperationRequest {
1818
/**
1919
* The name of the operation resource to be deleted.
2020
*/

packages/proto-loader/golden-generated/google/longrunning/GetOperationRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/**
55
* The request message for [Operations.GetOperation][google.longrunning.Operations.GetOperation].
66
*/
7-
export interface GetOperationRequest {
7+
export interface IGetOperationRequest {
88
/**
99
* The name of the operation resource.
1010
*/
@@ -14,7 +14,7 @@ export interface GetOperationRequest {
1414
/**
1515
* The request message for [Operations.GetOperation][google.longrunning.Operations.GetOperation].
1616
*/
17-
export interface GetOperationRequest__Output {
17+
export interface OGetOperationRequest {
1818
/**
1919
* The name of the operation resource.
2020
*/

packages/proto-loader/golden-generated/google/longrunning/ListOperationsRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/**
55
* The request message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
66
*/
7-
export interface ListOperationsRequest {
7+
export interface IListOperationsRequest {
88
/**
99
* The standard list filter.
1010
*/
@@ -26,7 +26,7 @@ export interface ListOperationsRequest {
2626
/**
2727
* The request message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
2828
*/
29-
export interface ListOperationsRequest__Output {
29+
export interface OListOperationsRequest {
3030
/**
3131
* The standard list filter.
3232
*/

packages/proto-loader/golden-generated/google/longrunning/ListOperationsResponse.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// Original file: deps/googleapis/google/longrunning/operations.proto
22

3-
import type { Operation as _google_longrunning_Operation, Operation__Output as _google_longrunning_Operation__Output } from '../../google/longrunning/Operation';
3+
import type { IOperation as I_google_longrunning_Operation, OOperation as O_google_longrunning_Operation } from '../../google/longrunning/Operation';
44

55
/**
66
* The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
77
*/
8-
export interface ListOperationsResponse {
8+
export interface IListOperationsResponse {
99
/**
1010
* A list of operations that matches the specified filter in the request.
1111
*/
12-
'operations'?: (_google_longrunning_Operation)[];
12+
'operations'?: (I_google_longrunning_Operation)[];
1313
/**
1414
* The standard List next-page token.
1515
*/
@@ -19,11 +19,11 @@ export interface ListOperationsResponse {
1919
/**
2020
* The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
2121
*/
22-
export interface ListOperationsResponse__Output {
22+
export interface OListOperationsResponse {
2323
/**
2424
* A list of operations that matches the specified filter in the request.
2525
*/
26-
'operations': (_google_longrunning_Operation__Output)[];
26+
'operations': (O_google_longrunning_Operation)[];
2727
/**
2828
* The standard List next-page token.
2929
*/

packages/proto-loader/golden-generated/google/longrunning/Operation.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Original file: deps/googleapis/google/longrunning/operations.proto
22

3-
import type { Any as _google_protobuf_Any, Any__Output as _google_protobuf_Any__Output } from '../../google/protobuf/Any';
4-
import type { Status as _google_rpc_Status, Status__Output as _google_rpc_Status__Output } from '../../google/rpc/Status';
3+
import type { IAny as I_google_protobuf_Any, OAny as O_google_protobuf_Any } from '../../google/protobuf/Any';
4+
import type { IStatus as I_google_rpc_Status, OStatus as O_google_rpc_Status } from '../../google/rpc/Status';
55

66
/**
77
* This resource represents a long-running operation that is the result of a
88
* network API call.
99
*/
10-
export interface Operation {
10+
export interface IOperation {
1111
/**
1212
* The server-assigned name, which is only unique within the same service that
1313
* originally returns it. If you use the default HTTP mapping, the
@@ -20,7 +20,7 @@ export interface Operation {
2020
* Some services might not provide such metadata. Any method that returns a
2121
* long-running operation should document the metadata type, if any.
2222
*/
23-
'metadata'?: (_google_protobuf_Any | null);
23+
'metadata'?: (I_google_protobuf_Any | null);
2424
/**
2525
* If the value is `false`, it means the operation is still in progress.
2626
* If `true`, the operation is completed, and either `error` or `response` is
@@ -30,7 +30,7 @@ export interface Operation {
3030
/**
3131
* The error result of the operation in case of failure or cancellation.
3232
*/
33-
'error'?: (_google_rpc_Status | null);
33+
'error'?: (I_google_rpc_Status | null);
3434
/**
3535
* The normal response of the operation in case of success. If the original
3636
* method returns no data on success, such as `Delete`, the response is
@@ -41,7 +41,7 @@ export interface Operation {
4141
* is `TakeSnapshot()`, the inferred response type is
4242
* `TakeSnapshotResponse`.
4343
*/
44-
'response'?: (_google_protobuf_Any | null);
44+
'response'?: (I_google_protobuf_Any | null);
4545
/**
4646
* The operation result, which can be either an `error` or a valid `response`.
4747
* If `done` == `false`, neither `error` nor `response` is set.
@@ -54,7 +54,7 @@ export interface Operation {
5454
* This resource represents a long-running operation that is the result of a
5555
* network API call.
5656
*/
57-
export interface Operation__Output {
57+
export interface OOperation {
5858
/**
5959
* The server-assigned name, which is only unique within the same service that
6060
* originally returns it. If you use the default HTTP mapping, the
@@ -67,7 +67,7 @@ export interface Operation__Output {
6767
* Some services might not provide such metadata. Any method that returns a
6868
* long-running operation should document the metadata type, if any.
6969
*/
70-
'metadata': (_google_protobuf_Any__Output | null);
70+
'metadata': (O_google_protobuf_Any | null);
7171
/**
7272
* If the value is `false`, it means the operation is still in progress.
7373
* If `true`, the operation is completed, and either `error` or `response` is
@@ -77,7 +77,7 @@ export interface Operation__Output {
7777
/**
7878
* The error result of the operation in case of failure or cancellation.
7979
*/
80-
'error'?: (_google_rpc_Status__Output | null);
80+
'error'?: (O_google_rpc_Status | null);
8181
/**
8282
* The normal response of the operation in case of success. If the original
8383
* method returns no data on success, such as `Delete`, the response is
@@ -88,7 +88,7 @@ export interface Operation__Output {
8888
* is `TakeSnapshot()`, the inferred response type is
8989
* `TakeSnapshotResponse`.
9090
*/
91-
'response'?: (_google_protobuf_Any__Output | null);
91+
'response'?: (O_google_protobuf_Any | null);
9292
/**
9393
* The operation result, which can be either an `error` or a valid `response`.
9494
* If `done` == `false`, neither `error` nor `response` is set.

packages/proto-loader/golden-generated/google/longrunning/OperationInfo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* };
1515
* }
1616
*/
17-
export interface OperationInfo {
17+
export interface IOperationInfo {
1818
/**
1919
* Required. The message name of the primary return type for this
2020
* long-running operation.
@@ -51,7 +51,7 @@ export interface OperationInfo {
5151
* };
5252
* }
5353
*/
54-
export interface OperationInfo__Output {
54+
export interface OOperationInfo {
5555
/**
5656
* Required. The message name of the primary return type for this
5757
* long-running operation.

0 commit comments

Comments
 (0)