-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
grpc-js: Add support for grpc.service_config_disable_resolution
- Loading branch information
Showing
61 changed files
with
2,897 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
import type * as grpc from '@grpc/grpc-js'; | ||
import type { EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader'; | ||
|
||
import type { OperationsClient as _google_longrunning_OperationsClient, OperationsDefinition as _google_longrunning_OperationsDefinition } from './google/longrunning/Operations'; | ||
import type { EchoClient as _google_showcase_v1beta1_EchoClient, EchoDefinition as _google_showcase_v1beta1_EchoDefinition } from './google/showcase/v1beta1/Echo'; | ||
|
||
type SubtypeConstructor<Constructor extends new (...args: any) => any, Subtype> = { | ||
new(...args: ConstructorParameters<Constructor>): Subtype; | ||
}; | ||
|
||
export interface ProtoGrpcType { | ||
google: { | ||
api: { | ||
CustomHttpPattern: MessageTypeDefinition | ||
FieldBehavior: EnumTypeDefinition | ||
Http: MessageTypeDefinition | ||
HttpRule: MessageTypeDefinition | ||
} | ||
longrunning: { | ||
CancelOperationRequest: MessageTypeDefinition | ||
DeleteOperationRequest: MessageTypeDefinition | ||
GetOperationRequest: MessageTypeDefinition | ||
ListOperationsRequest: MessageTypeDefinition | ||
ListOperationsResponse: MessageTypeDefinition | ||
Operation: MessageTypeDefinition | ||
OperationInfo: MessageTypeDefinition | ||
/** | ||
* Manages long-running operations with an API service. | ||
* | ||
* When an API method normally takes long time to complete, it can be designed | ||
* to return [Operation][google.longrunning.Operation] to the client, and the client can use this | ||
* interface to receive the real response asynchronously by polling the | ||
* operation resource, or pass the operation resource to another API (such as | ||
* Google Cloud Pub/Sub API) to receive the response. Any API service that | ||
* returns long-running operations should implement the `Operations` interface | ||
* so developers can have a consistent client experience. | ||
*/ | ||
Operations: SubtypeConstructor<typeof grpc.Client, _google_longrunning_OperationsClient> & { service: _google_longrunning_OperationsDefinition } | ||
WaitOperationRequest: MessageTypeDefinition | ||
} | ||
protobuf: { | ||
Any: MessageTypeDefinition | ||
DescriptorProto: MessageTypeDefinition | ||
Duration: MessageTypeDefinition | ||
Empty: MessageTypeDefinition | ||
EnumDescriptorProto: MessageTypeDefinition | ||
EnumOptions: MessageTypeDefinition | ||
EnumValueDescriptorProto: MessageTypeDefinition | ||
EnumValueOptions: MessageTypeDefinition | ||
FieldDescriptorProto: MessageTypeDefinition | ||
FieldOptions: MessageTypeDefinition | ||
FileDescriptorProto: MessageTypeDefinition | ||
FileDescriptorSet: MessageTypeDefinition | ||
FileOptions: MessageTypeDefinition | ||
GeneratedCodeInfo: MessageTypeDefinition | ||
MessageOptions: MessageTypeDefinition | ||
MethodDescriptorProto: MessageTypeDefinition | ||
MethodOptions: MessageTypeDefinition | ||
OneofDescriptorProto: MessageTypeDefinition | ||
OneofOptions: MessageTypeDefinition | ||
ServiceDescriptorProto: MessageTypeDefinition | ||
ServiceOptions: MessageTypeDefinition | ||
SourceCodeInfo: MessageTypeDefinition | ||
Timestamp: MessageTypeDefinition | ||
UninterpretedOption: MessageTypeDefinition | ||
} | ||
rpc: { | ||
Status: MessageTypeDefinition | ||
} | ||
showcase: { | ||
v1beta1: { | ||
BlockRequest: MessageTypeDefinition | ||
BlockResponse: MessageTypeDefinition | ||
/** | ||
* This service is used showcase the four main types of rpcs - unary, server | ||
* side streaming, client side streaming, and bidirectional streaming. This | ||
* service also exposes methods that explicitly implement server delay, and | ||
* paginated calls. Set the 'showcase-trailer' metadata key on any method | ||
* to have the values echoed in the response trailers. | ||
*/ | ||
Echo: SubtypeConstructor<typeof grpc.Client, _google_showcase_v1beta1_EchoClient> & { service: _google_showcase_v1beta1_EchoDefinition } | ||
EchoRequest: MessageTypeDefinition | ||
EchoResponse: MessageTypeDefinition | ||
ExpandRequest: MessageTypeDefinition | ||
PagedExpandRequest: MessageTypeDefinition | ||
PagedExpandResponse: MessageTypeDefinition | ||
Severity: EnumTypeDefinition | ||
WaitMetadata: MessageTypeDefinition | ||
WaitRequest: MessageTypeDefinition | ||
WaitResponse: MessageTypeDefinition | ||
} | ||
} | ||
} | ||
} | ||
|
30 changes: 30 additions & 0 deletions
30
packages/proto-loader/golden-generated-old/google/api/CustomHttpPattern.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Original file: deps/googleapis/google/api/http.proto | ||
|
||
|
||
/** | ||
* A custom pattern is used for defining custom HTTP verb. | ||
*/ | ||
export interface ICustomHttpPattern { | ||
/** | ||
* The name of this custom HTTP verb. | ||
*/ | ||
'kind'?: (string); | ||
/** | ||
* The path matched by this custom verb. | ||
*/ | ||
'path'?: (string); | ||
} | ||
|
||
/** | ||
* A custom pattern is used for defining custom HTTP verb. | ||
*/ | ||
export interface OCustomHttpPattern { | ||
/** | ||
* The name of this custom HTTP verb. | ||
*/ | ||
'kind': (string); | ||
/** | ||
* The path matched by this custom verb. | ||
*/ | ||
'path': (string); | ||
} |
108 changes: 108 additions & 0 deletions
108
packages/proto-loader/golden-generated-old/google/api/FieldBehavior.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
// Original file: deps/googleapis/google/api/field_behavior.proto | ||
|
||
/** | ||
* An indicator of the behavior of a given field (for example, that a field | ||
* is required in requests, or given as output but ignored as input). | ||
* This **does not** change the behavior in protocol buffers itself; it only | ||
* denotes the behavior and may affect how API tooling handles the field. | ||
* | ||
* Note: This enum **may** receive new values in the future. | ||
*/ | ||
export const FieldBehavior = { | ||
/** | ||
* Conventional default for enums. Do not use this. | ||
*/ | ||
FIELD_BEHAVIOR_UNSPECIFIED: 'FIELD_BEHAVIOR_UNSPECIFIED', | ||
/** | ||
* Specifically denotes a field as optional. | ||
* While all fields in protocol buffers are optional, this may be specified | ||
* for emphasis if appropriate. | ||
*/ | ||
OPTIONAL: 'OPTIONAL', | ||
/** | ||
* Denotes a field as required. | ||
* This indicates that the field **must** be provided as part of the request, | ||
* and failure to do so will cause an error (usually `INVALID_ARGUMENT`). | ||
*/ | ||
REQUIRED: 'REQUIRED', | ||
/** | ||
* Denotes a field as output only. | ||
* This indicates that the field is provided in responses, but including the | ||
* field in a request does nothing (the server *must* ignore it and | ||
* *must not* throw an error as a result of the field's presence). | ||
*/ | ||
OUTPUT_ONLY: 'OUTPUT_ONLY', | ||
/** | ||
* Denotes a field as input only. | ||
* This indicates that the field is provided in requests, and the | ||
* corresponding field is not included in output. | ||
*/ | ||
INPUT_ONLY: 'INPUT_ONLY', | ||
/** | ||
* Denotes a field as immutable. | ||
* This indicates that the field may be set once in a request to create a | ||
* resource, but may not be changed thereafter. | ||
*/ | ||
IMMUTABLE: 'IMMUTABLE', | ||
} as const; | ||
|
||
/** | ||
* An indicator of the behavior of a given field (for example, that a field | ||
* is required in requests, or given as output but ignored as input). | ||
* This **does not** change the behavior in protocol buffers itself; it only | ||
* denotes the behavior and may affect how API tooling handles the field. | ||
* | ||
* Note: This enum **may** receive new values in the future. | ||
*/ | ||
export type IFieldBehavior = | ||
/** | ||
* Conventional default for enums. Do not use this. | ||
*/ | ||
| 'FIELD_BEHAVIOR_UNSPECIFIED' | ||
| 0 | ||
/** | ||
* Specifically denotes a field as optional. | ||
* While all fields in protocol buffers are optional, this may be specified | ||
* for emphasis if appropriate. | ||
*/ | ||
| 'OPTIONAL' | ||
| 1 | ||
/** | ||
* Denotes a field as required. | ||
* This indicates that the field **must** be provided as part of the request, | ||
* and failure to do so will cause an error (usually `INVALID_ARGUMENT`). | ||
*/ | ||
| 'REQUIRED' | ||
| 2 | ||
/** | ||
* Denotes a field as output only. | ||
* This indicates that the field is provided in responses, but including the | ||
* field in a request does nothing (the server *must* ignore it and | ||
* *must not* throw an error as a result of the field's presence). | ||
*/ | ||
| 'OUTPUT_ONLY' | ||
| 3 | ||
/** | ||
* Denotes a field as input only. | ||
* This indicates that the field is provided in requests, and the | ||
* corresponding field is not included in output. | ||
*/ | ||
| 'INPUT_ONLY' | ||
| 4 | ||
/** | ||
* Denotes a field as immutable. | ||
* This indicates that the field may be set once in a request to create a | ||
* resource, but may not be changed thereafter. | ||
*/ | ||
| 'IMMUTABLE' | ||
| 5 | ||
|
||
/** | ||
* An indicator of the behavior of a given field (for example, that a field | ||
* is required in requests, or given as output but ignored as input). | ||
* This **does not** change the behavior in protocol buffers itself; it only | ||
* denotes the behavior and may affect how API tooling handles the field. | ||
* | ||
* Note: This enum **may** receive new values in the future. | ||
*/ | ||
export type OFieldBehavior = typeof FieldBehavior[keyof typeof FieldBehavior] |
Oops, something went wrong.