feat: Complete zCode CLI X with Telegram bot integration

- Add full Telegram bot functionality with Z.AI API integration
- Implement 4 tools: Bash, FileEdit, WebSearch, Git
- Add 3 agents: Code Reviewer, Architect, DevOps Engineer
- Add 6 skills for common coding tasks
- Add systemd service file for 24/7 operation
- Add nginx configuration for HTTPS webhook
- Add comprehensive documentation
- Implement WebSocket server for real-time updates
- Add logging system with Winston
- Add environment validation

🤖 zCode CLI X - Agentic coder with Z.AI + Telegram integration
This commit is contained in:
admin
2026-05-05 09:01:26 +00:00
Unverified
parent 4a7035dd92
commit 875c7f9b91
24688 changed files with 3224957 additions and 221 deletions

View File

@@ -0,0 +1,119 @@
import type * as grpc from '../index';
import type { MessageTypeDefinition } from '@grpc/proto-loader';
import type { Any as _google_protobuf_Any, Any__Output as _google_protobuf_Any__Output } from './google/protobuf/Any';
import type { BoolValue as _google_protobuf_BoolValue, BoolValue__Output as _google_protobuf_BoolValue__Output } from './google/protobuf/BoolValue';
import type { BytesValue as _google_protobuf_BytesValue, BytesValue__Output as _google_protobuf_BytesValue__Output } from './google/protobuf/BytesValue';
import type { DoubleValue as _google_protobuf_DoubleValue, DoubleValue__Output as _google_protobuf_DoubleValue__Output } from './google/protobuf/DoubleValue';
import type { Duration as _google_protobuf_Duration, Duration__Output as _google_protobuf_Duration__Output } from './google/protobuf/Duration';
import type { FloatValue as _google_protobuf_FloatValue, FloatValue__Output as _google_protobuf_FloatValue__Output } from './google/protobuf/FloatValue';
import type { Int32Value as _google_protobuf_Int32Value, Int32Value__Output as _google_protobuf_Int32Value__Output } from './google/protobuf/Int32Value';
import type { Int64Value as _google_protobuf_Int64Value, Int64Value__Output as _google_protobuf_Int64Value__Output } from './google/protobuf/Int64Value';
import type { StringValue as _google_protobuf_StringValue, StringValue__Output as _google_protobuf_StringValue__Output } from './google/protobuf/StringValue';
import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from './google/protobuf/Timestamp';
import type { UInt32Value as _google_protobuf_UInt32Value, UInt32Value__Output as _google_protobuf_UInt32Value__Output } from './google/protobuf/UInt32Value';
import type { UInt64Value as _google_protobuf_UInt64Value, UInt64Value__Output as _google_protobuf_UInt64Value__Output } from './google/protobuf/UInt64Value';
import type { Address as _grpc_channelz_v1_Address, Address__Output as _grpc_channelz_v1_Address__Output } from './grpc/channelz/v1/Address';
import type { Channel as _grpc_channelz_v1_Channel, Channel__Output as _grpc_channelz_v1_Channel__Output } from './grpc/channelz/v1/Channel';
import type { ChannelConnectivityState as _grpc_channelz_v1_ChannelConnectivityState, ChannelConnectivityState__Output as _grpc_channelz_v1_ChannelConnectivityState__Output } from './grpc/channelz/v1/ChannelConnectivityState';
import type { ChannelData as _grpc_channelz_v1_ChannelData, ChannelData__Output as _grpc_channelz_v1_ChannelData__Output } from './grpc/channelz/v1/ChannelData';
import type { ChannelRef as _grpc_channelz_v1_ChannelRef, ChannelRef__Output as _grpc_channelz_v1_ChannelRef__Output } from './grpc/channelz/v1/ChannelRef';
import type { ChannelTrace as _grpc_channelz_v1_ChannelTrace, ChannelTrace__Output as _grpc_channelz_v1_ChannelTrace__Output } from './grpc/channelz/v1/ChannelTrace';
import type { ChannelTraceEvent as _grpc_channelz_v1_ChannelTraceEvent, ChannelTraceEvent__Output as _grpc_channelz_v1_ChannelTraceEvent__Output } from './grpc/channelz/v1/ChannelTraceEvent';
import type { ChannelzClient as _grpc_channelz_v1_ChannelzClient, ChannelzDefinition as _grpc_channelz_v1_ChannelzDefinition } from './grpc/channelz/v1/Channelz';
import type { GetChannelRequest as _grpc_channelz_v1_GetChannelRequest, GetChannelRequest__Output as _grpc_channelz_v1_GetChannelRequest__Output } from './grpc/channelz/v1/GetChannelRequest';
import type { GetChannelResponse as _grpc_channelz_v1_GetChannelResponse, GetChannelResponse__Output as _grpc_channelz_v1_GetChannelResponse__Output } from './grpc/channelz/v1/GetChannelResponse';
import type { GetServerRequest as _grpc_channelz_v1_GetServerRequest, GetServerRequest__Output as _grpc_channelz_v1_GetServerRequest__Output } from './grpc/channelz/v1/GetServerRequest';
import type { GetServerResponse as _grpc_channelz_v1_GetServerResponse, GetServerResponse__Output as _grpc_channelz_v1_GetServerResponse__Output } from './grpc/channelz/v1/GetServerResponse';
import type { GetServerSocketsRequest as _grpc_channelz_v1_GetServerSocketsRequest, GetServerSocketsRequest__Output as _grpc_channelz_v1_GetServerSocketsRequest__Output } from './grpc/channelz/v1/GetServerSocketsRequest';
import type { GetServerSocketsResponse as _grpc_channelz_v1_GetServerSocketsResponse, GetServerSocketsResponse__Output as _grpc_channelz_v1_GetServerSocketsResponse__Output } from './grpc/channelz/v1/GetServerSocketsResponse';
import type { GetServersRequest as _grpc_channelz_v1_GetServersRequest, GetServersRequest__Output as _grpc_channelz_v1_GetServersRequest__Output } from './grpc/channelz/v1/GetServersRequest';
import type { GetServersResponse as _grpc_channelz_v1_GetServersResponse, GetServersResponse__Output as _grpc_channelz_v1_GetServersResponse__Output } from './grpc/channelz/v1/GetServersResponse';
import type { GetSocketRequest as _grpc_channelz_v1_GetSocketRequest, GetSocketRequest__Output as _grpc_channelz_v1_GetSocketRequest__Output } from './grpc/channelz/v1/GetSocketRequest';
import type { GetSocketResponse as _grpc_channelz_v1_GetSocketResponse, GetSocketResponse__Output as _grpc_channelz_v1_GetSocketResponse__Output } from './grpc/channelz/v1/GetSocketResponse';
import type { GetSubchannelRequest as _grpc_channelz_v1_GetSubchannelRequest, GetSubchannelRequest__Output as _grpc_channelz_v1_GetSubchannelRequest__Output } from './grpc/channelz/v1/GetSubchannelRequest';
import type { GetSubchannelResponse as _grpc_channelz_v1_GetSubchannelResponse, GetSubchannelResponse__Output as _grpc_channelz_v1_GetSubchannelResponse__Output } from './grpc/channelz/v1/GetSubchannelResponse';
import type { GetTopChannelsRequest as _grpc_channelz_v1_GetTopChannelsRequest, GetTopChannelsRequest__Output as _grpc_channelz_v1_GetTopChannelsRequest__Output } from './grpc/channelz/v1/GetTopChannelsRequest';
import type { GetTopChannelsResponse as _grpc_channelz_v1_GetTopChannelsResponse, GetTopChannelsResponse__Output as _grpc_channelz_v1_GetTopChannelsResponse__Output } from './grpc/channelz/v1/GetTopChannelsResponse';
import type { Security as _grpc_channelz_v1_Security, Security__Output as _grpc_channelz_v1_Security__Output } from './grpc/channelz/v1/Security';
import type { Server as _grpc_channelz_v1_Server, Server__Output as _grpc_channelz_v1_Server__Output } from './grpc/channelz/v1/Server';
import type { ServerData as _grpc_channelz_v1_ServerData, ServerData__Output as _grpc_channelz_v1_ServerData__Output } from './grpc/channelz/v1/ServerData';
import type { ServerRef as _grpc_channelz_v1_ServerRef, ServerRef__Output as _grpc_channelz_v1_ServerRef__Output } from './grpc/channelz/v1/ServerRef';
import type { Socket as _grpc_channelz_v1_Socket, Socket__Output as _grpc_channelz_v1_Socket__Output } from './grpc/channelz/v1/Socket';
import type { SocketData as _grpc_channelz_v1_SocketData, SocketData__Output as _grpc_channelz_v1_SocketData__Output } from './grpc/channelz/v1/SocketData';
import type { SocketOption as _grpc_channelz_v1_SocketOption, SocketOption__Output as _grpc_channelz_v1_SocketOption__Output } from './grpc/channelz/v1/SocketOption';
import type { SocketOptionLinger as _grpc_channelz_v1_SocketOptionLinger, SocketOptionLinger__Output as _grpc_channelz_v1_SocketOptionLinger__Output } from './grpc/channelz/v1/SocketOptionLinger';
import type { SocketOptionTcpInfo as _grpc_channelz_v1_SocketOptionTcpInfo, SocketOptionTcpInfo__Output as _grpc_channelz_v1_SocketOptionTcpInfo__Output } from './grpc/channelz/v1/SocketOptionTcpInfo';
import type { SocketOptionTimeout as _grpc_channelz_v1_SocketOptionTimeout, SocketOptionTimeout__Output as _grpc_channelz_v1_SocketOptionTimeout__Output } from './grpc/channelz/v1/SocketOptionTimeout';
import type { SocketRef as _grpc_channelz_v1_SocketRef, SocketRef__Output as _grpc_channelz_v1_SocketRef__Output } from './grpc/channelz/v1/SocketRef';
import type { Subchannel as _grpc_channelz_v1_Subchannel, Subchannel__Output as _grpc_channelz_v1_Subchannel__Output } from './grpc/channelz/v1/Subchannel';
import type { SubchannelRef as _grpc_channelz_v1_SubchannelRef, SubchannelRef__Output as _grpc_channelz_v1_SubchannelRef__Output } from './grpc/channelz/v1/SubchannelRef';
type SubtypeConstructor<Constructor extends new (...args: any) => any, Subtype> = {
new(...args: ConstructorParameters<Constructor>): Subtype;
};
export interface ProtoGrpcType {
google: {
protobuf: {
Any: MessageTypeDefinition<_google_protobuf_Any, _google_protobuf_Any__Output>
BoolValue: MessageTypeDefinition<_google_protobuf_BoolValue, _google_protobuf_BoolValue__Output>
BytesValue: MessageTypeDefinition<_google_protobuf_BytesValue, _google_protobuf_BytesValue__Output>
DoubleValue: MessageTypeDefinition<_google_protobuf_DoubleValue, _google_protobuf_DoubleValue__Output>
Duration: MessageTypeDefinition<_google_protobuf_Duration, _google_protobuf_Duration__Output>
FloatValue: MessageTypeDefinition<_google_protobuf_FloatValue, _google_protobuf_FloatValue__Output>
Int32Value: MessageTypeDefinition<_google_protobuf_Int32Value, _google_protobuf_Int32Value__Output>
Int64Value: MessageTypeDefinition<_google_protobuf_Int64Value, _google_protobuf_Int64Value__Output>
StringValue: MessageTypeDefinition<_google_protobuf_StringValue, _google_protobuf_StringValue__Output>
Timestamp: MessageTypeDefinition<_google_protobuf_Timestamp, _google_protobuf_Timestamp__Output>
UInt32Value: MessageTypeDefinition<_google_protobuf_UInt32Value, _google_protobuf_UInt32Value__Output>
UInt64Value: MessageTypeDefinition<_google_protobuf_UInt64Value, _google_protobuf_UInt64Value__Output>
}
}
grpc: {
channelz: {
v1: {
Address: MessageTypeDefinition<_grpc_channelz_v1_Address, _grpc_channelz_v1_Address__Output>
Channel: MessageTypeDefinition<_grpc_channelz_v1_Channel, _grpc_channelz_v1_Channel__Output>
ChannelConnectivityState: MessageTypeDefinition<_grpc_channelz_v1_ChannelConnectivityState, _grpc_channelz_v1_ChannelConnectivityState__Output>
ChannelData: MessageTypeDefinition<_grpc_channelz_v1_ChannelData, _grpc_channelz_v1_ChannelData__Output>
ChannelRef: MessageTypeDefinition<_grpc_channelz_v1_ChannelRef, _grpc_channelz_v1_ChannelRef__Output>
ChannelTrace: MessageTypeDefinition<_grpc_channelz_v1_ChannelTrace, _grpc_channelz_v1_ChannelTrace__Output>
ChannelTraceEvent: MessageTypeDefinition<_grpc_channelz_v1_ChannelTraceEvent, _grpc_channelz_v1_ChannelTraceEvent__Output>
/**
* Channelz is a service exposed by gRPC servers that provides detailed debug
* information.
*/
Channelz: SubtypeConstructor<typeof grpc.Client, _grpc_channelz_v1_ChannelzClient> & { service: _grpc_channelz_v1_ChannelzDefinition }
GetChannelRequest: MessageTypeDefinition<_grpc_channelz_v1_GetChannelRequest, _grpc_channelz_v1_GetChannelRequest__Output>
GetChannelResponse: MessageTypeDefinition<_grpc_channelz_v1_GetChannelResponse, _grpc_channelz_v1_GetChannelResponse__Output>
GetServerRequest: MessageTypeDefinition<_grpc_channelz_v1_GetServerRequest, _grpc_channelz_v1_GetServerRequest__Output>
GetServerResponse: MessageTypeDefinition<_grpc_channelz_v1_GetServerResponse, _grpc_channelz_v1_GetServerResponse__Output>
GetServerSocketsRequest: MessageTypeDefinition<_grpc_channelz_v1_GetServerSocketsRequest, _grpc_channelz_v1_GetServerSocketsRequest__Output>
GetServerSocketsResponse: MessageTypeDefinition<_grpc_channelz_v1_GetServerSocketsResponse, _grpc_channelz_v1_GetServerSocketsResponse__Output>
GetServersRequest: MessageTypeDefinition<_grpc_channelz_v1_GetServersRequest, _grpc_channelz_v1_GetServersRequest__Output>
GetServersResponse: MessageTypeDefinition<_grpc_channelz_v1_GetServersResponse, _grpc_channelz_v1_GetServersResponse__Output>
GetSocketRequest: MessageTypeDefinition<_grpc_channelz_v1_GetSocketRequest, _grpc_channelz_v1_GetSocketRequest__Output>
GetSocketResponse: MessageTypeDefinition<_grpc_channelz_v1_GetSocketResponse, _grpc_channelz_v1_GetSocketResponse__Output>
GetSubchannelRequest: MessageTypeDefinition<_grpc_channelz_v1_GetSubchannelRequest, _grpc_channelz_v1_GetSubchannelRequest__Output>
GetSubchannelResponse: MessageTypeDefinition<_grpc_channelz_v1_GetSubchannelResponse, _grpc_channelz_v1_GetSubchannelResponse__Output>
GetTopChannelsRequest: MessageTypeDefinition<_grpc_channelz_v1_GetTopChannelsRequest, _grpc_channelz_v1_GetTopChannelsRequest__Output>
GetTopChannelsResponse: MessageTypeDefinition<_grpc_channelz_v1_GetTopChannelsResponse, _grpc_channelz_v1_GetTopChannelsResponse__Output>
Security: MessageTypeDefinition<_grpc_channelz_v1_Security, _grpc_channelz_v1_Security__Output>
Server: MessageTypeDefinition<_grpc_channelz_v1_Server, _grpc_channelz_v1_Server__Output>
ServerData: MessageTypeDefinition<_grpc_channelz_v1_ServerData, _grpc_channelz_v1_ServerData__Output>
ServerRef: MessageTypeDefinition<_grpc_channelz_v1_ServerRef, _grpc_channelz_v1_ServerRef__Output>
Socket: MessageTypeDefinition<_grpc_channelz_v1_Socket, _grpc_channelz_v1_Socket__Output>
SocketData: MessageTypeDefinition<_grpc_channelz_v1_SocketData, _grpc_channelz_v1_SocketData__Output>
SocketOption: MessageTypeDefinition<_grpc_channelz_v1_SocketOption, _grpc_channelz_v1_SocketOption__Output>
SocketOptionLinger: MessageTypeDefinition<_grpc_channelz_v1_SocketOptionLinger, _grpc_channelz_v1_SocketOptionLinger__Output>
SocketOptionTcpInfo: MessageTypeDefinition<_grpc_channelz_v1_SocketOptionTcpInfo, _grpc_channelz_v1_SocketOptionTcpInfo__Output>
SocketOptionTimeout: MessageTypeDefinition<_grpc_channelz_v1_SocketOptionTimeout, _grpc_channelz_v1_SocketOptionTimeout__Output>
SocketRef: MessageTypeDefinition<_grpc_channelz_v1_SocketRef, _grpc_channelz_v1_SocketRef__Output>
Subchannel: MessageTypeDefinition<_grpc_channelz_v1_Subchannel, _grpc_channelz_v1_Subchannel__Output>
SubchannelRef: MessageTypeDefinition<_grpc_channelz_v1_SubchannelRef, _grpc_channelz_v1_SubchannelRef__Output>
}
}
}
}

View File

@@ -0,0 +1,13 @@
// Original file: null
import type { AnyExtension } from '@grpc/proto-loader';
export type Any = AnyExtension | {
type_url: string;
value: Buffer | Uint8Array | string;
}
export interface Any__Output {
'type_url': (string);
'value': (Buffer);
}

View File

@@ -0,0 +1,10 @@
// Original file: null
export interface BoolValue {
'value'?: (boolean);
}
export interface BoolValue__Output {
'value': (boolean);
}

View File

@@ -0,0 +1,10 @@
// Original file: null
export interface BytesValue {
'value'?: (Buffer | Uint8Array | string);
}
export interface BytesValue__Output {
'value': (Buffer);
}

View File

@@ -0,0 +1,59 @@
// Original file: null
import type { FieldDescriptorProto as _google_protobuf_FieldDescriptorProto, FieldDescriptorProto__Output as _google_protobuf_FieldDescriptorProto__Output } from '../../google/protobuf/FieldDescriptorProto';
import type { DescriptorProto as _google_protobuf_DescriptorProto, DescriptorProto__Output as _google_protobuf_DescriptorProto__Output } from '../../google/protobuf/DescriptorProto';
import type { EnumDescriptorProto as _google_protobuf_EnumDescriptorProto, EnumDescriptorProto__Output as _google_protobuf_EnumDescriptorProto__Output } from '../../google/protobuf/EnumDescriptorProto';
import type { MessageOptions as _google_protobuf_MessageOptions, MessageOptions__Output as _google_protobuf_MessageOptions__Output } from '../../google/protobuf/MessageOptions';
import type { OneofDescriptorProto as _google_protobuf_OneofDescriptorProto, OneofDescriptorProto__Output as _google_protobuf_OneofDescriptorProto__Output } from '../../google/protobuf/OneofDescriptorProto';
import type { SymbolVisibility as _google_protobuf_SymbolVisibility, SymbolVisibility__Output as _google_protobuf_SymbolVisibility__Output } from '../../google/protobuf/SymbolVisibility';
import type { ExtensionRangeOptions as _google_protobuf_ExtensionRangeOptions, ExtensionRangeOptions__Output as _google_protobuf_ExtensionRangeOptions__Output } from '../../google/protobuf/ExtensionRangeOptions';
export interface _google_protobuf_DescriptorProto_ExtensionRange {
'start'?: (number);
'end'?: (number);
'options'?: (_google_protobuf_ExtensionRangeOptions | null);
}
export interface _google_protobuf_DescriptorProto_ExtensionRange__Output {
'start': (number);
'end': (number);
'options': (_google_protobuf_ExtensionRangeOptions__Output | null);
}
export interface _google_protobuf_DescriptorProto_ReservedRange {
'start'?: (number);
'end'?: (number);
}
export interface _google_protobuf_DescriptorProto_ReservedRange__Output {
'start': (number);
'end': (number);
}
export interface DescriptorProto {
'name'?: (string);
'field'?: (_google_protobuf_FieldDescriptorProto)[];
'nestedType'?: (_google_protobuf_DescriptorProto)[];
'enumType'?: (_google_protobuf_EnumDescriptorProto)[];
'extensionRange'?: (_google_protobuf_DescriptorProto_ExtensionRange)[];
'extension'?: (_google_protobuf_FieldDescriptorProto)[];
'options'?: (_google_protobuf_MessageOptions | null);
'oneofDecl'?: (_google_protobuf_OneofDescriptorProto)[];
'reservedRange'?: (_google_protobuf_DescriptorProto_ReservedRange)[];
'reservedName'?: (string)[];
'visibility'?: (_google_protobuf_SymbolVisibility);
}
export interface DescriptorProto__Output {
'name': (string);
'field': (_google_protobuf_FieldDescriptorProto__Output)[];
'nestedType': (_google_protobuf_DescriptorProto__Output)[];
'enumType': (_google_protobuf_EnumDescriptorProto__Output)[];
'extensionRange': (_google_protobuf_DescriptorProto_ExtensionRange__Output)[];
'extension': (_google_protobuf_FieldDescriptorProto__Output)[];
'options': (_google_protobuf_MessageOptions__Output | null);
'oneofDecl': (_google_protobuf_OneofDescriptorProto__Output)[];
'reservedRange': (_google_protobuf_DescriptorProto_ReservedRange__Output)[];
'reservedName': (string)[];
'visibility': (_google_protobuf_SymbolVisibility__Output);
}

View File

@@ -0,0 +1,10 @@
// Original file: null
export interface DoubleValue {
'value'?: (number | string);
}
export interface DoubleValue__Output {
'value': (number);
}

View File

@@ -0,0 +1,13 @@
// Original file: null
import type { Long } from '@grpc/proto-loader';
export interface Duration {
'seconds'?: (number | string | Long);
'nanos'?: (number);
}
export interface Duration__Output {
'seconds': (string);
'nanos': (number);
}

View File

@@ -0,0 +1,44 @@
// Original file: null
export const Edition = {
EDITION_UNKNOWN: 'EDITION_UNKNOWN',
EDITION_LEGACY: 'EDITION_LEGACY',
EDITION_PROTO2: 'EDITION_PROTO2',
EDITION_PROTO3: 'EDITION_PROTO3',
EDITION_2023: 'EDITION_2023',
EDITION_2024: 'EDITION_2024',
EDITION_1_TEST_ONLY: 'EDITION_1_TEST_ONLY',
EDITION_2_TEST_ONLY: 'EDITION_2_TEST_ONLY',
EDITION_99997_TEST_ONLY: 'EDITION_99997_TEST_ONLY',
EDITION_99998_TEST_ONLY: 'EDITION_99998_TEST_ONLY',
EDITION_99999_TEST_ONLY: 'EDITION_99999_TEST_ONLY',
EDITION_MAX: 'EDITION_MAX',
} as const;
export type Edition =
| 'EDITION_UNKNOWN'
| 0
| 'EDITION_LEGACY'
| 900
| 'EDITION_PROTO2'
| 998
| 'EDITION_PROTO3'
| 999
| 'EDITION_2023'
| 1000
| 'EDITION_2024'
| 1001
| 'EDITION_1_TEST_ONLY'
| 1
| 'EDITION_2_TEST_ONLY'
| 2
| 'EDITION_99997_TEST_ONLY'
| 99997
| 'EDITION_99998_TEST_ONLY'
| 99998
| 'EDITION_99999_TEST_ONLY'
| 99999
| 'EDITION_MAX'
| 2147483647
export type Edition__Output = typeof Edition[keyof typeof Edition]

