Skip to content

Commit

Permalink
[WORKFLOW] Updating protos from viamrobotics/api, commit: a2094d3966b…
Browse files Browse the repository at this point in the history
…dbefa3c2b3c6ed41df8f15bcdd932 (#295)

Co-authored-by: viambot <[email protected]>
  • Loading branch information
github-actions[bot] and viambot authored Nov 12, 2024
1 parent f9649ef commit 254be4b
Show file tree
Hide file tree
Showing 4 changed files with 196 additions and 1 deletion.
144 changes: 144 additions & 0 deletions lib/src/gen/app/v1/app.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2499,6 +2499,150 @@ class UpdateBillingServiceResponse extends $pb.GeneratedMessage {
static UpdateBillingServiceResponse? _defaultInstance;
}

class GetBillingServiceConfigRequest extends $pb.GeneratedMessage {
factory GetBillingServiceConfigRequest({
$core.String? orgId,
}) {
final $result = create();
if (orgId != null) {
$result.orgId = orgId;
}
return $result;
}
GetBillingServiceConfigRequest._() : super();
factory GetBillingServiceConfigRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory GetBillingServiceConfigRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetBillingServiceConfigRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'orgId')
..hasRequiredFields = false
;

@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
GetBillingServiceConfigRequest clone() => GetBillingServiceConfigRequest()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
GetBillingServiceConfigRequest copyWith(void Function(GetBillingServiceConfigRequest) updates) => super.copyWith((message) => updates(message as GetBillingServiceConfigRequest)) as GetBillingServiceConfigRequest;

$pb.BuilderInfo get info_ => _i;

@$core.pragma('dart2js:noInline')
static GetBillingServiceConfigRequest create() => GetBillingServiceConfigRequest._();
GetBillingServiceConfigRequest createEmptyInstance() => create();
static $pb.PbList<GetBillingServiceConfigRequest> createRepeated() => $pb.PbList<GetBillingServiceConfigRequest>();
@$core.pragma('dart2js:noInline')
static GetBillingServiceConfigRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GetBillingServiceConfigRequest>(create);
static GetBillingServiceConfigRequest? _defaultInstance;

@$pb.TagNumber(1)
$core.String get orgId => $_getSZ(0);
@$pb.TagNumber(1)
set orgId($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasOrgId() => $_has(0);
@$pb.TagNumber(1)
void clearOrgId() => clearField(1);
}

class GetBillingServiceConfigResponse extends $pb.GeneratedMessage {
factory GetBillingServiceConfigResponse({
BillingAddress? billingAddress,
$core.String? supportEmail,
$core.String? logoUrl,
$core.String? billingDashboardUrl,
}) {
final $result = create();
if (billingAddress != null) {
$result.billingAddress = billingAddress;
}
if (supportEmail != null) {
$result.supportEmail = supportEmail;
}
if (logoUrl != null) {
$result.logoUrl = logoUrl;
}
if (billingDashboardUrl != null) {
$result.billingDashboardUrl = billingDashboardUrl;
}
return $result;
}
GetBillingServiceConfigResponse._() : super();
factory GetBillingServiceConfigResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory GetBillingServiceConfigResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetBillingServiceConfigResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create)
..aOM<BillingAddress>(1, _omitFieldNames ? '' : 'billingAddress', subBuilder: BillingAddress.create)
..aOS(2, _omitFieldNames ? '' : 'supportEmail')
..aOS(3, _omitFieldNames ? '' : 'logoUrl')
..aOS(4, _omitFieldNames ? '' : 'billingDashboardUrl')
..hasRequiredFields = false
;

@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
GetBillingServiceConfigResponse clone() => GetBillingServiceConfigResponse()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
GetBillingServiceConfigResponse copyWith(void Function(GetBillingServiceConfigResponse) updates) => super.copyWith((message) => updates(message as GetBillingServiceConfigResponse)) as GetBillingServiceConfigResponse;

$pb.BuilderInfo get info_ => _i;

@$core.pragma('dart2js:noInline')
static GetBillingServiceConfigResponse create() => GetBillingServiceConfigResponse._();
GetBillingServiceConfigResponse createEmptyInstance() => create();
static $pb.PbList<GetBillingServiceConfigResponse> createRepeated() => $pb.PbList<GetBillingServiceConfigResponse>();
@$core.pragma('dart2js:noInline')
static GetBillingServiceConfigResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GetBillingServiceConfigResponse>(create);
static GetBillingServiceConfigResponse? _defaultInstance;

@$pb.TagNumber(1)
BillingAddress get billingAddress => $_getN(0);
@$pb.TagNumber(1)
set billingAddress(BillingAddress v) { setField(1, v); }
@$pb.TagNumber(1)
$core.bool hasBillingAddress() => $_has(0);
@$pb.TagNumber(1)
void clearBillingAddress() => clearField(1);
@$pb.TagNumber(1)
BillingAddress ensureBillingAddress() => $_ensure(0);

@$pb.TagNumber(2)
$core.String get supportEmail => $_getSZ(1);
@$pb.TagNumber(2)
set supportEmail($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasSupportEmail() => $_has(1);
@$pb.TagNumber(2)
void clearSupportEmail() => clearField(2);

@$pb.TagNumber(3)
$core.String get logoUrl => $_getSZ(2);
@$pb.TagNumber(3)
set logoUrl($core.String v) { $_setString(2, v); }
@$pb.TagNumber(3)
$core.bool hasLogoUrl() => $_has(2);
@$pb.TagNumber(3)
void clearLogoUrl() => clearField(3);

@$pb.TagNumber(4)
$core.String get billingDashboardUrl => $_getSZ(3);
@$pb.TagNumber(4)
set billingDashboardUrl($core.String v) { $_setString(3, v); }
@$pb.TagNumber(4)
$core.bool hasBillingDashboardUrl() => $_has(3);
@$pb.TagNumber(4)
void clearBillingDashboardUrl() => clearField(4);
}

class DisableBillingServiceRequest extends $pb.GeneratedMessage {
factory DisableBillingServiceRequest({
$core.String? orgId,
Expand Down
20 changes: 20 additions & 0 deletions lib/src/gen/app/v1/app.pbgrpc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ class AppServiceClient extends $grpc.Client {
'/viam.app.v1.AppService/UpdateBillingService',
($9.UpdateBillingServiceRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $9.UpdateBillingServiceResponse.fromBuffer(value));
static final _$getBillingServiceConfig = $grpc.ClientMethod<$9.GetBillingServiceConfigRequest, $9.GetBillingServiceConfigResponse>(
'/viam.app.v1.AppService/GetBillingServiceConfig',
($9.GetBillingServiceConfigRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $9.GetBillingServiceConfigResponse.fromBuffer(value));
static final _$organizationSetSupportEmail = $grpc.ClientMethod<$9.OrganizationSetSupportEmailRequest, $9.OrganizationSetSupportEmailResponse>(
'/viam.app.v1.AppService/OrganizationSetSupportEmail',
($9.OrganizationSetSupportEmailRequest value) => value.writeToBuffer(),
Expand Down Expand Up @@ -412,6 +416,10 @@ class AppServiceClient extends $grpc.Client {
return $createUnaryCall(_$updateBillingService, request, options: options);
}

$grpc.ResponseFuture<$9.GetBillingServiceConfigResponse> getBillingServiceConfig($9.GetBillingServiceConfigRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$getBillingServiceConfig, request, options: options);
}

$grpc.ResponseFuture<$9.OrganizationSetSupportEmailResponse> organizationSetSupportEmail($9.OrganizationSetSupportEmailRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$organizationSetSupportEmail, request, options: options);
}
Expand Down Expand Up @@ -784,6 +792,13 @@ abstract class AppServiceBase extends $grpc.Service {
false,
($core.List<$core.int> value) => $9.UpdateBillingServiceRequest.fromBuffer(value),
($9.UpdateBillingServiceResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$9.GetBillingServiceConfigRequest, $9.GetBillingServiceConfigResponse>(
'GetBillingServiceConfig',
getBillingServiceConfig_Pre,
false,
false,
($core.List<$core.int> value) => $9.GetBillingServiceConfigRequest.fromBuffer(value),
($9.GetBillingServiceConfigResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$9.OrganizationSetSupportEmailRequest, $9.OrganizationSetSupportEmailResponse>(
'OrganizationSetSupportEmail',
organizationSetSupportEmail_Pre,
Expand Down Expand Up @@ -1278,6 +1293,10 @@ abstract class AppServiceBase extends $grpc.Service {
return updateBillingService(call, await request);
}

$async.Future<$9.GetBillingServiceConfigResponse> getBillingServiceConfig_Pre($grpc.ServiceCall call, $async.Future<$9.GetBillingServiceConfigRequest> request) async {
return getBillingServiceConfig(call, await request);
}

$async.Future<$9.OrganizationSetSupportEmailResponse> organizationSetSupportEmail_Pre($grpc.ServiceCall call, $async.Future<$9.OrganizationSetSupportEmailRequest> request) async {
return organizationSetSupportEmail(call, await request);
}
Expand Down Expand Up @@ -1532,6 +1551,7 @@ abstract class AppServiceBase extends $grpc.Service {
$async.Future<$9.EnableBillingServiceResponse> enableBillingService($grpc.ServiceCall call, $9.EnableBillingServiceRequest request);
$async.Future<$9.DisableBillingServiceResponse> disableBillingService($grpc.ServiceCall call, $9.DisableBillingServiceRequest request);
$async.Future<$9.UpdateBillingServiceResponse> updateBillingService($grpc.ServiceCall call, $9.UpdateBillingServiceRequest request);
$async.Future<$9.GetBillingServiceConfigResponse> getBillingServiceConfig($grpc.ServiceCall call, $9.GetBillingServiceConfigRequest request);
$async.Future<$9.OrganizationSetSupportEmailResponse> organizationSetSupportEmail($grpc.ServiceCall call, $9.OrganizationSetSupportEmailRequest request);
$async.Future<$9.OrganizationGetSupportEmailResponse> organizationGetSupportEmail($grpc.ServiceCall call, $9.OrganizationGetSupportEmailRequest request);
$async.Future<$9.CreateLocationResponse> createLocation($grpc.ServiceCall call, $9.CreateLocationRequest request);
Expand Down
31 changes: 31 additions & 0 deletions lib/src/gen/app/v1/app.pbjson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,37 @@ const UpdateBillingServiceResponse$json = {
final $typed_data.Uint8List updateBillingServiceResponseDescriptor = $convert.base64Decode(
'ChxVcGRhdGVCaWxsaW5nU2VydmljZVJlc3BvbnNl');

@$core.Deprecated('Use getBillingServiceConfigRequestDescriptor instead')
const GetBillingServiceConfigRequest$json = {
'1': 'GetBillingServiceConfigRequest',
'2': [
{'1': 'org_id', '3': 1, '4': 1, '5': 9, '10': 'orgId'},
],
};

/// Descriptor for `GetBillingServiceConfigRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List getBillingServiceConfigRequestDescriptor = $convert.base64Decode(
'Ch5HZXRCaWxsaW5nU2VydmljZUNvbmZpZ1JlcXVlc3QSFQoGb3JnX2lkGAEgASgJUgVvcmdJZA'
'==');

@$core.Deprecated('Use getBillingServiceConfigResponseDescriptor instead')
const GetBillingServiceConfigResponse$json = {
'1': 'GetBillingServiceConfigResponse',
'2': [
{'1': 'billing_address', '3': 1, '4': 1, '5': 11, '6': '.viam.app.v1.BillingAddress', '10': 'billingAddress'},
{'1': 'support_email', '3': 2, '4': 1, '5': 9, '10': 'supportEmail'},
{'1': 'logo_url', '3': 3, '4': 1, '5': 9, '10': 'logoUrl'},
{'1': 'billing_dashboard_url', '3': 4, '4': 1, '5': 9, '10': 'billingDashboardUrl'},
],
};

/// Descriptor for `GetBillingServiceConfigResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List getBillingServiceConfigResponseDescriptor = $convert.base64Decode(
'Ch9HZXRCaWxsaW5nU2VydmljZUNvbmZpZ1Jlc3BvbnNlEkQKD2JpbGxpbmdfYWRkcmVzcxgBIA'
'EoCzIbLnZpYW0uYXBwLnYxLkJpbGxpbmdBZGRyZXNzUg5iaWxsaW5nQWRkcmVzcxIjCg1zdXBw'
'b3J0X2VtYWlsGAIgASgJUgxzdXBwb3J0RW1haWwSGQoIbG9nb191cmwYAyABKAlSB2xvZ29Vcm'
'wSMgoVYmlsbGluZ19kYXNoYm9hcmRfdXJsGAQgASgJUhNiaWxsaW5nRGFzaGJvYXJkVXJs');

@$core.Deprecated('Use disableBillingServiceRequestDescriptor instead')
const DisableBillingServiceRequest$json = {
'1': 'DisableBillingServiceRequest',
Expand Down
2 changes: 1 addition & 1 deletion lib/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ grpc_duration.Duration durationToProto(Duration duration) {

String getVersionMetadata() {
const String sdkVersion = 'v0.0.26';
const String apiTag = 'v0.1.360';
const String apiTag = 'v0.1.361';

return 'flutter;$sdkVersion;$apiTag';
}

0 comments on commit 254be4b

Please sign in to comment.