Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Fix Dart 2 runtime issues. (#77)
Browse files Browse the repository at this point in the history
* Upgrade dependencies.
* Updated protos and regenerated with protoc_plugin 0.8.0.
* Fix Dart 2 runtime issues.
  • Loading branch information
jakobr-google authored May 29, 2018
1 parent e86132d commit b1e956a
Show file tree
Hide file tree
Showing 1,535 changed files with 186,020 additions and 24,521 deletions.
5 changes: 4 additions & 1 deletion lib/src/grpc_api/dart/google/api/annotations.pb.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
///
// Generated code. Do not modify.
///
library google.api_annotations;
// ignore_for_file: non_constant_identifier_names,library_prefixes

// ignore: UNUSED_SHOWN_NAME
import 'dart:core' show int, bool, double, String, List, override;

import 'package:protobuf/protobuf.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/src/grpc_api/dart/google/api/annotations.pbenum.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///
// Generated code. Do not modify.
///
library google.api_annotations_pbenum;
// ignore_for_file: non_constant_identifier_names,library_prefixes

2 changes: 1 addition & 1 deletion lib/src/grpc_api/dart/google/api/annotations.pbjson.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///
// Generated code. Do not modify.
///
library google.api_annotations_pbjson;
// ignore_for_file: non_constant_identifier_names,library_prefixes

2 changes: 1 addition & 1 deletion lib/src/grpc_api/dart/google/api/annotations.pbserver.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
///
// Generated code. Do not modify.
///
library google.api_annotations_pbserver;
// ignore_for_file: non_constant_identifier_names,library_prefixes

export 'annotations.pb.dart';

113 changes: 61 additions & 52 deletions lib/src/grpc_api/dart/google/api/auth.pb.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
///
// Generated code. Do not modify.
///
library google.api_auth;
// ignore_for_file: non_constant_identifier_names,library_prefixes

// ignore: UNUSED_SHOWN_NAME
import 'dart:core' show int, bool, double, String, List, override;

import 'package:protobuf/protobuf.dart';

class Authentication extends GeneratedMessage {
static final BuilderInfo _i = new BuilderInfo('Authentication')
..pp/*<AuthenticationRule>*/(3, 'rules', PbFieldType.PM, AuthenticationRule.$checkItem, AuthenticationRule.create)
..pp/*<AuthProvider>*/(4, 'providers', PbFieldType.PM, AuthProvider.$checkItem, AuthProvider.create)
..pp<AuthenticationRule>(3, 'rules', PbFieldType.PM, AuthenticationRule.$checkItem, AuthenticationRule.create)
..pp<AuthProvider>(4, 'providers', PbFieldType.PM, AuthProvider.$checkItem, AuthProvider.create)
..hasRequiredFields = false
;

Expand All @@ -25,22 +28,22 @@ class Authentication extends GeneratedMessage {
}
static Authentication _defaultInstance;
static void $checkItem(Authentication v) {
if (v is !Authentication) checkItemFailed(v, 'Authentication');
if (v is! Authentication) checkItemFailed(v, 'Authentication');
}

List<AuthenticationRule> get rules => $_get(0, 3, null);
List<AuthenticationRule> get rules => $_getList(0);

List<AuthProvider> get providers => $_get(1, 4, null);
List<AuthProvider> get providers => $_getList(1);
}

class _ReadonlyAuthentication extends Authentication with ReadonlyMessageMixin {}

class AuthenticationRule extends GeneratedMessage {
static final BuilderInfo _i = new BuilderInfo('AuthenticationRule')
..a/*<String>*/(1, 'selector', PbFieldType.OS)
..a/*<OAuthRequirements>*/(2, 'oauth', PbFieldType.OM, OAuthRequirements.getDefault, OAuthRequirements.create)
..a/*<bool>*/(5, 'allowWithoutCredential', PbFieldType.OB)
..pp/*<AuthRequirement>*/(7, 'requirements', PbFieldType.PM, AuthRequirement.$checkItem, AuthRequirement.create)
..aOS(1, 'selector')
..a<OAuthRequirements>(2, 'oauth', PbFieldType.OM, OAuthRequirements.getDefault, OAuthRequirements.create)
..aOB(5, 'allowWithoutCredential')
..pp<AuthRequirement>(7, 'requirements', PbFieldType.PM, AuthRequirement.$checkItem, AuthRequirement.create)
..hasRequiredFields = false
;

Expand All @@ -57,35 +60,36 @@ class AuthenticationRule extends GeneratedMessage {
}
static AuthenticationRule _defaultInstance;
static void $checkItem(AuthenticationRule v) {
if (v is !AuthenticationRule) checkItemFailed(v, 'AuthenticationRule');
if (v is! AuthenticationRule) checkItemFailed(v, 'AuthenticationRule');
}

String get selector => $_get(0, 1, '');
void set selector(String v) { $_setString(0, 1, v); }
bool hasSelector() => $_has(0, 1);
String get selector => $_getS(0, '');
set selector(String v) { $_setString(0, v); }
bool hasSelector() => $_has(0);
void clearSelector() => clearField(1);

OAuthRequirements get oauth => $_get(1, 2, null);
void set oauth(OAuthRequirements v) { setField(2, v); }
bool hasOauth() => $_has(1, 2);
OAuthRequirements get oauth => $_getN(1);
set oauth(OAuthRequirements v) { setField(2, v); }
bool hasOauth() => $_has(1);
void clearOauth() => clearField(2);

bool get allowWithoutCredential => $_get(2, 5, false);
void set allowWithoutCredential(bool v) { $_setBool(2, 5, v); }
bool hasAllowWithoutCredential() => $_has(2, 5);
bool get allowWithoutCredential => $_get(2, false);
set allowWithoutCredential(bool v) { $_setBool(2, v); }
bool hasAllowWithoutCredential() => $_has(2);
void clearAllowWithoutCredential() => clearField(5);

List<AuthRequirement> get requirements => $_get(3, 7, null);
List<AuthRequirement> get requirements => $_getList(3);
}

class _ReadonlyAuthenticationRule extends AuthenticationRule with ReadonlyMessageMixin {}

class AuthProvider extends GeneratedMessage {
static final BuilderInfo _i = new BuilderInfo('AuthProvider')
..a/*<String>*/(1, 'id', PbFieldType.OS)
..a/*<String>*/(2, 'issuer', PbFieldType.OS)
..a/*<String>*/(3, 'jwksUri', PbFieldType.OS)
..a/*<String>*/(4, 'audiences', PbFieldType.OS)
..aOS(1, 'id')
..aOS(2, 'issuer')
..aOS(3, 'jwksUri')
..aOS(4, 'audiences')
..aOS(5, 'authorizationUrl')
..hasRequiredFields = false
;

Expand All @@ -102,35 +106,40 @@ class AuthProvider extends GeneratedMessage {
}
static AuthProvider _defaultInstance;
static void $checkItem(AuthProvider v) {
if (v is !AuthProvider) checkItemFailed(v, 'AuthProvider');
if (v is! AuthProvider) checkItemFailed(v, 'AuthProvider');
}

String get id => $_get(0, 1, '');
void set id(String v) { $_setString(0, 1, v); }
bool hasId() => $_has(0, 1);
String get id => $_getS(0, '');
set id(String v) { $_setString(0, v); }
bool hasId() => $_has(0);
void clearId() => clearField(1);

String get issuer => $_get(1, 2, '');
void set issuer(String v) { $_setString(1, 2, v); }
bool hasIssuer() => $_has(1, 2);
String get issuer => $_getS(1, '');
set issuer(String v) { $_setString(1, v); }
bool hasIssuer() => $_has(1);
void clearIssuer() => clearField(2);

String get jwksUri => $_get(2, 3, '');
void set jwksUri(String v) { $_setString(2, 3, v); }
bool hasJwksUri() => $_has(2, 3);
String get jwksUri => $_getS(2, '');
set jwksUri(String v) { $_setString(2, v); }
bool hasJwksUri() => $_has(2);
void clearJwksUri() => clearField(3);

String get audiences => $_get(3, 4, '');
void set audiences(String v) { $_setString(3, 4, v); }
bool hasAudiences() => $_has(3, 4);
String get audiences => $_getS(3, '');
set audiences(String v) { $_setString(3, v); }
bool hasAudiences() => $_has(3);
void clearAudiences() => clearField(4);

String get authorizationUrl => $_getS(4, '');
set authorizationUrl(String v) { $_setString(4, v); }
bool hasAuthorizationUrl() => $_has(4);
void clearAuthorizationUrl() => clearField(5);
}

class _ReadonlyAuthProvider extends AuthProvider with ReadonlyMessageMixin {}

class OAuthRequirements extends GeneratedMessage {
static final BuilderInfo _i = new BuilderInfo('OAuthRequirements')
..a/*<String>*/(1, 'canonicalScopes', PbFieldType.OS)
..aOS(1, 'canonicalScopes')
..hasRequiredFields = false
;

Expand All @@ -147,21 +156,21 @@ class OAuthRequirements extends GeneratedMessage {
}
static OAuthRequirements _defaultInstance;
static void $checkItem(OAuthRequirements v) {
if (v is !OAuthRequirements) checkItemFailed(v, 'OAuthRequirements');
if (v is! OAuthRequirements) checkItemFailed(v, 'OAuthRequirements');
}

String get canonicalScopes => $_get(0, 1, '');
void set canonicalScopes(String v) { $_setString(0, 1, v); }
bool hasCanonicalScopes() => $_has(0, 1);
String get canonicalScopes => $_getS(0, '');
set canonicalScopes(String v) { $_setString(0, v); }
bool hasCanonicalScopes() => $_has(0);
void clearCanonicalScopes() => clearField(1);
}

class _ReadonlyOAuthRequirements extends OAuthRequirements with ReadonlyMessageMixin {}

class AuthRequirement extends GeneratedMessage {
static final BuilderInfo _i = new BuilderInfo('AuthRequirement')
..a/*<String>*/(1, 'providerId', PbFieldType.OS)
..a/*<String>*/(2, 'audiences', PbFieldType.OS)
..aOS(1, 'providerId')
..aOS(2, 'audiences')
..hasRequiredFields = false
;

Expand All @@ -178,17 +187,17 @@ class AuthRequirement extends GeneratedMessage {
}
static AuthRequirement _defaultInstance;
static void $checkItem(AuthRequirement v) {
if (v is !AuthRequirement) checkItemFailed(v, 'AuthRequirement');
if (v is! AuthRequirement) checkItemFailed(v, 'AuthRequirement');
}

String get providerId => $_get(0, 1, '');
void set providerId(String v) { $_setString(0, 1, v); }
bool hasProviderId() => $_has(0, 1);
String get providerId => $_getS(0, '');
set providerId(String v) { $_setString(0, v); }
bool hasProviderId() => $_has(0);
void clearProviderId() => clearField(1);

String get audiences => $_get(1, 2, '');
void set audiences(String v) { $_setString(1, 2, v); }
bool hasAudiences() => $_has(1, 2);
String get audiences => $_getS(1, '');
set audiences(String v) { $_setString(1, v); }
bool hasAudiences() => $_has(1);
void clearAudiences() => clearField(2);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/src/grpc_api/dart/google/api/auth.pbenum.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///
// Generated code. Do not modify.
///
library google.api_auth_pbenum;
// ignore_for_file: non_constant_identifier_names,library_prefixes

29 changes: 15 additions & 14 deletions lib/src/grpc_api/dart/google/api/auth.pbjson.dart
Original file line number Diff line number Diff line change
@@ -1,48 +1,49 @@
///
// Generated code. Do not modify.
///
library google.api_auth_pbjson;
// ignore_for_file: non_constant_identifier_names,library_prefixes

const Authentication$json = const {
'1': 'Authentication',
'2': const [
const {'1': 'rules', '3': 3, '4': 3, '5': 11, '6': '.google.api.AuthenticationRule'},
const {'1': 'providers', '3': 4, '4': 3, '5': 11, '6': '.google.api.AuthProvider'},
const {'1': 'rules', '3': 3, '4': 3, '5': 11, '6': '.google.api.AuthenticationRule', '10': 'rules'},
const {'1': 'providers', '3': 4, '4': 3, '5': 11, '6': '.google.api.AuthProvider', '10': 'providers'},
],
};

const AuthenticationRule$json = const {
'1': 'AuthenticationRule',
'2': const [
const {'1': 'selector', '3': 1, '4': 1, '5': 9},
const {'1': 'oauth', '3': 2, '4': 1, '5': 11, '6': '.google.api.OAuthRequirements'},
const {'1': 'allow_without_credential', '3': 5, '4': 1, '5': 8},
const {'1': 'requirements', '3': 7, '4': 3, '5': 11, '6': '.google.api.AuthRequirement'},
const {'1': 'selector', '3': 1, '4': 1, '5': 9, '10': 'selector'},
const {'1': 'oauth', '3': 2, '4': 1, '5': 11, '6': '.google.api.OAuthRequirements', '10': 'oauth'},
const {'1': 'allow_without_credential', '3': 5, '4': 1, '5': 8, '10': 'allowWithoutCredential'},
const {'1': 'requirements', '3': 7, '4': 3, '5': 11, '6': '.google.api.AuthRequirement', '10': 'requirements'},
],
};

const AuthProvider$json = const {
'1': 'AuthProvider',
'2': const [
const {'1': 'id', '3': 1, '4': 1, '5': 9},
const {'1': 'issuer', '3': 2, '4': 1, '5': 9},
const {'1': 'jwks_uri', '3': 3, '4': 1, '5': 9},
const {'1': 'audiences', '3': 4, '4': 1, '5': 9},
const {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},
const {'1': 'issuer', '3': 2, '4': 1, '5': 9, '10': 'issuer'},
const {'1': 'jwks_uri', '3': 3, '4': 1, '5': 9, '10': 'jwksUri'},
const {'1': 'audiences', '3': 4, '4': 1, '5': 9, '10': 'audiences'},
const {'1': 'authorization_url', '3': 5, '4': 1, '5': 9, '10': 'authorizationUrl'},
],
};

const OAuthRequirements$json = const {
'1': 'OAuthRequirements',
'2': const [
const {'1': 'canonical_scopes', '3': 1, '4': 1, '5': 9},
const {'1': 'canonical_scopes', '3': 1, '4': 1, '5': 9, '10': 'canonicalScopes'},
],
};

const AuthRequirement$json = const {
'1': 'AuthRequirement',
'2': const [
const {'1': 'provider_id', '3': 1, '4': 1, '5': 9},
const {'1': 'audiences', '3': 2, '4': 1, '5': 9},
const {'1': 'provider_id', '3': 1, '4': 1, '5': 9, '10': 'providerId'},
const {'1': 'audiences', '3': 2, '4': 1, '5': 9, '10': 'audiences'},
],
};

2 changes: 1 addition & 1 deletion lib/src/grpc_api/dart/google/api/auth.pbserver.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
///
// Generated code. Do not modify.
///
library google.api_auth_pbserver;
// ignore_for_file: non_constant_identifier_names,library_prefixes

export 'auth.pb.dart';

Loading

0 comments on commit b1e956a

Please sign in to comment.