View File

@@ -0,0 +1,33 @@
// Original file: null
import type { EnumValueDescriptorProto as _google_protobuf_EnumValueDescriptorProto, EnumValueDescriptorProto__Output as _google_protobuf_EnumValueDescriptorProto__Output } from '../../google/protobuf/EnumValueDescriptorProto';
import type { EnumOptions as _google_protobuf_EnumOptions, EnumOptions__Output as _google_protobuf_EnumOptions__Output } from '../../google/protobuf/EnumOptions';
import type { SymbolVisibility as _google_protobuf_SymbolVisibility, SymbolVisibility__Output as _google_protobuf_SymbolVisibility__Output } from '../../google/protobuf/SymbolVisibility';
export interface _google_protobuf_EnumDescriptorProto_EnumReservedRange {
'start'?: (number);
'end'?: (number);
}
export interface _google_protobuf_EnumDescriptorProto_EnumReservedRange__Output {
'start': (number);
'end': (number);
}
export interface EnumDescriptorProto {
'name'?: (string);
'value'?: (_google_protobuf_EnumValueDescriptorProto)[];
'options'?: (_google_protobuf_EnumOptions | null);
'reservedRange'?: (_google_protobuf_EnumDescriptorProto_EnumReservedRange)[];
'reservedName'?: (string)[];
'visibility'?: (_google_protobuf_SymbolVisibility);
}
export interface EnumDescriptorProto__Output {
'name': (string);
'value': (_google_protobuf_EnumValueDescriptorProto__Output)[];
'options': (_google_protobuf_EnumOptions__Output | null);
'reservedRange': (_google_protobuf_EnumDescriptorProto_EnumReservedRange__Output)[];
'reservedName': (string)[];
'visibility': (_google_protobuf_SymbolVisibility__Output);
}

View File

@@ -0,0 +1,26 @@
// Original file: null
import type { FeatureSet as _google_protobuf_FeatureSet, FeatureSet__Output as _google_protobuf_FeatureSet__Output } from '../../google/protobuf/FeatureSet';
import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption';
export interface EnumOptions {
'allowAlias'?: (boolean);
'deprecated'?: (boolean);
/**
* @deprecated
*/
'deprecatedLegacyJsonFieldConflicts'?: (boolean);
'features'?: (_google_protobuf_FeatureSet | null);
'uninterpretedOption'?: (_google_protobuf_UninterpretedOption)[];
}
export interface EnumOptions__Output {
'allowAlias': (boolean);
'deprecated': (boolean);
/**
* @deprecated
*/
'deprecatedLegacyJsonFieldConflicts': (boolean);
'features': (_google_protobuf_FeatureSet__Output | null);
'uninterpretedOption': (_google_protobuf_UninterpretedOption__Output)[];
}

View File

@@ -0,0 +1,15 @@
// Original file: null
import type { EnumValueOptions as _google_protobuf_EnumValueOptions, EnumValueOptions__Output as _google_protobuf_EnumValueOptions__Output } from '../../google/protobuf/EnumValueOptions';
export interface EnumValueDescriptorProto {
'name'?: (string);
'number'?: (number);
'options'?: (_google_protobuf_EnumValueOptions | null);
}
export interface EnumValueDescriptorProto__Output {
'name': (string);
'number': (number);
'options': (_google_protobuf_EnumValueOptions__Output | null);
}

View File

@@ -0,0 +1,21 @@
// Original file: null
import type { FeatureSet as _google_protobuf_FeatureSet, FeatureSet__Output as _google_protobuf_FeatureSet__Output } from '../../google/protobuf/FeatureSet';
import type { _google_protobuf_FieldOptions_FeatureSupport, _google_protobuf_FieldOptions_FeatureSupport__Output } from '../../google/protobuf/FieldOptions';
import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption';
export interface EnumValueOptions {
'deprecated'?: (boolean);
'features'?: (_google_protobuf_FeatureSet | null);
'debugRedact'?: (boolean);
'featureSupport'?: (_google_protobuf_FieldOptions_FeatureSupport | null);
'uninterpretedOption'?: (_google_protobuf_UninterpretedOption)[];
}
export interface EnumValueOptions__Output {
'deprecated': (boolean);
'features': (_google_protobuf_FeatureSet__Output | null);
'debugRedact': (boolean);
'featureSupport': (_google_protobuf_FieldOptions_FeatureSupport__Output | null);
'uninterpretedOption': (_google_protobuf_UninterpretedOption__Output)[];
}

View File

@@ -0,0 +1,49 @@
// Original file: null
import type { FeatureSet as _google_protobuf_FeatureSet, FeatureSet__Output as _google_protobuf_FeatureSet__Output } from '../../google/protobuf/FeatureSet';
import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption';
export interface _google_protobuf_ExtensionRangeOptions_Declaration {
'number'?: (number);
'fullName'?: (string);
'type'?: (string);
'reserved'?: (boolean);
'repeated'?: (boolean);
}
export interface _google_protobuf_ExtensionRangeOptions_Declaration__Output {
'number': (number);
'fullName': (string);
'type': (string);
'reserved': (boolean);
'repeated': (boolean);
}
// Original file: null
export const _google_protobuf_ExtensionRangeOptions_VerificationState = {
DECLARATION: 'DECLARATION',
UNVERIFIED: 'UNVERIFIED',
} as const;
export type _google_protobuf_ExtensionRangeOptions_VerificationState =
| 'DECLARATION'
| 0
| 'UNVERIFIED'
| 1
export type _google_protobuf_ExtensionRangeOptions_VerificationState__Output = typeof _google_protobuf_ExtensionRangeOptions_VerificationState[keyof typeof _google_protobuf_ExtensionRangeOptions_VerificationState]
export interface ExtensionRangeOptions {
'declaration'?: (_google_protobuf_ExtensionRangeOptions_Declaration)[];
'verification'?: (_google_protobuf_ExtensionRangeOptions_VerificationState);
'features'?: (_google_protobuf_FeatureSet | null);
'uninterpretedOption'?: (_google_protobuf_UninterpretedOption)[];
}
export interface ExtensionRangeOptions__Output {
'declaration': (_google_protobuf_ExtensionRangeOptions_Declaration__Output)[];
'verification': (_google_protobuf_ExtensionRangeOptions_VerificationState__Output);
'features': (_google_protobuf_FeatureSet__Output | null);
'uninterpretedOption': (_google_protobuf_UninterpretedOption__Output)[];
}

View File

@@ -0,0 +1,183 @@
// Original file: null
// Original file: null
export const _google_protobuf_FeatureSet_VisibilityFeature_DefaultSymbolVisibility = {
DEFAULT_SYMBOL_VISIBILITY_UNKNOWN: 'DEFAULT_SYMBOL_VISIBILITY_UNKNOWN',
EXPORT_ALL: 'EXPORT_ALL',
EXPORT_TOP_LEVEL: 'EXPORT_TOP_LEVEL',
LOCAL_ALL: 'LOCAL_ALL',
STRICT: 'STRICT',
} as const;
export type _google_protobuf_FeatureSet_VisibilityFeature_DefaultSymbolVisibility =
| 'DEFAULT_SYMBOL_VISIBILITY_UNKNOWN'
| 0
| 'EXPORT_ALL'
| 1
| 'EXPORT_TOP_LEVEL'
| 2
| 'LOCAL_ALL'
| 3
| 'STRICT'
| 4
export type _google_protobuf_FeatureSet_VisibilityFeature_DefaultSymbolVisibility__Output = typeof _google_protobuf_FeatureSet_VisibilityFeature_DefaultSymbolVisibility[keyof typeof _google_protobuf_FeatureSet_VisibilityFeature_DefaultSymbolVisibility]
// Original file: null
export const _google_protobuf_FeatureSet_EnforceNamingStyle = {
ENFORCE_NAMING_STYLE_UNKNOWN: 'ENFORCE_NAMING_STYLE_UNKNOWN',
STYLE2024: 'STYLE2024',
STYLE_LEGACY: 'STYLE_LEGACY',
} as const;
export type _google_protobuf_FeatureSet_EnforceNamingStyle =
| 'ENFORCE_NAMING_STYLE_UNKNOWN'
| 0
| 'STYLE2024'
| 1
| 'STYLE_LEGACY'
| 2
export type _google_protobuf_FeatureSet_EnforceNamingStyle__Output = typeof _google_protobuf_FeatureSet_EnforceNamingStyle[keyof typeof _google_protobuf_FeatureSet_EnforceNamingStyle]
// Original file: null
export const _google_protobuf_FeatureSet_EnumType = {
ENUM_TYPE_UNKNOWN: 'ENUM_TYPE_UNKNOWN',
OPEN: 'OPEN',
CLOSED: 'CLOSED',
} as const;
export type _google_protobuf_FeatureSet_EnumType =
| 'ENUM_TYPE_UNKNOWN'
| 0
| 'OPEN'
| 1
| 'CLOSED'
| 2
export type _google_protobuf_FeatureSet_EnumType__Output = typeof _google_protobuf_FeatureSet_EnumType[keyof typeof _google_protobuf_FeatureSet_EnumType]
// Original file: null
export const _google_protobuf_FeatureSet_FieldPresence = {
FIELD_PRESENCE_UNKNOWN: 'FIELD_PRESENCE_UNKNOWN',
EXPLICIT: 'EXPLICIT',
IMPLICIT: 'IMPLICIT',
LEGACY_REQUIRED: 'LEGACY_REQUIRED',
} as const;
export type _google_protobuf_FeatureSet_FieldPresence =
| 'FIELD_PRESENCE_UNKNOWN'
| 0
| 'EXPLICIT'
| 1
| 'IMPLICIT'
| 2
| 'LEGACY_REQUIRED'
| 3
export type _google_protobuf_FeatureSet_FieldPresence__Output = typeof _google_protobuf_FeatureSet_FieldPresence[keyof typeof _google_protobuf_FeatureSet_FieldPresence]
// Original file: null
export const _google_protobuf_FeatureSet_JsonFormat = {
JSON_FORMAT_UNKNOWN: 'JSON_FORMAT_UNKNOWN',
ALLOW: 'ALLOW',
LEGACY_BEST_EFFORT: 'LEGACY_BEST_EFFORT',
} as const;
export type _google_protobuf_FeatureSet_JsonFormat =
| 'JSON_FORMAT_UNKNOWN'
| 0
| 'ALLOW'
| 1
| 'LEGACY_BEST_EFFORT'
| 2
export type _google_protobuf_FeatureSet_JsonFormat__Output = typeof _google_protobuf_FeatureSet_JsonFormat[keyof typeof _google_protobuf_FeatureSet_JsonFormat]
// Original file: null
export const _google_protobuf_FeatureSet_MessageEncoding = {
MESSAGE_ENCODING_UNKNOWN: 'MESSAGE_ENCODING_UNKNOWN',
LENGTH_PREFIXED: 'LENGTH_PREFIXED',
DELIMITED: 'DELIMITED',
} as const;
export type _google_protobuf_FeatureSet_MessageEncoding =
| 'MESSAGE_ENCODING_UNKNOWN'
| 0
| 'LENGTH_PREFIXED'
| 1
| 'DELIMITED'
| 2
export type _google_protobuf_FeatureSet_MessageEncoding__Output = typeof _google_protobuf_FeatureSet_MessageEncoding[keyof typeof _google_protobuf_FeatureSet_MessageEncoding]
// Original file: null
export const _google_protobuf_FeatureSet_RepeatedFieldEncoding = {
REPEATED_FIELD_ENCODING_UNKNOWN: 'REPEATED_FIELD_ENCODING_UNKNOWN',
PACKED: 'PACKED',
EXPANDED: 'EXPANDED',
} as const;
export type _google_protobuf_FeatureSet_RepeatedFieldEncoding =
| 'REPEATED_FIELD_ENCODING_UNKNOWN'
| 0
| 'PACKED'
| 1
| 'EXPANDED'
| 2
export type _google_protobuf_FeatureSet_RepeatedFieldEncoding__Output = typeof _google_protobuf_FeatureSet_RepeatedFieldEncoding[keyof typeof _google_protobuf_FeatureSet_RepeatedFieldEncoding]
// Original file: null
export const _google_protobuf_FeatureSet_Utf8Validation = {
UTF8_VALIDATION_UNKNOWN: 'UTF8_VALIDATION_UNKNOWN',
VERIFY: 'VERIFY',
NONE: 'NONE',
} as const;
export type _google_protobuf_FeatureSet_Utf8Validation =
| 'UTF8_VALIDATION_UNKNOWN'
| 0
| 'VERIFY'
| 2
| 'NONE'
| 3
export type _google_protobuf_FeatureSet_Utf8Validation__Output = typeof _google_protobuf_FeatureSet_Utf8Validation[keyof typeof _google_protobuf_FeatureSet_Utf8Validation]
export interface _google_protobuf_FeatureSet_VisibilityFeature {
}
export interface _google_protobuf_FeatureSet_VisibilityFeature__Output {
}
export interface FeatureSet {
'fieldPresence'?: (_google_protobuf_FeatureSet_FieldPresence);
'enumType'?: (_google_protobuf_FeatureSet_EnumType);
'repeatedFieldEncoding'?: (_google_protobuf_FeatureSet_RepeatedFieldEncoding);
'utf8Validation'?: (_google_protobuf_FeatureSet_Utf8Validation);
'messageEncoding'?: (_google_protobuf_FeatureSet_MessageEncoding);
'jsonFormat'?: (_google_protobuf_FeatureSet_JsonFormat);
'enforceNamingStyle'?: (_google_protobuf_FeatureSet_EnforceNamingStyle);
'defaultSymbolVisibility'?: (_google_protobuf_FeatureSet_VisibilityFeature_DefaultSymbolVisibility);
}
export interface FeatureSet__Output {
'fieldPresence': (_google_protobuf_FeatureSet_FieldPresence__Output);
'enumType': (_google_protobuf_FeatureSet_EnumType__Output);
'repeatedFieldEncoding': (_google_protobuf_FeatureSet_RepeatedFieldEncoding__Output);
'utf8Validation': (_google_protobuf_FeatureSet_Utf8Validation__Output);
'messageEncoding': (_google_protobuf_FeatureSet_MessageEncoding__Output);
'jsonFormat': (_google_protobuf_FeatureSet_JsonFormat__Output);
'enforceNamingStyle': (_google_protobuf_FeatureSet_EnforceNamingStyle__Output);
'defaultSymbolVisibility': (_google_protobuf_FeatureSet_VisibilityFeature_DefaultSymbolVisibility__Output);
}

View File

@@ -0,0 +1,28 @@
// Original file: null
import type { Edition as _google_protobuf_Edition, Edition__Output as _google_protobuf_Edition__Output } from '../../google/protobuf/Edition';
import type { FeatureSet as _google_protobuf_FeatureSet, FeatureSet__Output as _google_protobuf_FeatureSet__Output } from '../../google/protobuf/FeatureSet';
export interface _google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault {
'edition'?: (_google_protobuf_Edition);
'overridableFeatures'?: (_google_protobuf_FeatureSet | null);
'fixedFeatures'?: (_google_protobuf_FeatureSet | null);
}
export interface _google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault__Output {
'edition': (_google_protobuf_Edition__Output);
'overridableFeatures': (_google_protobuf_FeatureSet__Output | null);
'fixedFeatures': (_google_protobuf_FeatureSet__Output | null);
}
export interface FeatureSetDefaults {
'defaults'?: (_google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault)[];
'minimumEdition'?: (_google_protobuf_Edition);
'maximumEdition'?: (_google_protobuf_Edition);
}
export interface FeatureSetDefaults__Output {
'defaults': (_google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault__Output)[];
'minimumEdition': (_google_protobuf_Edition__Output);
'maximumEdition': (_google_protobuf_Edition__Output);
}

View File

@@ -0,0 +1,112 @@
// Original file: null
import type { FieldOptions as _google_protobuf_FieldOptions, FieldOptions__Output as _google_protobuf_FieldOptions__Output } from '../../google/protobuf/FieldOptions';
// Original file: null
export const _google_protobuf_FieldDescriptorProto_Label = {
LABEL_OPTIONAL: 'LABEL_OPTIONAL',
LABEL_REPEATED: 'LABEL_REPEATED',
LABEL_REQUIRED: 'LABEL_REQUIRED',
} as const;
export type _google_protobuf_FieldDescriptorProto_Label =
| 'LABEL_OPTIONAL'
| 1
| 'LABEL_REPEATED'
| 3
| 'LABEL_REQUIRED'
| 2
export type _google_protobuf_FieldDescriptorProto_Label__Output = typeof _google_protobuf_FieldDescriptorProto_Label[keyof typeof _google_protobuf_FieldDescriptorProto_Label]
// Original file: null
export const _google_protobuf_FieldDescriptorProto_Type = {
TYPE_DOUBLE: 'TYPE_DOUBLE',
TYPE_FLOAT: 'TYPE_FLOAT',
TYPE_INT64: 'TYPE_INT64',
TYPE_UINT64: 'TYPE_UINT64',
TYPE_INT32: 'TYPE_INT32',
TYPE_FIXED64: 'TYPE_FIXED64',
TYPE_FIXED32: 'TYPE_FIXED32',
TYPE_BOOL: 'TYPE_BOOL',
TYPE_STRING: 'TYPE_STRING',
TYPE_GROUP: 'TYPE_GROUP',
TYPE_MESSAGE: 'TYPE_MESSAGE',
TYPE_BYTES: 'TYPE_BYTES',
TYPE_UINT32: 'TYPE_UINT32',
TYPE_ENUM: 'TYPE_ENUM',
TYPE_SFIXED32: 'TYPE_SFIXED32',
TYPE_SFIXED64: 'TYPE_SFIXED64',
TYPE_SINT32: 'TYPE_SINT32',
TYPE_SINT64: 'TYPE_SINT64',
} as const;
export type _google_protobuf_FieldDescriptorProto_Type =
| 'TYPE_DOUBLE'
| 1
| 'TYPE_FLOAT'
| 2
| 'TYPE_INT64'
| 3
| 'TYPE_UINT64'
| 4
| 'TYPE_INT32'
| 5
| 'TYPE_FIXED64'
| 6
| 'TYPE_FIXED32'
| 7
| 'TYPE_BOOL'
| 8
| 'TYPE_STRING'
| 9
| 'TYPE_GROUP'
| 10
| 'TYPE_MESSAGE'
| 11
| 'TYPE_BYTES'
| 12
| 'TYPE_UINT32'
| 13
| 'TYPE_ENUM'
| 14
| 'TYPE_SFIXED32'
| 15
| 'TYPE_SFIXED64'
| 16
| 'TYPE_SINT32'
| 17
| 'TYPE_SINT64'
| 18
export type _google_protobuf_FieldDescriptorProto_Type__Output = typeof _google_protobuf_FieldDescriptorProto_Type[keyof typeof _google_protobuf_FieldDescriptorProto_Type]
export interface FieldDescriptorProto {
'name'?: (string);
'extendee'?: (string);
'number'?: (number);
'label'?: (_google_protobuf_FieldDescriptorProto_Label);
'type'?: (_google_protobuf_FieldDescriptorProto_Type);
'typeName'?: (string);
'defaultValue'?: (string);
'options'?: (_google_protobuf_FieldOptions | null);
'oneofIndex'?: (number);
'jsonName'?: (string);
'proto3Optional'?: (boolean);
}
export interface FieldDescriptorProto__Output {
'name': (string);
'extendee': (string);
'number': (number);
'label': (_google_protobuf_FieldDescriptorProto_Label__Output);
'type': (_google_protobuf_FieldDescriptorProto_Type__Output);
'typeName': (string);
'defaultValue': (string);
'options': (_google_protobuf_FieldOptions__Output | null);
'oneofIndex': (number);
'jsonName': (string);
'proto3Optional': (boolean);
}

View File

@@ -0,0 +1,165 @@
// Original file: null
import type { FeatureSet as _google_protobuf_FeatureSet, FeatureSet__Output as _google_protobuf_FeatureSet__Output } from '../../google/protobuf/FeatureSet';
import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption';
import type { FieldRules as _validate_FieldRules, FieldRules__Output as _validate_FieldRules__Output } from '../../validate/FieldRules';
import type { Edition as _google_protobuf_Edition, Edition__Output as _google_protobuf_Edition__Output } from '../../google/protobuf/Edition';
// Original file: null
export const _google_protobuf_FieldOptions_CType = {
STRING: 'STRING',
CORD: 'CORD',
STRING_PIECE: 'STRING_PIECE',
} as const;
export type _google_protobuf_FieldOptions_CType =
| 'STRING'
| 0
| 'CORD'
| 1
| 'STRING_PIECE'
| 2
export type _google_protobuf_FieldOptions_CType__Output = typeof _google_protobuf_FieldOptions_CType[keyof typeof _google_protobuf_FieldOptions_CType]
export interface _google_protobuf_FieldOptions_EditionDefault {
'edition'?: (_google_protobuf_Edition);
'value'?: (string);
}
export interface _google_protobuf_FieldOptions_EditionDefault__Output {
'edition': (_google_protobuf_Edition__Output);
'value': (string);
}
export interface _google_protobuf_FieldOptions_FeatureSupport {
'editionIntroduced'?: (_google_protobuf_Edition);
'editionDeprecated'?: (_google_protobuf_Edition);
'deprecationWarning'?: (string);
'editionRemoved'?: (_google_protobuf_Edition);
}
export interface _google_protobuf_FieldOptions_FeatureSupport__Output {
'editionIntroduced': (_google_protobuf_Edition__Output);
'editionDeprecated': (_google_protobuf_Edition__Output);
'deprecationWarning': (string);
'editionRemoved': (_google_protobuf_Edition__Output);
}
// Original file: null
export const _google_protobuf_FieldOptions_JSType = {
JS_NORMAL: 'JS_NORMAL',
JS_STRING: 'JS_STRING',
JS_NUMBER: 'JS_NUMBER',
} as const;
export type _google_protobuf_FieldOptions_JSType =
| 'JS_NORMAL'
| 0
| 'JS_STRING'
| 1
| 'JS_NUMBER'
| 2
export type _google_protobuf_FieldOptions_JSType__Output = typeof _google_protobuf_FieldOptions_JSType[keyof typeof _google_protobuf_FieldOptions_JSType]
// Original file: null
export const _google_protobuf_FieldOptions_OptionRetention = {
RETENTION_UNKNOWN: 'RETENTION_UNKNOWN',
RETENTION_RUNTIME: 'RETENTION_RUNTIME',
RETENTION_SOURCE: 'RETENTION_SOURCE',
} as const;
export type _google_protobuf_FieldOptions_OptionRetention =
| 'RETENTION_UNKNOWN'
| 0
| 'RETENTION_RUNTIME'
| 1
| 'RETENTION_SOURCE'
| 2
export type _google_protobuf_FieldOptions_OptionRetention__Output = typeof _google_protobuf_FieldOptions_OptionRetention[keyof typeof _google_protobuf_FieldOptions_OptionRetention]
// Original file: null
export const _google_protobuf_FieldOptions_OptionTargetType = {
TARGET_TYPE_UNKNOWN: 'TARGET_TYPE_UNKNOWN',
TARGET_TYPE_FILE: 'TARGET_TYPE_FILE',
TARGET_TYPE_EXTENSION_RANGE: 'TARGET_TYPE_EXTENSION_RANGE',
TARGET_TYPE_MESSAGE: 'TARGET_TYPE_MESSAGE',
TARGET_TYPE_FIELD: 'TARGET_TYPE_FIELD',
TARGET_TYPE_ONEOF: 'TARGET_TYPE_ONEOF',
TARGET_TYPE_ENUM: 'TARGET_TYPE_ENUM',
TARGET_TYPE_ENUM_ENTRY: 'TARGET_TYPE_ENUM_ENTRY',
TARGET_TYPE_SERVICE: 'TARGET_TYPE_SERVICE',
TARGET_TYPE_METHOD: 'TARGET_TYPE_METHOD',
} as const;
export type _google_protobuf_FieldOptions_OptionTargetType =
| 'TARGET_TYPE_UNKNOWN'
| 0
| 'TARGET_TYPE_FILE'
| 1
| 'TARGET_TYPE_EXTENSION_RANGE'
| 2
| 'TARGET_TYPE_MESSAGE'
| 3
| 'TARGET_TYPE_FIELD'
| 4
| 'TARGET_TYPE_ONEOF'
| 5
| 'TARGET_TYPE_ENUM'
| 6
| 'TARGET_TYPE_ENUM_ENTRY'
| 7
| 'TARGET_TYPE_SERVICE'
| 8
| 'TARGET_TYPE_METHOD'
| 9
export type _google_protobuf_FieldOptions_OptionTargetType__Output = typeof _google_protobuf_FieldOptions_OptionTargetType[keyof typeof _google_protobuf_FieldOptions_OptionTargetType]
export interface FieldOptions {
'ctype'?: (_google_protobuf_FieldOptions_CType);
'packed'?: (boolean);
'deprecated'?: (boolean);
'lazy'?: (boolean);
'jstype'?: (_google_protobuf_FieldOptions_JSType);
/**
* @deprecated
*/
'weak'?: (boolean);
'unverifiedLazy'?: (boolean);
'debugRedact'?: (boolean);
'retention'?: (_google_protobuf_FieldOptions_OptionRetention);
'targets'?: (_google_protobuf_FieldOptions_OptionTargetType)[];
'editionDefaults'?: (_google_protobuf_FieldOptions_EditionDefault)[];
'features'?: (_google_protobuf_FeatureSet | null);
'featureSupport'?: (_google_protobuf_FieldOptions_FeatureSupport | null);
'uninterpretedOption'?: (_google_protobuf_UninterpretedOption)[];
'.validate.rules'?: (_validate_FieldRules | null);
}
export interface FieldOptions__Output {
'ctype': (_google_protobuf_FieldOptions_CType__Output);
'packed': (boolean);
'deprecated': (boolean);
'lazy': (boolean);
'jstype': (_google_protobuf_FieldOptions_JSType__Output);
/**
* @deprecated
*/
'weak': (boolean);
'unverifiedLazy': (boolean);
'debugRedact': (boolean);
'retention': (_google_protobuf_FieldOptions_OptionRetention__Output);
'targets': (_google_protobuf_FieldOptions_OptionTargetType__Output)[];
'editionDefaults': (_google_protobuf_FieldOptions_EditionDefault__Output)[];
'features': (_google_protobuf_FeatureSet__Output | null);
'featureSupport': (_google_protobuf_FieldOptions_FeatureSupport__Output | null);
'uninterpretedOption': (_google_protobuf_UninterpretedOption__Output)[];
'.validate.rules': (_validate_FieldRules__Output | null);
}

