blob: 4ea7eb1b858b624283d547b43807a52d14a1473b [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/tokenserver/api/token_file.proto
package tokenserver
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// TokenFile is representation of a token file on disk (serialized as JSON).
//
// The token file is consumed by whoever wishes to use machine tokens. It is
// intentionally made as simple as possible (e.g. uses unix timestamps instead
// of fancy protobuf ones).
type TokenFile struct {
// Google OAuth2 access token of a machine service account.
AccessToken string `protobuf:"bytes,1,opt,name=access_token,proto3" json:"access_token,omitempty"`
// OAuth2 access token type, usually "Bearer".
TokenType string `protobuf:"bytes,2,opt,name=token_type,proto3" json:"token_type,omitempty"`
// Machine token understood by LUCI backends (alternative to access_token).
LuciMachineToken string `protobuf:"bytes,3,opt,name=luci_machine_token,proto3" json:"luci_machine_token,omitempty"`
// Unix timestamp (in seconds) when this token expires.
//
// The token file is expected to be updated before the token expires, see
// 'next_update' for next expected update time.
Expiry int64 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"`
// Unix timestamp of when this file was updated the last time.
LastUpdate int64 `protobuf:"varint,5,opt,name=last_update,proto3" json:"last_update,omitempty"`
// Unix timestamp of when this file is expected to be updated next time.
NextUpdate int64 `protobuf:"varint,6,opt,name=next_update,proto3" json:"next_update,omitempty"`
// Email of the associated service account.
ServiceAccountEmail string `protobuf:"bytes,7,opt,name=service_account_email,proto3" json:"service_account_email,omitempty"`
// Unique stable ID of the associated service account.
ServiceAccountUniqueId string `protobuf:"bytes,8,opt,name=service_account_unique_id,proto3" json:"service_account_unique_id,omitempty"`
// Any information tokend daemon wishes to associate with the token.
//
// Consumers of the token file should ignore this field. It is used
// exclusively by tokend daemon.
TokendState []byte `protobuf:"bytes,50,opt,name=tokend_state,proto3" json:"tokend_state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TokenFile) Reset() { *m = TokenFile{} }
func (m *TokenFile) String() string { return proto.CompactTextString(m) }
func (*TokenFile) ProtoMessage() {}
func (*TokenFile) Descriptor() ([]byte, []int) {
return fileDescriptor_dd87c4ba28a039f0, []int{0}
}
func (m *TokenFile) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TokenFile.Unmarshal(m, b)
}
func (m *TokenFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TokenFile.Marshal(b, m, deterministic)
}
func (m *TokenFile) XXX_Merge(src proto.Message) {
xxx_messageInfo_TokenFile.Merge(m, src)
}
func (m *TokenFile) XXX_Size() int {
return xxx_messageInfo_TokenFile.Size(m)
}
func (m *TokenFile) XXX_DiscardUnknown() {
xxx_messageInfo_TokenFile.DiscardUnknown(m)
}
var xxx_messageInfo_TokenFile proto.InternalMessageInfo
func (m *TokenFile) GetAccessToken() string {
if m != nil {
return m.AccessToken
}
return ""
}
func (m *TokenFile) GetTokenType() string {
if m != nil {
return m.TokenType
}
return ""
}
func (m *TokenFile) GetLuciMachineToken() string {
if m != nil {
return m.LuciMachineToken
}
return ""
}
func (m *TokenFile) GetExpiry() int64 {
if m != nil {
return m.Expiry
}
return 0
}
func (m *TokenFile) GetLastUpdate() int64 {
if m != nil {
return m.LastUpdate
}
return 0
}
func (m *TokenFile) GetNextUpdate() int64 {
if m != nil {
return m.NextUpdate
}
return 0
}
func (m *TokenFile) GetServiceAccountEmail() string {
if m != nil {
return m.ServiceAccountEmail
}
return ""
}
func (m *TokenFile) GetServiceAccountUniqueId() string {
if m != nil {
return m.ServiceAccountUniqueId
}
return ""
}
func (m *TokenFile) GetTokendState() []byte {
if m != nil {
return m.TokendState
}
return nil
}
func init() {
proto.RegisterType((*TokenFile)(nil), "tokenserver.TokenFile")
}
func init() {
proto.RegisterFile("go.chromium.org/luci/tokenserver/api/token_file.proto", fileDescriptor_dd87c4ba28a039f0)
}
var fileDescriptor_dd87c4ba28a039f0 = []byte{
// 260 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xcd, 0x4e, 0xc3, 0x30,
0x10, 0x84, 0x95, 0x16, 0x02, 0xdd, 0xf6, 0x64, 0x09, 0x64, 0x2e, 0x28, 0xea, 0x29, 0xa7, 0x44,
0xe2, 0xe7, 0xc6, 0x99, 0x07, 0x88, 0xb8, 0x5b, 0xc6, 0x59, 0xda, 0x15, 0x49, 0x6c, 0xfc, 0x83,
0xda, 0xe7, 0xe6, 0x05, 0x90, 0xdd, 0x08, 0xa5, 0xa8, 0x3d, 0xce, 0xcc, 0xe7, 0xd5, 0xac, 0x17,
0x9e, 0x37, 0xba, 0x52, 0x5b, 0xab, 0x7b, 0x0a, 0x7d, 0xa5, 0xed, 0xa6, 0xee, 0x82, 0xa2, 0xda,
0xeb, 0x4f, 0x1c, 0x1c, 0xda, 0x6f, 0xb4, 0xb5, 0x34, 0xa3, 0x16, 0x1f, 0xd4, 0x61, 0x65, 0xac,
0xf6, 0x9a, 0x2d, 0x27, 0xc4, 0xfa, 0x67, 0x06, 0x8b, 0xb7, 0xa8, 0x5f, 0xa9, 0x43, 0xb6, 0x86,
0x95, 0x54, 0x0a, 0x9d, 0x13, 0x89, 0xe1, 0x59, 0x91, 0x95, 0x8b, 0xe6, 0xc8, 0x63, 0xf7, 0x00,
0x87, 0x91, 0x7e, 0x6f, 0x90, 0xcf, 0x12, 0x31, 0x71, 0x58, 0x05, 0x2c, 0xf6, 0x10, 0xbd, 0x54,
0x5b, 0x1a, 0x70, 0x9c, 0x34, 0x4f, 0xdc, 0x89, 0x84, 0xdd, 0x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