user_service.pb.go 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. // Code generated by protoc-gen-go.
  2. // source: google.golang.org/appengine/internal/user/user_service.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package user is a generated protocol buffer package.
  6. It is generated from these files:
  7. google.golang.org/appengine/internal/user/user_service.proto
  8. It has these top-level messages:
  9. UserServiceError
  10. CreateLoginURLRequest
  11. CreateLoginURLResponse
  12. CreateLogoutURLRequest
  13. CreateLogoutURLResponse
  14. GetOAuthUserRequest
  15. GetOAuthUserResponse
  16. CheckOAuthSignatureRequest
  17. CheckOAuthSignatureResponse
  18. */
  19. package user
  20. import proto "github.com/golang/protobuf/proto"
  21. import fmt "fmt"
  22. import math "math"
  23. // Reference imports to suppress errors if they are not otherwise used.
  24. var _ = proto.Marshal
  25. var _ = fmt.Errorf
  26. var _ = math.Inf
  27. type UserServiceError_ErrorCode int32
  28. const (
  29. UserServiceError_OK UserServiceError_ErrorCode = 0
  30. UserServiceError_REDIRECT_URL_TOO_LONG UserServiceError_ErrorCode = 1
  31. UserServiceError_NOT_ALLOWED UserServiceError_ErrorCode = 2
  32. UserServiceError_OAUTH_INVALID_TOKEN UserServiceError_ErrorCode = 3
  33. UserServiceError_OAUTH_INVALID_REQUEST UserServiceError_ErrorCode = 4
  34. UserServiceError_OAUTH_ERROR UserServiceError_ErrorCode = 5
  35. )
  36. var UserServiceError_ErrorCode_name = map[int32]string{
  37. 0: "OK",
  38. 1: "REDIRECT_URL_TOO_LONG",
  39. 2: "NOT_ALLOWED",
  40. 3: "OAUTH_INVALID_TOKEN",
  41. 4: "OAUTH_INVALID_REQUEST",
  42. 5: "OAUTH_ERROR",
  43. }
  44. var UserServiceError_ErrorCode_value = map[string]int32{
  45. "OK": 0,
  46. "REDIRECT_URL_TOO_LONG": 1,
  47. "NOT_ALLOWED": 2,
  48. "OAUTH_INVALID_TOKEN": 3,
  49. "OAUTH_INVALID_REQUEST": 4,
  50. "OAUTH_ERROR": 5,
  51. }
  52. func (x UserServiceError_ErrorCode) Enum() *UserServiceError_ErrorCode {
  53. p := new(UserServiceError_ErrorCode)
  54. *p = x
  55. return p
  56. }
  57. func (x UserServiceError_ErrorCode) String() string {
  58. return proto.EnumName(UserServiceError_ErrorCode_name, int32(x))
  59. }
  60. func (x *UserServiceError_ErrorCode) UnmarshalJSON(data []byte) error {
  61. value, err := proto.UnmarshalJSONEnum(UserServiceError_ErrorCode_value, data, "UserServiceError_ErrorCode")
  62. if err != nil {
  63. return err
  64. }
  65. *x = UserServiceError_ErrorCode(value)
  66. return nil
  67. }
  68. type UserServiceError struct {
  69. XXX_unrecognized []byte `json:"-"`
  70. }
  71. func (m *UserServiceError) Reset() { *m = UserServiceError{} }
  72. func (m *UserServiceError) String() string { return proto.CompactTextString(m) }
  73. func (*UserServiceError) ProtoMessage() {}
  74. type CreateLoginURLRequest struct {
  75. DestinationUrl *string `protobuf:"bytes,1,req,name=destination_url" json:"destination_url,omitempty"`
  76. AuthDomain *string `protobuf:"bytes,2,opt,name=auth_domain" json:"auth_domain,omitempty"`
  77. FederatedIdentity *string `protobuf:"bytes,3,opt,name=federated_identity,def=" json:"federated_identity,omitempty"`
  78. XXX_unrecognized []byte `json:"-"`
  79. }
  80. func (m *CreateLoginURLRequest) Reset() { *m = CreateLoginURLRequest{} }
  81. func (m *CreateLoginURLRequest) String() string { return proto.CompactTextString(m) }
  82. func (*CreateLoginURLRequest) ProtoMessage() {}
  83. func (m *CreateLoginURLRequest) GetDestinationUrl() string {
  84. if m != nil && m.DestinationUrl != nil {
  85. return *m.DestinationUrl
  86. }
  87. return ""
  88. }
  89. func (m *CreateLoginURLRequest) GetAuthDomain() string {
  90. if m != nil && m.AuthDomain != nil {
  91. return *m.AuthDomain
  92. }
  93. return ""
  94. }
  95. func (m *CreateLoginURLRequest) GetFederatedIdentity() string {
  96. if m != nil && m.FederatedIdentity != nil {
  97. return *m.FederatedIdentity
  98. }
  99. return ""
  100. }
  101. type CreateLoginURLResponse struct {
  102. LoginUrl *string `protobuf:"bytes,1,req,name=login_url" json:"login_url,omitempty"`
  103. XXX_unrecognized []byte `json:"-"`
  104. }
  105. func (m *CreateLoginURLResponse) Reset() { *m = CreateLoginURLResponse{} }
  106. func (m *CreateLoginURLResponse) String() string { return proto.CompactTextString(m) }
  107. func (*CreateLoginURLResponse) ProtoMessage() {}
  108. func (m *CreateLoginURLResponse) GetLoginUrl() string {
  109. if m != nil && m.LoginUrl != nil {
  110. return *m.LoginUrl
  111. }
  112. return ""
  113. }
  114. type CreateLogoutURLRequest struct {
  115. DestinationUrl *string `protobuf:"bytes,1,req,name=destination_url" json:"destination_url,omitempty"`
  116. AuthDomain *string `protobuf:"bytes,2,opt,name=auth_domain" json:"auth_domain,omitempty"`
  117. XXX_unrecognized []byte `json:"-"`
  118. }
  119. func (m *CreateLogoutURLRequest) Reset() { *m = CreateLogoutURLRequest{} }
  120. func (m *CreateLogoutURLRequest) String() string { return proto.CompactTextString(m) }
  121. func (*CreateLogoutURLRequest) ProtoMessage() {}
  122. func (m *CreateLogoutURLRequest) GetDestinationUrl() string {
  123. if m != nil && m.DestinationUrl != nil {
  124. return *m.DestinationUrl
  125. }
  126. return ""
  127. }
  128. func (m *CreateLogoutURLRequest) GetAuthDomain() string {
  129. if m != nil && m.AuthDomain != nil {
  130. return *m.AuthDomain
  131. }
  132. return ""
  133. }
  134. type CreateLogoutURLResponse struct {
  135. LogoutUrl *string `protobuf:"bytes,1,req,name=logout_url" json:"logout_url,omitempty"`
  136. XXX_unrecognized []byte `json:"-"`
  137. }
  138. func (m *CreateLogoutURLResponse) Reset() { *m = CreateLogoutURLResponse{} }
  139. func (m *CreateLogoutURLResponse) String() string { return proto.CompactTextString(m) }
  140. func (*CreateLogoutURLResponse) ProtoMessage() {}
  141. func (m *CreateLogoutURLResponse) GetLogoutUrl() string {
  142. if m != nil && m.LogoutUrl != nil {
  143. return *m.LogoutUrl
  144. }
  145. return ""
  146. }
  147. type GetOAuthUserRequest struct {
  148. Scope *string `protobuf:"bytes,1,opt,name=scope" json:"scope,omitempty"`
  149. Scopes []string `protobuf:"bytes,2,rep,name=scopes" json:"scopes,omitempty"`
  150. XXX_unrecognized []byte `json:"-"`
  151. }
  152. func (m *GetOAuthUserRequest) Reset() { *m = GetOAuthUserRequest{} }
  153. func (m *GetOAuthUserRequest) String() string { return proto.CompactTextString(m) }
  154. func (*GetOAuthUserRequest) ProtoMessage() {}
  155. func (m *GetOAuthUserRequest) GetScope() string {
  156. if m != nil && m.Scope != nil {
  157. return *m.Scope
  158. }
  159. return ""
  160. }
  161. func (m *GetOAuthUserRequest) GetScopes() []string {
  162. if m != nil {
  163. return m.Scopes
  164. }
  165. return nil
  166. }
  167. type GetOAuthUserResponse struct {
  168. Email *string `protobuf:"bytes,1,req,name=email" json:"email,omitempty"`
  169. UserId *string `protobuf:"bytes,2,req,name=user_id" json:"user_id,omitempty"`
  170. AuthDomain *string `protobuf:"bytes,3,req,name=auth_domain" json:"auth_domain,omitempty"`
  171. UserOrganization *string `protobuf:"bytes,4,opt,name=user_organization,def=" json:"user_organization,omitempty"`
  172. IsAdmin *bool `protobuf:"varint,5,opt,name=is_admin,def=0" json:"is_admin,omitempty"`
  173. ClientId *string `protobuf:"bytes,6,opt,name=client_id,def=" json:"client_id,omitempty"`
  174. Scopes []string `protobuf:"bytes,7,rep,name=scopes" json:"scopes,omitempty"`
  175. XXX_unrecognized []byte `json:"-"`
  176. }
  177. func (m *GetOAuthUserResponse) Reset() { *m = GetOAuthUserResponse{} }
  178. func (m *GetOAuthUserResponse) String() string { return proto.CompactTextString(m) }
  179. func (*GetOAuthUserResponse) ProtoMessage() {}
  180. const Default_GetOAuthUserResponse_IsAdmin bool = false
  181. func (m *GetOAuthUserResponse) GetEmail() string {
  182. if m != nil && m.Email != nil {
  183. return *m.Email
  184. }
  185. return ""
  186. }
  187. func (m *GetOAuthUserResponse) GetUserId() string {
  188. if m != nil && m.UserId != nil {
  189. return *m.UserId
  190. }
  191. return ""
  192. }
  193. func (m *GetOAuthUserResponse) GetAuthDomain() string {
  194. if m != nil && m.AuthDomain != nil {
  195. return *m.AuthDomain
  196. }
  197. return ""
  198. }
  199. func (m *GetOAuthUserResponse) GetUserOrganization() string {
  200. if m != nil && m.UserOrganization != nil {
  201. return *m.UserOrganization
  202. }
  203. return ""
  204. }
  205. func (m *GetOAuthUserResponse) GetIsAdmin() bool {
  206. if m != nil && m.IsAdmin != nil {
  207. return *m.IsAdmin
  208. }
  209. return Default_GetOAuthUserResponse_IsAdmin
  210. }
  211. func (m *GetOAuthUserResponse) GetClientId() string {
  212. if m != nil && m.ClientId != nil {
  213. return *m.ClientId
  214. }
  215. return ""
  216. }
  217. func (m *GetOAuthUserResponse) GetScopes() []string {
  218. if m != nil {
  219. return m.Scopes
  220. }
  221. return nil
  222. }
  223. type CheckOAuthSignatureRequest struct {
  224. XXX_unrecognized []byte `json:"-"`
  225. }
  226. func (m *CheckOAuthSignatureRequest) Reset() { *m = CheckOAuthSignatureRequest{} }
  227. func (m *CheckOAuthSignatureRequest) String() string { return proto.CompactTextString(m) }
  228. func (*CheckOAuthSignatureRequest) ProtoMessage() {}
  229. type CheckOAuthSignatureResponse struct {
  230. OauthConsumerKey *string `protobuf:"bytes,1,req,name=oauth_consumer_key" json:"oauth_consumer_key,omitempty"`
  231. XXX_unrecognized []byte `json:"-"`
  232. }
  233. func (m *CheckOAuthSignatureResponse) Reset() { *m = CheckOAuthSignatureResponse{} }
  234. func (m *CheckOAuthSignatureResponse) String() string { return proto.CompactTextString(m) }
  235. func (*CheckOAuthSignatureResponse) ProtoMessage() {}
  236. func (m *CheckOAuthSignatureResponse) GetOauthConsumerKey() string {
  237. if m != nil && m.OauthConsumerKey != nil {
  238. return *m.OauthConsumerKey
  239. }
  240. return ""
  241. }
  242. func init() {
  243. }