refresh_token.pb.go raw

   1  // Code generated by protoc-gen-go. DO NOT EDIT.
   2  // versions:
   3  // 	protoc-gen-go v1.36.6
   4  // 	protoc        v3.21.12
   5  // source: yandex/cloud/iam/v1/refresh_token.proto
   6  
   7  package iam
   8  
   9  import (
  10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
  13  	reflect "reflect"
  14  	sync "sync"
  15  	unsafe "unsafe"
  16  )
  17  
  18  const (
  19  	// Verify that this generated code is sufficiently up-to-date.
  20  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  21  	// Verify that runtime/protoimpl is sufficiently up-to-date.
  22  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  23  )
  24  
  25  // Protection level of the refresh token.
  26  type RefreshToken_ProtectionLevel int32
  27  
  28  const (
  29  	RefreshToken_PROTECTION_LEVEL_UNSPECIFIED RefreshToken_ProtectionLevel = 0
  30  	// Refresh token without DPOP
  31  	RefreshToken_NO_PROTECTION RefreshToken_ProtectionLevel = 1
  32  	// Refresh token with dpop. The dpop key is not a YubiKey PIV key with required pin/touch policy and attestation.
  33  	RefreshToken_INSECURE_KEY_DPOP RefreshToken_ProtectionLevel = 2
  34  	// Refresh token with dpop. The dpop key is a YubiKey PIV key with required pin/touch policy and attestation.
  35  	RefreshToken_SECURE_KEY_DPOP RefreshToken_ProtectionLevel = 3
  36  )
  37  
  38  // Enum value maps for RefreshToken_ProtectionLevel.
  39  var (
  40  	RefreshToken_ProtectionLevel_name = map[int32]string{
  41  		0: "PROTECTION_LEVEL_UNSPECIFIED",
  42  		1: "NO_PROTECTION",
  43  		2: "INSECURE_KEY_DPOP",
  44  		3: "SECURE_KEY_DPOP",
  45  	}
  46  	RefreshToken_ProtectionLevel_value = map[string]int32{
  47  		"PROTECTION_LEVEL_UNSPECIFIED": 0,
  48  		"NO_PROTECTION":                1,
  49  		"INSECURE_KEY_DPOP":            2,
  50  		"SECURE_KEY_DPOP":              3,
  51  	}
  52  )
  53  
  54  func (x RefreshToken_ProtectionLevel) Enum() *RefreshToken_ProtectionLevel {
  55  	p := new(RefreshToken_ProtectionLevel)
  56  	*p = x
  57  	return p
  58  }
  59  
  60  func (x RefreshToken_ProtectionLevel) String() string {
  61  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  62  }
  63  
  64  func (RefreshToken_ProtectionLevel) Descriptor() protoreflect.EnumDescriptor {
  65  	return file_yandex_cloud_iam_v1_refresh_token_proto_enumTypes[0].Descriptor()
  66  }
  67  
  68  func (RefreshToken_ProtectionLevel) Type() protoreflect.EnumType {
  69  	return &file_yandex_cloud_iam_v1_refresh_token_proto_enumTypes[0]
  70  }
  71  
  72  func (x RefreshToken_ProtectionLevel) Number() protoreflect.EnumNumber {
  73  	return protoreflect.EnumNumber(x)
  74  }
  75  
  76  // Deprecated: Use RefreshToken_ProtectionLevel.Descriptor instead.
  77  func (RefreshToken_ProtectionLevel) EnumDescriptor() ([]byte, []int) {
  78  	return file_yandex_cloud_iam_v1_refresh_token_proto_rawDescGZIP(), []int{0, 0}
  79  }
  80  
  81  type RefreshToken struct {
  82  	state protoimpl.MessageState `protogen:"open.v1"`
  83  	// Refresh Token id.
  84  	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  85  	// Information about the app for which the Refresh Token was issued.
  86  	ClientInstanceInfo string `protobuf:"bytes,2,opt,name=client_instance_info,json=clientInstanceInfo,proto3" json:"client_instance_info,omitempty"`
  87  	// The OAuth client identifier for which the Refresh Token was issued.
  88  	ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
  89  	// The subject identifier for whom the Refresh Token was issued.
  90  	SubjectId string `protobuf:"bytes,4,opt,name=subject_id,json=subjectId,proto3" json:"subject_id,omitempty"`
  91  	// Refresh token creation time.
  92  	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  93  	// Refresh token expiration time.
  94  	ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
  95  	// Timestamp for the last authentication using this Refresh Token.
  96  	LastUsedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_used_at,json=lastUsedAt,proto3" json:"last_used_at,omitempty"`
  97  	// Protection level of the refresh token.
  98  	//
  99  	// It shows whether DPOP was used to protect the Refresh Token and and the level of security of the storage used for the DPOP key.
 100  	ProtectionLevel RefreshToken_ProtectionLevel `protobuf:"varint,8,opt,name=protection_level,json=protectionLevel,proto3,enum=yandex.cloud.iam.v1.RefreshToken_ProtectionLevel" json:"protection_level,omitempty"`
 101  	unknownFields   protoimpl.UnknownFields
 102  	sizeCache       protoimpl.SizeCache
 103  }
 104  
 105  func (x *RefreshToken) Reset() {
 106  	*x = RefreshToken{}
 107  	mi := &file_yandex_cloud_iam_v1_refresh_token_proto_msgTypes[0]
 108  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 109  	ms.StoreMessageInfo(mi)
 110  }
 111  
 112  func (x *RefreshToken) String() string {
 113  	return protoimpl.X.MessageStringOf(x)
 114  }
 115  
 116  func (*RefreshToken) ProtoMessage() {}
 117  
 118  func (x *RefreshToken) ProtoReflect() protoreflect.Message {
 119  	mi := &file_yandex_cloud_iam_v1_refresh_token_proto_msgTypes[0]
 120  	if x != nil {
 121  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 122  		if ms.LoadMessageInfo() == nil {
 123  			ms.StoreMessageInfo(mi)
 124  		}
 125  		return ms
 126  	}
 127  	return mi.MessageOf(x)
 128  }
 129  
 130  // Deprecated: Use RefreshToken.ProtoReflect.Descriptor instead.
 131  func (*RefreshToken) Descriptor() ([]byte, []int) {
 132  	return file_yandex_cloud_iam_v1_refresh_token_proto_rawDescGZIP(), []int{0}
 133  }
 134  
 135  func (x *RefreshToken) GetId() string {
 136  	if x != nil {
 137  		return x.Id
 138  	}
 139  	return ""
 140  }
 141  
 142  func (x *RefreshToken) GetClientInstanceInfo() string {
 143  	if x != nil {
 144  		return x.ClientInstanceInfo
 145  	}
 146  	return ""
 147  }
 148  
 149  func (x *RefreshToken) GetClientId() string {
 150  	if x != nil {
 151  		return x.ClientId
 152  	}
 153  	return ""
 154  }
 155  
 156  func (x *RefreshToken) GetSubjectId() string {
 157  	if x != nil {
 158  		return x.SubjectId
 159  	}
 160  	return ""
 161  }
 162  
 163  func (x *RefreshToken) GetCreatedAt() *timestamppb.Timestamp {
 164  	if x != nil {
 165  		return x.CreatedAt
 166  	}
 167  	return nil
 168  }
 169  
 170  func (x *RefreshToken) GetExpiresAt() *timestamppb.Timestamp {
 171  	if x != nil {
 172  		return x.ExpiresAt
 173  	}
 174  	return nil
 175  }
 176  
 177  func (x *RefreshToken) GetLastUsedAt() *timestamppb.Timestamp {
 178  	if x != nil {
 179  		return x.LastUsedAt
 180  	}
 181  	return nil
 182  }
 183  
 184  func (x *RefreshToken) GetProtectionLevel() RefreshToken_ProtectionLevel {
 185  	if x != nil {
 186  		return x.ProtectionLevel
 187  	}
 188  	return RefreshToken_PROTECTION_LEVEL_UNSPECIFIED
 189  }
 190  
 191  var File_yandex_cloud_iam_v1_refresh_token_proto protoreflect.FileDescriptor
 192  
 193  const file_yandex_cloud_iam_v1_refresh_token_proto_rawDesc = "" +
 194  	"\n" +
 195  	"'yandex/cloud/iam/v1/refresh_token.proto\x12\x13yandex.cloud.iam.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x92\x04\n" +
 196  	"\fRefreshToken\x12\x0e\n" +
 197  	"\x02id\x18\x01 \x01(\tR\x02id\x120\n" +
 198  	"\x14client_instance_info\x18\x02 \x01(\tR\x12clientInstanceInfo\x12\x1b\n" +
 199  	"\tclient_id\x18\x03 \x01(\tR\bclientId\x12\x1d\n" +
 200  	"\n" +
 201  	"subject_id\x18\x04 \x01(\tR\tsubjectId\x129\n" +
 202  	"\n" +
 203  	"created_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
 204  	"\n" +
 205  	"expires_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\x12<\n" +
 206  	"\flast_used_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\n" +
 207  	"lastUsedAt\x12\\\n" +
 208  	"\x10protection_level\x18\b \x01(\x0e21.yandex.cloud.iam.v1.RefreshToken.ProtectionLevelR\x0fprotectionLevel\"r\n" +
 209  	"\x0fProtectionLevel\x12 \n" +
 210  	"\x1cPROTECTION_LEVEL_UNSPECIFIED\x10\x00\x12\x11\n" +
 211  	"\rNO_PROTECTION\x10\x01\x12\x15\n" +
 212  	"\x11INSECURE_KEY_DPOP\x10\x02\x12\x13\n" +
 213  	"\x0fSECURE_KEY_DPOP\x10\x03BV\n" +
 214  	"\x17yandex.cloud.api.iam.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1;iamb\x06proto3"
 215  
 216  var (
 217  	file_yandex_cloud_iam_v1_refresh_token_proto_rawDescOnce sync.Once
 218  	file_yandex_cloud_iam_v1_refresh_token_proto_rawDescData []byte
 219  )
 220  
 221  func file_yandex_cloud_iam_v1_refresh_token_proto_rawDescGZIP() []byte {
 222  	file_yandex_cloud_iam_v1_refresh_token_proto_rawDescOnce.Do(func() {
 223  		file_yandex_cloud_iam_v1_refresh_token_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_iam_v1_refresh_token_proto_rawDesc), len(file_yandex_cloud_iam_v1_refresh_token_proto_rawDesc)))
 224  	})
 225  	return file_yandex_cloud_iam_v1_refresh_token_proto_rawDescData
 226  }
 227  
 228  var file_yandex_cloud_iam_v1_refresh_token_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
 229  var file_yandex_cloud_iam_v1_refresh_token_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
 230  var file_yandex_cloud_iam_v1_refresh_token_proto_goTypes = []any{
 231  	(RefreshToken_ProtectionLevel)(0), // 0: yandex.cloud.iam.v1.RefreshToken.ProtectionLevel
 232  	(*RefreshToken)(nil),              // 1: yandex.cloud.iam.v1.RefreshToken
 233  	(*timestamppb.Timestamp)(nil),     // 2: google.protobuf.Timestamp
 234  }
 235  var file_yandex_cloud_iam_v1_refresh_token_proto_depIdxs = []int32{
 236  	2, // 0: yandex.cloud.iam.v1.RefreshToken.created_at:type_name -> google.protobuf.Timestamp
 237  	2, // 1: yandex.cloud.iam.v1.RefreshToken.expires_at:type_name -> google.protobuf.Timestamp
 238  	2, // 2: yandex.cloud.iam.v1.RefreshToken.last_used_at:type_name -> google.protobuf.Timestamp
 239  	0, // 3: yandex.cloud.iam.v1.RefreshToken.protection_level:type_name -> yandex.cloud.iam.v1.RefreshToken.ProtectionLevel
 240  	4, // [4:4] is the sub-list for method output_type
 241  	4, // [4:4] is the sub-list for method input_type
 242  	4, // [4:4] is the sub-list for extension type_name
 243  	4, // [4:4] is the sub-list for extension extendee
 244  	0, // [0:4] is the sub-list for field type_name
 245  }
 246  
 247  func init() { file_yandex_cloud_iam_v1_refresh_token_proto_init() }
 248  func file_yandex_cloud_iam_v1_refresh_token_proto_init() {
 249  	if File_yandex_cloud_iam_v1_refresh_token_proto != nil {
 250  		return
 251  	}
 252  	type x struct{}
 253  	out := protoimpl.TypeBuilder{
 254  		File: protoimpl.DescBuilder{
 255  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 256  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_iam_v1_refresh_token_proto_rawDesc), len(file_yandex_cloud_iam_v1_refresh_token_proto_rawDesc)),
 257  			NumEnums:      1,
 258  			NumMessages:   1,
 259  			NumExtensions: 0,
 260  			NumServices:   0,
 261  		},
 262  		GoTypes:           file_yandex_cloud_iam_v1_refresh_token_proto_goTypes,
 263  		DependencyIndexes: file_yandex_cloud_iam_v1_refresh_token_proto_depIdxs,
 264  		EnumInfos:         file_yandex_cloud_iam_v1_refresh_token_proto_enumTypes,
 265  		MessageInfos:      file_yandex_cloud_iam_v1_refresh_token_proto_msgTypes,
 266  	}.Build()
 267  	File_yandex_cloud_iam_v1_refresh_token_proto = out.File
 268  	file_yandex_cloud_iam_v1_refresh_token_proto_goTypes = nil
 269  	file_yandex_cloud_iam_v1_refresh_token_proto_depIdxs = nil
 270  }
 271