View File

@@ -0,0 +1,43 @@
// Original file: null
import type { DescriptorProto as _google_protobuf_DescriptorProto, DescriptorProto__Output as _google_protobuf_DescriptorProto__Output } from '../../google/protobuf/DescriptorProto';
import type { EnumDescriptorProto as _google_protobuf_EnumDescriptorProto, EnumDescriptorProto__Output as _google_protobuf_EnumDescriptorProto__Output } from '../../google/protobuf/EnumDescriptorProto';
import type { ServiceDescriptorProto as _google_protobuf_ServiceDescriptorProto, ServiceDescriptorProto__Output as _google_protobuf_ServiceDescriptorProto__Output } from '../../google/protobuf/ServiceDescriptorProto';
import type { FieldDescriptorProto as _google_protobuf_FieldDescriptorProto, FieldDescriptorProto__Output as _google_protobuf_FieldDescriptorProto__Output } from '../../google/protobuf/FieldDescriptorProto';
import type { FileOptions as _google_protobuf_FileOptions, FileOptions__Output as _google_protobuf_FileOptions__Output } from '../../google/protobuf/FileOptions';
import type { SourceCodeInfo as _google_protobuf_SourceCodeInfo, SourceCodeInfo__Output as _google_protobuf_SourceCodeInfo__Output } from '../../google/protobuf/SourceCodeInfo';
import type { Edition as _google_protobuf_Edition, Edition__Output as _google_protobuf_Edition__Output } from '../../google/protobuf/Edition';
export interface FileDescriptorProto {
'name'?: (string);
'package'?: (string);
'dependency'?: (string)[];
'messageType'?: (_google_protobuf_DescriptorProto)[];
'enumType'?: (_google_protobuf_EnumDescriptorProto)[];
'service'?: (_google_protobuf_ServiceDescriptorProto)[];
'extension'?: (_google_protobuf_FieldDescriptorProto)[];
'options'?: (_google_protobuf_FileOptions | null);
'sourceCodeInfo'?: (_google_protobuf_SourceCodeInfo | null);
'publicDependency'?: (number)[];
'weakDependency'?: (number)[];
'syntax'?: (string);
'edition'?: (_google_protobuf_Edition);
'optionDependency'?: (string)[];
}
export interface FileDescriptorProto__Output {
'name': (string);
'package': (string);
'dependency': (string)[];
'messageType': (_google_protobuf_DescriptorProto__Output)[];
'enumType': (_google_protobuf_EnumDescriptorProto__Output)[];
'service': (_google_protobuf_ServiceDescriptorProto__Output)[];
'extension': (_google_protobuf_FieldDescriptorProto__Output)[];
'options': (_google_protobuf_FileOptions__Output | null);
'sourceCodeInfo': (_google_protobuf_SourceCodeInfo__Output | null);
'publicDependency': (number)[];
'weakDependency': (number)[];
'syntax': (string);
'edition': (_google_protobuf_Edition__Output);
'optionDependency': (string)[];
}

View File

@@ -0,0 +1,11 @@
// Original file: null
import type { FileDescriptorProto as _google_protobuf_FileDescriptorProto, FileDescriptorProto__Output as _google_protobuf_FileDescriptorProto__Output } from '../../google/protobuf/FileDescriptorProto';
export interface FileDescriptorSet {
'file'?: (_google_protobuf_FileDescriptorProto)[];
}
export interface FileDescriptorSet__Output {
'file': (_google_protobuf_FileDescriptorProto__Output)[];
}

View File

@@ -0,0 +1,76 @@
// Original file: null
import type { FeatureSet as _google_protobuf_FeatureSet, FeatureSet__Output as _google_protobuf_FeatureSet__Output } from '../../google/protobuf/FeatureSet';
import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption';
// Original file: null
export const _google_protobuf_FileOptions_OptimizeMode = {
SPEED: 'SPEED',
CODE_SIZE: 'CODE_SIZE',
LITE_RUNTIME: 'LITE_RUNTIME',
} as const;
export type _google_protobuf_FileOptions_OptimizeMode =
| 'SPEED'
| 1
| 'CODE_SIZE'
| 2
| 'LITE_RUNTIME'
| 3
export type _google_protobuf_FileOptions_OptimizeMode__Output = typeof _google_protobuf_FileOptions_OptimizeMode[keyof typeof _google_protobuf_FileOptions_OptimizeMode]
export interface FileOptions {
'javaPackage'?: (string);
'javaOuterClassname'?: (string);
'optimizeFor'?: (_google_protobuf_FileOptions_OptimizeMode);
'javaMultipleFiles'?: (boolean);
'goPackage'?: (string);
'ccGenericServices'?: (boolean);
'javaGenericServices'?: (boolean);
'pyGenericServices'?: (boolean);
/**
* @deprecated
*/
'javaGenerateEqualsAndHash'?: (boolean);
'deprecated'?: (boolean);
'javaStringCheckUtf8'?: (boolean);
'ccEnableArenas'?: (boolean);
'objcClassPrefix'?: (string);
'csharpNamespace'?: (string);
'swiftPrefix'?: (string);
'phpClassPrefix'?: (string);
'phpNamespace'?: (string);
'phpMetadataNamespace'?: (string);
'rubyPackage'?: (string);
'features'?: (_google_protobuf_FeatureSet | null);
'uninterpretedOption'?: (_google_protobuf_UninterpretedOption)[];
}
export interface FileOptions__Output {
'javaPackage': (string);
'javaOuterClassname': (string);
'optimizeFor': (_google_protobuf_FileOptions_OptimizeMode__Output);
'javaMultipleFiles': (boolean);
'goPackage': (string);
'ccGenericServices': (boolean);
'javaGenericServices': (boolean);
'pyGenericServices': (boolean);
/**
* @deprecated
*/
'javaGenerateEqualsAndHash': (boolean);
'deprecated': (boolean);
'javaStringCheckUtf8': (boolean);
'ccEnableArenas': (boolean);
'objcClassPrefix': (string);
'csharpNamespace': (string);
'swiftPrefix': (string);
'phpClassPrefix': (string);
'phpNamespace': (string);
'phpMetadataNamespace': (string);
'rubyPackage': (string);
'features': (_google_protobuf_FeatureSet__Output | null);
'uninterpretedOption': (_google_protobuf_UninterpretedOption__Output)[];
}

View File

@@ -0,0 +1,10 @@
// Original file: null
export interface FloatValue {
'value'?: (number | string);
}
export interface FloatValue__Output {
'value': (number);
}

View File

@@ -0,0 +1,44 @@
// Original file: null
export interface _google_protobuf_GeneratedCodeInfo_Annotation {
'path'?: (number)[];
'sourceFile'?: (string);
'begin'?: (number);
'end'?: (number);
'semantic'?: (_google_protobuf_GeneratedCodeInfo_Annotation_Semantic);
}
export interface _google_protobuf_GeneratedCodeInfo_Annotation__Output {
'path': (number)[];
'sourceFile': (string);
'begin': (number);
'end': (number);
'semantic': (_google_protobuf_GeneratedCodeInfo_Annotation_Semantic__Output);
}
// Original file: null
export const _google_protobuf_GeneratedCodeInfo_Annotation_Semantic = {
NONE: 'NONE',
SET: 'SET',
ALIAS: 'ALIAS',
} as const;
export type _google_protobuf_GeneratedCodeInfo_Annotation_Semantic =
| 'NONE'
| 0
| 'SET'
| 1
| 'ALIAS'
| 2
export type _google_protobuf_GeneratedCodeInfo_Annotation_Semantic__Output = typeof _google_protobuf_GeneratedCodeInfo_Annotation_Semantic[keyof typeof _google_protobuf_GeneratedCodeInfo_Annotation_Semantic]
export interface GeneratedCodeInfo {
'annotation'?: (_google_protobuf_GeneratedCodeInfo_Annotation)[];
}
export interface GeneratedCodeInfo__Output {
'annotation': (_google_protobuf_GeneratedCodeInfo_Annotation__Output)[];
}

View File

@@ -0,0 +1,10 @@
// Original file: null
export interface Int32Value {
'value'?: (number);
}
export interface Int32Value__Output {
'value': (number);
}

View File

@@ -0,0 +1,11 @@
// Original file: null
import type { Long } from '@grpc/proto-loader';
export interface Int64Value {
'value'?: (number | string | Long);
}
export interface Int64Value__Output {
'value': (string);
}

View File

@@ -0,0 +1,32 @@
// Original file: null
import type { FeatureSet as _google_protobuf_FeatureSet, FeatureSet__Output as _google_protobuf_FeatureSet__Output } from '../../google/protobuf/FeatureSet';
import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption';
export interface MessageOptions {
'messageSetWireFormat'?: (boolean);
'noStandardDescriptorAccessor'?: (boolean);
'deprecated'?: (boolean);
'mapEntry'?: (boolean);
/**
* @deprecated
*/
'deprecatedLegacyJsonFieldConflicts'?: (boolean);
'features'?: (_google_protobuf_FeatureSet | null);
'uninterpretedOption'?: (_google_protobuf_UninterpretedOption)[];
'.validate.disabled'?: (boolean);
}
export interface MessageOptions__Output {
'messageSetWireFormat': (boolean);
'noStandardDescriptorAccessor': (boolean);
'deprecated': (boolean);
'mapEntry': (boolean);
/**
* @deprecated
*/
'deprecatedLegacyJsonFieldConflicts': (boolean);
'features': (_google_protobuf_FeatureSet__Output | null);
'uninterpretedOption': (_google_protobuf_UninterpretedOption__Output)[];
'.validate.disabled': (boolean);
}

View File

@@ -0,0 +1,21 @@
// Original file: null
import type { MethodOptions as _google_protobuf_MethodOptions, MethodOptions__Output as _google_protobuf_MethodOptions__Output } from '../../google/protobuf/MethodOptions';
export interface MethodDescriptorProto {
'name'?: (string);
'inputType'?: (string);
'outputType'?: (string);
'options'?: (_google_protobuf_MethodOptions | null);
'clientStreaming'?: (boolean);
'serverStreaming'?: (boolean);
}
export interface MethodDescriptorProto__Output {
'name': (string);
'inputType': (string);
'outputType': (string);
'options': (_google_protobuf_MethodOptions__Output | null);
'clientStreaming': (boolean);
'serverStreaming': (boolean);
}

View File

@@ -0,0 +1,36 @@
// Original file: null
import type { FeatureSet as _google_protobuf_FeatureSet, FeatureSet__Output as _google_protobuf_FeatureSet__Output } from '../../google/protobuf/FeatureSet';
import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption';
// Original file: null
export const _google_protobuf_MethodOptions_IdempotencyLevel = {
IDEMPOTENCY_UNKNOWN: 'IDEMPOTENCY_UNKNOWN',
NO_SIDE_EFFECTS: 'NO_SIDE_EFFECTS',
IDEMPOTENT: 'IDEMPOTENT',
} as const;
export type _google_protobuf_MethodOptions_IdempotencyLevel =
| 'IDEMPOTENCY_UNKNOWN'
| 0
| 'NO_SIDE_EFFECTS'
| 1
| 'IDEMPOTENT'
| 2
export type _google_protobuf_MethodOptions_IdempotencyLevel__Output = typeof _google_protobuf_MethodOptions_IdempotencyLevel[keyof typeof _google_protobuf_MethodOptions_IdempotencyLevel]
export interface MethodOptions {
'deprecated'?: (boolean);
'idempotencyLevel'?: (_google_protobuf_MethodOptions_IdempotencyLevel);
'features'?: (_google_protobuf_FeatureSet | null);
'uninterpretedOption'?: (_google_protobuf_UninterpretedOption)[];
}
export interface MethodOptions__Output {
'deprecated': (boolean);
'idempotencyLevel': (_google_protobuf_MethodOptions_IdempotencyLevel__Output);
'features': (_google_protobuf_FeatureSet__Output | null);
'uninterpretedOption': (_google_protobuf_UninterpretedOption__Output)[];
}

View File

@@ -0,0 +1,13 @@
// Original file: null
import type { OneofOptions as _google_protobuf_OneofOptions, OneofOptions__Output as _google_protobuf_OneofOptions__Output } from '../../google/protobuf/OneofOptions';
export interface OneofDescriptorProto {
'name'?: (string);
'options'?: (_google_protobuf_OneofOptions | null);
}
export interface OneofDescriptorProto__Output {
'name': (string);
'options': (_google_protobuf_OneofOptions__Output | null);
}

View File

@@ -0,0 +1,16 @@
// Original file: null
import type { FeatureSet as _google_protobuf_FeatureSet, FeatureSet__Output as _google_protobuf_FeatureSet__Output } from '../../google/protobuf/FeatureSet';
import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption';
export interface OneofOptions {
'features'?: (_google_protobuf_FeatureSet | null);
'uninterpretedOption'?: (_google_protobuf_UninterpretedOption)[];
'.validate.required'?: (boolean);
}
export interface OneofOptions__Output {
'features': (_google_protobuf_FeatureSet__Output | null);
'uninterpretedOption': (_google_protobuf_UninterpretedOption__Output)[];
'.validate.required': (boolean);
}

View File

@@ -0,0 +1,16 @@
// Original file: null
import type { MethodDescriptorProto as _google_protobuf_MethodDescriptorProto, MethodDescriptorProto__Output as _google_protobuf_MethodDescriptorProto__Output } from '../../google/protobuf/MethodDescriptorProto';
import type { ServiceOptions as _google_protobuf_ServiceOptions, ServiceOptions__Output as _google_protobuf_ServiceOptions__Output } from '../../google/protobuf/ServiceOptions';
export interface ServiceDescriptorProto {
'name'?: (string);
'method'?: (_google_protobuf_MethodDescriptorProto)[];
'options'?: (_google_protobuf_ServiceOptions | null);
}
export interface ServiceDescriptorProto__Output {
'name': (string);
'method': (_google_protobuf_MethodDescriptorProto__Output)[];
'options': (_google_protobuf_ServiceOptions__Output | null);
}

View File

@@ -0,0 +1,16 @@
// Original file: null
import type { FeatureSet as _google_protobuf_FeatureSet, FeatureSet__Output as _google_protobuf_FeatureSet__Output } from '../../google/protobuf/FeatureSet';
import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption';
export interface ServiceOptions {
'deprecated'?: (boolean);
'features'?: (_google_protobuf_FeatureSet | null);
'uninterpretedOption'?: (_google_protobuf_UninterpretedOption)[];
}
export interface ServiceOptions__Output {
'deprecated': (boolean);
'features': (_google_protobuf_FeatureSet__Output | null);
'uninterpretedOption': (_google_protobuf_UninterpretedOption__Output)[];
}

View File

@@ -0,0 +1,26 @@
// Original file: null
export interface _google_protobuf_SourceCodeInfo_Location {
'path'?: (number)[];
'span'?: (number)[];
'leadingComments'?: (string);
'trailingComments'?: (string);
'leadingDetachedComments'?: (string)[];
}
export interface _google_protobuf_SourceCodeInfo_Location__Output {
'path': (number)[];
'span': (number)[];
'leadingComments': (string);
'trailingComments': (string);
'leadingDetachedComments': (string)[];
}
export interface SourceCodeInfo {
'location'?: (_google_protobuf_SourceCodeInfo_Location)[];
}
export interface SourceCodeInfo__Output {
'location': (_google_protobuf_SourceCodeInfo_Location__Output)[];
}

View File

@@ -0,0 +1,10 @@
// Original file: null
export interface StringValue {
'value'?: (string);
}
export interface StringValue__Output {
'value': (string);
}

View File

@@ -0,0 +1,17 @@
// Original file: null
export const SymbolVisibility = {
VISIBILITY_UNSET: 'VISIBILITY_UNSET',
VISIBILITY_LOCAL: 'VISIBILITY_LOCAL',
VISIBILITY_EXPORT: 'VISIBILITY_EXPORT',
} as const;
export type SymbolVisibility =
| 'VISIBILITY_UNSET'
| 0
| 'VISIBILITY_LOCAL'
| 1
| 'VISIBILITY_EXPORT'
| 2
export type SymbolVisibility__Output = typeof SymbolVisibility[keyof typeof SymbolVisibility]

View File

@@ -0,0 +1,13 @@
// Original file: null
import type { Long } from '@grpc/proto-loader';
export interface Timestamp {
'seconds'?: (number | string | Long);
'nanos'?: (number);
}
export interface Timestamp__Output {
'seconds': (string);
'nanos': (number);
}

View File

@@ -0,0 +1,10 @@
// Original file: null
export interface UInt32Value {
'value'?: (number);
}
export interface UInt32Value__Output {
'value': (number);
}

View File

@@ -0,0 +1,11 @@
// Original file: null
import type { Long } from '@grpc/proto-loader';
export interface UInt64Value {
'value'?: (number | string | Long);
}
export interface UInt64Value__Output {
'value': (string);
}

View File

@@ -0,0 +1,33 @@
// Original file: null
import type { Long } from '@grpc/proto-loader';
export interface _google_protobuf_UninterpretedOption_NamePart {
'namePart'?: (string);
'isExtension'?: (boolean);
}
export interface _google_protobuf_UninterpretedOption_NamePart__Output {
'namePart': (string);
'isExtension': (boolean);
}
export interface UninterpretedOption {
'name'?: (_google_protobuf_UninterpretedOption_NamePart)[];
'identifierValue'?: (string);
'positiveIntValue'?: (number | string | Long);
'negativeIntValue'?: (number | string | Long);
'doubleValue'?: (number | string);
'stringValue'?: (Buffer | Uint8Array | string);
'aggregateValue'?: (string);
}
export interface UninterpretedOption__Output {
'name': (_google_protobuf_UninterpretedOption_NamePart__Output)[];
'identifierValue': (string);
'positiveIntValue': (string);
'negativeIntValue': (string);
'doubleValue': (number);
'stringValue': (Buffer);
'aggregateValue': (string);
}

View File

@@ -0,0 +1,89 @@
// Original file: proto/channelz.proto
import type { Any as _google_protobuf_Any, Any__Output as _google_protobuf_Any__Output } from '../../../google/protobuf/Any';
/**
* An address type not included above.
*/
export interface _grpc_channelz_v1_Address_OtherAddress {
/**
* The human readable version of the value. This value should be set.
*/
'name'?: (string);
/**
* The actual address message.
*/
'value'?: (_google_protobuf_Any | null);
}
/**
* An address type not included above.
*/
export interface _grpc_channelz_v1_Address_OtherAddress__Output {
/**
* The human readable version of the value. This value should be set.
*/
'name': (string);
/**
* The actual address message.
*/
'value': (_google_protobuf_Any__Output | null);
}
export interface _grpc_channelz_v1_Address_TcpIpAddress {
/**
* Either the IPv4 or IPv6 address in bytes. Will be either 4 bytes or 16
* bytes in length.
*/
'ip_address'?: (Buffer | Uint8Array | string);
/**
* 0-64k, or -1 if not appropriate.
*/
'port'?: (number);
}
export interface _grpc_channelz_v1_Address_TcpIpAddress__Output {
/**
* Either the IPv4 or IPv6 address in bytes. Will be either 4 bytes or 16
* bytes in length.
*/
'ip_address': (Buffer);
/**
* 0-64k, or -1 if not appropriate.
*/
'port': (number);
}
/**
* A Unix Domain Socket address.
*/
export interface _grpc_channelz_v1_Address_UdsAddress {
'filename'?: (string);
}
/**
* A Unix Domain Socket address.
*/
export interface _grpc_channelz_v1_Address_UdsAddress__Output {
'filename': (string);
}
/**
* Address represents the address used to create the socket.
*/
export interface Address {
'tcpip_address'?: (_grpc_channelz_v1_Address_TcpIpAddress | null);
'uds_address'?: (_grpc_channelz_v1_Address_UdsAddress | null);
'other_address'?: (_grpc_channelz_v1_Address_OtherAddress | null);
'address'?: "tcpip_address"|"uds_address"|"other_address";
}
/**
* Address represents the address used to create the socket.
*/
export interface Address__Output {
'tcpip_address'?: (_grpc_channelz_v1_Address_TcpIpAddress__Output | null);
'uds_address'?: (_grpc_channelz_v1_Address_UdsAddress__Output | null);
'other_address'?: (_grpc_channelz_v1_Address_OtherAddress__Output | null);
'address'?: "tcpip_address"|"uds_address"|"other_address";
}

View File

