1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/oslogin/v1alpha/oslogin.proto 3 4package oslogin 5 6import ( 7 context "context" 8 fmt "fmt" 9 math "math" 10 11 proto "github.com/golang/protobuf/proto" 12 empty "github.com/golang/protobuf/ptypes/empty" 13 _ "google.golang.org/genproto/googleapis/api/annotations" 14 common "google.golang.org/genproto/googleapis/cloud/oslogin/common" 15 field_mask "google.golang.org/genproto/protobuf/field_mask" 16 grpc "google.golang.org/grpc" 17) 18 19// Reference imports to suppress errors if they are not otherwise used. 20var _ = proto.Marshal 21var _ = fmt.Errorf 22var _ = math.Inf 23 24// This is a compile-time assertion to ensure that this generated file 25// is compatible with the proto package it is being compiled against. 26// A compilation error at this line likely means your copy of the 27// proto package needs to be updated. 28const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 29 30// The user profile information used for logging in to a virtual machine on 31// Google Compute Engine. 32type LoginProfile struct { 33 // A unique user ID for identifying the user. 34 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 35 // The list of POSIX accounts associated with the Directory API user. 36 PosixAccounts []*common.PosixAccount `protobuf:"bytes,2,rep,name=posix_accounts,json=posixAccounts,proto3" json:"posix_accounts,omitempty"` 37 // A map from SSH public key fingerprint to the associated key object. 38 SshPublicKeys map[string]*common.SshPublicKey `protobuf:"bytes,3,rep,name=ssh_public_keys,json=sshPublicKeys,proto3" json:"ssh_public_keys,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 39 // Indicates if the user is suspended. 40 Suspended bool `protobuf:"varint,4,opt,name=suspended,proto3" json:"suspended,omitempty"` 41 XXX_NoUnkeyedLiteral struct{} `json:"-"` 42 XXX_unrecognized []byte `json:"-"` 43 XXX_sizecache int32 `json:"-"` 44} 45 46func (m *LoginProfile) Reset() { *m = LoginProfile{} } 47func (m *LoginProfile) String() string { return proto.CompactTextString(m) } 48func (*LoginProfile) ProtoMessage() {} 49func (*LoginProfile) Descriptor() ([]byte, []int) { 50 return fileDescriptor_9929680849ee8c07, []int{0} 51} 52 53func (m *LoginProfile) XXX_Unmarshal(b []byte) error { 54 return xxx_messageInfo_LoginProfile.Unmarshal(m, b) 55} 56func (m *LoginProfile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 57 return xxx_messageInfo_LoginProfile.Marshal(b, m, deterministic) 58} 59func (m *LoginProfile) XXX_Merge(src proto.Message) { 60 xxx_messageInfo_LoginProfile.Merge(m, src) 61} 62func (m *LoginProfile) XXX_Size() int { 63 return xxx_messageInfo_LoginProfile.Size(m) 64} 65func (m *LoginProfile) XXX_DiscardUnknown() { 66 xxx_messageInfo_LoginProfile.DiscardUnknown(m) 67} 68 69var xxx_messageInfo_LoginProfile proto.InternalMessageInfo 70 71func (m *LoginProfile) GetName() string { 72 if m != nil { 73 return m.Name 74 } 75 return "" 76} 77 78func (m *LoginProfile) GetPosixAccounts() []*common.PosixAccount { 79 if m != nil { 80 return m.PosixAccounts 81 } 82 return nil 83} 84 85func (m *LoginProfile) GetSshPublicKeys() map[string]*common.SshPublicKey { 86 if m != nil { 87 return m.SshPublicKeys 88 } 89 return nil 90} 91 92func (m *LoginProfile) GetSuspended() bool { 93 if m != nil { 94 return m.Suspended 95 } 96 return false 97} 98 99// A request message for deleting a POSIX account entry. 100type DeletePosixAccountRequest struct { 101 // A reference to the POSIX account to update. POSIX accounts are identified 102 // by the project ID they are associated with. A reference to the POSIX 103 // account is in format `users/{user}/projects/{project}`. 104 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 105 XXX_NoUnkeyedLiteral struct{} `json:"-"` 106 XXX_unrecognized []byte `json:"-"` 107 XXX_sizecache int32 `json:"-"` 108} 109 110func (m *DeletePosixAccountRequest) Reset() { *m = DeletePosixAccountRequest{} } 111func (m *DeletePosixAccountRequest) String() string { return proto.CompactTextString(m) } 112func (*DeletePosixAccountRequest) ProtoMessage() {} 113func (*DeletePosixAccountRequest) Descriptor() ([]byte, []int) { 114 return fileDescriptor_9929680849ee8c07, []int{1} 115} 116 117func (m *DeletePosixAccountRequest) XXX_Unmarshal(b []byte) error { 118 return xxx_messageInfo_DeletePosixAccountRequest.Unmarshal(m, b) 119} 120func (m *DeletePosixAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 121 return xxx_messageInfo_DeletePosixAccountRequest.Marshal(b, m, deterministic) 122} 123func (m *DeletePosixAccountRequest) XXX_Merge(src proto.Message) { 124 xxx_messageInfo_DeletePosixAccountRequest.Merge(m, src) 125} 126func (m *DeletePosixAccountRequest) XXX_Size() int { 127 return xxx_messageInfo_DeletePosixAccountRequest.Size(m) 128} 129func (m *DeletePosixAccountRequest) XXX_DiscardUnknown() { 130 xxx_messageInfo_DeletePosixAccountRequest.DiscardUnknown(m) 131} 132 133var xxx_messageInfo_DeletePosixAccountRequest proto.InternalMessageInfo 134 135func (m *DeletePosixAccountRequest) GetName() string { 136 if m != nil { 137 return m.Name 138 } 139 return "" 140} 141 142// A request message for deleting an SSH public key. 143type DeleteSshPublicKeyRequest struct { 144 // The fingerprint of the public key to update. Public keys are identified by 145 // their SHA-256 fingerprint. The fingerprint of the public key is in format 146 // `users/{user}/sshPublicKeys/{fingerprint}`. 147 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 148 XXX_NoUnkeyedLiteral struct{} `json:"-"` 149 XXX_unrecognized []byte `json:"-"` 150 XXX_sizecache int32 `json:"-"` 151} 152 153func (m *DeleteSshPublicKeyRequest) Reset() { *m = DeleteSshPublicKeyRequest{} } 154func (m *DeleteSshPublicKeyRequest) String() string { return proto.CompactTextString(m) } 155func (*DeleteSshPublicKeyRequest) ProtoMessage() {} 156func (*DeleteSshPublicKeyRequest) Descriptor() ([]byte, []int) { 157 return fileDescriptor_9929680849ee8c07, []int{2} 158} 159 160func (m *DeleteSshPublicKeyRequest) XXX_Unmarshal(b []byte) error { 161 return xxx_messageInfo_DeleteSshPublicKeyRequest.Unmarshal(m, b) 162} 163func (m *DeleteSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 164 return xxx_messageInfo_DeleteSshPublicKeyRequest.Marshal(b, m, deterministic) 165} 166func (m *DeleteSshPublicKeyRequest) XXX_Merge(src proto.Message) { 167 xxx_messageInfo_DeleteSshPublicKeyRequest.Merge(m, src) 168} 169func (m *DeleteSshPublicKeyRequest) XXX_Size() int { 170 return xxx_messageInfo_DeleteSshPublicKeyRequest.Size(m) 171} 172func (m *DeleteSshPublicKeyRequest) XXX_DiscardUnknown() { 173 xxx_messageInfo_DeleteSshPublicKeyRequest.DiscardUnknown(m) 174} 175 176var xxx_messageInfo_DeleteSshPublicKeyRequest proto.InternalMessageInfo 177 178func (m *DeleteSshPublicKeyRequest) GetName() string { 179 if m != nil { 180 return m.Name 181 } 182 return "" 183} 184 185// A request message for retrieving the login profile information for a user. 186type GetLoginProfileRequest struct { 187 // The unique ID for the user in format `users/{user}`. 188 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 189 XXX_NoUnkeyedLiteral struct{} `json:"-"` 190 XXX_unrecognized []byte `json:"-"` 191 XXX_sizecache int32 `json:"-"` 192} 193 194func (m *GetLoginProfileRequest) Reset() { *m = GetLoginProfileRequest{} } 195func (m *GetLoginProfileRequest) String() string { return proto.CompactTextString(m) } 196func (*GetLoginProfileRequest) ProtoMessage() {} 197func (*GetLoginProfileRequest) Descriptor() ([]byte, []int) { 198 return fileDescriptor_9929680849ee8c07, []int{3} 199} 200 201func (m *GetLoginProfileRequest) XXX_Unmarshal(b []byte) error { 202 return xxx_messageInfo_GetLoginProfileRequest.Unmarshal(m, b) 203} 204func (m *GetLoginProfileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 205 return xxx_messageInfo_GetLoginProfileRequest.Marshal(b, m, deterministic) 206} 207func (m *GetLoginProfileRequest) XXX_Merge(src proto.Message) { 208 xxx_messageInfo_GetLoginProfileRequest.Merge(m, src) 209} 210func (m *GetLoginProfileRequest) XXX_Size() int { 211 return xxx_messageInfo_GetLoginProfileRequest.Size(m) 212} 213func (m *GetLoginProfileRequest) XXX_DiscardUnknown() { 214 xxx_messageInfo_GetLoginProfileRequest.DiscardUnknown(m) 215} 216 217var xxx_messageInfo_GetLoginProfileRequest proto.InternalMessageInfo 218 219func (m *GetLoginProfileRequest) GetName() string { 220 if m != nil { 221 return m.Name 222 } 223 return "" 224} 225 226// A request message for retrieving an SSH public key. 227type GetSshPublicKeyRequest struct { 228 // The fingerprint of the public key to retrieve. Public keys are identified 229 // by their SHA-256 fingerprint. The fingerprint of the public key is in 230 // format `users/{user}/sshPublicKeys/{fingerprint}`. 231 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 232 XXX_NoUnkeyedLiteral struct{} `json:"-"` 233 XXX_unrecognized []byte `json:"-"` 234 XXX_sizecache int32 `json:"-"` 235} 236 237func (m *GetSshPublicKeyRequest) Reset() { *m = GetSshPublicKeyRequest{} } 238func (m *GetSshPublicKeyRequest) String() string { return proto.CompactTextString(m) } 239func (*GetSshPublicKeyRequest) ProtoMessage() {} 240func (*GetSshPublicKeyRequest) Descriptor() ([]byte, []int) { 241 return fileDescriptor_9929680849ee8c07, []int{4} 242} 243 244func (m *GetSshPublicKeyRequest) XXX_Unmarshal(b []byte) error { 245 return xxx_messageInfo_GetSshPublicKeyRequest.Unmarshal(m, b) 246} 247func (m *GetSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 248 return xxx_messageInfo_GetSshPublicKeyRequest.Marshal(b, m, deterministic) 249} 250func (m *GetSshPublicKeyRequest) XXX_Merge(src proto.Message) { 251 xxx_messageInfo_GetSshPublicKeyRequest.Merge(m, src) 252} 253func (m *GetSshPublicKeyRequest) XXX_Size() int { 254 return xxx_messageInfo_GetSshPublicKeyRequest.Size(m) 255} 256func (m *GetSshPublicKeyRequest) XXX_DiscardUnknown() { 257 xxx_messageInfo_GetSshPublicKeyRequest.DiscardUnknown(m) 258} 259 260var xxx_messageInfo_GetSshPublicKeyRequest proto.InternalMessageInfo 261 262func (m *GetSshPublicKeyRequest) GetName() string { 263 if m != nil { 264 return m.Name 265 } 266 return "" 267} 268 269// A request message for importing an SSH public key. 270type ImportSshPublicKeyRequest struct { 271 // The unique ID for the user in format `users/{user}`. 272 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 273 // The SSH public key and expiration time. 274 SshPublicKey *common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey,proto3" json:"ssh_public_key,omitempty"` 275 // The project ID of the Google Cloud Platform project. 276 ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` 277 XXX_NoUnkeyedLiteral struct{} `json:"-"` 278 XXX_unrecognized []byte `json:"-"` 279 XXX_sizecache int32 `json:"-"` 280} 281 282func (m *ImportSshPublicKeyRequest) Reset() { *m = ImportSshPublicKeyRequest{} } 283func (m *ImportSshPublicKeyRequest) String() string { return proto.CompactTextString(m) } 284func (*ImportSshPublicKeyRequest) ProtoMessage() {} 285func (*ImportSshPublicKeyRequest) Descriptor() ([]byte, []int) { 286 return fileDescriptor_9929680849ee8c07, []int{5} 287} 288 289func (m *ImportSshPublicKeyRequest) XXX_Unmarshal(b []byte) error { 290 return xxx_messageInfo_ImportSshPublicKeyRequest.Unmarshal(m, b) 291} 292func (m *ImportSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 293 return xxx_messageInfo_ImportSshPublicKeyRequest.Marshal(b, m, deterministic) 294} 295func (m *ImportSshPublicKeyRequest) XXX_Merge(src proto.Message) { 296 xxx_messageInfo_ImportSshPublicKeyRequest.Merge(m, src) 297} 298func (m *ImportSshPublicKeyRequest) XXX_Size() int { 299 return xxx_messageInfo_ImportSshPublicKeyRequest.Size(m) 300} 301func (m *ImportSshPublicKeyRequest) XXX_DiscardUnknown() { 302 xxx_messageInfo_ImportSshPublicKeyRequest.DiscardUnknown(m) 303} 304 305var xxx_messageInfo_ImportSshPublicKeyRequest proto.InternalMessageInfo 306 307func (m *ImportSshPublicKeyRequest) GetParent() string { 308 if m != nil { 309 return m.Parent 310 } 311 return "" 312} 313 314func (m *ImportSshPublicKeyRequest) GetSshPublicKey() *common.SshPublicKey { 315 if m != nil { 316 return m.SshPublicKey 317 } 318 return nil 319} 320 321func (m *ImportSshPublicKeyRequest) GetProjectId() string { 322 if m != nil { 323 return m.ProjectId 324 } 325 return "" 326} 327 328// A response message for importing an SSH public key. 329type ImportSshPublicKeyResponse struct { 330 // The login profile information for the user. 331 LoginProfile *LoginProfile `protobuf:"bytes,1,opt,name=login_profile,json=loginProfile,proto3" json:"login_profile,omitempty"` 332 XXX_NoUnkeyedLiteral struct{} `json:"-"` 333 XXX_unrecognized []byte `json:"-"` 334 XXX_sizecache int32 `json:"-"` 335} 336 337func (m *ImportSshPublicKeyResponse) Reset() { *m = ImportSshPublicKeyResponse{} } 338func (m *ImportSshPublicKeyResponse) String() string { return proto.CompactTextString(m) } 339func (*ImportSshPublicKeyResponse) ProtoMessage() {} 340func (*ImportSshPublicKeyResponse) Descriptor() ([]byte, []int) { 341 return fileDescriptor_9929680849ee8c07, []int{6} 342} 343 344func (m *ImportSshPublicKeyResponse) XXX_Unmarshal(b []byte) error { 345 return xxx_messageInfo_ImportSshPublicKeyResponse.Unmarshal(m, b) 346} 347func (m *ImportSshPublicKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 348 return xxx_messageInfo_ImportSshPublicKeyResponse.Marshal(b, m, deterministic) 349} 350func (m *ImportSshPublicKeyResponse) XXX_Merge(src proto.Message) { 351 xxx_messageInfo_ImportSshPublicKeyResponse.Merge(m, src) 352} 353func (m *ImportSshPublicKeyResponse) XXX_Size() int { 354 return xxx_messageInfo_ImportSshPublicKeyResponse.Size(m) 355} 356func (m *ImportSshPublicKeyResponse) XXX_DiscardUnknown() { 357 xxx_messageInfo_ImportSshPublicKeyResponse.DiscardUnknown(m) 358} 359 360var xxx_messageInfo_ImportSshPublicKeyResponse proto.InternalMessageInfo 361 362func (m *ImportSshPublicKeyResponse) GetLoginProfile() *LoginProfile { 363 if m != nil { 364 return m.LoginProfile 365 } 366 return nil 367} 368 369// A request message for updating an SSH public key. 370type UpdateSshPublicKeyRequest struct { 371 // The fingerprint of the public key to update. Public keys are identified by 372 // their SHA-256 fingerprint. The fingerprint of the public key is in format 373 // `users/{user}/sshPublicKeys/{fingerprint}`. 374 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 375 // The SSH public key and expiration time. 376 SshPublicKey *common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey,proto3" json:"ssh_public_key,omitempty"` 377 // Mask to control which fields get updated. Updates all if not present. 378 UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` 379 XXX_NoUnkeyedLiteral struct{} `json:"-"` 380 XXX_unrecognized []byte `json:"-"` 381 XXX_sizecache int32 `json:"-"` 382} 383 384func (m *UpdateSshPublicKeyRequest) Reset() { *m = UpdateSshPublicKeyRequest{} } 385func (m *UpdateSshPublicKeyRequest) String() string { return proto.CompactTextString(m) } 386func (*UpdateSshPublicKeyRequest) ProtoMessage() {} 387func (*UpdateSshPublicKeyRequest) Descriptor() ([]byte, []int) { 388 return fileDescriptor_9929680849ee8c07, []int{7} 389} 390 391func (m *UpdateSshPublicKeyRequest) XXX_Unmarshal(b []byte) error { 392 return xxx_messageInfo_UpdateSshPublicKeyRequest.Unmarshal(m, b) 393} 394func (m *UpdateSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 395 return xxx_messageInfo_UpdateSshPublicKeyRequest.Marshal(b, m, deterministic) 396} 397func (m *UpdateSshPublicKeyRequest) XXX_Merge(src proto.Message) { 398 xxx_messageInfo_UpdateSshPublicKeyRequest.Merge(m, src) 399} 400func (m *UpdateSshPublicKeyRequest) XXX_Size() int { 401 return xxx_messageInfo_UpdateSshPublicKeyRequest.Size(m) 402} 403func (m *UpdateSshPublicKeyRequest) XXX_DiscardUnknown() { 404 xxx_messageInfo_UpdateSshPublicKeyRequest.DiscardUnknown(m) 405} 406 407var xxx_messageInfo_UpdateSshPublicKeyRequest proto.InternalMessageInfo 408 409func (m *UpdateSshPublicKeyRequest) GetName() string { 410 if m != nil { 411 return m.Name 412 } 413 return "" 414} 415 416func (m *UpdateSshPublicKeyRequest) GetSshPublicKey() *common.SshPublicKey { 417 if m != nil { 418 return m.SshPublicKey 419 } 420 return nil 421} 422 423func (m *UpdateSshPublicKeyRequest) GetUpdateMask() *field_mask.FieldMask { 424 if m != nil { 425 return m.UpdateMask 426 } 427 return nil 428} 429 430func init() { 431 proto.RegisterType((*LoginProfile)(nil), "google.cloud.oslogin.v1alpha.LoginProfile") 432 proto.RegisterMapType((map[string]*common.SshPublicKey)(nil), "google.cloud.oslogin.v1alpha.LoginProfile.SshPublicKeysEntry") 433 proto.RegisterType((*DeletePosixAccountRequest)(nil), "google.cloud.oslogin.v1alpha.DeletePosixAccountRequest") 434 proto.RegisterType((*DeleteSshPublicKeyRequest)(nil), "google.cloud.oslogin.v1alpha.DeleteSshPublicKeyRequest") 435 proto.RegisterType((*GetLoginProfileRequest)(nil), "google.cloud.oslogin.v1alpha.GetLoginProfileRequest") 436 proto.RegisterType((*GetSshPublicKeyRequest)(nil), "google.cloud.oslogin.v1alpha.GetSshPublicKeyRequest") 437 proto.RegisterType((*ImportSshPublicKeyRequest)(nil), "google.cloud.oslogin.v1alpha.ImportSshPublicKeyRequest") 438 proto.RegisterType((*ImportSshPublicKeyResponse)(nil), "google.cloud.oslogin.v1alpha.ImportSshPublicKeyResponse") 439 proto.RegisterType((*UpdateSshPublicKeyRequest)(nil), "google.cloud.oslogin.v1alpha.UpdateSshPublicKeyRequest") 440} 441 442func init() { 443 proto.RegisterFile("google/cloud/oslogin/v1alpha/oslogin.proto", fileDescriptor_9929680849ee8c07) 444} 445 446var fileDescriptor_9929680849ee8c07 = []byte{ 447 // 779 bytes of a gzipped FileDescriptorProto 448 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x6a, 0xdb, 0x4a, 449 0x14, 0x46, 0x76, 0x6e, 0x48, 0xc6, 0x4e, 0x72, 0x99, 0x45, 0x70, 0x74, 0x73, 0xc1, 0x88, 0xd0, 450 0x3a, 0x26, 0x68, 0x88, 0x5b, 0x68, 0x9a, 0x90, 0x86, 0xfc, 0x35, 0x84, 0xb6, 0xc4, 0x38, 0x34, 451 0x8b, 0x12, 0x30, 0x13, 0x79, 0xa2, 0xa8, 0x96, 0x34, 0x53, 0x8d, 0x14, 0x6a, 0x4a, 0x36, 0x7d, 452 0x83, 0x12, 0xe8, 0xbe, 0x64, 0xd7, 0x7d, 0x17, 0x5d, 0xf4, 0x05, 0x0a, 0x5d, 0xf5, 0x15, 0x4a, 453 0x9f, 0xa3, 0x68, 0x34, 0x4a, 0x64, 0x5b, 0xb6, 0x65, 0xe8, 0xca, 0x3a, 0x73, 0xfe, 0xbe, 0xf3, 454 0x9d, 0x1f, 0x0c, 0xaa, 0x26, 0xa5, 0xa6, 0x4d, 0x90, 0x61, 0xd3, 0xa0, 0x85, 0x28, 0xb7, 0xa9, 455 0x69, 0xb9, 0xe8, 0x72, 0x15, 0xdb, 0xec, 0x02, 0xc7, 0xb2, 0xce, 0x3c, 0xea, 0x53, 0xb8, 0x18, 456 0xd9, 0xea, 0xc2, 0x56, 0x8f, 0x75, 0xd2, 0x56, 0x95, 0x5a, 0x84, 0x99, 0x85, 0xb0, 0xeb, 0x52, 457 0x1f, 0xfb, 0x16, 0x75, 0x79, 0xe4, 0xab, 0x56, 0x52, 0xf3, 0x18, 0xd4, 0x71, 0x68, 0xfc, 0x23, 458 0x2d, 0xff, 0x93, 0x96, 0x42, 0x3a, 0x0b, 0xce, 0x11, 0x71, 0x98, 0xdf, 0x91, 0xca, 0x72, 0xaf, 459 0xf2, 0xdc, 0x22, 0x76, 0xab, 0xe9, 0x60, 0xde, 0x8e, 0x2c, 0xb4, 0xdf, 0x39, 0x50, 0x7c, 0x1e, 460 0x06, 0xaf, 0x7b, 0xf4, 0xdc, 0xb2, 0x09, 0x84, 0x60, 0xc2, 0xc5, 0x0e, 0x29, 0x29, 0x65, 0xa5, 461 0x32, 0xdd, 0x10, 0xdf, 0xb0, 0x0e, 0x66, 0x19, 0xe5, 0xd6, 0xdb, 0x26, 0x36, 0x0c, 0x1a, 0xb8, 462 0x3e, 0x2f, 0xe5, 0xca, 0xf9, 0x4a, 0xa1, 0xb6, 0xac, 0xa7, 0x96, 0x28, 0xf1, 0xd5, 0x43, 0x97, 463 0xed, 0xc8, 0xa3, 0x31, 0xc3, 0x12, 0x12, 0x87, 0x04, 0xcc, 0x71, 0x7e, 0xd1, 0x64, 0xc1, 0x99, 464 0x6d, 0x19, 0xcd, 0x36, 0xe9, 0xf0, 0x52, 0x5e, 0x84, 0xdc, 0xd4, 0x87, 0xb1, 0xa6, 0x27, 0xa1, 465 0xea, 0xc7, 0xfc, 0xa2, 0x2e, 0x02, 0x3c, 0x23, 0x1d, 0xbe, 0xef, 0xfa, 0x5e, 0xa7, 0x31, 0xc3, 466 0x93, 0x6f, 0x70, 0x11, 0x4c, 0xf3, 0x80, 0x33, 0xe2, 0xb6, 0x48, 0xab, 0x34, 0x51, 0x56, 0x2a, 467 0x53, 0x8d, 0xbb, 0x07, 0xb5, 0x0d, 0x60, 0x7f, 0x08, 0xf8, 0x2f, 0xc8, 0xb7, 0x49, 0x47, 0xd6, 468 0x1f, 0x7e, 0xc2, 0x2d, 0xf0, 0xcf, 0x25, 0xb6, 0x03, 0x52, 0xca, 0x95, 0x95, 0x91, 0x55, 0x27, 469 0x23, 0x36, 0x22, 0xbf, 0xf5, 0xdc, 0x9a, 0xa2, 0x21, 0xb0, 0xb0, 0x47, 0x6c, 0xe2, 0x93, 0x2e, 470 0x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c6, 0xae, 0xa9, 0x53, 0xcf, 0x44, 0x26, 0x71, 493 0xc5, 0x82, 0xa1, 0x48, 0x85, 0x99, 0xc5, 0xd3, 0xff, 0x36, 0x6d, 0x48, 0xf9, 0x73, 0x6e, 0xf1, 494 0x20, 0x8a, 0xb2, 0x2b, 0x72, 0xca, 0x14, 0xfa, 0xc9, 0xea, 0x76, 0x68, 0xf6, 0x3d, 0x56, 0x9f, 495 0x0a, 0xf5, 0xa9, 0x54, 0x9f, 0x9e, 0x44, 0x51, 0xce, 0x26, 0x45, 0xb6, 0x07, 0x7f, 0x02, 0x00, 496 0x00, 0xff, 0xff, 0xf8, 0xf2, 0xe5, 0x19, 0xa3, 0x09, 0x00, 0x00, 497} 498 499// Reference imports to suppress errors if they are not otherwise used. 500var _ context.Context 501var _ grpc.ClientConn 502 503// This is a compile-time assertion to ensure that this generated file 504// is compatible with the grpc package it is being compiled against. 505const _ = grpc.SupportPackageIsVersion4 506 507// OsLoginServiceClient is the client API for OsLoginService service. 508// 509// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 510type OsLoginServiceClient interface { 511 // Deletes a POSIX account. 512 DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*empty.Empty, error) 513 // Deletes an SSH public key. 514 DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) 515 // Retrieves the profile information used for logging in to a virtual machine 516 // on Google Compute Engine. 517 GetLoginProfile(ctx context.Context, in *GetLoginProfileRequest, opts ...grpc.CallOption) (*LoginProfile, error) 518 // Retrieves an SSH public key. 519 GetSshPublicKey(ctx context.Context, in *GetSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error) 520 // Adds an SSH public key and returns the profile information. Default POSIX 521 // account information is set when no username and UID exist as part of the 522 // login profile. 523 ImportSshPublicKey(ctx context.Context, in *ImportSshPublicKeyRequest, opts ...grpc.CallOption) (*ImportSshPublicKeyResponse, error) 524 // Updates an SSH public key and returns the profile information. This method 525 // supports patch semantics. 526 UpdateSshPublicKey(ctx context.Context, in *UpdateSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error) 527} 528 529type osLoginServiceClient struct { 530 cc *grpc.ClientConn 531} 532 533func NewOsLoginServiceClient(cc *grpc.ClientConn) OsLoginServiceClient { 534 return &osLoginServiceClient{cc} 535} 536 537func (c *osLoginServiceClient) DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*empty.Empty, error) { 538 out := new(empty.Empty) 539 err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/DeletePosixAccount", in, out, opts...) 540 if err != nil { 541 return nil, err 542 } 543 return out, nil 544} 545 546func (c *osLoginServiceClient) DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { 547 out := new(empty.Empty) 548 err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/DeleteSshPublicKey", in, out, opts...) 549 if err != nil { 550 return nil, err 551 } 552 return out, nil 553} 554 555func (c *osLoginServiceClient) GetLoginProfile(ctx context.Context, in *GetLoginProfileRequest, opts ...grpc.CallOption) (*LoginProfile, error) { 556 out := new(LoginProfile) 557 err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/GetLoginProfile", in, out, opts...) 558 if err != nil { 559 return nil, err 560 } 561 return out, nil 562} 563 564func (c *osLoginServiceClient) GetSshPublicKey(ctx context.Context, in *GetSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error) { 565 out := new(common.SshPublicKey) 566 err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/GetSshPublicKey", in, out, opts...) 567 if err != nil { 568 return nil, err 569 } 570 return out, nil 571} 572 573func (c *osLoginServiceClient) ImportSshPublicKey(ctx context.Context, in *ImportSshPublicKeyRequest, opts ...grpc.CallOption) (*ImportSshPublicKeyResponse, error) { 574 out := new(ImportSshPublicKeyResponse) 575 err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/ImportSshPublicKey", in, out, opts...) 576 if err != nil { 577 return nil, err 578 } 579 return out, nil 580} 581 582func (c *osLoginServiceClient) UpdateSshPublicKey(ctx context.Context, in *UpdateSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error) { 583 out := new(common.SshPublicKey) 584 err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/UpdateSshPublicKey", in, out, opts...) 585 if err != nil { 586 return nil, err 587 } 588 return out, nil 589} 590 591// OsLoginServiceServer is the server API for OsLoginService service. 592type OsLoginServiceServer interface { 593 // Deletes a POSIX account. 594 DeletePosixAccount(context.Context, *DeletePosixAccountRequest) (*empty.Empty, error) 595 // Deletes an SSH public key. 596 DeleteSshPublicKey(context.Context, *DeleteSshPublicKeyRequest) (*empty.Empty, error) 597 // Retrieves the profile information used for logging in to a virtual machine 598 // on Google Compute Engine. 599 GetLoginProfile(context.Context, *GetLoginProfileRequest) (*LoginProfile, error) 600 // Retrieves an SSH public key. 601 GetSshPublicKey(context.Context, *GetSshPublicKeyRequest) (*common.SshPublicKey, error) 602 // Adds an SSH public key and returns the profile information. Default POSIX 603 // account information is set when no username and UID exist as part of the 604 // login profile. 605 ImportSshPublicKey(context.Context, *ImportSshPublicKeyRequest) (*ImportSshPublicKeyResponse, error) 606 // Updates an SSH public key and returns the profile information. This method 607 // supports patch semantics. 608 UpdateSshPublicKey(context.Context, *UpdateSshPublicKeyRequest) (*common.SshPublicKey, error) 609} 610 611func RegisterOsLoginServiceServer(s *grpc.Server, srv OsLoginServiceServer) { 612 s.RegisterService(&_OsLoginService_serviceDesc, srv) 613} 614 615func _OsLoginService_DeletePosixAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 616 in := new(DeletePosixAccountRequest) 617 if err := dec(in); err != nil { 618 return nil, err 619 } 620 if interceptor == nil { 621 return srv.(OsLoginServiceServer).DeletePosixAccount(ctx, in) 622 } 623 info := &grpc.UnaryServerInfo{ 624 Server: srv, 625 FullMethod: "/google.cloud.oslogin.v1alpha.OsLoginService/DeletePosixAccount", 626 } 627 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 628 return srv.(OsLoginServiceServer).DeletePosixAccount(ctx, req.(*DeletePosixAccountRequest)) 629 } 630 return interceptor(ctx, in, info, handler) 631} 632 633func _OsLoginService_DeleteSshPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 634 in := new(DeleteSshPublicKeyRequest) 635 if err := dec(in); err != nil { 636 return nil, err 637 } 638 if interceptor == nil { 639 return srv.(OsLoginServiceServer).DeleteSshPublicKey(ctx, in) 640 } 641 info := &grpc.UnaryServerInfo{ 642 Server: srv, 643 FullMethod: "/google.cloud.oslogin.v1alpha.OsLoginService/DeleteSshPublicKey", 644 } 645 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 646 return srv.(OsLoginServiceServer).DeleteSshPublicKey(ctx, req.(*DeleteSshPublicKeyRequest)) 647 } 648 return interceptor(ctx, in, info, handler) 649} 650 651func _OsLoginService_GetLoginProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 652 in := new(GetLoginProfileRequest) 653 if err := dec(in); err != nil { 654 return nil, err 655 } 656 if interceptor == nil { 657 return srv.(OsLoginServiceServer).GetLoginProfile(ctx, in) 658 } 659 info := &grpc.UnaryServerInfo{ 660 Server: srv, 661 FullMethod: "/google.cloud.oslogin.v1alpha.OsLoginService/GetLoginProfile", 662 } 663 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 664 return srv.(OsLoginServiceServer).GetLoginProfile(ctx, req.(*GetLoginProfileRequest)) 665 } 666 return interceptor(ctx, in, info, handler) 667} 668 669func _OsLoginService_GetSshPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 670 in := new(GetSshPublicKeyRequest) 671 if err := dec(in); err != nil { 672 return nil, err 673 } 674 if interceptor == nil { 675 return srv.(OsLoginServiceServer).GetSshPublicKey(ctx, in) 676 } 677 info := &grpc.UnaryServerInfo{ 678 Server: srv, 679 FullMethod: "/google.cloud.oslogin.v1alpha.OsLoginService/GetSshPublicKey", 680 } 681 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 682 return srv.(OsLoginServiceServer).GetSshPublicKey(ctx, req.(*GetSshPublicKeyRequest)) 683 } 684 return interceptor(ctx, in, info, handler) 685} 686 687func _OsLoginService_ImportSshPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 688 in := new(ImportSshPublicKeyRequest) 689 if err := dec(in); err != nil { 690 return nil, err 691 } 692 if interceptor == nil { 693 return srv.(OsLoginServiceServer).ImportSshPublicKey(ctx, in) 694 } 695 info := &grpc.UnaryServerInfo{ 696 Server: srv, 697 FullMethod: "/google.cloud.oslogin.v1alpha.OsLoginService/ImportSshPublicKey", 698 } 699 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 700 return srv.(OsLoginServiceServer).ImportSshPublicKey(ctx, req.(*ImportSshPublicKeyRequest)) 701 } 702 return interceptor(ctx, in, info, handler) 703} 704 705func _OsLoginService_UpdateSshPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 706 in := new(UpdateSshPublicKeyRequest) 707 if err := dec(in); err != nil { 708 return nil, err 709 } 710 if interceptor == nil { 711 return srv.(OsLoginServiceServer).UpdateSshPublicKey(ctx, in) 712 } 713 info := &grpc.UnaryServerInfo{ 714 Server: srv, 715 FullMethod: "/google.cloud.oslogin.v1alpha.OsLoginService/UpdateSshPublicKey", 716 } 717 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 718 return srv.(OsLoginServiceServer).UpdateSshPublicKey(ctx, req.(*UpdateSshPublicKeyRequest)) 719 } 720 return interceptor(ctx, in, info, handler) 721} 722 723var _OsLoginService_serviceDesc = grpc.ServiceDesc{ 724 ServiceName: "google.cloud.oslogin.v1alpha.OsLoginService", 725 HandlerType: (*OsLoginServiceServer)(nil), 726 Methods: []grpc.MethodDesc{ 727 { 728 MethodName: "DeletePosixAccount", 729 Handler: _OsLoginService_DeletePosixAccount_Handler, 730 }, 731 { 732 MethodName: "DeleteSshPublicKey", 733 Handler: _OsLoginService_DeleteSshPublicKey_Handler, 734 }, 735 { 736 MethodName: "GetLoginProfile", 737 Handler: _OsLoginService_GetLoginProfile_Handler, 738 }, 739 { 740 MethodName: "GetSshPublicKey", 741 Handler: _OsLoginService_GetSshPublicKey_Handler, 742 }, 743 { 744 MethodName: "ImportSshPublicKey", 745 Handler: _OsLoginService_ImportSshPublicKey_Handler, 746 }, 747 { 748 MethodName: "UpdateSshPublicKey", 749 Handler: _OsLoginService_UpdateSshPublicKey_Handler, 750 }, 751 }, 752 Streams: []grpc.StreamDesc{}, 753 Metadata: "google/cloud/oslogin/v1alpha/oslogin.proto", 754} 755