1// Code generated by protoc-gen-go. 2// source: google.golang.org/appengine/internal/app_identity/app_identity_service.proto 3// DO NOT EDIT! 4 5/* 6Package app_identity is a generated protocol buffer package. 7 8It is generated from these files: 9 google.golang.org/appengine/internal/app_identity/app_identity_service.proto 10 11It has these top-level messages: 12 AppIdentityServiceError 13 SignForAppRequest 14 SignForAppResponse 15 GetPublicCertificateForAppRequest 16 PublicCertificate 17 GetPublicCertificateForAppResponse 18 GetServiceAccountNameRequest 19 GetServiceAccountNameResponse 20 GetAccessTokenRequest 21 GetAccessTokenResponse 22 GetDefaultGcsBucketNameRequest 23 GetDefaultGcsBucketNameResponse 24*/ 25package app_identity 26 27import proto "github.com/golang/protobuf/proto" 28import fmt "fmt" 29import math "math" 30 31// Reference imports to suppress errors if they are not otherwise used. 32var _ = proto.Marshal 33var _ = fmt.Errorf 34var _ = math.Inf 35 36type AppIdentityServiceError_ErrorCode int32 37 38const ( 39 AppIdentityServiceError_SUCCESS AppIdentityServiceError_ErrorCode = 0 40 AppIdentityServiceError_UNKNOWN_SCOPE AppIdentityServiceError_ErrorCode = 9 41 AppIdentityServiceError_BLOB_TOO_LARGE AppIdentityServiceError_ErrorCode = 1000 42 AppIdentityServiceError_DEADLINE_EXCEEDED AppIdentityServiceError_ErrorCode = 1001 43 AppIdentityServiceError_NOT_A_VALID_APP AppIdentityServiceError_ErrorCode = 1002 44 AppIdentityServiceError_UNKNOWN_ERROR AppIdentityServiceError_ErrorCode = 1003 45 AppIdentityServiceError_NOT_ALLOWED AppIdentityServiceError_ErrorCode = 1005 46 AppIdentityServiceError_NOT_IMPLEMENTED AppIdentityServiceError_ErrorCode = 1006 47) 48 49var AppIdentityServiceError_ErrorCode_name = map[int32]string{ 50 0: "SUCCESS", 51 9: "UNKNOWN_SCOPE", 52 1000: "BLOB_TOO_LARGE", 53 1001: "DEADLINE_EXCEEDED", 54 1002: "NOT_A_VALID_APP", 55 1003: "UNKNOWN_ERROR", 56 1005: "NOT_ALLOWED", 57 1006: "NOT_IMPLEMENTED", 58} 59var AppIdentityServiceError_ErrorCode_value = map[string]int32{ 60 "SUCCESS": 0, 61 "UNKNOWN_SCOPE": 9, 62 "BLOB_TOO_LARGE": 1000, 63 "DEADLINE_EXCEEDED": 1001, 64 "NOT_A_VALID_APP": 1002, 65 "UNKNOWN_ERROR": 1003, 66 "NOT_ALLOWED": 1005, 67 "NOT_IMPLEMENTED": 1006, 68} 69 70func (x AppIdentityServiceError_ErrorCode) Enum() *AppIdentityServiceError_ErrorCode { 71 p := new(AppIdentityServiceError_ErrorCode) 72 *p = x 73 return p 74} 75func (x AppIdentityServiceError_ErrorCode) String() string { 76 return proto.EnumName(AppIdentityServiceError_ErrorCode_name, int32(x)) 77} 78func (x *AppIdentityServiceError_ErrorCode) UnmarshalJSON(data []byte) error { 79 value, err := proto.UnmarshalJSONEnum(AppIdentityServiceError_ErrorCode_value, data, "AppIdentityServiceError_ErrorCode") 80 if err != nil { 81 return err 82 } 83 *x = AppIdentityServiceError_ErrorCode(value) 84 return nil 85} 86 87type AppIdentityServiceError struct { 88 XXX_unrecognized []byte `json:"-"` 89} 90 91func (m *AppIdentityServiceError) Reset() { *m = AppIdentityServiceError{} } 92func (m *AppIdentityServiceError) String() string { return proto.CompactTextString(m) } 93func (*AppIdentityServiceError) ProtoMessage() {} 94 95type SignForAppRequest struct { 96 BytesToSign []byte `protobuf:"bytes,1,opt,name=bytes_to_sign" json:"bytes_to_sign,omitempty"` 97 XXX_unrecognized []byte `json:"-"` 98} 99 100func (m *SignForAppRequest) Reset() { *m = SignForAppRequest{} } 101func (m *SignForAppRequest) String() string { return proto.CompactTextString(m) } 102func (*SignForAppRequest) ProtoMessage() {} 103 104func (m *SignForAppRequest) GetBytesToSign() []byte { 105 if m != nil { 106 return m.BytesToSign 107 } 108 return nil 109} 110 111type SignForAppResponse struct { 112 KeyName *string `protobuf:"bytes,1,opt,name=key_name" json:"key_name,omitempty"` 113 SignatureBytes []byte `protobuf:"bytes,2,opt,name=signature_bytes" json:"signature_bytes,omitempty"` 114 XXX_unrecognized []byte `json:"-"` 115} 116 117func (m *SignForAppResponse) Reset() { *m = SignForAppResponse{} } 118func (m *SignForAppResponse) String() string { return proto.CompactTextString(m) } 119func (*SignForAppResponse) ProtoMessage() {} 120 121func (m *SignForAppResponse) GetKeyName() string { 122 if m != nil && m.KeyName != nil { 123 return *m.KeyName 124 } 125 return "" 126} 127 128func (m *SignForAppResponse) GetSignatureBytes() []byte { 129 if m != nil { 130 return m.SignatureBytes 131 } 132 return nil 133} 134 135type GetPublicCertificateForAppRequest struct { 136 XXX_unrecognized []byte `json:"-"` 137} 138 139func (m *GetPublicCertificateForAppRequest) Reset() { *m = GetPublicCertificateForAppRequest{} } 140func (m *GetPublicCertificateForAppRequest) String() string { return proto.CompactTextString(m) } 141func (*GetPublicCertificateForAppRequest) ProtoMessage() {} 142 143type PublicCertificate struct { 144 KeyName *string `protobuf:"bytes,1,opt,name=key_name" json:"key_name,omitempty"` 145 X509CertificatePem *string `protobuf:"bytes,2,opt,name=x509_certificate_pem" json:"x509_certificate_pem,omitempty"` 146 XXX_unrecognized []byte `json:"-"` 147} 148 149func (m *PublicCertificate) Reset() { *m = PublicCertificate{} } 150func (m *PublicCertificate) String() string { return proto.CompactTextString(m) } 151func (*PublicCertificate) ProtoMessage() {} 152 153func (m *PublicCertificate) GetKeyName() string { 154 if m != nil && m.KeyName != nil { 155 return *m.KeyName 156 } 157 return "" 158} 159 160func (m *PublicCertificate) GetX509CertificatePem() string { 161 if m != nil && m.X509CertificatePem != nil { 162 return *m.X509CertificatePem 163 } 164 return "" 165} 166 167type GetPublicCertificateForAppResponse struct { 168 PublicCertificateList []*PublicCertificate `protobuf:"bytes,1,rep,name=public_certificate_list" json:"public_certificate_list,omitempty"` 169 MaxClientCacheTimeInSecond *int64 `protobuf:"varint,2,opt,name=max_client_cache_time_in_second" json:"max_client_cache_time_in_second,omitempty"` 170 XXX_unrecognized []byte `json:"-"` 171} 172 173func (m *GetPublicCertificateForAppResponse) Reset() { *m = GetPublicCertificateForAppResponse{} } 174func (m *GetPublicCertificateForAppResponse) String() string { return proto.CompactTextString(m) } 175func (*GetPublicCertificateForAppResponse) ProtoMessage() {} 176 177func (m *GetPublicCertificateForAppResponse) GetPublicCertificateList() []*PublicCertificate { 178 if m != nil { 179 return m.PublicCertificateList 180 } 181 return nil 182} 183 184func (m *GetPublicCertificateForAppResponse) GetMaxClientCacheTimeInSecond() int64 { 185 if m != nil && m.MaxClientCacheTimeInSecond != nil { 186 return *m.MaxClientCacheTimeInSecond 187 } 188 return 0 189} 190 191type GetServiceAccountNameRequest struct { 192 XXX_unrecognized []byte `json:"-"` 193} 194 195func (m *GetServiceAccountNameRequest) Reset() { *m = GetServiceAccountNameRequest{} } 196func (m *GetServiceAccountNameRequest) String() string { return proto.CompactTextString(m) } 197func (*GetServiceAccountNameRequest) ProtoMessage() {} 198 199type GetServiceAccountNameResponse struct { 200 ServiceAccountName *string `protobuf:"bytes,1,opt,name=service_account_name" json:"service_account_name,omitempty"` 201 XXX_unrecognized []byte `json:"-"` 202} 203 204func (m *GetServiceAccountNameResponse) Reset() { *m = GetServiceAccountNameResponse{} } 205func (m *GetServiceAccountNameResponse) String() string { return proto.CompactTextString(m) } 206func (*GetServiceAccountNameResponse) ProtoMessage() {} 207 208func (m *GetServiceAccountNameResponse) GetServiceAccountName() string { 209 if m != nil && m.ServiceAccountName != nil { 210 return *m.ServiceAccountName 211 } 212 return "" 213} 214 215type GetAccessTokenRequest struct { 216 Scope []string `protobuf:"bytes,1,rep,name=scope" json:"scope,omitempty"` 217 ServiceAccountId *int64 `protobuf:"varint,2,opt,name=service_account_id" json:"service_account_id,omitempty"` 218 ServiceAccountName *string `protobuf:"bytes,3,opt,name=service_account_name" json:"service_account_name,omitempty"` 219 XXX_unrecognized []byte `json:"-"` 220} 221 222func (m *GetAccessTokenRequest) Reset() { *m = GetAccessTokenRequest{} } 223func (m *GetAccessTokenRequest) String() string { return proto.CompactTextString(m) } 224func (*GetAccessTokenRequest) ProtoMessage() {} 225 226func (m *GetAccessTokenRequest) GetScope() []string { 227 if m != nil { 228 return m.Scope 229 } 230 return nil 231} 232 233func (m *GetAccessTokenRequest) GetServiceAccountId() int64 { 234 if m != nil && m.ServiceAccountId != nil { 235 return *m.ServiceAccountId 236 } 237 return 0 238} 239 240func (m *GetAccessTokenRequest) GetServiceAccountName() string { 241 if m != nil && m.ServiceAccountName != nil { 242 return *m.ServiceAccountName 243 } 244 return "" 245} 246 247type GetAccessTokenResponse struct { 248 AccessToken *string `protobuf:"bytes,1,opt,name=access_token" json:"access_token,omitempty"` 249 ExpirationTime *int64 `protobuf:"varint,2,opt,name=expiration_time" json:"expiration_time,omitempty"` 250 XXX_unrecognized []byte `json:"-"` 251} 252 253func (m *GetAccessTokenResponse) Reset() { *m = GetAccessTokenResponse{} } 254func (m *GetAccessTokenResponse) String() string { return proto.CompactTextString(m) } 255func (*GetAccessTokenResponse) ProtoMessage() {} 256 257func (m *GetAccessTokenResponse) GetAccessToken() string { 258 if m != nil && m.AccessToken != nil { 259 return *m.AccessToken 260 } 261 return "" 262} 263 264func (m *GetAccessTokenResponse) GetExpirationTime() int64 { 265 if m != nil && m.ExpirationTime != nil { 266 return *m.ExpirationTime 267 } 268 return 0 269} 270 271type GetDefaultGcsBucketNameRequest struct { 272 XXX_unrecognized []byte `json:"-"` 273} 274 275func (m *GetDefaultGcsBucketNameRequest) Reset() { *m = GetDefaultGcsBucketNameRequest{} } 276func (m *GetDefaultGcsBucketNameRequest) String() string { return proto.CompactTextString(m) } 277func (*GetDefaultGcsBucketNameRequest) ProtoMessage() {} 278 279type GetDefaultGcsBucketNameResponse struct { 280 DefaultGcsBucketName *string `protobuf:"bytes,1,opt,name=default_gcs_bucket_name" json:"default_gcs_bucket_name,omitempty"` 281 XXX_unrecognized []byte `json:"-"` 282} 283 284func (m *GetDefaultGcsBucketNameResponse) Reset() { *m = GetDefaultGcsBucketNameResponse{} } 285func (m *GetDefaultGcsBucketNameResponse) String() string { return proto.CompactTextString(m) } 286func (*GetDefaultGcsBucketNameResponse) ProtoMessage() {} 287 288func (m *GetDefaultGcsBucketNameResponse) GetDefaultGcsBucketName() string { 289 if m != nil && m.DefaultGcsBucketName != nil { 290 return *m.DefaultGcsBucketName 291 } 292 return "" 293} 294 295func init() { 296} 297