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