@@ -0,0 +1,68 @@
// Original file: proto/channelz.proto
import type { ChannelRef as _grpc_channelz_v1_ChannelRef, ChannelRef__Output as _grpc_channelz_v1_ChannelRef__Output } from '../../../grpc/channelz/v1/ChannelRef';
import type { ChannelData as _grpc_channelz_v1_ChannelData, ChannelData__Output as _grpc_channelz_v1_ChannelData__Output } from '../../../grpc/channelz/v1/ChannelData';
import type { SubchannelRef as _grpc_channelz_v1_SubchannelRef, SubchannelRef__Output as _grpc_channelz_v1_SubchannelRef__Output } from '../../../grpc/channelz/v1/SubchannelRef';
import type { SocketRef as _grpc_channelz_v1_SocketRef, SocketRef__Output as _grpc_channelz_v1_SocketRef__Output } from '../../../grpc/channelz/v1/SocketRef';
/**
* Channel is a logical grouping of channels, subchannels, and sockets.
*/
export interface Channel {
/**
* The identifier for this channel. This should bet set.
*/
'ref'?: (_grpc_channelz_v1_ChannelRef | null);
/**
* Data specific to this channel.
*/
'data'?: (_grpc_channelz_v1_ChannelData | null);
/**
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*/
'channel_ref'?: (_grpc_channelz_v1_ChannelRef)[];
/**
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*/
'subchannel_ref'?: (_grpc_channelz_v1_SubchannelRef)[];
/**
* There are no ordering guarantees on the order of sockets.
*/
'socket_ref'?: (_grpc_channelz_v1_SocketRef)[];
}
/**
* Channel is a logical grouping of channels, subchannels, and sockets.
*/
export interface Channel__Output {
/**
* The identifier for this channel. This should bet set.
*/
'ref': (_grpc_channelz_v1_ChannelRef__Output | null);
/**
* Data specific to this channel.
*/
'data': (_grpc_channelz_v1_ChannelData__Output | null);
/**
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*/
'channel_ref': (_grpc_channelz_v1_ChannelRef__Output)[];
/**
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*/
'subchannel_ref': (_grpc_channelz_v1_SubchannelRef__Output)[];
/**
* There are no ordering guarantees on the order of sockets.
*/
'socket_ref': (_grpc_channelz_v1_SocketRef__Output)[];
}

View File

@@ -0,0 +1,45 @@
// Original file: proto/channelz.proto
// Original file: proto/channelz.proto
export const _grpc_channelz_v1_ChannelConnectivityState_State = {
UNKNOWN: 'UNKNOWN',
IDLE: 'IDLE',
CONNECTING: 'CONNECTING',
READY: 'READY',
TRANSIENT_FAILURE: 'TRANSIENT_FAILURE',
SHUTDOWN: 'SHUTDOWN',
} as const;
export type _grpc_channelz_v1_ChannelConnectivityState_State =
| 'UNKNOWN'
| 0
| 'IDLE'
| 1
| 'CONNECTING'
| 2
| 'READY'
| 3
| 'TRANSIENT_FAILURE'
| 4
| 'SHUTDOWN'
| 5
export type _grpc_channelz_v1_ChannelConnectivityState_State__Output = typeof _grpc_channelz_v1_ChannelConnectivityState_State[keyof typeof _grpc_channelz_v1_ChannelConnectivityState_State]
/**
* These come from the specified states in this document:
* https://github.com/grpc/grpc/blob/master/doc/connectivity-semantics-and-api.md
*/
export interface ChannelConnectivityState {
'state'?: (_grpc_channelz_v1_ChannelConnectivityState_State);
}
/**
* These come from the specified states in this document:
* https://github.com/grpc/grpc/blob/master/doc/connectivity-semantics-and-api.md
*/
export interface ChannelConnectivityState__Output {
'state': (_grpc_channelz_v1_ChannelConnectivityState_State__Output);
}

View File

@@ -0,0 +1,76 @@
// Original file: proto/channelz.proto
import type { ChannelConnectivityState as _grpc_channelz_v1_ChannelConnectivityState, ChannelConnectivityState__Output as _grpc_channelz_v1_ChannelConnectivityState__Output } from '../../../grpc/channelz/v1/ChannelConnectivityState';
import type { ChannelTrace as _grpc_channelz_v1_ChannelTrace, ChannelTrace__Output as _grpc_channelz_v1_ChannelTrace__Output } from '../../../grpc/channelz/v1/ChannelTrace';
import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../google/protobuf/Timestamp';
import type { Long } from '@grpc/proto-loader';
/**
* Channel data is data related to a specific Channel or Subchannel.
*/
export interface ChannelData {
/**
* The connectivity state of the channel or subchannel. Implementations
* should always set this.
*/
'state'?: (_grpc_channelz_v1_ChannelConnectivityState | null);
/**
* The target this channel originally tried to connect to. May be absent
*/
'target'?: (string);
/**
* A trace of recent events on the channel. May be absent.
*/
'trace'?: (_grpc_channelz_v1_ChannelTrace | null);
/**
* The number of calls started on the channel
*/
'calls_started'?: (number | string | Long);
/**
* The number of calls that have completed with an OK status
*/
'calls_succeeded'?: (number | string | Long);
/**
* The number of calls that have completed with a non-OK status
*/
'calls_failed'?: (number | string | Long);
/**
* The last time a call was started on the channel.
*/
'last_call_started_timestamp'?: (_google_protobuf_Timestamp | null);
}
/**
* Channel data is data related to a specific Channel or Subchannel.
*/
export interface ChannelData__Output {
/**
* The connectivity state of the channel or subchannel. Implementations
* should always set this.
*/
'state': (_grpc_channelz_v1_ChannelConnectivityState__Output | null);
/**
* The target this channel originally tried to connect to. May be absent
*/
'target': (string);
/**
* A trace of recent events on the channel. May be absent.
*/
'trace': (_grpc_channelz_v1_ChannelTrace__Output | null);
/**
* The number of calls started on the channel
*/
'calls_started': (string);
/**
* The number of calls that have completed with an OK status
*/
'calls_succeeded': (string);
/**
* The number of calls that have completed with a non-OK status
*/
'calls_failed': (string);
/**
* The last time a call was started on the channel.
*/
'last_call_started_timestamp': (_google_protobuf_Timestamp__Output | null);
}

View File

@@ -0,0 +1,31 @@
// Original file: proto/channelz.proto
import type { Long } from '@grpc/proto-loader';
/**
* ChannelRef is a reference to a Channel.
*/
export interface ChannelRef {
/**
* The globally unique id for this channel. Must be a positive number.
*/
'channel_id'?: (number | string | Long);
/**
* An optional name associated with the channel.
*/
'name'?: (string);
}
/**
* ChannelRef is a reference to a Channel.
*/
export interface ChannelRef__Output {
/**
* The globally unique id for this channel. Must be a positive number.
*/
'channel_id': (string);
/**
* An optional name associated with the channel.
*/
'name': (string);
}

View File

@@ -0,0 +1,45 @@
// Original file: proto/channelz.proto
import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../google/protobuf/Timestamp';
import type { ChannelTraceEvent as _grpc_channelz_v1_ChannelTraceEvent, ChannelTraceEvent__Output as _grpc_channelz_v1_ChannelTraceEvent__Output } from '../../../grpc/channelz/v1/ChannelTraceEvent';
import type { Long } from '@grpc/proto-loader';
/**
* ChannelTrace represents the recent events that have occurred on the channel.
*/
export interface ChannelTrace {
/**
* Number of events ever logged in this tracing object. This can differ from
* events.size() because events can be overwritten or garbage collected by
* implementations.
*/
'num_events_logged'?: (number | string | Long);
/**
* Time that this channel was created.
*/
'creation_timestamp'?: (_google_protobuf_Timestamp | null);
/**
* List of events that have occurred on this channel.
*/
'events'?: (_grpc_channelz_v1_ChannelTraceEvent)[];
}
/**
* ChannelTrace represents the recent events that have occurred on the channel.
*/
export interface ChannelTrace__Output {
/**
* Number of events ever logged in this tracing object. This can differ from
* events.size() because events can be overwritten or garbage collected by
* implementations.
*/
'num_events_logged': (string);
/**
* Time that this channel was created.
*/
'creation_timestamp': (_google_protobuf_Timestamp__Output | null);
/**
* List of events that have occurred on this channel.
*/
'events': (_grpc_channelz_v1_ChannelTraceEvent__Output)[];
}

View File

@@ -0,0 +1,91 @@
// Original file: proto/channelz.proto
import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../google/protobuf/Timestamp';
import type { ChannelRef as _grpc_channelz_v1_ChannelRef, ChannelRef__Output as _grpc_channelz_v1_ChannelRef__Output } from '../../../grpc/channelz/v1/ChannelRef';
import type { SubchannelRef as _grpc_channelz_v1_SubchannelRef, SubchannelRef__Output as _grpc_channelz_v1_SubchannelRef__Output } from '../../../grpc/channelz/v1/SubchannelRef';
// Original file: proto/channelz.proto
/**
* The supported severity levels of trace events.
*/
export const _grpc_channelz_v1_ChannelTraceEvent_Severity = {
CT_UNKNOWN: 'CT_UNKNOWN',
CT_INFO: 'CT_INFO',
CT_WARNING: 'CT_WARNING',
CT_ERROR: 'CT_ERROR',
} as const;
/**
* The supported severity levels of trace events.
*/
export type _grpc_channelz_v1_ChannelTraceEvent_Severity =
| 'CT_UNKNOWN'
| 0
| 'CT_INFO'
| 1
| 'CT_WARNING'
| 2
| 'CT_ERROR'
| 3
/**
* The supported severity levels of trace events.
*/
export type _grpc_channelz_v1_ChannelTraceEvent_Severity__Output = typeof _grpc_channelz_v1_ChannelTraceEvent_Severity[keyof typeof _grpc_channelz_v1_ChannelTraceEvent_Severity]
/**
* A trace event is an interesting thing that happened to a channel or
* subchannel, such as creation, address resolution, subchannel creation, etc.
*/
export interface ChannelTraceEvent {
/**
* High level description of the event.
*/
'description'?: (string);
/**
* the severity of the trace event
*/
'severity'?: (_grpc_channelz_v1_ChannelTraceEvent_Severity);
/**
* When this event occurred.
*/
'timestamp'?: (_google_protobuf_Timestamp | null);
'channel_ref'?: (_grpc_channelz_v1_ChannelRef | null);
'subchannel_ref'?: (_grpc_channelz_v1_SubchannelRef | null);
/**
* ref of referenced channel or subchannel.
* Optional, only present if this event refers to a child object. For example,
* this field would be filled if this trace event was for a subchannel being
* created.
*/
'child_ref'?: "channel_ref"|"subchannel_ref";
}
/**
* A trace event is an interesting thing that happened to a channel or
* subchannel, such as creation, address resolution, subchannel creation, etc.
*/
export interface ChannelTraceEvent__Output {
/**
* High level description of the event.
*/
'description': (string);
/**
* the severity of the trace event
*/
'severity': (_grpc_channelz_v1_ChannelTraceEvent_Severity__Output);
/**
* When this event occurred.
*/
'timestamp': (_google_protobuf_Timestamp__Output | null);
'channel_ref'?: (_grpc_channelz_v1_ChannelRef__Output | null);
'subchannel_ref'?: (_grpc_channelz_v1_SubchannelRef__Output | null);
/**
* ref of referenced channel or subchannel.
* Optional, only present if this event refers to a child object. For example,
* this field would be filled if this trace event was for a subchannel being
* created.
*/
'child_ref'?: "channel_ref"|"subchannel_ref";
}

View File

@@ -0,0 +1,178 @@
// Original file: proto/channelz.proto
import type * as grpc from '../../../../index'
import type { MethodDefinition } from '@grpc/proto-loader'
import type { GetChannelRequest as _grpc_channelz_v1_GetChannelRequest, GetChannelRequest__Output as _grpc_channelz_v1_GetChannelRequest__Output } from '../../../grpc/channelz/v1/GetChannelRequest';
import type { GetChannelResponse as _grpc_channelz_v1_GetChannelResponse, GetChannelResponse__Output as _grpc_channelz_v1_GetChannelResponse__Output } from '../../../grpc/channelz/v1/GetChannelResponse';
import type { GetServerRequest as _grpc_channelz_v1_GetServerRequest, GetServerRequest__Output as _grpc_channelz_v1_GetServerRequest__Output } from '../../../grpc/channelz/v1/GetServerRequest';
import type { GetServerResponse as _grpc_channelz_v1_GetServerResponse, GetServerResponse__Output as _grpc_channelz_v1_GetServerResponse__Output } from '../../../grpc/channelz/v1/GetServerResponse';
import type { GetServerSocketsRequest as _grpc_channelz_v1_GetServerSocketsRequest, GetServerSocketsRequest__Output as _grpc_channelz_v1_GetServerSocketsRequest__Output } from '../../../grpc/channelz/v1/GetServerSocketsRequest';
import type { GetServerSocketsResponse as _grpc_channelz_v1_GetServerSocketsResponse, GetServerSocketsResponse__Output as _grpc_channelz_v1_GetServerSocketsResponse__Output } from '../../../grpc/channelz/v1/GetServerSocketsResponse';
import type { GetServersRequest as _grpc_channelz_v1_GetServersRequest, GetServersRequest__Output as _grpc_channelz_v1_GetServersRequest__Output } from '../../../grpc/channelz/v1/GetServersRequest';
import type { GetServersResponse as _grpc_channelz_v1_GetServersResponse, GetServersResponse__Output as _grpc_channelz_v1_GetServersResponse__Output } from '../../../grpc/channelz/v1/GetServersResponse';
import type { GetSocketRequest as _grpc_channelz_v1_GetSocketRequest, GetSocketRequest__Output as _grpc_channelz_v1_GetSocketRequest__Output } from '../../../grpc/channelz/v1/GetSocketRequest';
import type { GetSocketResponse as _grpc_channelz_v1_GetSocketResponse, GetSocketResponse__Output as _grpc_channelz_v1_GetSocketResponse__Output } from '../../../grpc/channelz/v1/GetSocketResponse';
import type { GetSubchannelRequest as _grpc_channelz_v1_GetSubchannelRequest, GetSubchannelRequest__Output as _grpc_channelz_v1_GetSubchannelRequest__Output } from '../../../grpc/channelz/v1/GetSubchannelRequest';
import type { GetSubchannelResponse as _grpc_channelz_v1_GetSubchannelResponse, GetSubchannelResponse__Output as _grpc_channelz_v1_GetSubchannelResponse__Output } from '../../../grpc/channelz/v1/GetSubchannelResponse';
import type { GetTopChannelsRequest as _grpc_channelz_v1_GetTopChannelsRequest, GetTopChannelsRequest__Output as _grpc_channelz_v1_GetTopChannelsRequest__Output } from '../../../grpc/channelz/v1/GetTopChannelsRequest';
import type { GetTopChannelsResponse as _grpc_channelz_v1_GetTopChannelsResponse, GetTopChannelsResponse__Output as _grpc_channelz_v1_GetTopChannelsResponse__Output } from '../../../grpc/channelz/v1/GetTopChannelsResponse';
/**
* Channelz is a service exposed by gRPC servers that provides detailed debug
* information.
*/
export interface ChannelzClient extends grpc.Client {
/**
* Returns a single Channel, or else a NOT_FOUND code.
*/
GetChannel(argument: _grpc_channelz_v1_GetChannelRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetChannelResponse__Output>): grpc.ClientUnaryCall;
GetChannel(argument: _grpc_channelz_v1_GetChannelRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetChannelResponse__Output>): grpc.ClientUnaryCall;
GetChannel(argument: _grpc_channelz_v1_GetChannelRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetChannelResponse__Output>): grpc.ClientUnaryCall;
GetChannel(argument: _grpc_channelz_v1_GetChannelRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetChannelResponse__Output>): grpc.ClientUnaryCall;
/**
* Returns a single Server, or else a NOT_FOUND code.
*/
GetServer(argument: _grpc_channelz_v1_GetServerRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerResponse__Output>): grpc.ClientUnaryCall;
GetServer(argument: _grpc_channelz_v1_GetServerRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerResponse__Output>): grpc.ClientUnaryCall;
GetServer(argument: _grpc_channelz_v1_GetServerRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerResponse__Output>): grpc.ClientUnaryCall;
GetServer(argument: _grpc_channelz_v1_GetServerRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerResponse__Output>): grpc.ClientUnaryCall;
/**
* Returns a single Server, or else a NOT_FOUND code.
*/
getServer(argument: _grpc_channelz_v1_GetServerRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerResponse__Output>): grpc.ClientUnaryCall;
getServer(argument: _grpc_channelz_v1_GetServerRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerResponse__Output>): grpc.ClientUnaryCall;
getServer(argument: _grpc_channelz_v1_GetServerRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerResponse__Output>): grpc.ClientUnaryCall;
getServer(argument: _grpc_channelz_v1_GetServerRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerResponse__Output>): grpc.ClientUnaryCall;
/**
* Gets all server sockets that exist in the process.
*/
GetServerSockets(argument: _grpc_channelz_v1_GetServerSocketsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerSocketsResponse__Output>): grpc.ClientUnaryCall;
GetServerSockets(argument: _grpc_channelz_v1_GetServerSocketsRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerSocketsResponse__Output>): grpc.ClientUnaryCall;
GetServerSockets(argument: _grpc_channelz_v1_GetServerSocketsRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerSocketsResponse__Output>): grpc.ClientUnaryCall;
GetServerSockets(argument: _grpc_channelz_v1_GetServerSocketsRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerSocketsResponse__Output>): grpc.ClientUnaryCall;
/**
* Gets all server sockets that exist in the process.
*/
getServerSockets(argument: _grpc_channelz_v1_GetServerSocketsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerSocketsResponse__Output>): grpc.ClientUnaryCall;
getServerSockets(argument: _grpc_channelz_v1_GetServerSocketsRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerSocketsResponse__Output>): grpc.ClientUnaryCall;
getServerSockets(argument: _grpc_channelz_v1_GetServerSocketsRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerSocketsResponse__Output>): grpc.ClientUnaryCall;
getServerSockets(argument: _grpc_channelz_v1_GetServerSocketsRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerSocketsResponse__Output>): grpc.ClientUnaryCall;
/**
* Gets all servers that exist in the process.
*/
GetServers(argument: _grpc_channelz_v1_GetServersRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServersResponse__Output>): grpc.ClientUnaryCall;
GetServers(argument: _grpc_channelz_v1_GetServersRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetServersResponse__Output>): grpc.ClientUnaryCall;
GetServers(argument: _grpc_channelz_v1_GetServersRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServersResponse__Output>): grpc.ClientUnaryCall;
GetServers(argument: _grpc_channelz_v1_GetServersRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetServersResponse__Output>): grpc.ClientUnaryCall;
/**
* Gets all servers that exist in the process.
*/
getServers(argument: _grpc_channelz_v1_GetServersRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServersResponse__Output>): grpc.ClientUnaryCall;
getServers(argument: _grpc_channelz_v1_GetServersRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetServersResponse__Output>): grpc.ClientUnaryCall;
getServers(argument: _grpc_channelz_v1_GetServersRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServersResponse__Output>): grpc.ClientUnaryCall;
getServers(argument: _grpc_channelz_v1_GetServersRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetServersResponse__Output>): grpc.ClientUnaryCall;
/**
* Returns a single Socket or else a NOT_FOUND code.
*/
GetSocket(argument: _grpc_channelz_v1_GetSocketRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetSocketResponse__Output>): grpc.ClientUnaryCall;
GetSocket(argument: _grpc_channelz_v1_GetSocketRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetSocketResponse__Output>): grpc.ClientUnaryCall;
GetSocket(argument: _grpc_channelz_v1_GetSocketRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetSocketResponse__Output>): grpc.ClientUnaryCall;
GetSocket(argument: _grpc_channelz_v1_GetSocketRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetSocketResponse__Output>): grpc.ClientUnaryCall;
/**
* Returns a single Socket or else a NOT_FOUND code.
*/
getSocket(argument: _grpc_channelz_v1_GetSocketRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetSocketResponse__Output>): grpc.ClientUnaryCall;
getSocket(argument: _grpc_channelz_v1_GetSocketRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetSocketResponse__Output>): grpc.ClientUnaryCall;
getSocket(argument: _grpc_channelz_v1_GetSocketRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetSocketResponse__Output>): grpc.ClientUnaryCall;
getSocket(argument: _grpc_channelz_v1_GetSocketRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetSocketResponse__Output>): grpc.ClientUnaryCall;
/**
* Returns a single Subchannel, or else a NOT_FOUND code.
*/
GetSubchannel(argument: _grpc_channelz_v1_GetSubchannelRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetSubchannelResponse__Output>): grpc.ClientUnaryCall;
GetSubchannel(argument: _grpc_channelz_v1_GetSubchannelRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetSubchannelResponse__Output>): grpc.ClientUnaryCall;
GetSubchannel(argument: _grpc_channelz_v1_GetSubchannelRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetSubchannelResponse__Output>): grpc.ClientUnaryCall;
GetSubchannel(argument: _grpc_channelz_v1_GetSubchannelRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetSubchannelResponse__Output>): grpc.ClientUnaryCall;
/**
* Returns a single Subchannel, or else a NOT_FOUND code.
*/
getSubchannel(argument: _grpc_channelz_v1_GetSubchannelRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetSubchannelResponse__Output>): grpc.ClientUnaryCall;
getSubchannel(argument: _grpc_channelz_v1_GetSubchannelRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetSubchannelResponse__Output>): grpc.ClientUnaryCall;
getSubchannel(argument: _grpc_channelz_v1_GetSubchannelRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetSubchannelResponse__Output>): grpc.ClientUnaryCall;
getSubchannel(argument: _grpc_channelz_v1_GetSubchannelRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetSubchannelResponse__Output>): grpc.ClientUnaryCall;
/**
* Gets all root channels (i.e. channels the application has directly
* created). This does not include subchannels nor non-top level channels.
*/
GetTopChannels(argument: _grpc_channelz_v1_GetTopChannelsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetTopChannelsResponse__Output>): grpc.ClientUnaryCall;
GetTopChannels(argument: _grpc_channelz_v1_GetTopChannelsRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetTopChannelsResponse__Output>): grpc.ClientUnaryCall;
GetTopChannels(argument: _grpc_channelz_v1_GetTopChannelsRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetTopChannelsResponse__Output>): grpc.ClientUnaryCall;
GetTopChannels(argument: _grpc_channelz_v1_GetTopChannelsRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetTopChannelsResponse__Output>): grpc.ClientUnaryCall;
/**
* Gets all root channels (i.e. channels the application has directly
* created). This does not include subchannels nor non-top level channels.
*/
getTopChannels(argument: _grpc_channelz_v1_GetTopChannelsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetTopChannelsResponse__Output>): grpc.ClientUnaryCall;
getTopChannels(argument: _grpc_channelz_v1_GetTopChannelsRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetTopChannelsResponse__Output>): grpc.ClientUnaryCall;
getTopChannels(argument: _grpc_channelz_v1_GetTopChannelsRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetTopChannelsResponse__Output>): grpc.ClientUnaryCall;
getTopChannels(argument: _grpc_channelz_v1_GetTopChannelsRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetTopChannelsResponse__Output>): grpc.ClientUnaryCall;
}
/**
* Channelz is a service exposed by gRPC servers that provides detailed debug
* information.
*/
export interface ChannelzHandlers extends grpc.UntypedServiceImplementation {
/**
* Returns a single Channel, or else a NOT_FOUND code.
*/
GetChannel: grpc.handleUnaryCall<_grpc_channelz_v1_GetChannelRequest__Output, _grpc_channelz_v1_GetChannelResponse>;
/**
* Returns a single Server, or else a NOT_FOUND code.
*/
GetServer: grpc.handleUnaryCall<_grpc_channelz_v1_GetServerRequest__Output, _grpc_channelz_v1_GetServerResponse>;
/**
* Gets all server sockets that exist in the process.
*/
GetServerSockets: grpc.handleUnaryCall<_grpc_channelz_v1_GetServerSocketsRequest__Output, _grpc_channelz_v1_GetServerSocketsResponse>;
/**
* Gets all servers that exist in the process.
*/
GetServers: grpc.handleUnaryCall<_grpc_channelz_v1_GetServersRequest__Output, _grpc_channelz_v1_GetServersResponse>;
/**
* Returns a single Socket or else a NOT_FOUND code.
*/
GetSocket: grpc.handleUnaryCall<_grpc_channelz_v1_GetSocketRequest__Output, _grpc_channelz_v1_GetSocketResponse>;
/**
* Returns a single Subchannel, or else a NOT_FOUND code.
*/
GetSubchannel: grpc.handleUnaryCall<_grpc_channelz_v1_GetSubchannelRequest__Output, _grpc_channelz_v1_GetSubchannelResponse>;
/**
* Gets all root channels (i.e. channels the application has directly
* created). This does not include subchannels nor non-top level channels.
*/
GetTopChannels: grpc.handleUnaryCall<_grpc_channelz_v1_GetTopChannelsRequest__Output, _grpc_channelz_v1_GetTopChannelsResponse>;
}
export interface ChannelzDefinition extends grpc.ServiceDefinition {
GetChannel: MethodDefinition<_grpc_channelz_v1_GetChannelRequest, _grpc_channelz_v1_GetChannelResponse, _grpc_channelz_v1_GetChannelRequest__Output, _grpc_channelz_v1_GetChannelResponse__Output>
GetServer: MethodDefinition<_grpc_channelz_v1_GetServerRequest, _grpc_channelz_v1_GetServerResponse, _grpc_channelz_v1_GetServerRequest__Output, _grpc_channelz_v1_GetServerResponse__Output>
GetServerSockets: MethodDefinition<_grpc_channelz_v1_GetServerSocketsRequest, _grpc_channelz_v1_GetServerSocketsResponse, _grpc_channelz_v1_GetServerSocketsRequest__Output, _grpc_channelz_v1_GetServerSocketsResponse__Output>
GetServers: MethodDefinition<_grpc_channelz_v1_GetServersRequest, _grpc_channelz_v1_GetServersResponse, _grpc_channelz_v1_GetServersRequest__Output, _grpc_channelz_v1_GetServersResponse__Output>
GetSocket: MethodDefinition<_grpc_channelz_v1_GetSocketRequest, _grpc_channelz_v1_GetSocketResponse, _grpc_channelz_v1_GetSocketRequest__Output, _grpc_channelz_v1_GetSocketResponse__Output>
GetSubchannel: MethodDefinition<_grpc_channelz_v1_GetSubchannelRequest, _grpc_channelz_v1_GetSubchannelResponse, _grpc_channelz_v1_GetSubchannelRequest__Output, _grpc_channelz_v1_GetSubchannelResponse__Output>
GetTopChannels: MethodDefinition<_grpc_channelz_v1_GetTopChannelsRequest, _grpc_channelz_v1_GetTopChannelsResponse, _grpc_channelz_v1_GetTopChannelsRequest__Output, _grpc_channelz_v1_GetTopChannelsResponse__Output>
}

