Add device-profile option to configure region configuration.

By selecting a region configuration, devices using the device-profile
will only stick to the selected region configuration, rather than the
configurations provided by the selected region common-name.

This change also renames the region 'name' option to 'id' in the region
configuration, as well it adds a 'description' to provide a human
readable description, which is used in the drop-down in the UI.

This also fixes the JS API generation. In a previous commit the the
protobuf package was updated, but the latest protobuf compiler no longer
supports generating JS code (this now requires an external plugin). This
has been fixed.

Please note that if you have implemented custom ADR algorithms that are
referring to the 'regionName' key, that you must change this to
'regionConfigId' (see the ADR code example).
This commit is contained in:
Orne Brocaar
2023-01-09 12:04:10 +00:00
parent 6016159c86
commit 103e4298fb
179 changed files with 6247 additions and 3783 deletions

View File

@ -4,7 +4,11 @@
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
// versions:
// protoc-gen-grpc-web v1.4.2
// protoc v3.12.4
// source: api/internal.proto
/* eslint-disable */
@ -29,7 +33,7 @@ proto.api = require('./internal_pb.js');
/**
* @param {string} hostname
* @param {?Object} credentials
* @param {?Object} options
* @param {?grpc.web.ClientOptions} options
* @constructor
* @struct
* @final
@ -37,7 +41,7 @@ proto.api = require('./internal_pb.js');
proto.api.InternalServiceClient =
function(hostname, credentials, options) {
if (!options) options = {};
options['format'] = 'text';
options.format = 'text';
/**
* @private @const {!grpc.web.GrpcWebClientBase} The client
@ -47,7 +51,7 @@ proto.api.InternalServiceClient =
/**
* @private @const {string} The hostname
*/
this.hostname_ = hostname;
this.hostname_ = hostname.replace(/\/+$/, '');
};
@ -55,7 +59,7 @@ proto.api.InternalServiceClient =
/**
* @param {string} hostname
* @param {?Object} credentials
* @param {?Object} options
* @param {?grpc.web.ClientOptions} options
* @constructor
* @struct
* @final
@ -63,7 +67,7 @@ proto.api.InternalServiceClient =
proto.api.InternalServicePromiseClient =
function(hostname, credentials, options) {
if (!options) options = {};
options['format'] = 'text';
options.format = 'text';
/**
* @private @const {!grpc.web.GrpcWebClientBase} The client
@ -73,7 +77,7 @@ proto.api.InternalServicePromiseClient =
/**
* @private @const {string} The hostname
*/
this.hostname_ = hostname;
this.hostname_ = hostname.replace(/\/+$/, '');
};
@ -100,31 +104,12 @@ const methodDescriptor_InternalService_Login = new grpc.web.MethodDescriptor(
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.LoginRequest,
* !proto.api.LoginResponse>}
*/
const methodInfo_InternalService_Login = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.LoginResponse,
/**
* @param {!proto.api.LoginRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.LoginResponse.deserializeBinary
);
/**
* @param {!proto.api.LoginRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.LoginResponse)}
* @param {function(?grpc.web.RpcError, ?proto.api.LoginResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.LoginResponse>|undefined}
* The XHR Node Readable Stream
@ -143,7 +128,7 @@ proto.api.InternalServiceClient.prototype.login =
/**
* @param {!proto.api.LoginRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.api.LoginResponse>}
* Promise that resolves to the response
@ -180,31 +165,12 @@ const methodDescriptor_InternalService_Profile = new grpc.web.MethodDescriptor(
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.google.protobuf.Empty,
* !proto.api.ProfileResponse>}
*/
const methodInfo_InternalService_Profile = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.ProfileResponse,
/**
* @param {!proto.google.protobuf.Empty} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ProfileResponse.deserializeBinary
);
/**
* @param {!proto.google.protobuf.Empty} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.ProfileResponse)}
* @param {function(?grpc.web.RpcError, ?proto.api.ProfileResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.ProfileResponse>|undefined}
* The XHR Node Readable Stream
@ -223,7 +189,7 @@ proto.api.InternalServiceClient.prototype.profile =
/**
* @param {!proto.google.protobuf.Empty} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.api.ProfileResponse>}
* Promise that resolves to the response
@ -260,31 +226,12 @@ const methodDescriptor_InternalService_GlobalSearch = new grpc.web.MethodDescrip
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.GlobalSearchRequest,
* !proto.api.GlobalSearchResponse>}
*/
const methodInfo_InternalService_GlobalSearch = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.GlobalSearchResponse,
/**
* @param {!proto.api.GlobalSearchRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GlobalSearchResponse.deserializeBinary
);
/**
* @param {!proto.api.GlobalSearchRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.GlobalSearchResponse)}
* @param {function(?grpc.web.RpcError, ?proto.api.GlobalSearchResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.GlobalSearchResponse>|undefined}
* The XHR Node Readable Stream
@ -303,7 +250,7 @@ proto.api.InternalServiceClient.prototype.globalSearch =
/**
* @param {!proto.api.GlobalSearchRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.api.GlobalSearchResponse>}
* Promise that resolves to the response
@ -340,31 +287,12 @@ const methodDescriptor_InternalService_CreateApiKey = new grpc.web.MethodDescrip
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.CreateApiKeyRequest,
* !proto.api.CreateApiKeyResponse>}
*/
const methodInfo_InternalService_CreateApiKey = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.CreateApiKeyResponse,
/**
* @param {!proto.api.CreateApiKeyRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.CreateApiKeyResponse.deserializeBinary
);
/**
* @param {!proto.api.CreateApiKeyRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.CreateApiKeyResponse)}
* @param {function(?grpc.web.RpcError, ?proto.api.CreateApiKeyResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.CreateApiKeyResponse>|undefined}
* The XHR Node Readable Stream
@ -383,7 +311,7 @@ proto.api.InternalServiceClient.prototype.createApiKey =
/**
* @param {!proto.api.CreateApiKeyRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.api.CreateApiKeyResponse>}
* Promise that resolves to the response
@ -420,31 +348,12 @@ const methodDescriptor_InternalService_DeleteApiKey = new grpc.web.MethodDescrip
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.DeleteApiKeyRequest,
* !proto.google.protobuf.Empty>}
*/
const methodInfo_InternalService_DeleteApiKey = new grpc.web.AbstractClientBase.MethodInfo(
google_protobuf_empty_pb.Empty,
/**
* @param {!proto.api.DeleteApiKeyRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
google_protobuf_empty_pb.Empty.deserializeBinary
);
/**
* @param {!proto.api.DeleteApiKeyRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)}
* @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
* The XHR Node Readable Stream
@ -463,7 +372,7 @@ proto.api.InternalServiceClient.prototype.deleteApiKey =
/**
* @param {!proto.api.DeleteApiKeyRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.google.protobuf.Empty>}
* Promise that resolves to the response
@ -500,31 +409,12 @@ const methodDescriptor_InternalService_ListApiKeys = new grpc.web.MethodDescript
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.ListApiKeysRequest,
* !proto.api.ListApiKeysResponse>}
*/
const methodInfo_InternalService_ListApiKeys = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.ListApiKeysResponse,
/**
* @param {!proto.api.ListApiKeysRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ListApiKeysResponse.deserializeBinary
);
/**
* @param {!proto.api.ListApiKeysRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.ListApiKeysResponse)}
* @param {function(?grpc.web.RpcError, ?proto.api.ListApiKeysResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.ListApiKeysResponse>|undefined}
* The XHR Node Readable Stream
@ -543,7 +433,7 @@ proto.api.InternalServiceClient.prototype.listApiKeys =
/**
* @param {!proto.api.ListApiKeysRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.api.ListApiKeysResponse>}
* Promise that resolves to the response
@ -580,31 +470,12 @@ const methodDescriptor_InternalService_Settings = new grpc.web.MethodDescriptor(
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.google.protobuf.Empty,
* !proto.api.SettingsResponse>}
*/
const methodInfo_InternalService_Settings = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.SettingsResponse,
/**
* @param {!proto.google.protobuf.Empty} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.SettingsResponse.deserializeBinary
);
/**
* @param {!proto.google.protobuf.Empty} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.SettingsResponse)}
* @param {function(?grpc.web.RpcError, ?proto.api.SettingsResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.SettingsResponse>|undefined}
* The XHR Node Readable Stream
@ -623,7 +494,7 @@ proto.api.InternalServiceClient.prototype.settings =
/**
* @param {!proto.google.protobuf.Empty} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.api.SettingsResponse>}
* Promise that resolves to the response
@ -660,31 +531,12 @@ const methodDescriptor_InternalService_OpenIdConnectLogin = new grpc.web.MethodD
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.OpenIdConnectLoginRequest,
* !proto.api.OpenIdConnectLoginResponse>}
*/
const methodInfo_InternalService_OpenIdConnectLogin = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.OpenIdConnectLoginResponse,
/**
* @param {!proto.api.OpenIdConnectLoginRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.OpenIdConnectLoginResponse.deserializeBinary
);
/**
* @param {!proto.api.OpenIdConnectLoginRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.OpenIdConnectLoginResponse)}
* @param {function(?grpc.web.RpcError, ?proto.api.OpenIdConnectLoginResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.OpenIdConnectLoginResponse>|undefined}
* The XHR Node Readable Stream
@ -703,7 +555,7 @@ proto.api.InternalServiceClient.prototype.openIdConnectLogin =
/**
* @param {!proto.api.OpenIdConnectLoginRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.api.OpenIdConnectLoginResponse>}
* Promise that resolves to the response
@ -740,31 +592,12 @@ const methodDescriptor_InternalService_GetDevicesSummary = new grpc.web.MethodDe
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.GetDevicesSummaryRequest,
* !proto.api.GetDevicesSummaryResponse>}
*/
const methodInfo_InternalService_GetDevicesSummary = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.GetDevicesSummaryResponse,
/**
* @param {!proto.api.GetDevicesSummaryRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GetDevicesSummaryResponse.deserializeBinary
);
/**
* @param {!proto.api.GetDevicesSummaryRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.GetDevicesSummaryResponse)}
* @param {function(?grpc.web.RpcError, ?proto.api.GetDevicesSummaryResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.GetDevicesSummaryResponse>|undefined}
* The XHR Node Readable Stream
@ -783,7 +616,7 @@ proto.api.InternalServiceClient.prototype.getDevicesSummary =
/**
* @param {!proto.api.GetDevicesSummaryRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.api.GetDevicesSummaryResponse>}
* Promise that resolves to the response
@ -820,31 +653,12 @@ const methodDescriptor_InternalService_GetGatewaysSummary = new grpc.web.MethodD
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.GetGatewaysSummaryRequest,
* !proto.api.GetGatewaysSummaryResponse>}
*/
const methodInfo_InternalService_GetGatewaysSummary = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.GetGatewaysSummaryResponse,
/**
* @param {!proto.api.GetGatewaysSummaryRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GetGatewaysSummaryResponse.deserializeBinary
);
/**
* @param {!proto.api.GetGatewaysSummaryRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.GetGatewaysSummaryResponse)}
* @param {function(?grpc.web.RpcError, ?proto.api.GetGatewaysSummaryResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.GetGatewaysSummaryResponse>|undefined}
* The XHR Node Readable Stream
@ -863,7 +677,7 @@ proto.api.InternalServiceClient.prototype.getGatewaysSummary =
/**
* @param {!proto.api.GetGatewaysSummaryRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.api.GetGatewaysSummaryResponse>}
* Promise that resolves to the response
@ -900,28 +714,9 @@ const methodDescriptor_InternalService_StreamGatewayFrames = new grpc.web.Method
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.StreamGatewayFramesRequest,
* !proto.api.LogItem>}
*/
const methodInfo_InternalService_StreamGatewayFrames = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.LogItem,
/**
* @param {!proto.api.StreamGatewayFramesRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.LogItem.deserializeBinary
);
/**
* @param {!proto.api.StreamGatewayFramesRequest} request The request proto
* @param {?Object<string, string>} metadata User defined
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!grpc.web.ClientReadableStream<!proto.api.LogItem>}
* The XHR Node Readable Stream
@ -938,7 +733,7 @@ proto.api.InternalServiceClient.prototype.streamGatewayFrames =
/**
* @param {!proto.api.StreamGatewayFramesRequest} request The request proto
* @param {?Object<string, string>} metadata User defined
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!grpc.web.ClientReadableStream<!proto.api.LogItem>}
* The XHR Node Readable Stream
@ -975,28 +770,9 @@ const methodDescriptor_InternalService_StreamDeviceFrames = new grpc.web.MethodD
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.StreamDeviceFramesRequest,
* !proto.api.LogItem>}
*/
const methodInfo_InternalService_StreamDeviceFrames = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.LogItem,
/**
* @param {!proto.api.StreamDeviceFramesRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.LogItem.deserializeBinary
);
/**
* @param {!proto.api.StreamDeviceFramesRequest} request The request proto
* @param {?Object<string, string>} metadata User defined
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!grpc.web.ClientReadableStream<!proto.api.LogItem>}
* The XHR Node Readable Stream
@ -1013,7 +789,7 @@ proto.api.InternalServiceClient.prototype.streamDeviceFrames =
/**
* @param {!proto.api.StreamDeviceFramesRequest} request The request proto
* @param {?Object<string, string>} metadata User defined
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!grpc.web.ClientReadableStream<!proto.api.LogItem>}
* The XHR Node Readable Stream
@ -1050,28 +826,9 @@ const methodDescriptor_InternalService_StreamDeviceEvents = new grpc.web.MethodD
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.StreamDeviceEventsRequest,
* !proto.api.LogItem>}
*/
const methodInfo_InternalService_StreamDeviceEvents = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.LogItem,
/**
* @param {!proto.api.StreamDeviceEventsRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.LogItem.deserializeBinary
);
/**
* @param {!proto.api.StreamDeviceEventsRequest} request The request proto
* @param {?Object<string, string>} metadata User defined
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!grpc.web.ClientReadableStream<!proto.api.LogItem>}
* The XHR Node Readable Stream
@ -1088,7 +845,7 @@ proto.api.InternalServiceClient.prototype.streamDeviceEvents =
/**
* @param {!proto.api.StreamDeviceEventsRequest} request The request proto
* @param {?Object<string, string>} metadata User defined
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!grpc.web.ClientReadableStream<!proto.api.LogItem>}
* The XHR Node Readable Stream
@ -1125,31 +882,12 @@ const methodDescriptor_InternalService_ListRegions = new grpc.web.MethodDescript
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.google.protobuf.Empty,
* !proto.api.ListRegionsResponse>}
*/
const methodInfo_InternalService_ListRegions = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.ListRegionsResponse,
/**
* @param {!proto.google.protobuf.Empty} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.ListRegionsResponse.deserializeBinary
);
/**
* @param {!proto.google.protobuf.Empty} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.ListRegionsResponse)}
* @param {function(?grpc.web.RpcError, ?proto.api.ListRegionsResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.ListRegionsResponse>|undefined}
* The XHR Node Readable Stream
@ -1168,7 +906,7 @@ proto.api.InternalServiceClient.prototype.listRegions =
/**
* @param {!proto.google.protobuf.Empty} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.api.ListRegionsResponse>}
* Promise that resolves to the response
@ -1205,31 +943,12 @@ const methodDescriptor_InternalService_GetRegion = new grpc.web.MethodDescriptor
);
/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.api.GetRegionRequest,
* !proto.api.GetRegionResponse>}
*/
const methodInfo_InternalService_GetRegion = new grpc.web.AbstractClientBase.MethodInfo(
proto.api.GetRegionResponse,
/**
* @param {!proto.api.GetRegionRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.api.GetRegionResponse.deserializeBinary
);
/**
* @param {!proto.api.GetRegionRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.api.GetRegionResponse)}
* @param {function(?grpc.web.RpcError, ?proto.api.GetRegionResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.api.GetRegionResponse>|undefined}
* The XHR Node Readable Stream
@ -1248,7 +967,7 @@ proto.api.InternalServiceClient.prototype.getRegion =
/**
* @param {!proto.api.GetRegionRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.api.GetRegionResponse>}
* Promise that resolves to the response