// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        (unknown)
// source: agent/v1/credentials.proto

package agentv1

import (
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"

	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type OAuthToken struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The OAuth token.
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// The type of the token.
	// e.g. "Bearer"
	TokenType    string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
	RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	// The expiration time of the token in seconds since epoch.
	ExpiresAt int64 `protobuf:"varint,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// Expiration time
	Expiry        *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expiry,proto3" json:"expiry,omitempty"`
	ExpiresIn     int64                  `protobuf:"varint,6,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` // The number of seconds until the token expires.
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *OAuthToken) Reset() {
	*x = OAuthToken{}
	mi := &file_agent_v1_credentials_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *OAuthToken) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*OAuthToken) ProtoMessage() {}

func (x *OAuthToken) ProtoReflect() protoreflect.Message {
	mi := &file_agent_v1_credentials_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use OAuthToken.ProtoReflect.Descriptor instead.
func (*OAuthToken) Descriptor() ([]byte, []int) {
	return file_agent_v1_credentials_proto_rawDescGZIP(), []int{0}
}

func (x *OAuthToken) GetAccessToken() string {
	if x != nil {
		return x.AccessToken
	}
	return ""
}

func (x *OAuthToken) GetTokenType() string {
	if x != nil {
		return x.TokenType
	}
	return ""
}

func (x *OAuthToken) GetRefreshToken() string {
	if x != nil {
		return x.RefreshToken
	}
	return ""
}

func (x *OAuthToken) GetExpiresAt() int64 {
	if x != nil {
		return x.ExpiresAt
	}
	return 0
}

func (x *OAuthToken) GetExpiry() *timestamppb.Timestamp {
	if x != nil {
		return x.Expiry
	}
	return nil
}

func (x *OAuthToken) GetExpiresIn() int64 {
	if x != nil {
		return x.ExpiresIn
	}
	return 0
}

var File_agent_v1_credentials_proto protoreflect.FileDescriptor

const file_agent_v1_credentials_proto_rawDesc = "" +
	"\n" +
	"\x1aagent/v1/credentials.proto\x12\bagent.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe5\x01\n" +
	"\n" +
	"OAuthToken\x12!\n" +
	"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12\x1d\n" +
	"\n" +
	"token_type\x18\x02 \x01(\tR\ttokenType\x12#\n" +
	"\rrefresh_token\x18\x03 \x01(\tR\frefreshToken\x12\x1d\n" +
	"\n" +
	"expires_at\x18\x04 \x01(\x03R\texpiresAt\x122\n" +
	"\x06expiry\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\x06expiry\x12\x1d\n" +
	"\n" +
	"expires_in\x18\x06 \x01(\x03R\texpiresInB@Z>github.com/runmedev/runme/v3/api/gen/proto/go/agent/v1;agentv1b\x06proto3"

var (
	file_agent_v1_credentials_proto_rawDescOnce sync.Once
	file_agent_v1_credentials_proto_rawDescData []byte
)

func file_agent_v1_credentials_proto_rawDescGZIP() []byte {
	file_agent_v1_credentials_proto_rawDescOnce.Do(func() {
		file_agent_v1_credentials_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_agent_v1_credentials_proto_rawDesc), len(file_agent_v1_credentials_proto_rawDesc)))
	})
	return file_agent_v1_credentials_proto_rawDescData
}

var file_agent_v1_credentials_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_agent_v1_credentials_proto_goTypes = []any{
	(*OAuthToken)(nil),            // 0: agent.v1.OAuthToken
	(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
}
var file_agent_v1_credentials_proto_depIdxs = []int32{
	1, // 0: agent.v1.OAuthToken.expiry:type_name -> google.protobuf.Timestamp
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_agent_v1_credentials_proto_init() }
func file_agent_v1_credentials_proto_init() {
	if File_agent_v1_credentials_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_agent_v1_credentials_proto_rawDesc), len(file_agent_v1_credentials_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_agent_v1_credentials_proto_goTypes,
		DependencyIndexes: file_agent_v1_credentials_proto_depIdxs,
		MessageInfos:      file_agent_v1_credentials_proto_msgTypes,
	}.Build()
	File_agent_v1_credentials_proto = out.File
	file_agent_v1_credentials_proto_goTypes = nil
	file_agent_v1_credentials_proto_depIdxs = nil
}