View File

@@ -0,0 +1,17 @@
// Original file: proto/channelz.proto
import type { Long } from '@grpc/proto-loader';
export interface GetChannelRequest {
/**
* channel_id is the identifier of the specific channel to get.
*/
'channel_id'?: (number | string | Long);
}
export interface GetChannelRequest__Output {
/**
* channel_id is the identifier of the specific channel to get.
*/
'channel_id': (string);
}

View File

@@ -0,0 +1,19 @@
// Original file: proto/channelz.proto
import type { Channel as _grpc_channelz_v1_Channel, Channel__Output as _grpc_channelz_v1_Channel__Output } from '../../../grpc/channelz/v1/Channel';
export interface GetChannelResponse {
/**
* The Channel that corresponds to the requested channel_id. This field
* should be set.
*/
'channel'?: (_grpc_channelz_v1_Channel | null);
}
export interface GetChannelResponse__Output {
/**
* The Channel that corresponds to the requested channel_id. This field
* should be set.
*/
'channel': (_grpc_channelz_v1_Channel__Output | null);
}

View File

@@ -0,0 +1,17 @@
// Original file: proto/channelz.proto
import type { Long } from '@grpc/proto-loader';
export interface GetServerRequest {
/**
* server_id is the identifier of the specific server to get.
*/
'server_id'?: (number | string | Long);
}
export interface GetServerRequest__Output {
/**
* server_id is the identifier of the specific server to get.
*/
'server_id': (string);
}

View File

@@ -0,0 +1,19 @@
// Original file: proto/channelz.proto
import type { Server as _grpc_channelz_v1_Server, Server__Output as _grpc_channelz_v1_Server__Output } from '../../../grpc/channelz/v1/Server';
export interface GetServerResponse {
/**
* The Server that corresponds to the requested server_id. This field
* should be set.
*/
'server'?: (_grpc_channelz_v1_Server | null);
}
export interface GetServerResponse__Output {
/**
* The Server that corresponds to the requested server_id. This field
* should be set.
*/
'server': (_grpc_channelz_v1_Server__Output | null);
}

View File

@@ -0,0 +1,39 @@
// Original file: proto/channelz.proto
import type { Long } from '@grpc/proto-loader';
export interface GetServerSocketsRequest {
'server_id'?: (number | string | Long);
/**
* start_socket_id indicates that only sockets at or above this id should be
* included in the results.
* To request the first page, this must be set to 0. To request
* subsequent pages, the client generates this value by adding 1 to
* the highest seen result ID.
*/
'start_socket_id'?: (number | string | Long);
/**
* If non-zero, the server will return a page of results containing
* at most this many items. If zero, the server will choose a
* reasonable page size. Must never be negative.
*/
'max_results'?: (number | string | Long);
}
export interface GetServerSocketsRequest__Output {
'server_id': (string);
/**
* start_socket_id indicates that only sockets at or above this id should be
* included in the results.
* To request the first page, this must be set to 0. To request
* subsequent pages, the client generates this value by adding 1 to
* the highest seen result ID.
*/
'start_socket_id': (string);
/**
* If non-zero, the server will return a page of results containing
* at most this many items. If zero, the server will choose a
* reasonable page size. Must never be negative.
*/
'max_results': (string);
}

View File

@@ -0,0 +1,33 @@
// Original file: proto/channelz.proto
import type { SocketRef as _grpc_channelz_v1_SocketRef, SocketRef__Output as _grpc_channelz_v1_SocketRef__Output } from '../../../grpc/channelz/v1/SocketRef';
export interface GetServerSocketsResponse {
/**
* list of socket refs that the connection detail service knows about. Sorted in
* ascending socket_id order.
* Must contain at least 1 result, otherwise 'end' must be true.
*/
'socket_ref'?: (_grpc_channelz_v1_SocketRef)[];
/**
* If set, indicates that the list of sockets is the final list. Requesting
* more sockets will only return more if they are created after this RPC
* completes.
*/
'end'?: (boolean);
}
export interface GetServerSocketsResponse__Output {
/**
* list of socket refs that the connection detail service knows about. Sorted in
* ascending socket_id order.
* Must contain at least 1 result, otherwise 'end' must be true.
*/
'socket_ref': (_grpc_channelz_v1_SocketRef__Output)[];
/**
* If set, indicates that the list of sockets is the final list. Requesting
* more sockets will only return more if they are created after this RPC
* completes.
*/
'end': (boolean);
}

View File

@@ -0,0 +1,37 @@
// Original file: proto/channelz.proto
import type { Long } from '@grpc/proto-loader';
export interface GetServersRequest {
/**
* start_server_id indicates that only servers at or above this id should be
* included in the results.
* To request the first page, this must be set to 0. To request
* subsequent pages, the client generates this value by adding 1 to
* the highest seen result ID.
*/
'start_server_id'?: (number | string | Long);
/**
* If non-zero, the server will return a page of results containing
* at most this many items. If zero, the server will choose a
* reasonable page size. Must never be negative.
*/
'max_results'?: (number | string | Long);
}
export interface GetServersRequest__Output {
/**
* start_server_id indicates that only servers at or above this id should be
* included in the results.
* To request the first page, this must be set to 0. To request
* subsequent pages, the client generates this value by adding 1 to
* the highest seen result ID.
*/
'start_server_id': (string);
/**
* If non-zero, the server will return a page of results containing
* at most this many items. If zero, the server will choose a
* reasonable page size. Must never be negative.
*/
'max_results': (string);
}

View File

@@ -0,0 +1,33 @@
// Original file: proto/channelz.proto
import type { Server as _grpc_channelz_v1_Server, Server__Output as _grpc_channelz_v1_Server__Output } from '../../../grpc/channelz/v1/Server';
export interface GetServersResponse {
/**
* list of servers that the connection detail service knows about. Sorted in
* ascending server_id order.
* Must contain at least 1 result, otherwise 'end' must be true.
*/
'server'?: (_grpc_channelz_v1_Server)[];
/**
* If set, indicates that the list of servers is the final list. Requesting
* more servers will only return more if they are created after this RPC
* completes.
*/
'end'?: (boolean);
}
export interface GetServersResponse__Output {
/**
* list of servers that the connection detail service knows about. Sorted in
* ascending server_id order.
* Must contain at least 1 result, otherwise 'end' must be true.
*/
'server': (_grpc_channelz_v1_Server__Output)[];
/**
* If set, indicates that the list of servers is the final list. Requesting
* more servers will only return more if they are created after this RPC
* completes.
*/
'end': (boolean);
}

View File

@@ -0,0 +1,29 @@
// Original file: proto/channelz.proto
import type { Long } from '@grpc/proto-loader';
export interface GetSocketRequest {
/**
* socket_id is the identifier of the specific socket to get.
*/
'socket_id'?: (number | string | Long);
/**
* If true, the response will contain only high level information
* that is inexpensive to obtain. Fields thay may be omitted are
* documented.
*/
'summary'?: (boolean);
}
export interface GetSocketRequest__Output {
/**
* socket_id is the identifier of the specific socket to get.
*/
'socket_id': (string);
/**
* If true, the response will contain only high level information
* that is inexpensive to obtain. Fields thay may be omitted are
* documented.
*/
'summary': (boolean);
}

View File

@@ -0,0 +1,19 @@
// Original file: proto/channelz.proto
import type { Socket as _grpc_channelz_v1_Socket, Socket__Output as _grpc_channelz_v1_Socket__Output } from '../../../grpc/channelz/v1/Socket';
export interface GetSocketResponse {
/**
* The Socket that corresponds to the requested socket_id. This field
* should be set.
*/
'socket'?: (_grpc_channelz_v1_Socket | null);
}
export interface GetSocketResponse__Output {
/**
* The Socket that corresponds to the requested socket_id. This field
* should be set.
*/
'socket': (_grpc_channelz_v1_Socket__Output | null);
}

View File

@@ -0,0 +1,17 @@
// Original file: proto/channelz.proto
import type { Long } from '@grpc/proto-loader';
export interface GetSubchannelRequest {
/**
* subchannel_id is the identifier of the specific subchannel to get.
*/
'subchannel_id'?: (number | string | Long);
}
export interface GetSubchannelRequest__Output {
/**
* subchannel_id is the identifier of the specific subchannel to get.
*/
'subchannel_id': (string);
}

View File

@@ -0,0 +1,19 @@
// Original file: proto/channelz.proto
import type { Subchannel as _grpc_channelz_v1_Subchannel, Subchannel__Output as _grpc_channelz_v1_Subchannel__Output } from '../../../grpc/channelz/v1/Subchannel';
export interface GetSubchannelResponse {
/**
* The Subchannel that corresponds to the requested subchannel_id. This
* field should be set.
*/
'subchannel'?: (_grpc_channelz_v1_Subchannel | null);
}
export interface GetSubchannelResponse__Output {
/**
* The Subchannel that corresponds to the requested subchannel_id. This
* field should be set.
*/
'subchannel': (_grpc_channelz_v1_Subchannel__Output | null);
}

View File

@@ -0,0 +1,37 @@
// Original file: proto/channelz.proto
import type { Long } from '@grpc/proto-loader';
export interface GetTopChannelsRequest {
/**
* start_channel_id indicates that only channels at or above this id should be
* included in the results.
* To request the first page, this should be set to 0. To request
* subsequent pages, the client generates this value by adding 1 to
* the highest seen result ID.
*/
'start_channel_id'?: (number | string | Long);
/**
* If non-zero, the server will return a page of results containing
* at most this many items. If zero, the server will choose a
* reasonable page size. Must never be negative.
*/
'max_results'?: (number | string | Long);
}
export interface GetTopChannelsRequest__Output {
/**
* start_channel_id indicates that only channels at or above this id should be
* included in the results.
* To request the first page, this should be set to 0. To request
* subsequent pages, the client generates this value by adding 1 to
* the highest seen result ID.
*/
'start_channel_id': (string);
/**
* If non-zero, the server will return a page of results containing
* at most this many items. If zero, the server will choose a
* reasonable page size. Must never be negative.
*/
'max_results': (string);
}

View File

@@ -0,0 +1,33 @@
// Original file: proto/channelz.proto
import type { Channel as _grpc_channelz_v1_Channel, Channel__Output as _grpc_channelz_v1_Channel__Output } from '../../../grpc/channelz/v1/Channel';
export interface GetTopChannelsResponse {
/**
* list of channels that the connection detail service knows about. Sorted in
* ascending channel_id order.
* Must contain at least 1 result, otherwise 'end' must be true.
*/
'channel'?: (_grpc_channelz_v1_Channel)[];
/**
* If set, indicates that the list of channels is the final list. Requesting
* more channels can only return more if they are created after this RPC
* completes.
*/
'end'?: (boolean);
}
export interface GetTopChannelsResponse__Output {
/**
* list of channels that the connection detail service knows about. Sorted in
* ascending channel_id order.
* Must contain at least 1 result, otherwise 'end' must be true.
*/
'channel': (_grpc_channelz_v1_Channel__Output)[];
/**
* If set, indicates that the list of channels is the final list. Requesting
* more channels can only return more if they are created after this RPC
* completes.
*/
'end': (boolean);
}

View File

@@ -0,0 +1,87 @@
// Original file: proto/channelz.proto
import type { Any as _google_protobuf_Any, Any__Output as _google_protobuf_Any__Output } from '../../../google/protobuf/Any';
export interface _grpc_channelz_v1_Security_OtherSecurity {
/**
* The human readable version of the value.
*/
'name'?: (string);
/**
* The actual security details message.
*/
'value'?: (_google_protobuf_Any | null);
}
export interface _grpc_channelz_v1_Security_OtherSecurity__Output {
/**
* The human readable version of the value.
*/
'name': (string);
/**
* The actual security details message.
*/
'value': (_google_protobuf_Any__Output | null);
}
export interface _grpc_channelz_v1_Security_Tls {
/**
* The cipher suite name in the RFC 4346 format:
* https://tools.ietf.org/html/rfc4346#appendix-C
*/
'standard_name'?: (string);
/**
* Some other way to describe the cipher suite if
* the RFC 4346 name is not available.
*/
'other_name'?: (string);
/**
* the certificate used by this endpoint.
*/
'local_certificate'?: (Buffer | Uint8Array | string);
/**
* the certificate used by the remote endpoint.
*/
'remote_certificate'?: (Buffer | Uint8Array | string);
'cipher_suite'?: "standard_name"|"other_name";
}
export interface _grpc_channelz_v1_Security_Tls__Output {
/**
* The cipher suite name in the RFC 4346 format:
* https://tools.ietf.org/html/rfc4346#appendix-C
*/
'standard_name'?: (string);
/**
* Some other way to describe the cipher suite if
* the RFC 4346 name is not available.
*/
'other_name'?: (string);
/**
* the certificate used by this endpoint.
*/
'local_certificate': (Buffer);
/**
* the certificate used by the remote endpoint.
*/
'remote_certificate': (Buffer);
'cipher_suite'?: "standard_name"|"other_name";
}
/**
* Security represents details about how secure the socket is.
*/
export interface Security {
'tls'?: (_grpc_channelz_v1_Security_Tls | null);
'other'?: (_grpc_channelz_v1_Security_OtherSecurity | null);
'model'?: "tls"|"other";
}
/**
* Security represents details about how secure the socket is.
*/
export interface Security__Output {
'tls'?: (_grpc_channelz_v1_Security_Tls__Output | null);
'other'?: (_grpc_channelz_v1_Security_OtherSecurity__Output | null);
'model'?: "tls"|"other";
}

View File

@@ -0,0 +1,45 @@
// Original file: proto/channelz.proto
import type { ServerRef as _grpc_channelz_v1_ServerRef, ServerRef__Output as _grpc_channelz_v1_ServerRef__Output } from '../../../grpc/channelz/v1/ServerRef';
import type { ServerData as _grpc_channelz_v1_ServerData, ServerData__Output as _grpc_channelz_v1_ServerData__Output } from '../../../grpc/channelz/v1/ServerData';
import type { SocketRef as _grpc_channelz_v1_SocketRef, SocketRef__Output as _grpc_channelz_v1_SocketRef__Output } from '../../../grpc/channelz/v1/SocketRef';
/**
* Server represents a single server. There may be multiple servers in a single
* program.
*/
export interface Server {
/**
* The identifier for a Server. This should be set.
*/
'ref'?: (_grpc_channelz_v1_ServerRef | null);
/**
* The associated data of the Server.
*/
'data'?: (_grpc_channelz_v1_ServerData | null);
/**
* The sockets that the server is listening on. There are no ordering
* guarantees. This may be absent.
*/
'listen_socket'?: (_grpc_channelz_v1_SocketRef)[];
}
/**
* Server represents a single server. There may be multiple servers in a single
* program.
*/
export interface Server__Output {
/**
* The identifier for a Server. This should be set.
*/
'ref': (_grpc_channelz_v1_ServerRef__Output | null);
/**
* The associated data of the Server.
*/
'data': (_grpc_channelz_v1_ServerData__Output | null);
/**
* The sockets that the server is listening on. There are no ordering
* guarantees. This may be absent.
*/
'listen_socket': (_grpc_channelz_v1_SocketRef__Output)[];
}

View File

@@ -0,0 +1,57 @@
// Original file: proto/channelz.proto
import type { ChannelTrace as _grpc_channelz_v1_ChannelTrace, ChannelTrace__Output as _grpc_channelz_v1_ChannelTrace__Output } from '../../../grpc/channelz/v1/ChannelTrace';
import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../google/protobuf/Timestamp';
import type { Long } from '@grpc/proto-loader';
/**
* ServerData is data for a specific Server.
*/
export interface ServerData {
/**
* A trace of recent events on the server. May be absent.
*/
'trace'?: (_grpc_channelz_v1_ChannelTrace | null);
/**
* The number of incoming calls started on the server
*/
'calls_started'?: (number | string | Long);
/**
* The number of incoming calls that have completed with an OK status
*/
'calls_succeeded'?: (number | string | Long);
/**
* The number of incoming calls that have a completed with a non-OK status
*/
'calls_failed'?: (number | string | Long);
/**
* The last time a call was started on the server.
*/
'last_call_started_timestamp'?: (_google_protobuf_Timestamp | null);
}
/**
* ServerData is data for a specific Server.
*/
export interface ServerData__Output {
/**
* A trace of recent events on the server. May be absent.
*/
'trace': (_grpc_channelz_v1_ChannelTrace__Output | null);
/**
* The number of incoming calls started on the server
*/
'calls_started': (string);
/**
* The number of incoming calls that have completed with an OK status
*/
'calls_succeeded': (string);
/**
* The number of incoming calls that have a completed with a non-OK status
*/
'calls_failed': (string);
/**
* The last time a call was started on the server.
*/
'last_call_started_timestamp': (_google_protobuf_Timestamp__Output | null);
}

View File

@@ -0,0 +1,31 @@
// Original file: proto/channelz.proto
import type { Long } from '@grpc/proto-loader';
/**
* ServerRef is a reference to a Server.
*/
export interface ServerRef {
/**
* A globally unique identifier for this server. Must be a positive number.
*/
'server_id'?: (number | string | Long);
/**
* An optional name associated with the server.
*/
'name'?: (string);
}
/**
* ServerRef is a reference to a Server.
*/
export interface ServerRef__Output {
/**
* A globally unique identifier for this server. Must be a positive number.
*/
'server_id': (string);
/**
* An optional name associated with the server.
*/
'name': (string);
}

View File

@@ -0,0 +1,70 @@
// Original file: proto/channelz.proto
import type { SocketRef as _grpc_channelz_v1_SocketRef, SocketRef__Output as _grpc_channelz_v1_SocketRef__Output } from '../../../grpc/channelz/v1/SocketRef';
import type { SocketData as _grpc_channelz_v1_SocketData, SocketData__Output as _grpc_channelz_v1_SocketData__Output } from '../../../grpc/channelz/v1/SocketData';
import type { Address as _grpc_channelz_v1_Address, Address__Output as _grpc_channelz_v1_Address__Output } from '../../../grpc/channelz/v1/Address';
import type { Security as _grpc_channelz_v1_Security, Security__Output as _grpc_channelz_v1_Security__Output } from '../../../grpc/channelz/v1/Security';
/**
* Information about an actual connection. Pronounced "sock-ay".
*/
export interface Socket {
/**
* The identifier for the Socket.
*/
'ref'?: (_grpc_channelz_v1_SocketRef | null);
/**
* Data specific to this Socket.
*/
'data'?: (_grpc_channelz_v1_SocketData | null);
/**
* The locally bound address.
*/
'local'?: (_grpc_channelz_v1_Address | null);
/**
* The remote bound address. May be absent.
*/
'remote'?: (_grpc_channelz_v1_Address | null);
/**
* Security details for this socket. May be absent if not available, or
* there is no security on the socket.
*/
'security'?: (_grpc_channelz_v1_Security | null);
/**
* Optional, represents the name of the remote endpoint, if different than
* the original target name.
*/
'remote_name'?: (string);
}
/**
* Information about an actual connection. Pronounced "sock-ay".
*/
export interface Socket__Output {
/**
* The identifier for the Socket.
*/
'ref': (_grpc_channelz_v1_SocketRef__Output | null);
/**
* Data specific to this Socket.
*/
'data': (_grpc_channelz_v1_SocketData__Output | null);
/**
* The locally bound address.
*/
'local': (_grpc_channelz_v1_Address__Output | null);
/**
* The remote bound address. May be absent.
*/
'remote': (_grpc_channelz_v1_Address__Output | null);
/**
* Security details for this socket. May be absent if not available, or
* there is no security on the socket.
*/
'security': (_grpc_channelz_v1_Security__Output | null);
/**
* Optional, represents the name of the remote endpoint, if different than
* the original target name.
*/
'remote_name': (string);
}

View File

