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