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