@@ -0,0 +1,150 @@
// Original file: proto/channelz.proto
import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../google/protobuf/Timestamp';
import type { Int64Value as _google_protobuf_Int64Value, Int64Value__Output as _google_protobuf_Int64Value__Output } from '../../../google/protobuf/Int64Value';
import type { SocketOption as _grpc_channelz_v1_SocketOption, SocketOption__Output as _grpc_channelz_v1_SocketOption__Output } from '../../../grpc/channelz/v1/SocketOption';
import type { Long } from '@grpc/proto-loader';
/**
* SocketData is data associated for a specific Socket. The fields present
* are specific to the implementation, so there may be minor differences in
* the semantics. (e.g. flow control windows)
*/
export interface SocketData {
/**
* The number of streams that have been started.
*/
'streams_started'?: (number | string | Long);
/**
* The number of streams that have ended successfully:
* On client side, received frame with eos bit set;
* On server side, sent frame with eos bit set.
*/
'streams_succeeded'?: (number | string | Long);
/**
* The number of streams that have ended unsuccessfully:
* On client side, ended without receiving frame with eos bit set;
* On server side, ended without sending frame with eos bit set.
*/
'streams_failed'?: (number | string | Long);
/**
* The number of grpc messages successfully sent on this socket.
*/
'messages_sent'?: (number | string | Long);
/**
* The number of grpc messages received on this socket.
*/
'messages_received'?: (number | string | Long);
/**
* The number of keep alives sent. This is typically implemented with HTTP/2
* ping messages.
*/
'keep_alives_sent'?: (number | string | Long);
/**
* The last time a stream was created by this endpoint. Usually unset for
* servers.
*/
'last_local_stream_created_timestamp'?: (_google_protobuf_Timestamp | null);
/**
* The last time a stream was created by the remote endpoint. Usually unset
* for clients.
*/
'last_remote_stream_created_timestamp'?: (_google_protobuf_Timestamp | null);
/**
* The last time a message was sent by this endpoint.
*/
'last_message_sent_timestamp'?: (_google_protobuf_Timestamp | null);
/**
* The last time a message was received by this endpoint.
*/
'last_message_received_timestamp'?: (_google_protobuf_Timestamp | null);
/**
* The amount of window, granted to the local endpoint by the remote endpoint.
* This may be slightly out of date due to network latency. This does NOT
* include stream level or TCP level flow control info.
*/
'local_flow_control_window'?: (_google_protobuf_Int64Value | null);
/**
* The amount of window, granted to the remote endpoint by the local endpoint.
* This may be slightly out of date due to network latency. This does NOT
* include stream level or TCP level flow control info.
*/
'remote_flow_control_window'?: (_google_protobuf_Int64Value | null);
/**
* Socket options set on this socket. May be absent if 'summary' is set
* on GetSocketRequest.
*/
'option'?: (_grpc_channelz_v1_SocketOption)[];
}
/**
* SocketData is data associated for a specific Socket. The fields present
* are specific to the implementation, so there may be minor differences in
* the semantics. (e.g. flow control windows)
*/
export interface SocketData__Output {
/**
* The number of streams that have been started.
*/
'streams_started': (string);
/**
* The number of streams that have ended successfully:
* On client side, received frame with eos bit set;
* On server side, sent frame with eos bit set.
*/
'streams_succeeded': (string);
/**
* The number of streams that have ended unsuccessfully:
* On client side, ended without receiving frame with eos bit set;
* On server side, ended without sending frame with eos bit set.
*/
'streams_failed': (string);
/**
* The number of grpc messages successfully sent on this socket.
*/
'messages_sent': (string);
/**
* The number of grpc messages received on this socket.
*/
'messages_received': (string);
/**
* The number of keep alives sent. This is typically implemented with HTTP/2
* ping messages.
*/
'keep_alives_sent': (string);
/**
* The last time a stream was created by this endpoint. Usually unset for
* servers.
*/
'last_local_stream_created_timestamp': (_google_protobuf_Timestamp__Output | null);
/**
* The last time a stream was created by the remote endpoint. Usually unset
* for clients.
*/
'last_remote_stream_created_timestamp': (_google_protobuf_Timestamp__Output | null);
/**
* The last time a message was sent by this endpoint.
*/
'last_message_sent_timestamp': (_google_protobuf_Timestamp__Output | null);
/**
* The last time a message was received by this endpoint.
*/
'last_message_received_timestamp': (_google_protobuf_Timestamp__Output | null);
/**
* The amount of window, granted to the local endpoint by the remote endpoint.
* This may be slightly out of date due to network latency. This does NOT
* include stream level or TCP level flow control info.
*/
'local_flow_control_window': (_google_protobuf_Int64Value__Output | null);
/**
* The amount of window, granted to the remote endpoint by the local endpoint.
* This may be slightly out of date due to network latency. This does NOT
* include stream level or TCP level flow control info.
*/
'remote_flow_control_window': (_google_protobuf_Int64Value__Output | null);
/**
* Socket options set on this socket. May be absent if 'summary' is set
* on GetSocketRequest.
*/
'option': (_grpc_channelz_v1_SocketOption__Output)[];
}

View File

@@ -0,0 +1,47 @@
// Original file: proto/channelz.proto
import type { Any as _google_protobuf_Any, Any__Output as _google_protobuf_Any__Output } from '../../../google/protobuf/Any';
/**
* SocketOption represents socket options for a socket. Specifically, these
* are the options returned by getsockopt().
*/
export interface SocketOption {
/**
* The full name of the socket option. Typically this will be the upper case
* name, such as "SO_REUSEPORT".
*/
'name'?: (string);
/**
* The human readable value of this socket option. At least one of value or
* additional will be set.
*/
'value'?: (string);
/**
* Additional data associated with the socket option. At least one of value
* or additional will be set.
*/
'additional'?: (_google_protobuf_Any | null);
}
/**
* SocketOption represents socket options for a socket. Specifically, these
* are the options returned by getsockopt().
*/
export interface SocketOption__Output {
/**
* The full name of the socket option. Typically this will be the upper case
* name, such as "SO_REUSEPORT".
*/
'name': (string);
/**
* The human readable value of this socket option. At least one of value or
* additional will be set.
*/
'value': (string);
/**
* Additional data associated with the socket option. At least one of value
* or additional will be set.
*/
'additional': (_google_protobuf_Any__Output | null);
}

View File

@@ -0,0 +1,33 @@
// Original file: proto/channelz.proto
import type { Duration as _google_protobuf_Duration, Duration__Output as _google_protobuf_Duration__Output } from '../../../google/protobuf/Duration';
/**
* For use with SocketOption's additional field. This is primarily used for
* SO_LINGER.
*/
export interface SocketOptionLinger {
/**
* active maps to `struct linger.l_onoff`
*/
'active'?: (boolean);
/**
* duration maps to `struct linger.l_linger`
*/
'duration'?: (_google_protobuf_Duration | null);
}
/**
* For use with SocketOption's additional field. This is primarily used for
* SO_LINGER.
*/
export interface SocketOptionLinger__Output {
/**
* active maps to `struct linger.l_onoff`
*/
'active': (boolean);
/**
* duration maps to `struct linger.l_linger`
*/
'duration': (_google_protobuf_Duration__Output | null);
}

View File

@@ -0,0 +1,74 @@
// Original file: proto/channelz.proto
/**
* For use with SocketOption's additional field. Tcp info for
* SOL_TCP and TCP_INFO.
*/
export interface SocketOptionTcpInfo {
'tcpi_state'?: (number);
'tcpi_ca_state'?: (number);
'tcpi_retransmits'?: (number);
'tcpi_probes'?: (number);
'tcpi_backoff'?: (number);
'tcpi_options'?: (number);
'tcpi_snd_wscale'?: (number);
'tcpi_rcv_wscale'?: (number);
'tcpi_rto'?: (number);
'tcpi_ato'?: (number);
'tcpi_snd_mss'?: (number);
'tcpi_rcv_mss'?: (number);
'tcpi_unacked'?: (number);
'tcpi_sacked'?: (number);
'tcpi_lost'?: (number);
'tcpi_retrans'?: (number);
'tcpi_fackets'?: (number);
'tcpi_last_data_sent'?: (number);
'tcpi_last_ack_sent'?: (number);
'tcpi_last_data_recv'?: (number);
'tcpi_last_ack_recv'?: (number);
'tcpi_pmtu'?: (number);
'tcpi_rcv_ssthresh'?: (number);
'tcpi_rtt'?: (number);
'tcpi_rttvar'?: (number);
'tcpi_snd_ssthresh'?: (number);
'tcpi_snd_cwnd'?: (number);
'tcpi_advmss'?: (number);
'tcpi_reordering'?: (number);
}
/**
* For use with SocketOption's additional field. Tcp info for
* SOL_TCP and TCP_INFO.
*/
export interface SocketOptionTcpInfo__Output {
'tcpi_state': (number);
'tcpi_ca_state': (number);
'tcpi_retransmits': (number);
'tcpi_probes': (number);
'tcpi_backoff': (number);
'tcpi_options': (number);
'tcpi_snd_wscale': (number);
'tcpi_rcv_wscale': (number);
'tcpi_rto': (number);
'tcpi_ato': (number);
'tcpi_snd_mss': (number);
'tcpi_rcv_mss': (number);
'tcpi_unacked': (number);
'tcpi_sacked': (number);
'tcpi_lost': (number);
'tcpi_retrans': (number);
'tcpi_fackets': (number);
'tcpi_last_data_sent': (number);
'tcpi_last_ack_sent': (number);
'tcpi_last_data_recv': (number);
'tcpi_last_ack_recv': (number);
'tcpi_pmtu': (number);
'tcpi_rcv_ssthresh': (number);
'tcpi_rtt': (number);
'tcpi_rttvar': (number);
'tcpi_snd_ssthresh': (number);
'tcpi_snd_cwnd': (number);
'tcpi_advmss': (number);
'tcpi_reordering': (number);
}

View File

@@ -0,0 +1,19 @@
// Original file: proto/channelz.proto
import type { Duration as _google_protobuf_Duration, Duration__Output as _google_protobuf_Duration__Output } from '../../../google/protobuf/Duration';
/**
* For use with SocketOption's additional field. This is primarily used for
* SO_RCVTIMEO and SO_SNDTIMEO
*/
export interface SocketOptionTimeout {
'duration'?: (_google_protobuf_Duration | null);
}
/**
* For use with SocketOption's additional field. This is primarily used for
* SO_RCVTIMEO and SO_SNDTIMEO
*/
export interface SocketOptionTimeout__Output {
'duration': (_google_protobuf_Duration__Output | null);
}

View File

@@ -0,0 +1,31 @@
// Original file: proto/channelz.proto
import type { Long } from '@grpc/proto-loader';
/**
* SocketRef is a reference to a Socket.
*/
export interface SocketRef {
/**
* The globally unique id for this socket. Must be a positive number.
*/
'socket_id'?: (number | string | Long);
/**
* An optional name associated with the socket.
*/
'name'?: (string);
}
/**
* SocketRef is a reference to a Socket.
*/
export interface SocketRef__Output {
/**
* The globally unique id for this socket. Must be a positive number.
*/
'socket_id': (string);
/**
* An optional name associated with the socket.
*/
'name': (string);
}

View File

@@ -0,0 +1,70 @@
// Original file: proto/channelz.proto
import type { SubchannelRef as _grpc_channelz_v1_SubchannelRef, SubchannelRef__Output as _grpc_channelz_v1_SubchannelRef__Output } from '../../../grpc/channelz/v1/SubchannelRef';
import type { ChannelData as _grpc_channelz_v1_ChannelData, ChannelData__Output as _grpc_channelz_v1_ChannelData__Output } from '../../../grpc/channelz/v1/ChannelData';
import type { ChannelRef as _grpc_channelz_v1_ChannelRef, ChannelRef__Output as _grpc_channelz_v1_ChannelRef__Output } from '../../../grpc/channelz/v1/ChannelRef';
import type { SocketRef as _grpc_channelz_v1_SocketRef, SocketRef__Output as _grpc_channelz_v1_SocketRef__Output } from '../../../grpc/channelz/v1/SocketRef';
/**
* Subchannel is a logical grouping of channels, subchannels, and sockets.
* A subchannel is load balanced over by it's ancestor
*/
export interface Subchannel {
/**
* The identifier for this channel.
*/
'ref'?: (_grpc_channelz_v1_SubchannelRef | null);
/**
* Data specific to this channel.
*/
'data'?: (_grpc_channelz_v1_ChannelData | null);
/**
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*/
'channel_ref'?: (_grpc_channelz_v1_ChannelRef)[];
/**
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*/
'subchannel_ref'?: (_grpc_channelz_v1_SubchannelRef)[];
/**
* There are no ordering guarantees on the order of sockets.
*/
'socket_ref'?: (_grpc_channelz_v1_SocketRef)[];
}
/**
* Subchannel is a logical grouping of channels, subchannels, and sockets.
* A subchannel is load balanced over by it's ancestor
*/
export interface Subchannel__Output {
/**
* The identifier for this channel.
*/
'ref': (_grpc_channelz_v1_SubchannelRef__Output | null);
/**
* Data specific to this channel.
*/
'data': (_grpc_channelz_v1_ChannelData__Output | null);
/**
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*/
'channel_ref': (_grpc_channelz_v1_ChannelRef__Output)[];
/**
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*/
'subchannel_ref': (_grpc_channelz_v1_SubchannelRef__Output)[];
/**
* There are no ordering guarantees on the order of sockets.
*/
'socket_ref': (_grpc_channelz_v1_SocketRef__Output)[];
}

View File

@@ -0,0 +1,31 @@
// Original file: proto/channelz.proto
import type { Long } from '@grpc/proto-loader';
/**
* SubchannelRef is a reference to a Subchannel.
*/
export interface SubchannelRef {
/**
* The globally unique id for this subchannel. Must be a positive number.
*/
'subchannel_id'?: (number | string | Long);
/**
* An optional name associated with the subchannel.
*/
'name'?: (string);
}
/**
* SubchannelRef is a reference to a Subchannel.
*/
export interface SubchannelRef__Output {
/**
* The globally unique id for this subchannel. Must be a positive number.
*/
'subchannel_id': (string);
/**
* An optional name associated with the subchannel.
*/
'name': (string);
}

View File

