1syntax = "proto2"; 2option go_package = "app_identity"; 3 4package appengine; 5 6message AppIdentityServiceError { 7 enum ErrorCode { 8 SUCCESS = 0; 9 UNKNOWN_SCOPE = 9; 10 BLOB_TOO_LARGE = 1000; 11 DEADLINE_EXCEEDED = 1001; 12 NOT_A_VALID_APP = 1002; 13 UNKNOWN_ERROR = 1003; 14 NOT_ALLOWED = 1005; 15 NOT_IMPLEMENTED = 1006; 16 } 17} 18 19message SignForAppRequest { 20 optional bytes bytes_to_sign = 1; 21} 22 23message SignForAppResponse { 24 optional string key_name = 1; 25 optional bytes signature_bytes = 2; 26} 27 28message GetPublicCertificateForAppRequest { 29} 30 31message PublicCertificate { 32 optional string key_name = 1; 33 optional string x509_certificate_pem = 2; 34} 35 36message GetPublicCertificateForAppResponse { 37 repeated PublicCertificate public_certificate_list = 1; 38 optional int64 max_client_cache_time_in_second = 2; 39} 40 41message GetServiceAccountNameRequest { 42} 43 44message GetServiceAccountNameResponse { 45 optional string service_account_name = 1; 46} 47 48message GetAccessTokenRequest { 49 repeated string scope = 1; 50 optional int64 service_account_id = 2; 51 optional string service_account_name = 3; 52} 53 54message GetAccessTokenResponse { 55 optional string access_token = 1; 56 optional int64 expiration_time = 2; 57} 58 59message GetDefaultGcsBucketNameRequest { 60} 61 62message GetDefaultGcsBucketNameResponse { 63 optional string default_gcs_bucket_name = 1; 64} 65