Skip to content

Commit

Permalink
Update golden tests - use input/output templates
Browse files Browse the repository at this point in the history
  • Loading branch information
install committed Sep 7, 2022
1 parent bc66ebf commit d81ec8e
Show file tree
Hide file tree
Showing 49 changed files with 393 additions and 393 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* A custom pattern is used for defining custom HTTP verb.
*/
export interface CustomHttpPattern {
export interface ICustomHttpPattern {
/**
* The name of this custom HTTP verb.
*/
Expand All @@ -18,7 +18,7 @@ export interface CustomHttpPattern {
/**
* A custom pattern is used for defining custom HTTP verb.
*/
export interface CustomHttpPattern__Output {
export interface OCustomHttpPattern {
/**
* The name of this custom HTTP verb.
*/
Expand Down
10 changes: 5 additions & 5 deletions packages/proto-loader/golden-generated/google/api/Http.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// Original file: deps/googleapis/google/api/http.proto

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

/**
* Defines the HTTP configuration for an API service. It contains a list of
* [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
* to one or more HTTP REST API methods.
*/
export interface Http {
export interface IHttp {
/**
* A list of HTTP configuration rules that apply to individual API methods.
*
* **NOTE:** All service configuration rules follow "last one wins" order.
*/
'rules'?: (_google_api_HttpRule)[];
'rules'?: (I_google_api_HttpRule)[];
/**
* When set to true, URL path parameters will be fully URI-decoded except in
* cases of single segment matches in reserved expansion, where "%2F" will be
Expand All @@ -30,13 +30,13 @@ export interface Http {
* [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
* to one or more HTTP REST API methods.
*/
export interface Http__Output {
export interface OHttp {
/**
* A list of HTTP configuration rules that apply to individual API methods.
*
* **NOTE:** All service configuration rules follow "last one wins" order.
*/
'rules': (_google_api_HttpRule__Output)[];
'rules': (O_google_api_HttpRule)[];
/**
* When set to true, URL path parameters will be fully URI-decoded except in
* cases of single segment matches in reserved expansion, where "%2F" will be
Expand Down
16 changes: 8 additions & 8 deletions packages/proto-loader/golden-generated/google/api/HttpRule.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Original file: deps/googleapis/google/api/http.proto

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

/**
* # gRPC Transcoding
Expand Down Expand Up @@ -274,7 +274,7 @@ import type { HttpRule as _google_api_HttpRule, HttpRule__Output as _google_api_
* the request or response body to a repeated field. However, some gRPC
* Transcoding implementations may not support this feature.
*/
export interface HttpRule {
export interface IHttpRule {
/**
* Selects a method to which this rule applies.
*
Expand Down Expand Up @@ -317,13 +317,13 @@ export interface HttpRule {
* HTTP method unspecified for this rule. The wild-card rule is useful
* for services that provide content to Web (HTML) clients.
*/
'custom'?: (_google_api_CustomHttpPattern | null);
'custom'?: (I_google_api_CustomHttpPattern | null);
/**
* Additional HTTP bindings for the selector. Nested bindings must
* not contain an `additional_bindings` field themselves (that is,
* the nesting may only be one level deep).
*/
'additional_bindings'?: (_google_api_HttpRule)[];
'additional_bindings'?: (I_google_api_HttpRule)[];
/**
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
Expand Down Expand Up @@ -612,7 +612,7 @@ export interface HttpRule {
* the request or response body to a repeated field. However, some gRPC
* Transcoding implementations may not support this feature.
*/
export interface HttpRule__Output {
export interface OHttpRule {
/**
* Selects a method to which this rule applies.
*
Expand Down Expand Up @@ -655,13 +655,13 @@ export interface HttpRule__Output {
* HTTP method unspecified for this rule. The wild-card rule is useful
* for services that provide content to Web (HTML) clients.
*/
'custom'?: (_google_api_CustomHttpPattern__Output | null);
'custom'?: (O_google_api_CustomHttpPattern | null);
/**
* Additional HTTP bindings for the selector. Nested bindings must
* not contain an `additional_bindings` field themselves (that is,
* the nesting may only be one level deep).
*/
'additional_bindings': (_google_api_HttpRule__Output)[];
'additional_bindings': (O_google_api_HttpRule)[];
/**
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* The request message for [Operations.CancelOperation][google.longrunning.Operations.CancelOperation].
*/
export interface CancelOperationRequest {
export interface ICancelOperationRequest {
/**
* The name of the operation resource to be cancelled.
*/
Expand All @@ -14,7 +14,7 @@ export interface CancelOperationRequest {
/**
* The request message for [Operations.CancelOperation][google.longrunning.Operations.CancelOperation].
*/
export interface CancelOperationRequest__Output {
export interface OCancelOperationRequest {
/**
* The name of the operation resource to be cancelled.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* The request message for [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation].
*/
export interface DeleteOperationRequest {
export interface IDeleteOperationRequest {
/**
* The name of the operation resource to be deleted.
*/
Expand All @@ -14,7 +14,7 @@ export interface DeleteOperationRequest {
/**
* The request message for [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation].
*/
export interface DeleteOperationRequest__Output {
export interface ODeleteOperationRequest {
/**
* The name of the operation resource to be deleted.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* The request message for [Operations.GetOperation][google.longrunning.Operations.GetOperation].
*/
export interface GetOperationRequest {
export interface IGetOperationRequest {
/**
* The name of the operation resource.
*/
Expand All @@ -14,7 +14,7 @@ export interface GetOperationRequest {
/**
* The request message for [Operations.GetOperation][google.longrunning.Operations.GetOperation].
*/
export interface GetOperationRequest__Output {
export interface OGetOperationRequest {
/**
* The name of the operation resource.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* The request message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
*/
export interface ListOperationsRequest {
export interface IListOperationsRequest {
/**
* The standard list filter.
*/
Expand All @@ -26,7 +26,7 @@ export interface ListOperationsRequest {
/**
* The request message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
*/
export interface ListOperationsRequest__Output {
export interface OListOperationsRequest {
/**
* The standard list filter.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Original file: deps/googleapis/google/longrunning/operations.proto

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

/**
* The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
*/
export interface ListOperationsResponse {
export interface IListOperationsResponse {
/**
* A list of operations that matches the specified filter in the request.
*/
'operations'?: (_google_longrunning_Operation)[];
'operations'?: (I_google_longrunning_Operation)[];
/**
* The standard List next-page token.
*/
Expand All @@ -19,11 +19,11 @@ export interface ListOperationsResponse {
/**
* The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
*/
export interface ListOperationsResponse__Output {
export interface OListOperationsResponse {
/**
* A list of operations that matches the specified filter in the request.
*/
'operations': (_google_longrunning_Operation__Output)[];
'operations': (O_google_longrunning_Operation)[];
/**
* The standard List next-page token.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Original file: deps/googleapis/google/longrunning/operations.proto

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

/**
* This resource represents a long-running operation that is the result of a
* network API call.
*/
export interface Operation {
export interface IOperation {
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the
Expand All @@ -20,7 +20,7 @@ export interface Operation {
* Some services might not provide such metadata. Any method that returns a
* long-running operation should document the metadata type, if any.
*/
'metadata'?: (_google_protobuf_Any | null);
'metadata'?: (I_google_protobuf_Any | null);
/**
* If the value is `false`, it means the operation is still in progress.
* If `true`, the operation is completed, and either `error` or `response` is
Expand All @@ -30,7 +30,7 @@ export interface Operation {
/**
* The error result of the operation in case of failure or cancellation.
*/
'error'?: (_google_rpc_Status | null);
'error'?: (I_google_rpc_Status | null);
/**
* The normal response of the operation in case of success. If the original
* method returns no data on success, such as `Delete`, the response is
Expand All @@ -41,7 +41,7 @@ export interface Operation {
* is `TakeSnapshot()`, the inferred response type is
* `TakeSnapshotResponse`.
*/
'response'?: (_google_protobuf_Any | null);
'response'?: (I_google_protobuf_Any | null);
/**
* The operation result, which can be either an `error` or a valid `response`.
* If `done` == `false`, neither `error` nor `response` is set.
Expand All @@ -54,7 +54,7 @@ export interface Operation {
* This resource represents a long-running operation that is the result of a
* network API call.
*/
export interface Operation__Output {
export interface OOperation {
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the
Expand All @@ -67,7 +67,7 @@ export interface Operation__Output {
* Some services might not provide such metadata. Any method that returns a
* long-running operation should document the metadata type, if any.
*/
'metadata': (_google_protobuf_Any__Output | null);
'metadata': (O_google_protobuf_Any | null);
/**
* If the value is `false`, it means the operation is still in progress.
* If `true`, the operation is completed, and either `error` or `response` is
Expand All @@ -77,7 +77,7 @@ export interface Operation__Output {
/**
* The error result of the operation in case of failure or cancellation.
*/
'error'?: (_google_rpc_Status__Output | null);
'error'?: (O_google_rpc_Status | null);
/**
* The normal response of the operation in case of success. If the original
* method returns no data on success, such as `Delete`, the response is
Expand All @@ -88,7 +88,7 @@ export interface Operation__Output {
* is `TakeSnapshot()`, the inferred response type is
* `TakeSnapshotResponse`.
*/
'response'?: (_google_protobuf_Any__Output | null);
'response'?: (O_google_protobuf_Any | null);
/**
* The operation result, which can be either an `error` or a valid `response`.
* If `done` == `false`, neither `error` nor `response` is set.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* };
* }
*/
export interface OperationInfo {
export interface IOperationInfo {
/**
* Required. The message name of the primary return type for this
* long-running operation.
Expand Down Expand Up @@ -51,7 +51,7 @@ export interface OperationInfo {
* };
* }
*/
export interface OperationInfo__Output {
export interface OOperationInfo {
/**
* Required. The message name of the primary return type for this
* long-running operation.
Expand Down

0 comments on commit d81ec8e

Please sign in to comment.