github.com/timstclair/heapster@v0.20.0-alpha1/Godeps/_workspace/src/google.golang.org/appengine/internal/user/user_service.pb.go (about)

     1  // Code generated by protoc-gen-go.
     2  // source: google.golang.org/appengine/internal/user/user_service.proto
     3  // DO NOT EDIT!
     4  
     5  /*
     6  Package user is a generated protocol buffer package.
     7  
     8  It is generated from these files:
     9  	google.golang.org/appengine/internal/user/user_service.proto
    10  
    11  It has these top-level messages:
    12  	UserServiceError
    13  	CreateLoginURLRequest
    14  	CreateLoginURLResponse
    15  	CreateLogoutURLRequest
    16  	CreateLogoutURLResponse
    17  	GetOAuthUserRequest
    18  	GetOAuthUserResponse
    19  	CheckOAuthSignatureRequest
    20  	CheckOAuthSignatureResponse
    21  */
    22  package user
    23  
    24  import proto "github.com/golang/protobuf/proto"
    25  import fmt "fmt"
    26  import math "math"
    27  
    28  // Reference imports to suppress errors if they are not otherwise used.
    29  var _ = proto.Marshal
    30  var _ = fmt.Errorf
    31  var _ = math.Inf
    32  
    33  type UserServiceError_ErrorCode int32
    34  
    35  const (
    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  
    44  var 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  }
    52  var 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  
    61  func (x UserServiceError_ErrorCode) Enum() *UserServiceError_ErrorCode {
    62  	p := new(UserServiceError_ErrorCode)
    63  	*p = x
    64  	return p
    65  }
    66  func (x UserServiceError_ErrorCode) String() string {
    67  	return proto.EnumName(UserServiceError_ErrorCode_name, int32(x))
    68  }
    69  func (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  
    78  type UserServiceError struct {
    79  	XXX_unrecognized []byte `json:"-"`
    80  }
    81  
    82  func (m *UserServiceError) Reset()         { *m = UserServiceError{} }
    83  func (m *UserServiceError) String() string { return proto.CompactTextString(m) }
    84  func (*UserServiceError) ProtoMessage()    {}
    85  
    86  type 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  
    93  func (m *CreateLoginURLRequest) Reset()         { *m = CreateLoginURLRequest{} }
    94  func (m *CreateLoginURLRequest) String() string { return proto.CompactTextString(m) }
    95  func (*CreateLoginURLRequest) ProtoMessage()    {}
    96  
    97  func (m *CreateLoginURLRequest) GetDestinationUrl() string {
    98  	if m != nil && m.DestinationUrl != nil {
    99  		return *m.DestinationUrl
   100  	}
   101  	return ""
   102  }
   103  
   104  func (m *CreateLoginURLRequest) GetAuthDomain() string {
   105  	if m != nil && m.AuthDomain != nil {
   106  		return *m.AuthDomain
   107  	}
   108  	return ""
   109  }
   110  
   111  func (m *CreateLoginURLRequest) GetFederatedIdentity() string {
   112  	if m != nil && m.FederatedIdentity != nil {
   113  		return *m.FederatedIdentity
   114  	}
   115  	return ""
   116  }
   117  
   118  type CreateLoginURLResponse struct {
   119  	LoginUrl         *string `protobuf:"bytes,1,req,name=login_url" json:"login_url,omitempty"`
   120  	XXX_unrecognized []byte  `json:"-"`
   121  }
   122  
   123  func (m *CreateLoginURLResponse) Reset()         { *m = CreateLoginURLResponse{} }
   124  func (m *CreateLoginURLResponse) String() string { return proto.CompactTextString(m) }
   125  func (*CreateLoginURLResponse) ProtoMessage()    {}
   126  
   127  func (m *CreateLoginURLResponse) GetLoginUrl() string {
   128  	if m != nil && m.LoginUrl != nil {
   129  		return *m.LoginUrl
   130  	}
   131  	return ""
   132  }
   133  
   134  type 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  
   140  func (m *CreateLogoutURLRequest) Reset()         { *m = CreateLogoutURLRequest{} }
   141  func (m *CreateLogoutURLRequest) String() string { return proto.CompactTextString(m) }
   142  func (*CreateLogoutURLRequest) ProtoMessage()    {}
   143  
   144  func (m *CreateLogoutURLRequest) GetDestinationUrl() string {
   145  	if m != nil && m.DestinationUrl != nil {
   146  		return *m.DestinationUrl
   147  	}
   148  	return ""
   149  }
   150  
   151  func (m *CreateLogoutURLRequest) GetAuthDomain() string {
   152  	if m != nil && m.AuthDomain != nil {
   153  		return *m.AuthDomain
   154  	}
   155  	return ""
   156  }
   157  
   158  type CreateLogoutURLResponse struct {
   159  	LogoutUrl        *string `protobuf:"bytes,1,req,name=logout_url" json:"logout_url,omitempty"`
   160  	XXX_unrecognized []byte  `json:"-"`
   161  }
   162  
   163  func (m *CreateLogoutURLResponse) Reset()         { *m = CreateLogoutURLResponse{} }
   164  func (m *CreateLogoutURLResponse) String() string { return proto.CompactTextString(m) }
   165  func (*CreateLogoutURLResponse) ProtoMessage()    {}
   166  
   167  func (m *CreateLogoutURLResponse) GetLogoutUrl() string {
   168  	if m != nil && m.LogoutUrl != nil {
   169  		return *m.LogoutUrl
   170  	}
   171  	return ""
   172  }
   173  
   174  type 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  
   180  func (m *GetOAuthUserRequest) Reset()         { *m = GetOAuthUserRequest{} }
   181  func (m *GetOAuthUserRequest) String() string { return proto.CompactTextString(m) }
   182  func (*GetOAuthUserRequest) ProtoMessage()    {}
   183  
   184  func (m *GetOAuthUserRequest) GetScope() string {
   185  	if m != nil && m.Scope != nil {
   186  		return *m.Scope
   187  	}
   188  	return ""
   189  }
   190  
   191  func (m *GetOAuthUserRequest) GetScopes() []string {
   192  	if m != nil {
   193  		return m.Scopes
   194  	}
   195  	return nil
   196  }
   197  
   198  type 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  
   209  func (m *GetOAuthUserResponse) Reset()         { *m = GetOAuthUserResponse{} }
   210  func (m *GetOAuthUserResponse) String() string { return proto.CompactTextString(m) }
   211  func (*GetOAuthUserResponse) ProtoMessage()    {}
   212  
   213  const Default_GetOAuthUserResponse_IsAdmin bool = false
   214  
   215  func (m *GetOAuthUserResponse) GetEmail() string {
   216  	if m != nil && m.Email != nil {
   217  		return *m.Email
   218  	}
   219  	return ""
   220  }
   221  
   222  func (m *GetOAuthUserResponse) GetUserId() string {
   223  	if m != nil && m.UserId != nil {
   224  		return *m.UserId
   225  	}
   226  	return ""
   227  }
   228  
   229  func (m *GetOAuthUserResponse) GetAuthDomain() string {
   230  	if m != nil && m.AuthDomain != nil {
   231  		return *m.AuthDomain
   232  	}
   233  	return ""
   234  }
   235  
   236  func (m *GetOAuthUserResponse) GetUserOrganization() string {
   237  	if m != nil && m.UserOrganization != nil {
   238  		return *m.UserOrganization
   239  	}
   240  	return ""
   241  }
   242  
   243  func (m *GetOAuthUserResponse) GetIsAdmin() bool {
   244  	if m != nil && m.IsAdmin != nil {
   245  		return *m.IsAdmin
   246  	}
   247  	return Default_GetOAuthUserResponse_IsAdmin
   248  }
   249  
   250  func (m *GetOAuthUserResponse) GetClientId() string {
   251  	if m != nil && m.ClientId != nil {
   252  		return *m.ClientId
   253  	}
   254  	return ""
   255  }
   256  
   257  func (m *GetOAuthUserResponse) GetScopes() []string {
   258  	if m != nil {
   259  		return m.Scopes
   260  	}
   261  	return nil
   262  }
   263  
   264  type CheckOAuthSignatureRequest struct {
   265  	XXX_unrecognized []byte `json:"-"`
   266  }
   267  
   268  func (m *CheckOAuthSignatureRequest) Reset()         { *m = CheckOAuthSignatureRequest{} }
   269  func (m *CheckOAuthSignatureRequest) String() string { return proto.CompactTextString(m) }
   270  func (*CheckOAuthSignatureRequest) ProtoMessage()    {}
   271  
   272  type 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  
   277  func (m *CheckOAuthSignatureResponse) Reset()         { *m = CheckOAuthSignatureResponse{} }
   278  func (m *CheckOAuthSignatureResponse) String() string { return proto.CompactTextString(m) }
   279  func (*CheckOAuthSignatureResponse) ProtoMessage()    {}
   280  
   281  func (m *CheckOAuthSignatureResponse) GetOauthConsumerKey() string {
   282  	if m != nil && m.OauthConsumerKey != nil {
   283  		return *m.OauthConsumerKey
   284  	}
   285  	return ""
   286  }
   287  
   288  func init() {
   289  }