@@ -0,0 +1,146 @@
import type * as grpc from '../index';
import type { EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader';
import type { DescriptorProto as _google_protobuf_DescriptorProto, DescriptorProto__Output as _google_protobuf_DescriptorProto__Output } from './google/protobuf/DescriptorProto';
import type { Duration as _google_protobuf_Duration, Duration__Output as _google_protobuf_Duration__Output } from './google/protobuf/Duration';
import type { EnumDescriptorProto as _google_protobuf_EnumDescriptorProto, EnumDescriptorProto__Output as _google_protobuf_EnumDescriptorProto__Output } from './google/protobuf/EnumDescriptorProto';
import type { EnumOptions as _google_protobuf_EnumOptions, EnumOptions__Output as _google_protobuf_EnumOptions__Output } from './google/protobuf/EnumOptions';
import type { EnumValueDescriptorProto as _google_protobuf_EnumValueDescriptorProto, EnumValueDescriptorProto__Output as _google_protobuf_EnumValueDescriptorProto__Output } from './google/protobuf/EnumValueDescriptorProto';
import type { EnumValueOptions as _google_protobuf_EnumValueOptions, EnumValueOptions__Output as _google_protobuf_EnumValueOptions__Output } from './google/protobuf/EnumValueOptions';
import type { ExtensionRangeOptions as _google_protobuf_ExtensionRangeOptions, ExtensionRangeOptions__Output as _google_protobuf_ExtensionRangeOptions__Output } from './google/protobuf/ExtensionRangeOptions';
import type { FeatureSet as _google_protobuf_FeatureSet, FeatureSet__Output as _google_protobuf_FeatureSet__Output } from './google/protobuf/FeatureSet';
import type { FeatureSetDefaults as _google_protobuf_FeatureSetDefaults, FeatureSetDefaults__Output as _google_protobuf_FeatureSetDefaults__Output } from './google/protobuf/FeatureSetDefaults';
import type { FieldDescriptorProto as _google_protobuf_FieldDescriptorProto, FieldDescriptorProto__Output as _google_protobuf_FieldDescriptorProto__Output } from './google/protobuf/FieldDescriptorProto';
import type { FieldOptions as _google_protobuf_FieldOptions, FieldOptions__Output as _google_protobuf_FieldOptions__Output } from './google/protobuf/FieldOptions';
import type { FileDescriptorProto as _google_protobuf_FileDescriptorProto, FileDescriptorProto__Output as _google_protobuf_FileDescriptorProto__Output } from './google/protobuf/FileDescriptorProto';
import type { FileDescriptorSet as _google_protobuf_FileDescriptorSet, FileDescriptorSet__Output as _google_protobuf_FileDescriptorSet__Output } from './google/protobuf/FileDescriptorSet';
import type { FileOptions as _google_protobuf_FileOptions, FileOptions__Output as _google_protobuf_FileOptions__Output } from './google/protobuf/FileOptions';
import type { GeneratedCodeInfo as _google_protobuf_GeneratedCodeInfo, GeneratedCodeInfo__Output as _google_protobuf_GeneratedCodeInfo__Output } from './google/protobuf/GeneratedCodeInfo';
import type { MessageOptions as _google_protobuf_MessageOptions, MessageOptions__Output as _google_protobuf_MessageOptions__Output } from './google/protobuf/MessageOptions';
import type { MethodDescriptorProto as _google_protobuf_MethodDescriptorProto, MethodDescriptorProto__Output as _google_protobuf_MethodDescriptorProto__Output } from './google/protobuf/MethodDescriptorProto';
import type { MethodOptions as _google_protobuf_MethodOptions, MethodOptions__Output as _google_protobuf_MethodOptions__Output } from './google/protobuf/MethodOptions';
import type { OneofDescriptorProto as _google_protobuf_OneofDescriptorProto, OneofDescriptorProto__Output as _google_protobuf_OneofDescriptorProto__Output } from './google/protobuf/OneofDescriptorProto';
import type { OneofOptions as _google_protobuf_OneofOptions, OneofOptions__Output as _google_protobuf_OneofOptions__Output } from './google/protobuf/OneofOptions';
import type { ServiceDescriptorProto as _google_protobuf_ServiceDescriptorProto, ServiceDescriptorProto__Output as _google_protobuf_ServiceDescriptorProto__Output } from './google/protobuf/ServiceDescriptorProto';
import type { ServiceOptions as _google_protobuf_ServiceOptions, ServiceOptions__Output as _google_protobuf_ServiceOptions__Output } from './google/protobuf/ServiceOptions';
import type { SourceCodeInfo as _google_protobuf_SourceCodeInfo, SourceCodeInfo__Output as _google_protobuf_SourceCodeInfo__Output } from './google/protobuf/SourceCodeInfo';
import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from './google/protobuf/Timestamp';
import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from './google/protobuf/UninterpretedOption';
import type { AnyRules as _validate_AnyRules, AnyRules__Output as _validate_AnyRules__Output } from './validate/AnyRules';
import type { BoolRules as _validate_BoolRules, BoolRules__Output as _validate_BoolRules__Output } from './validate/BoolRules';
import type { BytesRules as _validate_BytesRules, BytesRules__Output as _validate_BytesRules__Output } from './validate/BytesRules';
import type { DoubleRules as _validate_DoubleRules, DoubleRules__Output as _validate_DoubleRules__Output } from './validate/DoubleRules';
import type { DurationRules as _validate_DurationRules, DurationRules__Output as _validate_DurationRules__Output } from './validate/DurationRules';
import type { EnumRules as _validate_EnumRules, EnumRules__Output as _validate_EnumRules__Output } from './validate/EnumRules';
import type { FieldRules as _validate_FieldRules, FieldRules__Output as _validate_FieldRules__Output } from './validate/FieldRules';
import type { Fixed32Rules as _validate_Fixed32Rules, Fixed32Rules__Output as _validate_Fixed32Rules__Output } from './validate/Fixed32Rules';
import type { Fixed64Rules as _validate_Fixed64Rules, Fixed64Rules__Output as _validate_Fixed64Rules__Output } from './validate/Fixed64Rules';
import type { FloatRules as _validate_FloatRules, FloatRules__Output as _validate_FloatRules__Output } from './validate/FloatRules';
import type { Int32Rules as _validate_Int32Rules, Int32Rules__Output as _validate_Int32Rules__Output } from './validate/Int32Rules';
import type { Int64Rules as _validate_Int64Rules, Int64Rules__Output as _validate_Int64Rules__Output } from './validate/Int64Rules';
import type { MapRules as _validate_MapRules, MapRules__Output as _validate_MapRules__Output } from './validate/MapRules';
import type { MessageRules as _validate_MessageRules, MessageRules__Output as _validate_MessageRules__Output } from './validate/MessageRules';
import type { RepeatedRules as _validate_RepeatedRules, RepeatedRules__Output as _validate_RepeatedRules__Output } from './validate/RepeatedRules';
import type { SFixed32Rules as _validate_SFixed32Rules, SFixed32Rules__Output as _validate_SFixed32Rules__Output } from './validate/SFixed32Rules';
import type { SFixed64Rules as _validate_SFixed64Rules, SFixed64Rules__Output as _validate_SFixed64Rules__Output } from './validate/SFixed64Rules';
import type { SInt32Rules as _validate_SInt32Rules, SInt32Rules__Output as _validate_SInt32Rules__Output } from './validate/SInt32Rules';
import type { SInt64Rules as _validate_SInt64Rules, SInt64Rules__Output as _validate_SInt64Rules__Output } from './validate/SInt64Rules';
import type { StringRules as _validate_StringRules, StringRules__Output as _validate_StringRules__Output } from './validate/StringRules';
import type { TimestampRules as _validate_TimestampRules, TimestampRules__Output as _validate_TimestampRules__Output } from './validate/TimestampRules';
import type { UInt32Rules as _validate_UInt32Rules, UInt32Rules__Output as _validate_UInt32Rules__Output } from './validate/UInt32Rules';
import type { UInt64Rules as _validate_UInt64Rules, UInt64Rules__Output as _validate_UInt64Rules__Output } from './validate/UInt64Rules';
import type { OrcaLoadReport as _xds_data_orca_v3_OrcaLoadReport, OrcaLoadReport__Output as _xds_data_orca_v3_OrcaLoadReport__Output } from './xds/data/orca/v3/OrcaLoadReport';
import type { OpenRcaServiceClient as _xds_service_orca_v3_OpenRcaServiceClient, OpenRcaServiceDefinition as _xds_service_orca_v3_OpenRcaServiceDefinition } from './xds/service/orca/v3/OpenRcaService';
import type { OrcaLoadReportRequest as _xds_service_orca_v3_OrcaLoadReportRequest, OrcaLoadReportRequest__Output as _xds_service_orca_v3_OrcaLoadReportRequest__Output } from './xds/service/orca/v3/OrcaLoadReportRequest';
type SubtypeConstructor<Constructor extends new (...args: any) => any, Subtype> = {
new(...args: ConstructorParameters<Constructor>): Subtype;
};
export interface ProtoGrpcType {
google: {
protobuf: {
DescriptorProto: MessageTypeDefinition<_google_protobuf_DescriptorProto, _google_protobuf_DescriptorProto__Output>
Duration: MessageTypeDefinition<_google_protobuf_Duration, _google_protobuf_Duration__Output>
Edition: EnumTypeDefinition
EnumDescriptorProto: MessageTypeDefinition<_google_protobuf_EnumDescriptorProto, _google_protobuf_EnumDescriptorProto__Output>
EnumOptions: MessageTypeDefinition<_google_protobuf_EnumOptions, _google_protobuf_EnumOptions__Output>
EnumValueDescriptorProto: MessageTypeDefinition<_google_protobuf_EnumValueDescriptorProto, _google_protobuf_EnumValueDescriptorProto__Output>
EnumValueOptions: MessageTypeDefinition<_google_protobuf_EnumValueOptions, _google_protobuf_EnumValueOptions__Output>
ExtensionRangeOptions: MessageTypeDefinition<_google_protobuf_ExtensionRangeOptions, _google_protobuf_ExtensionRangeOptions__Output>
FeatureSet: MessageTypeDefinition<_google_protobuf_FeatureSet, _google_protobuf_FeatureSet__Output>
FeatureSetDefaults: MessageTypeDefinition<_google_protobuf_FeatureSetDefaults, _google_protobuf_FeatureSetDefaults__Output>
FieldDescriptorProto: MessageTypeDefinition<_google_protobuf_FieldDescriptorProto, _google_protobuf_FieldDescriptorProto__Output>
FieldOptions: MessageTypeDefinition<_google_protobuf_FieldOptions, _google_protobuf_FieldOptions__Output>
FileDescriptorProto: MessageTypeDefinition<_google_protobuf_FileDescriptorProto, _google_protobuf_FileDescriptorProto__Output>
FileDescriptorSet: MessageTypeDefinition<_google_protobuf_FileDescriptorSet, _google_protobuf_FileDescriptorSet__Output>
FileOptions: MessageTypeDefinition<_google_protobuf_FileOptions, _google_protobuf_FileOptions__Output>
GeneratedCodeInfo: MessageTypeDefinition<_google_protobuf_GeneratedCodeInfo, _google_protobuf_GeneratedCodeInfo__Output>
MessageOptions: MessageTypeDefinition<_google_protobuf_MessageOptions, _google_protobuf_MessageOptions__Output>
MethodDescriptorProto: MessageTypeDefinition<_google_protobuf_MethodDescriptorProto, _google_protobuf_MethodDescriptorProto__Output>
MethodOptions: MessageTypeDefinition<_google_protobuf_MethodOptions, _google_protobuf_MethodOptions__Output>
OneofDescriptorProto: MessageTypeDefinition<_google_protobuf_OneofDescriptorProto, _google_protobuf_OneofDescriptorProto__Output>
OneofOptions: MessageTypeDefinition<_google_protobuf_OneofOptions, _google_protobuf_OneofOptions__Output>
ServiceDescriptorProto: MessageTypeDefinition<_google_protobuf_ServiceDescriptorProto, _google_protobuf_ServiceDescriptorProto__Output>
ServiceOptions: MessageTypeDefinition<_google_protobuf_ServiceOptions, _google_protobuf_ServiceOptions__Output>
SourceCodeInfo: MessageTypeDefinition<_google_protobuf_SourceCodeInfo, _google_protobuf_SourceCodeInfo__Output>
SymbolVisibility: EnumTypeDefinition
Timestamp: MessageTypeDefinition<_google_protobuf_Timestamp, _google_protobuf_Timestamp__Output>
UninterpretedOption: MessageTypeDefinition<_google_protobuf_UninterpretedOption, _google_protobuf_UninterpretedOption__Output>
}
}
validate: {
AnyRules: MessageTypeDefinition<_validate_AnyRules, _validate_AnyRules__Output>
BoolRules: MessageTypeDefinition<_validate_BoolRules, _validate_BoolRules__Output>
BytesRules: MessageTypeDefinition<_validate_BytesRules, _validate_BytesRules__Output>
DoubleRules: MessageTypeDefinition<_validate_DoubleRules, _validate_DoubleRules__Output>
DurationRules: MessageTypeDefinition<_validate_DurationRules, _validate_DurationRules__Output>
EnumRules: MessageTypeDefinition<_validate_EnumRules, _validate_EnumRules__Output>
FieldRules: MessageTypeDefinition<_validate_FieldRules, _validate_FieldRules__Output>
Fixed32Rules: MessageTypeDefinition<_validate_Fixed32Rules, _validate_Fixed32Rules__Output>
Fixed64Rules: MessageTypeDefinition<_validate_Fixed64Rules, _validate_Fixed64Rules__Output>
FloatRules: MessageTypeDefinition<_validate_FloatRules, _validate_FloatRules__Output>
Int32Rules: MessageTypeDefinition<_validate_Int32Rules, _validate_Int32Rules__Output>
Int64Rules: MessageTypeDefinition<_validate_Int64Rules, _validate_Int64Rules__Output>
KnownRegex: EnumTypeDefinition
MapRules: MessageTypeDefinition<_validate_MapRules, _validate_MapRules__Output>
MessageRules: MessageTypeDefinition<_validate_MessageRules, _validate_MessageRules__Output>
RepeatedRules: MessageTypeDefinition<_validate_RepeatedRules, _validate_RepeatedRules__Output>
SFixed32Rules: MessageTypeDefinition<_validate_SFixed32Rules, _validate_SFixed32Rules__Output>
SFixed64Rules: MessageTypeDefinition<_validate_SFixed64Rules, _validate_SFixed64Rules__Output>
SInt32Rules: MessageTypeDefinition<_validate_SInt32Rules, _validate_SInt32Rules__Output>
SInt64Rules: MessageTypeDefinition<_validate_SInt64Rules, _validate_SInt64Rules__Output>
StringRules: MessageTypeDefinition<_validate_StringRules, _validate_StringRules__Output>
TimestampRules: MessageTypeDefinition<_validate_TimestampRules, _validate_TimestampRules__Output>
UInt32Rules: MessageTypeDefinition<_validate_UInt32Rules, _validate_UInt32Rules__Output>
UInt64Rules: MessageTypeDefinition<_validate_UInt64Rules, _validate_UInt64Rules__Output>
}
xds: {
data: {
orca: {
v3: {
OrcaLoadReport: MessageTypeDefinition<_xds_data_orca_v3_OrcaLoadReport, _xds_data_orca_v3_OrcaLoadReport__Output>
}
}
}
service: {
orca: {
v3: {
/**
* Out-of-band (OOB) load reporting service for the additional load reporting
* agent that does not sit in the request path. Reports are periodically sampled
* with sufficient frequency to provide temporal association with requests.
* OOB reporting compensates the limitation of in-band reporting in revealing
* costs for backends that do not provide a steady stream of telemetry such as
* long running stream operations and zero QPS services. This is a server
* streaming service, client needs to terminate current RPC and initiate
* a new call to change backend reporting frequency.
*/
OpenRcaService: SubtypeConstructor<typeof grpc.Client, _xds_service_orca_v3_OpenRcaServiceClient> & { service: _xds_service_orca_v3_OpenRcaServiceDefinition }
OrcaLoadReportRequest: MessageTypeDefinition<_xds_service_orca_v3_OrcaLoadReportRequest, _xds_service_orca_v3_OrcaLoadReportRequest__Output>
}
}
}
}
}

View File

@@ -0,0 +1,44 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
/**
* AnyRules describe constraints applied exclusively to the
* `google.protobuf.Any` well-known type
*/
export interface AnyRules {
/**
* Required specifies that this field must be set
*/
'required'?: (boolean);
/**
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*/
'in'?: (string)[];
/**
* NotIn specifies that this field's `type_url` must not be equal to any of
* the specified values.
*/
'not_in'?: (string)[];
}
/**
* AnyRules describe constraints applied exclusively to the
* `google.protobuf.Any` well-known type
*/
export interface AnyRules__Output {
/**
* Required specifies that this field must be set
*/
'required': (boolean);
/**
* In specifies that this field's `type_url` must be equal to one of the
* specified values.
*/
'in': (string)[];
/**
* NotIn specifies that this field's `type_url` must not be equal to any of
* the specified values.
*/
'not_in': (string)[];
}

View File

@@ -0,0 +1,22 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
/**
* BoolRules describes the constraints applied to `bool` values
*/
export interface BoolRules {
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (boolean);
}
/**
* BoolRules describes the constraints applied to `bool` values
*/
export interface BoolRules__Output {
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (boolean);
}

View File

@@ -0,0 +1,153 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
import type { Long } from '@grpc/proto-loader';
/**
* BytesRules describe the constraints applied to `bytes` values
*/
export interface BytesRules {
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (Buffer | Uint8Array | string);
/**
* MinLen specifies that this field must be the specified number of bytes
* at a minimum
*/
'min_len'?: (number | string | Long);
/**
* MaxLen specifies that this field must be the specified number of bytes
* at a maximum
*/
'max_len'?: (number | string | Long);
/**
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*/
'pattern'?: (string);
/**
* Prefix specifies that this field must have the specified bytes at the
* beginning of the string.
*/
'prefix'?: (Buffer | Uint8Array | string);
/**
* Suffix specifies that this field must have the specified bytes at the
* end of the string.
*/
'suffix'?: (Buffer | Uint8Array | string);
/**
* Contains specifies that this field must have the specified bytes
* anywhere in the string.
*/
'contains'?: (Buffer | Uint8Array | string);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in'?: (Buffer | Uint8Array | string)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in'?: (Buffer | Uint8Array | string)[];
/**
* Ip specifies that the field must be a valid IP (v4 or v6) address in
* byte format
*/
'ip'?: (boolean);
/**
* Ipv4 specifies that the field must be a valid IPv4 address in byte
* format
*/
'ipv4'?: (boolean);
/**
* Ipv6 specifies that the field must be a valid IPv6 address in byte
* format
*/
'ipv6'?: (boolean);
/**
* Len specifies that this field must be the specified number of bytes
*/
'len'?: (number | string | Long);
/**
* WellKnown rules provide advanced constraints against common byte
* patterns
*/
'well_known'?: "ip"|"ipv4"|"ipv6";
}
/**
* BytesRules describe the constraints applied to `bytes` values
*/
export interface BytesRules__Output {
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (Buffer);
/**
* MinLen specifies that this field must be the specified number of bytes
* at a minimum
*/
'min_len': (string);
/**
* MaxLen specifies that this field must be the specified number of bytes
* at a maximum
*/
'max_len': (string);
/**
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*/
'pattern': (string);
/**
* Prefix specifies that this field must have the specified bytes at the
* beginning of the string.
*/
'prefix': (Buffer);
/**
* Suffix specifies that this field must have the specified bytes at the
* end of the string.
*/
'suffix': (Buffer);
/**
* Contains specifies that this field must have the specified bytes
* anywhere in the string.
*/
'contains': (Buffer);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in': (Buffer)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in': (Buffer)[];
/**
* Ip specifies that the field must be a valid IP (v4 or v6) address in
* byte format
*/
'ip'?: (boolean);
/**
* Ipv4 specifies that the field must be a valid IPv4 address in byte
* format
*/
'ipv4'?: (boolean);
/**
* Ipv6 specifies that the field must be a valid IPv6 address in byte
* format
*/
'ipv6'?: (boolean);
/**
* Len specifies that this field must be the specified number of bytes
*/
'len': (string);
/**
* WellKnown rules provide advanced constraints against common byte
* patterns
*/
'well_known'?: "ip"|"ipv4"|"ipv6";
}

View File

@@ -0,0 +1,86 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
/**
* DoubleRules describes the constraints applied to `double` values
*/
export interface DoubleRules {
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (number | string);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt'?: (number | string);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte'?: (number | string);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt'?: (number | string);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte'?: (number | string);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in'?: (number | string)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in'?: (number | string)[];
}
/**
* DoubleRules describes the constraints applied to `double` values
*/
export interface DoubleRules__Output {
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (number);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt': (number);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte': (number);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt': (number);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte': (number);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in': (number)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in': (number)[];
}

View File

@@ -0,0 +1,93 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
import type { Duration as _google_protobuf_Duration, Duration__Output as _google_protobuf_Duration__Output } from '../google/protobuf/Duration';
/**
* DurationRules describe the constraints applied exclusively to the
* `google.protobuf.Duration` well-known type
*/
export interface DurationRules {
/**
* Required specifies that this field must be set
*/
'required'?: (boolean);
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (_google_protobuf_Duration | null);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt'?: (_google_protobuf_Duration | null);
/**
* Lt specifies that this field must be less than the specified value,
* inclusive
*/
'lte'?: (_google_protobuf_Duration | null);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive
*/
'gt'?: (_google_protobuf_Duration | null);
/**
* Gte specifies that this field must be greater than the specified value,
* inclusive
*/
'gte'?: (_google_protobuf_Duration | null);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in'?: (_google_protobuf_Duration)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in'?: (_google_protobuf_Duration)[];
}
/**
* DurationRules describe the constraints applied exclusively to the
* `google.protobuf.Duration` well-known type
*/
export interface DurationRules__Output {
/**
* Required specifies that this field must be set
*/
'required': (boolean);
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (_google_protobuf_Duration__Output | null);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt': (_google_protobuf_Duration__Output | null);
/**
* Lt specifies that this field must be less than the specified value,
* inclusive
*/
'lte': (_google_protobuf_Duration__Output | null);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive
*/
'gt': (_google_protobuf_Duration__Output | null);
/**
* Gte specifies that this field must be greater than the specified value,
* inclusive
*/
'gte': (_google_protobuf_Duration__Output | null);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in': (_google_protobuf_Duration__Output)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in': (_google_protobuf_Duration__Output)[];
}

View File

@@ -0,0 +1,52 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
/**
* EnumRules describe the constraints applied to enum values
*/
export interface EnumRules {
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (number);
/**
* DefinedOnly specifies that this field must be only one of the defined
* values for this enum, failing on any undefined value.
*/
'defined_only'?: (boolean);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in'?: (number)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in'?: (number)[];
}
/**
* EnumRules describe the constraints applied to enum values
*/
export interface EnumRules__Output {
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (number);
/**
* DefinedOnly specifies that this field must be only one of the defined
* values for this enum, failing on any undefined value.
*/
'defined_only': (boolean);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in': (number)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in': (number)[];
}

View File

@@ -0,0 +1,102 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
import type { FloatRules as _validate_FloatRules, FloatRules__Output as _validate_FloatRules__Output } from '../validate/FloatRules';
import type { DoubleRules as _validate_DoubleRules, DoubleRules__Output as _validate_DoubleRules__Output } from '../validate/DoubleRules';
import type { Int32Rules as _validate_Int32Rules, Int32Rules__Output as _validate_Int32Rules__Output } from '../validate/Int32Rules';
import type { Int64Rules as _validate_Int64Rules, Int64Rules__Output as _validate_Int64Rules__Output } from '../validate/Int64Rules';
import type { UInt32Rules as _validate_UInt32Rules, UInt32Rules__Output as _validate_UInt32Rules__Output } from '../validate/UInt32Rules';
import type { UInt64Rules as _validate_UInt64Rules, UInt64Rules__Output as _validate_UInt64Rules__Output } from '../validate/UInt64Rules';
import type { SInt32Rules as _validate_SInt32Rules, SInt32Rules__Output as _validate_SInt32Rules__Output } from '../validate/SInt32Rules';
import type { SInt64Rules as _validate_SInt64Rules, SInt64Rules__Output as _validate_SInt64Rules__Output } from '../validate/SInt64Rules';
import type { Fixed32Rules as _validate_Fixed32Rules, Fixed32Rules__Output as _validate_Fixed32Rules__Output } from '../validate/Fixed32Rules';
import type { Fixed64Rules as _validate_Fixed64Rules, Fixed64Rules__Output as _validate_Fixed64Rules__Output } from '../validate/Fixed64Rules';
import type { SFixed32Rules as _validate_SFixed32Rules, SFixed32Rules__Output as _validate_SFixed32Rules__Output } from '../validate/SFixed32Rules';
import type { SFixed64Rules as _validate_SFixed64Rules, SFixed64Rules__Output as _validate_SFixed64Rules__Output } from '../validate/SFixed64Rules';
import type { BoolRules as _validate_BoolRules, BoolRules__Output as _validate_BoolRules__Output } from '../validate/BoolRules';
import type { StringRules as _validate_StringRules, StringRules__Output as _validate_StringRules__Output } from '../validate/StringRules';
import type { BytesRules as _validate_BytesRules, BytesRules__Output as _validate_BytesRules__Output } from '../validate/BytesRules';
import type { EnumRules as _validate_EnumRules, EnumRules__Output as _validate_EnumRules__Output } from '../validate/EnumRules';
import type { MessageRules as _validate_MessageRules, MessageRules__Output as _validate_MessageRules__Output } from '../validate/MessageRules';
import type { RepeatedRules as _validate_RepeatedRules, RepeatedRules__Output as _validate_RepeatedRules__Output } from '../validate/RepeatedRules';
import type { MapRules as _validate_MapRules, MapRules__Output as _validate_MapRules__Output } from '../validate/MapRules';
import type { AnyRules as _validate_AnyRules, AnyRules__Output as _validate_AnyRules__Output } from '../validate/AnyRules';
import type { DurationRules as _validate_DurationRules, DurationRules__Output as _validate_DurationRules__Output } from '../validate/DurationRules';
import type { TimestampRules as _validate_TimestampRules, TimestampRules__Output as _validate_TimestampRules__Output } from '../validate/TimestampRules';
/**
* FieldRules encapsulates the rules for each type of field. Depending on the
* field, the correct set should be used to ensure proper validations.
*/
export interface FieldRules {
/**
* Scalar Field Types
*/
'float'?: (_validate_FloatRules | null);
'double'?: (_validate_DoubleRules | null);
'int32'?: (_validate_Int32Rules | null);
'int64'?: (_validate_Int64Rules | null);
'uint32'?: (_validate_UInt32Rules | null);
'uint64'?: (_validate_UInt64Rules | null);
'sint32'?: (_validate_SInt32Rules | null);
'sint64'?: (_validate_SInt64Rules | null);
'fixed32'?: (_validate_Fixed32Rules | null);
'fixed64'?: (_validate_Fixed64Rules | null);
'sfixed32'?: (_validate_SFixed32Rules | null);
'sfixed64'?: (_validate_SFixed64Rules | null);
'bool'?: (_validate_BoolRules | null);
'string'?: (_validate_StringRules | null);
'bytes'?: (_validate_BytesRules | null);
/**
* Complex Field Types
*/
'enum'?: (_validate_EnumRules | null);
'message'?: (_validate_MessageRules | null);
'repeated'?: (_validate_RepeatedRules | null);
'map'?: (_validate_MapRules | null);
/**
* Well-Known Field Types
*/
'any'?: (_validate_AnyRules | null);
'duration'?: (_validate_DurationRules | null);
'timestamp'?: (_validate_TimestampRules | null);
'type'?: "float"|"double"|"int32"|"int64"|"uint32"|"uint64"|"sint32"|"sint64"|"fixed32"|"fixed64"|"sfixed32"|"sfixed64"|"bool"|"string"|"bytes"|"enum"|"repeated"|"map"|"any"|"duration"|"timestamp";
}
/**
* FieldRules encapsulates the rules for each type of field. Depending on the
* field, the correct set should be used to ensure proper validations.
*/
export interface FieldRules__Output {
/**
* Scalar Field Types
*/
'float'?: (_validate_FloatRules__Output | null);
'double'?: (_validate_DoubleRules__Output | null);
'int32'?: (_validate_Int32Rules__Output | null);
'int64'?: (_validate_Int64Rules__Output | null);
'uint32'?: (_validate_UInt32Rules__Output | null);
'uint64'?: (_validate_UInt64Rules__Output | null);
'sint32'?: (_validate_SInt32Rules__Output | null);
'sint64'?: (_validate_SInt64Rules__Output | null);
'fixed32'?: (_validate_Fixed32Rules__Output | null);
'fixed64'?: (_validate_Fixed64Rules__Output | null);
'sfixed32'?: (_validate_SFixed32Rules__Output | null);
'sfixed64'?: (_validate_SFixed64Rules__Output | null);
'bool'?: (_validate_BoolRules__Output | null);
'string'?: (_validate_StringRules__Output | null);
'bytes'?: (_validate_BytesRules__Output | null);
/**
* Complex Field Types
*/
'enum'?: (_validate_EnumRules__Output | null);
'message': (_validate_MessageRules__Output | null);
'repeated'?: (_validate_RepeatedRules__Output | null);
'map'?: (_validate_MapRules__Output | null);
/**
* Well-Known Field Types
*/
'any'?: (_validate_AnyRules__Output | null);
'duration'?: (_validate_DurationRules__Output | null);
'timestamp'?: (_validate_TimestampRules__Output | null);
'type'?: "float"|"double"|"int32"|"int64"|"uint32"|"uint64"|"sint32"|"sint64"|"fixed32"|"fixed64"|"sfixed32"|"sfixed64"|"bool"|"string"|"bytes"|"enum"|"repeated"|"map"|"any"|"duration"|"timestamp";
}

View File

@@ -0,0 +1,86 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
/**
* Fixed32Rules describes the constraints applied to `fixed32` values
*/
export interface Fixed32Rules {
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (number);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt'?: (number);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte'?: (number);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt'?: (number);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte'?: (number);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in'?: (number)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in'?: (number)[];
}
/**
* Fixed32Rules describes the constraints applied to `fixed32` values
*/
export interface Fixed32Rules__Output {
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (number);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt': (number);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte': (number);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt': (number);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte': (number);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in': (number)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in': (number)[];
}

View File

@@ -0,0 +1,87 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
import type { Long } from '@grpc/proto-loader';
/**
* Fixed64Rules describes the constraints applied to `fixed64` values
*/
export interface Fixed64Rules {
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (number | string | Long);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt'?: (number | string | Long);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte'?: (number | string | Long);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt'?: (number | string | Long);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte'?: (number | string | Long);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in'?: (number | string | Long)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in'?: (number | string | Long)[];
}
/**
* Fixed64Rules describes the constraints applied to `fixed64` values
*/
export interface Fixed64Rules__Output {
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (string);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt': (string);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte': (string);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt': (string);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte': (string);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in': (string)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in': (string)[];
}

View File

@@ -0,0 +1,86 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
/**
* FloatRules describes the constraints applied to `float` values
*/
export interface FloatRules {
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (number | string);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt'?: (number | string);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte'?: (number | string);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt'?: (number | string);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte'?: (number | string);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in'?: (number | string)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in'?: (number | string)[];
}
/**
* FloatRules describes the constraints applied to `float` values
*/
export interface FloatRules__Output {
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (number);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt': (number);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte': (number);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt': (number);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte': (number);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in': (number)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in': (number)[];
}

View File

@@ -0,0 +1,86 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
/**
* Int32Rules describes the constraints applied to `int32` values
*/
export interface Int32Rules {
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (number);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt'?: (number);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte'?: (number);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt'?: (number);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte'?: (number);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in'?: (number)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in'?: (number)[];
}
/**
* Int32Rules describes the constraints applied to `int32` values
*/
export interface Int32Rules__Output {
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (number);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt': (number);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte': (number);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt': (number);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte': (number);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in': (number)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in': (number)[];
}

View File

@@ -0,0 +1,87 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
import type { Long } from '@grpc/proto-loader';
/**
* Int64Rules describes the constraints applied to `int64` values
*/
export interface Int64Rules {
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (number | string | Long);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt'?: (number | string | Long);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte'?: (number | string | Long);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt'?: (number | string | Long);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte'?: (number | string | Long);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in'?: (number | string | Long)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in'?: (number | string | Long)[];
}
/**
* Int64Rules describes the constraints applied to `int64` values
*/
export interface Int64Rules__Output {
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (string);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt': (string);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte': (string);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt': (string);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte': (string);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in': (string)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in': (string)[];
}

View File

@@ -0,0 +1,38 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
/**
* WellKnownRegex contain some well-known patterns.
*/
export const KnownRegex = {
UNKNOWN: 'UNKNOWN',
/**
* HTTP header name as defined by RFC 7230.
*/
HTTP_HEADER_NAME: 'HTTP_HEADER_NAME',
/**
* HTTP header value as defined by RFC 7230.
*/
HTTP_HEADER_VALUE: 'HTTP_HEADER_VALUE',
} as const;
/**
* WellKnownRegex contain some well-known patterns.
*/
export type KnownRegex =
| 'UNKNOWN'
| 0
/**
* HTTP header name as defined by RFC 7230.
*/
| 'HTTP_HEADER_NAME'
| 1
/**
* HTTP header value as defined by RFC 7230.
*/
| 'HTTP_HEADER_VALUE'
| 2
/**
* WellKnownRegex contain some well-known patterns.
*/
export type KnownRegex__Output = typeof KnownRegex[keyof typeof KnownRegex]

View File

@@ -0,0 +1,66 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
import type { FieldRules as _validate_FieldRules, FieldRules__Output as _validate_FieldRules__Output } from '../validate/FieldRules';
import type { Long } from '@grpc/proto-loader';
/**
* MapRules describe the constraints applied to `map` values
*/
export interface MapRules {
/**
* MinPairs specifies that this field must have the specified number of
* KVs at a minimum
*/
'min_pairs'?: (number | string | Long);
/**
* MaxPairs specifies that this field must have the specified number of
* KVs at a maximum
*/
'max_pairs'?: (number | string | Long);
/**
* NoSparse specifies values in this field cannot be unset. This only
* applies to map's with message value types.
*/
'no_sparse'?: (boolean);
/**
* Keys specifies the constraints to be applied to each key in the field.
*/
'keys'?: (_validate_FieldRules | null);
/**
* Values specifies the constraints to be applied to the value of each key
* in the field. Message values will still have their validations evaluated
* unless skip is specified here.
*/
'values'?: (_validate_FieldRules | null);
}
/**
* MapRules describe the constraints applied to `map` values
*/
export interface MapRules__Output {
/**
* MinPairs specifies that this field must have the specified number of
* KVs at a minimum
*/
'min_pairs': (string);
/**
* MaxPairs specifies that this field must have the specified number of
* KVs at a maximum
*/
'max_pairs': (string);
/**
* NoSparse specifies values in this field cannot be unset. This only
* applies to map's with message value types.
*/
'no_sparse': (boolean);
/**
* Keys specifies the constraints to be applied to each key in the field.
*/
'keys': (_validate_FieldRules__Output | null);
/**
* Values specifies the constraints to be applied to the value of each key
* in the field. Message values will still have their validations evaluated
* unless skip is specified here.
*/
'values': (_validate_FieldRules__Output | null);
}

View File

@@ -0,0 +1,34 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
/**
* MessageRules describe the constraints applied to embedded message values.
* For message-type fields, validation is performed recursively.
*/
export interface MessageRules {
/**
* Skip specifies that the validation rules of this field should not be
* evaluated
*/
'skip'?: (boolean);
/**
* Required specifies that this field must be set
*/
'required'?: (boolean);
}
/**
* MessageRules describe the constraints applied to embedded message values.
* For message-type fields, validation is performed recursively.
*/
export interface MessageRules__Output {
/**
* Skip specifies that the validation rules of this field should not be
* evaluated
*/
'skip': (boolean);
/**
* Required specifies that this field must be set
*/
'required': (boolean);
}

View File

@@ -0,0 +1,60 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
import type { FieldRules as _validate_FieldRules, FieldRules__Output as _validate_FieldRules__Output } from '../validate/FieldRules';
import type { Long } from '@grpc/proto-loader';
/**
* RepeatedRules describe the constraints applied to `repeated` values
*/
export interface RepeatedRules {
/**
* MinItems specifies that this field must have the specified number of
* items at a minimum
*/
'min_items'?: (number | string | Long);
/**
* MaxItems specifies that this field must have the specified number of
* items at a maximum
*/
'max_items'?: (number | string | Long);
/**
* Unique specifies that all elements in this field must be unique. This
* contraint is only applicable to scalar and enum types (messages are not
* supported).
*/
'unique'?: (boolean);
/**
* Items specifies the contraints to be applied to each item in the field.
* Repeated message fields will still execute validation against each item
* unless skip is specified here.
*/
'items'?: (_validate_FieldRules | null);
}
/**
* RepeatedRules describe the constraints applied to `repeated` values
*/
export interface RepeatedRules__Output {
/**
* MinItems specifies that this field must have the specified number of
* items at a minimum
*/
'min_items': (string);
/**
* MaxItems specifies that this field must have the specified number of
* items at a maximum
*/
'max_items': (string);
/**
* Unique specifies that all elements in this field must be unique. This
* contraint is only applicable to scalar and enum types (messages are not
* supported).
*/
'unique': (boolean);
/**
* Items specifies the contraints to be applied to each item in the field.
* Repeated message fields will still execute validation against each item
* unless skip is specified here.
*/
'items': (_validate_FieldRules__Output | null);
}

View File

@@ -0,0 +1,86 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
/**
* SFixed32Rules describes the constraints applied to `sfixed32` values
*/
export interface SFixed32Rules {
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (number);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt'?: (number);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte'?: (number);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt'?: (number);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte'?: (number);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in'?: (number)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in'?: (number)[];
}
/**
* SFixed32Rules describes the constraints applied to `sfixed32` values
*/
export interface SFixed32Rules__Output {
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (number);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt': (number);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte': (number);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt': (number);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte': (number);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in': (number)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in': (number)[];
}

View File

@@ -0,0 +1,87 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
import type { Long } from '@grpc/proto-loader';
/**
* SFixed64Rules describes the constraints applied to `sfixed64` values
*/
export interface SFixed64Rules {
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (number | string | Long);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt'?: (number | string | Long);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte'?: (number | string | Long);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt'?: (number | string | Long);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte'?: (number | string | Long);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in'?: (number | string | Long)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in'?: (number | string | Long)[];
}
/**
* SFixed64Rules describes the constraints applied to `sfixed64` values
*/
export interface SFixed64Rules__Output {
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (string);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt': (string);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte': (string);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt': (string);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte': (string);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in': (string)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in': (string)[];
}

View File

@@ -0,0 +1,86 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
/**
* SInt32Rules describes the constraints applied to `sint32` values
*/
export interface SInt32Rules {
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (number);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt'?: (number);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte'?: (number);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt'?: (number);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte'?: (number);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in'?: (number)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in'?: (number)[];
}
/**
* SInt32Rules describes the constraints applied to `sint32` values
*/
export interface SInt32Rules__Output {
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (number);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt': (number);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte': (number);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt': (number);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte': (number);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in': (number)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in': (number)[];
}

View File

@@ -0,0 +1,87 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
import type { Long } from '@grpc/proto-loader';
/**
* SInt64Rules describes the constraints applied to `sint64` values
*/
export interface SInt64Rules {
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (number | string | Long);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt'?: (number | string | Long);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte'?: (number | string | Long);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt'?: (number | string | Long);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte'?: (number | string | Long);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in'?: (number | string | Long)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in'?: (number | string | Long)[];
}
/**
* SInt64Rules describes the constraints applied to `sint64` values
*/
export interface SInt64Rules__Output {
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (string);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt': (string);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte': (string);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt': (string);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte': (string);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in': (string)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in': (string)[];
}

View File

@@ -0,0 +1,288 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
import type { KnownRegex as _validate_KnownRegex, KnownRegex__Output as _validate_KnownRegex__Output } from '../validate/KnownRegex';
import type { Long } from '@grpc/proto-loader';
/**
* StringRules describe the constraints applied to `string` values
*/
export interface StringRules {
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (string);
/**
* MinLen specifies that this field must be the specified number of
* characters (Unicode code points) at a minimum. Note that the number of
* characters may differ from the number of bytes in the string.
*/
'min_len'?: (number | string | Long);
/**
* MaxLen specifies that this field must be the specified number of
* characters (Unicode code points) at a maximum. Note that the number of
* characters may differ from the number of bytes in the string.
*/
'max_len'?: (number | string | Long);
/**
* MinBytes specifies that this field must be the specified number of bytes
* at a minimum
*/
'min_bytes'?: (number | string | Long);
/**
* MaxBytes specifies that this field must be the specified number of bytes
* at a maximum
*/
'max_bytes'?: (number | string | Long);
/**
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*/
'pattern'?: (string);
/**
* Prefix specifies that this field must have the specified substring at
* the beginning of the string.
*/
'prefix'?: (string);
/**
* Suffix specifies that this field must have the specified substring at
* the end of the string.
*/
'suffix'?: (string);
/**
* Contains specifies that this field must have the specified substring
* anywhere in the string.
*/
'contains'?: (string);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in'?: (string)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in'?: (string)[];
/**
* Email specifies that the field must be a valid email address as
* defined by RFC 5322
*/
'email'?: (boolean);
/**
* Hostname specifies that the field must be a valid hostname as
* defined by RFC 1034. This constraint does not support
* internationalized domain names (IDNs).
*/
'hostname'?: (boolean);
/**
* Ip specifies that the field must be a valid IP (v4 or v6) address.
* Valid IPv6 addresses should not include surrounding square brackets.
*/
'ip'?: (boolean);
/**
* Ipv4 specifies that the field must be a valid IPv4 address.
*/
'ipv4'?: (boolean);
/**
* Ipv6 specifies that the field must be a valid IPv6 address. Valid
* IPv6 addresses should not include surrounding square brackets.
*/
'ipv6'?: (boolean);
/**
* Uri specifies that the field must be a valid, absolute URI as defined
* by RFC 3986
*/
'uri'?: (boolean);
/**
* UriRef specifies that the field must be a valid URI as defined by RFC
* 3986 and may be relative or absolute.
*/
'uri_ref'?: (boolean);
/**
* Len specifies that this field must be the specified number of
* characters (Unicode code points). Note that the number of
* characters may differ from the number of bytes in the string.
*/
'len'?: (number | string | Long);
/**
* LenBytes specifies that this field must be the specified number of bytes
* at a minimum
*/
'len_bytes'?: (number | string | Long);
/**
* Address specifies that the field must be either a valid hostname as
* defined by RFC 1034 (which does not support internationalized domain
* names or IDNs), or it can be a valid IP (v4 or v6).
*/
'address'?: (boolean);
/**
* Uuid specifies that the field must be a valid UUID as defined by
* RFC 4122
*/
'uuid'?: (boolean);
/**
* NotContains specifies that this field cannot have the specified substring
* anywhere in the string.
*/
'not_contains'?: (string);
/**
* WellKnownRegex specifies a common well known pattern defined as a regex.
*/
'well_known_regex'?: (_validate_KnownRegex);
/**
* This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
* strict header validation.
* By default, this is true, and HTTP header validations are RFC-compliant.
* Setting to false will enable a looser validations that only disallows
* \r\n\0 characters, which can be used to bypass header matching rules.
*/
'strict'?: (boolean);
/**
* WellKnown rules provide advanced constraints against common string
* patterns
*/
'well_known'?: "email"|"hostname"|"ip"|"ipv4"|"ipv6"|"uri"|"uri_ref"|"address"|"uuid"|"well_known_regex";
}
/**
* StringRules describe the constraints applied to `string` values
*/
export interface StringRules__Output {
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (string);
/**
* MinLen specifies that this field must be the specified number of
* characters (Unicode code points) at a minimum. Note that the number of
* characters may differ from the number of bytes in the string.
*/
'min_len': (string);
/**
* MaxLen specifies that this field must be the specified number of
* characters (Unicode code points) at a maximum. Note that the number of
* characters may differ from the number of bytes in the string.
*/
'max_len': (string);
/**
* MinBytes specifies that this field must be the specified number of bytes
* at a minimum
*/
'min_bytes': (string);
/**
* MaxBytes specifies that this field must be the specified number of bytes
* at a maximum
*/
'max_bytes': (string);
/**
* Pattern specifes that this field must match against the specified
* regular expression (RE2 syntax). The included expression should elide
* any delimiters.
*/
'pattern': (string);
/**
* Prefix specifies that this field must have the specified substring at
* the beginning of the string.
*/
'prefix': (string);
/**
* Suffix specifies that this field must have the specified substring at
* the end of the string.
*/
'suffix': (string);
/**
* Contains specifies that this field must have the specified substring
* anywhere in the string.
*/
'contains': (string);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in': (string)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in': (string)[];
/**
* Email specifies that the field must be a valid email address as
* defined by RFC 5322
*/
'email'?: (boolean);
/**
* Hostname specifies that the field must be a valid hostname as
* defined by RFC 1034. This constraint does not support
* internationalized domain names (IDNs).
*/
'hostname'?: (boolean);
/**
* Ip specifies that the field must be a valid IP (v4 or v6) address.
* Valid IPv6 addresses should not include surrounding square brackets.
*/
'ip'?: (boolean);
/**
* Ipv4 specifies that the field must be a valid IPv4 address.
*/
'ipv4'?: (boolean);
/**
* Ipv6 specifies that the field must be a valid IPv6 address. Valid
* IPv6 addresses should not include surrounding square brackets.
*/
'ipv6'?: (boolean);
/**
* Uri specifies that the field must be a valid, absolute URI as defined
* by RFC 3986
*/
'uri'?: (boolean);
/**
* UriRef specifies that the field must be a valid URI as defined by RFC
* 3986 and may be relative or absolute.
*/
'uri_ref'?: (boolean);
/**
* Len specifies that this field must be the specified number of
* characters (Unicode code points). Note that the number of
* characters may differ from the number of bytes in the string.
*/
'len': (string);
/**
* LenBytes specifies that this field must be the specified number of bytes
* at a minimum
*/
'len_bytes': (string);
/**
* Address specifies that the field must be either a valid hostname as
* defined by RFC 1034 (which does not support internationalized domain
* names or IDNs), or it can be a valid IP (v4 or v6).
*/
'address'?: (boolean);
/**
* Uuid specifies that the field must be a valid UUID as defined by
* RFC 4122
*/
'uuid'?: (boolean);
/**
* NotContains specifies that this field cannot have the specified substring
* anywhere in the string.
*/
'not_contains': (string);
/**
* WellKnownRegex specifies a common well known pattern defined as a regex.
*/
'well_known_regex'?: (_validate_KnownRegex__Output);
/**
* This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
* strict header validation.
* By default, this is true, and HTTP header validations are RFC-compliant.
* Setting to false will enable a looser validations that only disallows
* \r\n\0 characters, which can be used to bypass header matching rules.
*/
'strict': (boolean);
/**
* WellKnown rules provide advanced constraints against common string
* patterns
*/
'well_known'?: "email"|"hostname"|"ip"|"ipv4"|"ipv6"|"uri"|"uri_ref"|"address"|"uuid"|"well_known_regex";
}

View File

@@ -0,0 +1,106 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../google/protobuf/Timestamp';
import type { Duration as _google_protobuf_Duration, Duration__Output as _google_protobuf_Duration__Output } from '../google/protobuf/Duration';
/**
* TimestampRules describe the constraints applied exclusively to the
* `google.protobuf.Timestamp` well-known type
*/
export interface TimestampRules {
/**
* Required specifies that this field must be set
*/
'required'?: (boolean);
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (_google_protobuf_Timestamp | null);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt'?: (_google_protobuf_Timestamp | null);
/**
* Lte specifies that this field must be less than the specified value,
* inclusive
*/
'lte'?: (_google_protobuf_Timestamp | null);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive
*/
'gt'?: (_google_protobuf_Timestamp | null);
/**
* Gte specifies that this field must be greater than the specified value,
* inclusive
*/
'gte'?: (_google_protobuf_Timestamp | null);
/**
* LtNow specifies that this must be less than the current time. LtNow
* can only be used with the Within rule.
*/
'lt_now'?: (boolean);
/**
* GtNow specifies that this must be greater than the current time. GtNow
* can only be used with the Within rule.
*/
'gt_now'?: (boolean);
/**
* Within specifies that this field must be within this duration of the
* current time. This constraint can be used alone or with the LtNow and
* GtNow rules.
*/
'within'?: (_google_protobuf_Duration | null);
}
/**
* TimestampRules describe the constraints applied exclusively to the
* `google.protobuf.Timestamp` well-known type
*/
export interface TimestampRules__Output {
/**
* Required specifies that this field must be set
*/
'required': (boolean);
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (_google_protobuf_Timestamp__Output | null);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt': (_google_protobuf_Timestamp__Output | null);
/**
* Lte specifies that this field must be less than the specified value,
* inclusive
*/
'lte': (_google_protobuf_Timestamp__Output | null);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive
*/
'gt': (_google_protobuf_Timestamp__Output | null);
/**
* Gte specifies that this field must be greater than the specified value,
* inclusive
*/
'gte': (_google_protobuf_Timestamp__Output | null);
/**
* LtNow specifies that this must be less than the current time. LtNow
* can only be used with the Within rule.
*/
'lt_now': (boolean);
/**
* GtNow specifies that this must be greater than the current time. GtNow
* can only be used with the Within rule.
*/
'gt_now': (boolean);
/**
* Within specifies that this field must be within this duration of the
* current time. This constraint can be used alone or with the LtNow and
* GtNow rules.
*/
'within': (_google_protobuf_Duration__Output | null);
}

View File

@@ -0,0 +1,86 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
/**
* UInt32Rules describes the constraints applied to `uint32` values
*/
export interface UInt32Rules {
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (number);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt'?: (number);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte'?: (number);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt'?: (number);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte'?: (number);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in'?: (number)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in'?: (number)[];
}
/**
* UInt32Rules describes the constraints applied to `uint32` values
*/
export interface UInt32Rules__Output {
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (number);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt': (number);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte': (number);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt': (number);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte': (number);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in': (number)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in': (number)[];
}

View File

@@ -0,0 +1,87 @@
// Original file: proto/protoc-gen-validate/validate/validate.proto
import type { Long } from '@grpc/proto-loader';
/**
* UInt64Rules describes the constraints applied to `uint64` values
*/
export interface UInt64Rules {
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (number | string | Long);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt'?: (number | string | Long);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte'?: (number | string | Long);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt'?: (number | string | Long);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte'?: (number | string | Long);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in'?: (number | string | Long)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in'?: (number | string | Long)[];
}
/**
* UInt64Rules describes the constraints applied to `uint64` values
*/
export interface UInt64Rules__Output {
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (string);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt': (string);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte': (string);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt': (string);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte': (string);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in': (string)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in': (string)[];
}

View File

@@ -0,0 +1,113 @@
// Original file: proto/xds/xds/data/orca/v3/orca_load_report.proto
import type { Long } from '@grpc/proto-loader';
export interface OrcaLoadReport {
/**
* CPU utilization expressed as a fraction of available CPU resources. This
* should be derived from the latest sample or measurement. The value may be
* larger than 1.0 when the usage exceeds the reporter dependent notion of
* soft limits.
*/
'cpu_utilization'?: (number | string);
/**
* Memory utilization expressed as a fraction of available memory
* resources. This should be derived from the latest sample or measurement.
*/
'mem_utilization'?: (number | string);
/**
* Total RPS being served by an endpoint. This should cover all services that an endpoint is
* responsible for.
* Deprecated -- use ``rps_fractional`` field instead.
* @deprecated
*/
'rps'?: (number | string | Long);
/**
* Application specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of
* storage) associated with the request.
*/
'request_cost'?: ({[key: string]: number | string});
/**
* Resource utilization values. Each value is expressed as a fraction of total resources
* available, derived from the latest sample or measurement.
*/
'utilization'?: ({[key: string]: number | string});
/**
* Total RPS being served by an endpoint. This should cover all services that an endpoint is
* responsible for.
*/
'rps_fractional'?: (number | string);
/**
* Total EPS (errors/second) being served by an endpoint. This should cover
* all services that an endpoint is responsible for.
*/
'eps'?: (number | string);
/**
* Application specific opaque metrics.
*/
'named_metrics'?: ({[key: string]: number | string});
/**
* Application specific utilization expressed as a fraction of available
* resources. For example, an application may report the max of CPU and memory
* utilization for better load balancing if it is both CPU and memory bound.
* This should be derived from the latest sample or measurement.
* The value may be larger than 1.0 when the usage exceeds the reporter
* dependent notion of soft limits.
*/
'application_utilization'?: (number | string);
}
export interface OrcaLoadReport__Output {
/**
* CPU utilization expressed as a fraction of available CPU resources. This
* should be derived from the latest sample or measurement. The value may be
* larger than 1.0 when the usage exceeds the reporter dependent notion of
* soft limits.
*/
'cpu_utilization': (number);
/**
* Memory utilization expressed as a fraction of available memory
* resources. This should be derived from the latest sample or measurement.
*/
'mem_utilization': (number);
/**
* Total RPS being served by an endpoint. This should cover all services that an endpoint is
* responsible for.
* Deprecated -- use ``rps_fractional`` field instead.
* @deprecated
*/
'rps': (string);
/**
* Application specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of
* storage) associated with the request.
*/
'request_cost': ({[key: string]: number});
/**
* Resource utilization values. Each value is expressed as a fraction of total resources
* available, derived from the latest sample or measurement.
*/
'utilization': ({[key: string]: number});
/**
* Total RPS being served by an endpoint. This should cover all services that an endpoint is
* responsible for.
*/
'rps_fractional': (number);
/**
* Total EPS (errors/second) being served by an endpoint. This should cover
* all services that an endpoint is responsible for.
*/
'eps': (number);
/**
* Application specific opaque metrics.
*/
'named_metrics': ({[key: string]: number});
/**
* Application specific utilization expressed as a fraction of available
* resources. For example, an application may report the max of CPU and memory
* utilization for better load balancing if it is both CPU and memory bound.
* This should be derived from the latest sample or measurement.
* The value may be larger than 1.0 when the usage exceeds the reporter
* dependent notion of soft limits.
*/
'application_utilization': (number);
}

View File

@@ -0,0 +1,43 @@
// Original file: proto/xds/xds/service/orca/v3/orca.proto
import type * as grpc from '../../../../../index'
import type { MethodDefinition } from '@grpc/proto-loader'
import type { OrcaLoadReport as _xds_data_orca_v3_OrcaLoadReport, OrcaLoadReport__Output as _xds_data_orca_v3_OrcaLoadReport__Output } from '../../../../xds/data/orca/v3/OrcaLoadReport';
import type { OrcaLoadReportRequest as _xds_service_orca_v3_OrcaLoadReportRequest, OrcaLoadReportRequest__Output as _xds_service_orca_v3_OrcaLoadReportRequest__Output } from '../../../../xds/service/orca/v3/OrcaLoadReportRequest';
/**
* Out-of-band (OOB) load reporting service for the additional load reporting
* agent that does not sit in the request path. Reports are periodically sampled
* with sufficient frequency to provide temporal association with requests.
* OOB reporting compensates the limitation of in-band reporting in revealing
* costs for backends that do not provide a steady stream of telemetry such as
* long running stream operations and zero QPS services. This is a server
* streaming service, client needs to terminate current RPC and initiate
* a new call to change backend reporting frequency.
*/
export interface OpenRcaServiceClient extends grpc.Client {
StreamCoreMetrics(argument: _xds_service_orca_v3_OrcaLoadReportRequest, metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream<_xds_data_orca_v3_OrcaLoadReport__Output>;
StreamCoreMetrics(argument: _xds_service_orca_v3_OrcaLoadReportRequest, options?: grpc.CallOptions): grpc.ClientReadableStream<_xds_data_orca_v3_OrcaLoadReport__Output>;
streamCoreMetrics(argument: _xds_service_orca_v3_OrcaLoadReportRequest, metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream<_xds_data_orca_v3_OrcaLoadReport__Output>;
streamCoreMetrics(argument: _xds_service_orca_v3_OrcaLoadReportRequest, options?: grpc.CallOptions): grpc.ClientReadableStream<_xds_data_orca_v3_OrcaLoadReport__Output>;
}
/**
* Out-of-band (OOB) load reporting service for the additional load reporting
* agent that does not sit in the request path. Reports are periodically sampled
* with sufficient frequency to provide temporal association with requests.
* OOB reporting compensates the limitation of in-band reporting in revealing
* costs for backends that do not provide a steady stream of telemetry such as
* long running stream operations and zero QPS services. This is a server
* streaming service, client needs to terminate current RPC and initiate
* a new call to change backend reporting frequency.
*/
export interface OpenRcaServiceHandlers extends grpc.UntypedServiceImplementation {
StreamCoreMetrics: grpc.handleServerStreamingCall<_xds_service_orca_v3_OrcaLoadReportRequest__Output, _xds_data_orca_v3_OrcaLoadReport>;
}
export interface OpenRcaServiceDefinition extends grpc.ServiceDefinition {
StreamCoreMetrics: MethodDefinition<_xds_service_orca_v3_OrcaLoadReportRequest, _xds_data_orca_v3_OrcaLoadReport, _xds_service_orca_v3_OrcaLoadReportRequest__Output, _xds_data_orca_v3_OrcaLoadReport__Output>
}

Some files were not shown because too many files have changed in this diff Show More