1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package com.google.cloud.oslogin.v1; 17 18 import static io.grpc.MethodDescriptor.generateFullMethodName; 19 20 /** 21 * 22 * 23 * <pre> 24 * Cloud OS Login API 25 * The Cloud OS Login API allows you to manage users and their associated SSH 26 * public keys for logging into virtual machines on Google Cloud Platform. 27 * </pre> 28 */ 29 @javax.annotation.Generated( 30 value = "by gRPC proto compiler", 31 comments = "Source: google/cloud/oslogin/v1/oslogin.proto") 32 @io.grpc.stub.annotations.GrpcGenerated 33 public final class OsLoginServiceGrpc { 34 OsLoginServiceGrpc()35 private OsLoginServiceGrpc() {} 36 37 public static final String SERVICE_NAME = "google.cloud.oslogin.v1.OsLoginService"; 38 39 // Static method descriptors that strictly reflect the proto. 40 private static volatile io.grpc.MethodDescriptor< 41 com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest, 42 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> 43 getCreateSshPublicKeyMethod; 44 45 @io.grpc.stub.annotations.RpcMethod( 46 fullMethodName = SERVICE_NAME + '/' + "CreateSshPublicKey", 47 requestType = com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest.class, 48 responseType = com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.class, 49 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 50 public static io.grpc.MethodDescriptor< 51 com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest, 52 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> getCreateSshPublicKeyMethod()53 getCreateSshPublicKeyMethod() { 54 io.grpc.MethodDescriptor< 55 com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest, 56 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> 57 getCreateSshPublicKeyMethod; 58 if ((getCreateSshPublicKeyMethod = OsLoginServiceGrpc.getCreateSshPublicKeyMethod) == null) { 59 synchronized (OsLoginServiceGrpc.class) { 60 if ((getCreateSshPublicKeyMethod = OsLoginServiceGrpc.getCreateSshPublicKeyMethod) 61 == null) { 62 OsLoginServiceGrpc.getCreateSshPublicKeyMethod = 63 getCreateSshPublicKeyMethod = 64 io.grpc.MethodDescriptor 65 .<com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest, 66 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> 67 newBuilder() 68 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 69 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSshPublicKey")) 70 .setSampledToLocalTracing(true) 71 .setRequestMarshaller( 72 io.grpc.protobuf.ProtoUtils.marshaller( 73 com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest 74 .getDefaultInstance())) 75 .setResponseMarshaller( 76 io.grpc.protobuf.ProtoUtils.marshaller( 77 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey 78 .getDefaultInstance())) 79 .setSchemaDescriptor( 80 new OsLoginServiceMethodDescriptorSupplier("CreateSshPublicKey")) 81 .build(); 82 } 83 } 84 } 85 return getCreateSshPublicKeyMethod; 86 } 87 88 private static volatile io.grpc.MethodDescriptor< 89 com.google.cloud.oslogin.v1.DeletePosixAccountRequest, com.google.protobuf.Empty> 90 getDeletePosixAccountMethod; 91 92 @io.grpc.stub.annotations.RpcMethod( 93 fullMethodName = SERVICE_NAME + '/' + "DeletePosixAccount", 94 requestType = com.google.cloud.oslogin.v1.DeletePosixAccountRequest.class, 95 responseType = com.google.protobuf.Empty.class, 96 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 97 public static io.grpc.MethodDescriptor< 98 com.google.cloud.oslogin.v1.DeletePosixAccountRequest, com.google.protobuf.Empty> getDeletePosixAccountMethod()99 getDeletePosixAccountMethod() { 100 io.grpc.MethodDescriptor< 101 com.google.cloud.oslogin.v1.DeletePosixAccountRequest, com.google.protobuf.Empty> 102 getDeletePosixAccountMethod; 103 if ((getDeletePosixAccountMethod = OsLoginServiceGrpc.getDeletePosixAccountMethod) == null) { 104 synchronized (OsLoginServiceGrpc.class) { 105 if ((getDeletePosixAccountMethod = OsLoginServiceGrpc.getDeletePosixAccountMethod) 106 == null) { 107 OsLoginServiceGrpc.getDeletePosixAccountMethod = 108 getDeletePosixAccountMethod = 109 io.grpc.MethodDescriptor 110 .<com.google.cloud.oslogin.v1.DeletePosixAccountRequest, 111 com.google.protobuf.Empty> 112 newBuilder() 113 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 114 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePosixAccount")) 115 .setSampledToLocalTracing(true) 116 .setRequestMarshaller( 117 io.grpc.protobuf.ProtoUtils.marshaller( 118 com.google.cloud.oslogin.v1.DeletePosixAccountRequest 119 .getDefaultInstance())) 120 .setResponseMarshaller( 121 io.grpc.protobuf.ProtoUtils.marshaller( 122 com.google.protobuf.Empty.getDefaultInstance())) 123 .setSchemaDescriptor( 124 new OsLoginServiceMethodDescriptorSupplier("DeletePosixAccount")) 125 .build(); 126 } 127 } 128 } 129 return getDeletePosixAccountMethod; 130 } 131 132 private static volatile io.grpc.MethodDescriptor< 133 com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest, com.google.protobuf.Empty> 134 getDeleteSshPublicKeyMethod; 135 136 @io.grpc.stub.annotations.RpcMethod( 137 fullMethodName = SERVICE_NAME + '/' + "DeleteSshPublicKey", 138 requestType = com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.class, 139 responseType = com.google.protobuf.Empty.class, 140 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 141 public static io.grpc.MethodDescriptor< 142 com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest, com.google.protobuf.Empty> getDeleteSshPublicKeyMethod()143 getDeleteSshPublicKeyMethod() { 144 io.grpc.MethodDescriptor< 145 com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest, com.google.protobuf.Empty> 146 getDeleteSshPublicKeyMethod; 147 if ((getDeleteSshPublicKeyMethod = OsLoginServiceGrpc.getDeleteSshPublicKeyMethod) == null) { 148 synchronized (OsLoginServiceGrpc.class) { 149 if ((getDeleteSshPublicKeyMethod = OsLoginServiceGrpc.getDeleteSshPublicKeyMethod) 150 == null) { 151 OsLoginServiceGrpc.getDeleteSshPublicKeyMethod = 152 getDeleteSshPublicKeyMethod = 153 io.grpc.MethodDescriptor 154 .<com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest, 155 com.google.protobuf.Empty> 156 newBuilder() 157 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 158 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSshPublicKey")) 159 .setSampledToLocalTracing(true) 160 .setRequestMarshaller( 161 io.grpc.protobuf.ProtoUtils.marshaller( 162 com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest 163 .getDefaultInstance())) 164 .setResponseMarshaller( 165 io.grpc.protobuf.ProtoUtils.marshaller( 166 com.google.protobuf.Empty.getDefaultInstance())) 167 .setSchemaDescriptor( 168 new OsLoginServiceMethodDescriptorSupplier("DeleteSshPublicKey")) 169 .build(); 170 } 171 } 172 } 173 return getDeleteSshPublicKeyMethod; 174 } 175 176 private static volatile io.grpc.MethodDescriptor< 177 com.google.cloud.oslogin.v1.GetLoginProfileRequest, 178 com.google.cloud.oslogin.v1.LoginProfile> 179 getGetLoginProfileMethod; 180 181 @io.grpc.stub.annotations.RpcMethod( 182 fullMethodName = SERVICE_NAME + '/' + "GetLoginProfile", 183 requestType = com.google.cloud.oslogin.v1.GetLoginProfileRequest.class, 184 responseType = com.google.cloud.oslogin.v1.LoginProfile.class, 185 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 186 public static io.grpc.MethodDescriptor< 187 com.google.cloud.oslogin.v1.GetLoginProfileRequest, 188 com.google.cloud.oslogin.v1.LoginProfile> getGetLoginProfileMethod()189 getGetLoginProfileMethod() { 190 io.grpc.MethodDescriptor< 191 com.google.cloud.oslogin.v1.GetLoginProfileRequest, 192 com.google.cloud.oslogin.v1.LoginProfile> 193 getGetLoginProfileMethod; 194 if ((getGetLoginProfileMethod = OsLoginServiceGrpc.getGetLoginProfileMethod) == null) { 195 synchronized (OsLoginServiceGrpc.class) { 196 if ((getGetLoginProfileMethod = OsLoginServiceGrpc.getGetLoginProfileMethod) == null) { 197 OsLoginServiceGrpc.getGetLoginProfileMethod = 198 getGetLoginProfileMethod = 199 io.grpc.MethodDescriptor 200 .<com.google.cloud.oslogin.v1.GetLoginProfileRequest, 201 com.google.cloud.oslogin.v1.LoginProfile> 202 newBuilder() 203 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 204 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLoginProfile")) 205 .setSampledToLocalTracing(true) 206 .setRequestMarshaller( 207 io.grpc.protobuf.ProtoUtils.marshaller( 208 com.google.cloud.oslogin.v1.GetLoginProfileRequest 209 .getDefaultInstance())) 210 .setResponseMarshaller( 211 io.grpc.protobuf.ProtoUtils.marshaller( 212 com.google.cloud.oslogin.v1.LoginProfile.getDefaultInstance())) 213 .setSchemaDescriptor( 214 new OsLoginServiceMethodDescriptorSupplier("GetLoginProfile")) 215 .build(); 216 } 217 } 218 } 219 return getGetLoginProfileMethod; 220 } 221 222 private static volatile io.grpc.MethodDescriptor< 223 com.google.cloud.oslogin.v1.GetSshPublicKeyRequest, 224 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> 225 getGetSshPublicKeyMethod; 226 227 @io.grpc.stub.annotations.RpcMethod( 228 fullMethodName = SERVICE_NAME + '/' + "GetSshPublicKey", 229 requestType = com.google.cloud.oslogin.v1.GetSshPublicKeyRequest.class, 230 responseType = com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.class, 231 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 232 public static io.grpc.MethodDescriptor< 233 com.google.cloud.oslogin.v1.GetSshPublicKeyRequest, 234 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> getGetSshPublicKeyMethod()235 getGetSshPublicKeyMethod() { 236 io.grpc.MethodDescriptor< 237 com.google.cloud.oslogin.v1.GetSshPublicKeyRequest, 238 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> 239 getGetSshPublicKeyMethod; 240 if ((getGetSshPublicKeyMethod = OsLoginServiceGrpc.getGetSshPublicKeyMethod) == null) { 241 synchronized (OsLoginServiceGrpc.class) { 242 if ((getGetSshPublicKeyMethod = OsLoginServiceGrpc.getGetSshPublicKeyMethod) == null) { 243 OsLoginServiceGrpc.getGetSshPublicKeyMethod = 244 getGetSshPublicKeyMethod = 245 io.grpc.MethodDescriptor 246 .<com.google.cloud.oslogin.v1.GetSshPublicKeyRequest, 247 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> 248 newBuilder() 249 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 250 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSshPublicKey")) 251 .setSampledToLocalTracing(true) 252 .setRequestMarshaller( 253 io.grpc.protobuf.ProtoUtils.marshaller( 254 com.google.cloud.oslogin.v1.GetSshPublicKeyRequest 255 .getDefaultInstance())) 256 .setResponseMarshaller( 257 io.grpc.protobuf.ProtoUtils.marshaller( 258 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey 259 .getDefaultInstance())) 260 .setSchemaDescriptor( 261 new OsLoginServiceMethodDescriptorSupplier("GetSshPublicKey")) 262 .build(); 263 } 264 } 265 } 266 return getGetSshPublicKeyMethod; 267 } 268 269 private static volatile io.grpc.MethodDescriptor< 270 com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest, 271 com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse> 272 getImportSshPublicKeyMethod; 273 274 @io.grpc.stub.annotations.RpcMethod( 275 fullMethodName = SERVICE_NAME + '/' + "ImportSshPublicKey", 276 requestType = com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest.class, 277 responseType = com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse.class, 278 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 279 public static io.grpc.MethodDescriptor< 280 com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest, 281 com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse> getImportSshPublicKeyMethod()282 getImportSshPublicKeyMethod() { 283 io.grpc.MethodDescriptor< 284 com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest, 285 com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse> 286 getImportSshPublicKeyMethod; 287 if ((getImportSshPublicKeyMethod = OsLoginServiceGrpc.getImportSshPublicKeyMethod) == null) { 288 synchronized (OsLoginServiceGrpc.class) { 289 if ((getImportSshPublicKeyMethod = OsLoginServiceGrpc.getImportSshPublicKeyMethod) 290 == null) { 291 OsLoginServiceGrpc.getImportSshPublicKeyMethod = 292 getImportSshPublicKeyMethod = 293 io.grpc.MethodDescriptor 294 .<com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest, 295 com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse> 296 newBuilder() 297 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 298 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportSshPublicKey")) 299 .setSampledToLocalTracing(true) 300 .setRequestMarshaller( 301 io.grpc.protobuf.ProtoUtils.marshaller( 302 com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest 303 .getDefaultInstance())) 304 .setResponseMarshaller( 305 io.grpc.protobuf.ProtoUtils.marshaller( 306 com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse 307 .getDefaultInstance())) 308 .setSchemaDescriptor( 309 new OsLoginServiceMethodDescriptorSupplier("ImportSshPublicKey")) 310 .build(); 311 } 312 } 313 } 314 return getImportSshPublicKeyMethod; 315 } 316 317 private static volatile io.grpc.MethodDescriptor< 318 com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest, 319 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> 320 getUpdateSshPublicKeyMethod; 321 322 @io.grpc.stub.annotations.RpcMethod( 323 fullMethodName = SERVICE_NAME + '/' + "UpdateSshPublicKey", 324 requestType = com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.class, 325 responseType = com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.class, 326 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 327 public static io.grpc.MethodDescriptor< 328 com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest, 329 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> getUpdateSshPublicKeyMethod()330 getUpdateSshPublicKeyMethod() { 331 io.grpc.MethodDescriptor< 332 com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest, 333 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> 334 getUpdateSshPublicKeyMethod; 335 if ((getUpdateSshPublicKeyMethod = OsLoginServiceGrpc.getUpdateSshPublicKeyMethod) == null) { 336 synchronized (OsLoginServiceGrpc.class) { 337 if ((getUpdateSshPublicKeyMethod = OsLoginServiceGrpc.getUpdateSshPublicKeyMethod) 338 == null) { 339 OsLoginServiceGrpc.getUpdateSshPublicKeyMethod = 340 getUpdateSshPublicKeyMethod = 341 io.grpc.MethodDescriptor 342 .<com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest, 343 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> 344 newBuilder() 345 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 346 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSshPublicKey")) 347 .setSampledToLocalTracing(true) 348 .setRequestMarshaller( 349 io.grpc.protobuf.ProtoUtils.marshaller( 350 com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest 351 .getDefaultInstance())) 352 .setResponseMarshaller( 353 io.grpc.protobuf.ProtoUtils.marshaller( 354 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey 355 .getDefaultInstance())) 356 .setSchemaDescriptor( 357 new OsLoginServiceMethodDescriptorSupplier("UpdateSshPublicKey")) 358 .build(); 359 } 360 } 361 } 362 return getUpdateSshPublicKeyMethod; 363 } 364 365 /** Creates a new async stub that supports all call types for the service */ newStub(io.grpc.Channel channel)366 public static OsLoginServiceStub newStub(io.grpc.Channel channel) { 367 io.grpc.stub.AbstractStub.StubFactory<OsLoginServiceStub> factory = 368 new io.grpc.stub.AbstractStub.StubFactory<OsLoginServiceStub>() { 369 @java.lang.Override 370 public OsLoginServiceStub newStub( 371 io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 372 return new OsLoginServiceStub(channel, callOptions); 373 } 374 }; 375 return OsLoginServiceStub.newStub(factory, channel); 376 } 377 378 /** 379 * Creates a new blocking-style stub that supports unary and streaming output calls on the service 380 */ newBlockingStub(io.grpc.Channel channel)381 public static OsLoginServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { 382 io.grpc.stub.AbstractStub.StubFactory<OsLoginServiceBlockingStub> factory = 383 new io.grpc.stub.AbstractStub.StubFactory<OsLoginServiceBlockingStub>() { 384 @java.lang.Override 385 public OsLoginServiceBlockingStub newStub( 386 io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 387 return new OsLoginServiceBlockingStub(channel, callOptions); 388 } 389 }; 390 return OsLoginServiceBlockingStub.newStub(factory, channel); 391 } 392 393 /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ newFutureStub(io.grpc.Channel channel)394 public static OsLoginServiceFutureStub newFutureStub(io.grpc.Channel channel) { 395 io.grpc.stub.AbstractStub.StubFactory<OsLoginServiceFutureStub> factory = 396 new io.grpc.stub.AbstractStub.StubFactory<OsLoginServiceFutureStub>() { 397 @java.lang.Override 398 public OsLoginServiceFutureStub newStub( 399 io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 400 return new OsLoginServiceFutureStub(channel, callOptions); 401 } 402 }; 403 return OsLoginServiceFutureStub.newStub(factory, channel); 404 } 405 406 /** 407 * 408 * 409 * <pre> 410 * Cloud OS Login API 411 * The Cloud OS Login API allows you to manage users and their associated SSH 412 * public keys for logging into virtual machines on Google Cloud Platform. 413 * </pre> 414 */ 415 public interface AsyncService { 416 417 /** 418 * 419 * 420 * <pre> 421 * Create an SSH public key 422 * </pre> 423 */ createSshPublicKey( com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest request, io.grpc.stub.StreamObserver<com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> responseObserver)424 default void createSshPublicKey( 425 com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest request, 426 io.grpc.stub.StreamObserver<com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> 427 responseObserver) { 428 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 429 getCreateSshPublicKeyMethod(), responseObserver); 430 } 431 432 /** 433 * 434 * 435 * <pre> 436 * Deletes a POSIX account. 437 * </pre> 438 */ deletePosixAccount( com.google.cloud.oslogin.v1.DeletePosixAccountRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)439 default void deletePosixAccount( 440 com.google.cloud.oslogin.v1.DeletePosixAccountRequest request, 441 io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { 442 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 443 getDeletePosixAccountMethod(), responseObserver); 444 } 445 446 /** 447 * 448 * 449 * <pre> 450 * Deletes an SSH public key. 451 * </pre> 452 */ deleteSshPublicKey( com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)453 default void deleteSshPublicKey( 454 com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest request, 455 io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { 456 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 457 getDeleteSshPublicKeyMethod(), responseObserver); 458 } 459 460 /** 461 * 462 * 463 * <pre> 464 * Retrieves the profile information used for logging in to a virtual machine 465 * on Google Compute Engine. 466 * </pre> 467 */ getLoginProfile( com.google.cloud.oslogin.v1.GetLoginProfileRequest request, io.grpc.stub.StreamObserver<com.google.cloud.oslogin.v1.LoginProfile> responseObserver)468 default void getLoginProfile( 469 com.google.cloud.oslogin.v1.GetLoginProfileRequest request, 470 io.grpc.stub.StreamObserver<com.google.cloud.oslogin.v1.LoginProfile> responseObserver) { 471 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 472 getGetLoginProfileMethod(), responseObserver); 473 } 474 475 /** 476 * 477 * 478 * <pre> 479 * Retrieves an SSH public key. 480 * </pre> 481 */ getSshPublicKey( com.google.cloud.oslogin.v1.GetSshPublicKeyRequest request, io.grpc.stub.StreamObserver<com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> responseObserver)482 default void getSshPublicKey( 483 com.google.cloud.oslogin.v1.GetSshPublicKeyRequest request, 484 io.grpc.stub.StreamObserver<com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> 485 responseObserver) { 486 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 487 getGetSshPublicKeyMethod(), responseObserver); 488 } 489 490 /** 491 * 492 * 493 * <pre> 494 * Adds an SSH public key and returns the profile information. Default POSIX 495 * account information is set when no username and UID exist as part of the 496 * login profile. 497 * </pre> 498 */ importSshPublicKey( com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest request, io.grpc.stub.StreamObserver<com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse> responseObserver)499 default void importSshPublicKey( 500 com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest request, 501 io.grpc.stub.StreamObserver<com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse> 502 responseObserver) { 503 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 504 getImportSshPublicKeyMethod(), responseObserver); 505 } 506 507 /** 508 * 509 * 510 * <pre> 511 * Updates an SSH public key and returns the profile information. This method 512 * supports patch semantics. 513 * </pre> 514 */ updateSshPublicKey( com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest request, io.grpc.stub.StreamObserver<com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> responseObserver)515 default void updateSshPublicKey( 516 com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest request, 517 io.grpc.stub.StreamObserver<com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> 518 responseObserver) { 519 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 520 getUpdateSshPublicKeyMethod(), responseObserver); 521 } 522 } 523 524 /** 525 * Base class for the server implementation of the service OsLoginService. 526 * 527 * <pre> 528 * Cloud OS Login API 529 * The Cloud OS Login API allows you to manage users and their associated SSH 530 * public keys for logging into virtual machines on Google Cloud Platform. 531 * </pre> 532 */ 533 public abstract static class OsLoginServiceImplBase 534 implements io.grpc.BindableService, AsyncService { 535 536 @java.lang.Override bindService()537 public final io.grpc.ServerServiceDefinition bindService() { 538 return OsLoginServiceGrpc.bindService(this); 539 } 540 } 541 542 /** 543 * A stub to allow clients to do asynchronous rpc calls to service OsLoginService. 544 * 545 * <pre> 546 * Cloud OS Login API 547 * The Cloud OS Login API allows you to manage users and their associated SSH 548 * public keys for logging into virtual machines on Google Cloud Platform. 549 * </pre> 550 */ 551 public static final class OsLoginServiceStub 552 extends io.grpc.stub.AbstractAsyncStub<OsLoginServiceStub> { OsLoginServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)553 private OsLoginServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 554 super(channel, callOptions); 555 } 556 557 @java.lang.Override build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)558 protected OsLoginServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 559 return new OsLoginServiceStub(channel, callOptions); 560 } 561 562 /** 563 * 564 * 565 * <pre> 566 * Create an SSH public key 567 * </pre> 568 */ createSshPublicKey( com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest request, io.grpc.stub.StreamObserver<com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> responseObserver)569 public void createSshPublicKey( 570 com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest request, 571 io.grpc.stub.StreamObserver<com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> 572 responseObserver) { 573 io.grpc.stub.ClientCalls.asyncUnaryCall( 574 getChannel().newCall(getCreateSshPublicKeyMethod(), getCallOptions()), 575 request, 576 responseObserver); 577 } 578 579 /** 580 * 581 * 582 * <pre> 583 * Deletes a POSIX account. 584 * </pre> 585 */ deletePosixAccount( com.google.cloud.oslogin.v1.DeletePosixAccountRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)586 public void deletePosixAccount( 587 com.google.cloud.oslogin.v1.DeletePosixAccountRequest request, 588 io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { 589 io.grpc.stub.ClientCalls.asyncUnaryCall( 590 getChannel().newCall(getDeletePosixAccountMethod(), getCallOptions()), 591 request, 592 responseObserver); 593 } 594 595 /** 596 * 597 * 598 * <pre> 599 * Deletes an SSH public key. 600 * </pre> 601 */ deleteSshPublicKey( com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)602 public void deleteSshPublicKey( 603 com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest request, 604 io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { 605 io.grpc.stub.ClientCalls.asyncUnaryCall( 606 getChannel().newCall(getDeleteSshPublicKeyMethod(), getCallOptions()), 607 request, 608 responseObserver); 609 } 610 611 /** 612 * 613 * 614 * <pre> 615 * Retrieves the profile information used for logging in to a virtual machine 616 * on Google Compute Engine. 617 * </pre> 618 */ getLoginProfile( com.google.cloud.oslogin.v1.GetLoginProfileRequest request, io.grpc.stub.StreamObserver<com.google.cloud.oslogin.v1.LoginProfile> responseObserver)619 public void getLoginProfile( 620 com.google.cloud.oslogin.v1.GetLoginProfileRequest request, 621 io.grpc.stub.StreamObserver<com.google.cloud.oslogin.v1.LoginProfile> responseObserver) { 622 io.grpc.stub.ClientCalls.asyncUnaryCall( 623 getChannel().newCall(getGetLoginProfileMethod(), getCallOptions()), 624 request, 625 responseObserver); 626 } 627 628 /** 629 * 630 * 631 * <pre> 632 * Retrieves an SSH public key. 633 * </pre> 634 */ getSshPublicKey( com.google.cloud.oslogin.v1.GetSshPublicKeyRequest request, io.grpc.stub.StreamObserver<com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> responseObserver)635 public void getSshPublicKey( 636 com.google.cloud.oslogin.v1.GetSshPublicKeyRequest request, 637 io.grpc.stub.StreamObserver<com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> 638 responseObserver) { 639 io.grpc.stub.ClientCalls.asyncUnaryCall( 640 getChannel().newCall(getGetSshPublicKeyMethod(), getCallOptions()), 641 request, 642 responseObserver); 643 } 644 645 /** 646 * 647 * 648 * <pre> 649 * Adds an SSH public key and returns the profile information. Default POSIX 650 * account information is set when no username and UID exist as part of the 651 * login profile. 652 * </pre> 653 */ importSshPublicKey( com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest request, io.grpc.stub.StreamObserver<com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse> responseObserver)654 public void importSshPublicKey( 655 com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest request, 656 io.grpc.stub.StreamObserver<com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse> 657 responseObserver) { 658 io.grpc.stub.ClientCalls.asyncUnaryCall( 659 getChannel().newCall(getImportSshPublicKeyMethod(), getCallOptions()), 660 request, 661 responseObserver); 662 } 663 664 /** 665 * 666 * 667 * <pre> 668 * Updates an SSH public key and returns the profile information. This method 669 * supports patch semantics. 670 * </pre> 671 */ updateSshPublicKey( com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest request, io.grpc.stub.StreamObserver<com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> responseObserver)672 public void updateSshPublicKey( 673 com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest request, 674 io.grpc.stub.StreamObserver<com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> 675 responseObserver) { 676 io.grpc.stub.ClientCalls.asyncUnaryCall( 677 getChannel().newCall(getUpdateSshPublicKeyMethod(), getCallOptions()), 678 request, 679 responseObserver); 680 } 681 } 682 683 /** 684 * A stub to allow clients to do synchronous rpc calls to service OsLoginService. 685 * 686 * <pre> 687 * Cloud OS Login API 688 * The Cloud OS Login API allows you to manage users and their associated SSH 689 * public keys for logging into virtual machines on Google Cloud Platform. 690 * </pre> 691 */ 692 public static final class OsLoginServiceBlockingStub 693 extends io.grpc.stub.AbstractBlockingStub<OsLoginServiceBlockingStub> { OsLoginServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)694 private OsLoginServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 695 super(channel, callOptions); 696 } 697 698 @java.lang.Override build( io.grpc.Channel channel, io.grpc.CallOptions callOptions)699 protected OsLoginServiceBlockingStub build( 700 io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 701 return new OsLoginServiceBlockingStub(channel, callOptions); 702 } 703 704 /** 705 * 706 * 707 * <pre> 708 * Create an SSH public key 709 * </pre> 710 */ createSshPublicKey( com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest request)711 public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey createSshPublicKey( 712 com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest request) { 713 return io.grpc.stub.ClientCalls.blockingUnaryCall( 714 getChannel(), getCreateSshPublicKeyMethod(), getCallOptions(), request); 715 } 716 717 /** 718 * 719 * 720 * <pre> 721 * Deletes a POSIX account. 722 * </pre> 723 */ deletePosixAccount( com.google.cloud.oslogin.v1.DeletePosixAccountRequest request)724 public com.google.protobuf.Empty deletePosixAccount( 725 com.google.cloud.oslogin.v1.DeletePosixAccountRequest request) { 726 return io.grpc.stub.ClientCalls.blockingUnaryCall( 727 getChannel(), getDeletePosixAccountMethod(), getCallOptions(), request); 728 } 729 730 /** 731 * 732 * 733 * <pre> 734 * Deletes an SSH public key. 735 * </pre> 736 */ deleteSshPublicKey( com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest request)737 public com.google.protobuf.Empty deleteSshPublicKey( 738 com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest request) { 739 return io.grpc.stub.ClientCalls.blockingUnaryCall( 740 getChannel(), getDeleteSshPublicKeyMethod(), getCallOptions(), request); 741 } 742 743 /** 744 * 745 * 746 * <pre> 747 * Retrieves the profile information used for logging in to a virtual machine 748 * on Google Compute Engine. 749 * </pre> 750 */ getLoginProfile( com.google.cloud.oslogin.v1.GetLoginProfileRequest request)751 public com.google.cloud.oslogin.v1.LoginProfile getLoginProfile( 752 com.google.cloud.oslogin.v1.GetLoginProfileRequest request) { 753 return io.grpc.stub.ClientCalls.blockingUnaryCall( 754 getChannel(), getGetLoginProfileMethod(), getCallOptions(), request); 755 } 756 757 /** 758 * 759 * 760 * <pre> 761 * Retrieves an SSH public key. 762 * </pre> 763 */ getSshPublicKey( com.google.cloud.oslogin.v1.GetSshPublicKeyRequest request)764 public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKey( 765 com.google.cloud.oslogin.v1.GetSshPublicKeyRequest request) { 766 return io.grpc.stub.ClientCalls.blockingUnaryCall( 767 getChannel(), getGetSshPublicKeyMethod(), getCallOptions(), request); 768 } 769 770 /** 771 * 772 * 773 * <pre> 774 * Adds an SSH public key and returns the profile information. Default POSIX 775 * account information is set when no username and UID exist as part of the 776 * login profile. 777 * </pre> 778 */ importSshPublicKey( com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest request)779 public com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse importSshPublicKey( 780 com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest request) { 781 return io.grpc.stub.ClientCalls.blockingUnaryCall( 782 getChannel(), getImportSshPublicKeyMethod(), getCallOptions(), request); 783 } 784 785 /** 786 * 787 * 788 * <pre> 789 * Updates an SSH public key and returns the profile information. This method 790 * supports patch semantics. 791 * </pre> 792 */ updateSshPublicKey( com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest request)793 public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey updateSshPublicKey( 794 com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest request) { 795 return io.grpc.stub.ClientCalls.blockingUnaryCall( 796 getChannel(), getUpdateSshPublicKeyMethod(), getCallOptions(), request); 797 } 798 } 799 800 /** 801 * A stub to allow clients to do ListenableFuture-style rpc calls to service OsLoginService. 802 * 803 * <pre> 804 * Cloud OS Login API 805 * The Cloud OS Login API allows you to manage users and their associated SSH 806 * public keys for logging into virtual machines on Google Cloud Platform. 807 * </pre> 808 */ 809 public static final class OsLoginServiceFutureStub 810 extends io.grpc.stub.AbstractFutureStub<OsLoginServiceFutureStub> { OsLoginServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)811 private OsLoginServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 812 super(channel, callOptions); 813 } 814 815 @java.lang.Override build( io.grpc.Channel channel, io.grpc.CallOptions callOptions)816 protected OsLoginServiceFutureStub build( 817 io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 818 return new OsLoginServiceFutureStub(channel, callOptions); 819 } 820 821 /** 822 * 823 * 824 * <pre> 825 * Create an SSH public key 826 * </pre> 827 */ 828 public com.google.common.util.concurrent.ListenableFuture< 829 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> createSshPublicKey(com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest request)830 createSshPublicKey(com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest request) { 831 return io.grpc.stub.ClientCalls.futureUnaryCall( 832 getChannel().newCall(getCreateSshPublicKeyMethod(), getCallOptions()), request); 833 } 834 835 /** 836 * 837 * 838 * <pre> 839 * Deletes a POSIX account. 840 * </pre> 841 */ 842 public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deletePosixAccount(com.google.cloud.oslogin.v1.DeletePosixAccountRequest request)843 deletePosixAccount(com.google.cloud.oslogin.v1.DeletePosixAccountRequest request) { 844 return io.grpc.stub.ClientCalls.futureUnaryCall( 845 getChannel().newCall(getDeletePosixAccountMethod(), getCallOptions()), request); 846 } 847 848 /** 849 * 850 * 851 * <pre> 852 * Deletes an SSH public key. 853 * </pre> 854 */ 855 public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteSshPublicKey(com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest request)856 deleteSshPublicKey(com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest request) { 857 return io.grpc.stub.ClientCalls.futureUnaryCall( 858 getChannel().newCall(getDeleteSshPublicKeyMethod(), getCallOptions()), request); 859 } 860 861 /** 862 * 863 * 864 * <pre> 865 * Retrieves the profile information used for logging in to a virtual machine 866 * on Google Compute Engine. 867 * </pre> 868 */ 869 public com.google.common.util.concurrent.ListenableFuture< 870 com.google.cloud.oslogin.v1.LoginProfile> getLoginProfile(com.google.cloud.oslogin.v1.GetLoginProfileRequest request)871 getLoginProfile(com.google.cloud.oslogin.v1.GetLoginProfileRequest request) { 872 return io.grpc.stub.ClientCalls.futureUnaryCall( 873 getChannel().newCall(getGetLoginProfileMethod(), getCallOptions()), request); 874 } 875 876 /** 877 * 878 * 879 * <pre> 880 * Retrieves an SSH public key. 881 * </pre> 882 */ 883 public com.google.common.util.concurrent.ListenableFuture< 884 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> getSshPublicKey(com.google.cloud.oslogin.v1.GetSshPublicKeyRequest request)885 getSshPublicKey(com.google.cloud.oslogin.v1.GetSshPublicKeyRequest request) { 886 return io.grpc.stub.ClientCalls.futureUnaryCall( 887 getChannel().newCall(getGetSshPublicKeyMethod(), getCallOptions()), request); 888 } 889 890 /** 891 * 892 * 893 * <pre> 894 * Adds an SSH public key and returns the profile information. Default POSIX 895 * account information is set when no username and UID exist as part of the 896 * login profile. 897 * </pre> 898 */ 899 public com.google.common.util.concurrent.ListenableFuture< 900 com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse> importSshPublicKey(com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest request)901 importSshPublicKey(com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest request) { 902 return io.grpc.stub.ClientCalls.futureUnaryCall( 903 getChannel().newCall(getImportSshPublicKeyMethod(), getCallOptions()), request); 904 } 905 906 /** 907 * 908 * 909 * <pre> 910 * Updates an SSH public key and returns the profile information. This method 911 * supports patch semantics. 912 * </pre> 913 */ 914 public com.google.common.util.concurrent.ListenableFuture< 915 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> updateSshPublicKey(com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest request)916 updateSshPublicKey(com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest request) { 917 return io.grpc.stub.ClientCalls.futureUnaryCall( 918 getChannel().newCall(getUpdateSshPublicKeyMethod(), getCallOptions()), request); 919 } 920 } 921 922 private static final int METHODID_CREATE_SSH_PUBLIC_KEY = 0; 923 private static final int METHODID_DELETE_POSIX_ACCOUNT = 1; 924 private static final int METHODID_DELETE_SSH_PUBLIC_KEY = 2; 925 private static final int METHODID_GET_LOGIN_PROFILE = 3; 926 private static final int METHODID_GET_SSH_PUBLIC_KEY = 4; 927 private static final int METHODID_IMPORT_SSH_PUBLIC_KEY = 5; 928 private static final int METHODID_UPDATE_SSH_PUBLIC_KEY = 6; 929 930 private static final class MethodHandlers<Req, Resp> 931 implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, 932 io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, 933 io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, 934 io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { 935 private final AsyncService serviceImpl; 936 private final int methodId; 937 MethodHandlers(AsyncService serviceImpl, int methodId)938 MethodHandlers(AsyncService serviceImpl, int methodId) { 939 this.serviceImpl = serviceImpl; 940 this.methodId = methodId; 941 } 942 943 @java.lang.Override 944 @java.lang.SuppressWarnings("unchecked") invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver)945 public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) { 946 switch (methodId) { 947 case METHODID_CREATE_SSH_PUBLIC_KEY: 948 serviceImpl.createSshPublicKey( 949 (com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest) request, 950 (io.grpc.stub.StreamObserver< 951 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey>) 952 responseObserver); 953 break; 954 case METHODID_DELETE_POSIX_ACCOUNT: 955 serviceImpl.deletePosixAccount( 956 (com.google.cloud.oslogin.v1.DeletePosixAccountRequest) request, 957 (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver); 958 break; 959 case METHODID_DELETE_SSH_PUBLIC_KEY: 960 serviceImpl.deleteSshPublicKey( 961 (com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) request, 962 (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver); 963 break; 964 case METHODID_GET_LOGIN_PROFILE: 965 serviceImpl.getLoginProfile( 966 (com.google.cloud.oslogin.v1.GetLoginProfileRequest) request, 967 (io.grpc.stub.StreamObserver<com.google.cloud.oslogin.v1.LoginProfile>) 968 responseObserver); 969 break; 970 case METHODID_GET_SSH_PUBLIC_KEY: 971 serviceImpl.getSshPublicKey( 972 (com.google.cloud.oslogin.v1.GetSshPublicKeyRequest) request, 973 (io.grpc.stub.StreamObserver< 974 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey>) 975 responseObserver); 976 break; 977 case METHODID_IMPORT_SSH_PUBLIC_KEY: 978 serviceImpl.importSshPublicKey( 979 (com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest) request, 980 (io.grpc.stub.StreamObserver<com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse>) 981 responseObserver); 982 break; 983 case METHODID_UPDATE_SSH_PUBLIC_KEY: 984 serviceImpl.updateSshPublicKey( 985 (com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest) request, 986 (io.grpc.stub.StreamObserver< 987 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey>) 988 responseObserver); 989 break; 990 default: 991 throw new AssertionError(); 992 } 993 } 994 995 @java.lang.Override 996 @java.lang.SuppressWarnings("unchecked") invoke( io.grpc.stub.StreamObserver<Resp> responseObserver)997 public io.grpc.stub.StreamObserver<Req> invoke( 998 io.grpc.stub.StreamObserver<Resp> responseObserver) { 999 switch (methodId) { 1000 default: 1001 throw new AssertionError(); 1002 } 1003 } 1004 } 1005 bindService(AsyncService service)1006 public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { 1007 return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) 1008 .addMethod( 1009 getCreateSshPublicKeyMethod(), 1010 io.grpc.stub.ServerCalls.asyncUnaryCall( 1011 new MethodHandlers< 1012 com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest, 1013 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey>( 1014 service, METHODID_CREATE_SSH_PUBLIC_KEY))) 1015 .addMethod( 1016 getDeletePosixAccountMethod(), 1017 io.grpc.stub.ServerCalls.asyncUnaryCall( 1018 new MethodHandlers< 1019 com.google.cloud.oslogin.v1.DeletePosixAccountRequest, 1020 com.google.protobuf.Empty>(service, METHODID_DELETE_POSIX_ACCOUNT))) 1021 .addMethod( 1022 getDeleteSshPublicKeyMethod(), 1023 io.grpc.stub.ServerCalls.asyncUnaryCall( 1024 new MethodHandlers< 1025 com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest, 1026 com.google.protobuf.Empty>(service, METHODID_DELETE_SSH_PUBLIC_KEY))) 1027 .addMethod( 1028 getGetLoginProfileMethod(), 1029 io.grpc.stub.ServerCalls.asyncUnaryCall( 1030 new MethodHandlers< 1031 com.google.cloud.oslogin.v1.GetLoginProfileRequest, 1032 com.google.cloud.oslogin.v1.LoginProfile>(service, METHODID_GET_LOGIN_PROFILE))) 1033 .addMethod( 1034 getGetSshPublicKeyMethod(), 1035 io.grpc.stub.ServerCalls.asyncUnaryCall( 1036 new MethodHandlers< 1037 com.google.cloud.oslogin.v1.GetSshPublicKeyRequest, 1038 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey>( 1039 service, METHODID_GET_SSH_PUBLIC_KEY))) 1040 .addMethod( 1041 getImportSshPublicKeyMethod(), 1042 io.grpc.stub.ServerCalls.asyncUnaryCall( 1043 new MethodHandlers< 1044 com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest, 1045 com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse>( 1046 service, METHODID_IMPORT_SSH_PUBLIC_KEY))) 1047 .addMethod( 1048 getUpdateSshPublicKeyMethod(), 1049 io.grpc.stub.ServerCalls.asyncUnaryCall( 1050 new MethodHandlers< 1051 com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest, 1052 com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey>( 1053 service, METHODID_UPDATE_SSH_PUBLIC_KEY))) 1054 .build(); 1055 } 1056 1057 private abstract static class OsLoginServiceBaseDescriptorSupplier 1058 implements io.grpc.protobuf.ProtoFileDescriptorSupplier, 1059 io.grpc.protobuf.ProtoServiceDescriptorSupplier { OsLoginServiceBaseDescriptorSupplier()1060 OsLoginServiceBaseDescriptorSupplier() {} 1061 1062 @java.lang.Override getFileDescriptor()1063 public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { 1064 return com.google.cloud.oslogin.v1.OsLoginProto.getDescriptor(); 1065 } 1066 1067 @java.lang.Override getServiceDescriptor()1068 public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { 1069 return getFileDescriptor().findServiceByName("OsLoginService"); 1070 } 1071 } 1072 1073 private static final class OsLoginServiceFileDescriptorSupplier 1074 extends OsLoginServiceBaseDescriptorSupplier { OsLoginServiceFileDescriptorSupplier()1075 OsLoginServiceFileDescriptorSupplier() {} 1076 } 1077 1078 private static final class OsLoginServiceMethodDescriptorSupplier 1079 extends OsLoginServiceBaseDescriptorSupplier 1080 implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { 1081 private final String methodName; 1082 OsLoginServiceMethodDescriptorSupplier(String methodName)1083 OsLoginServiceMethodDescriptorSupplier(String methodName) { 1084 this.methodName = methodName; 1085 } 1086 1087 @java.lang.Override getMethodDescriptor()1088 public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { 1089 return getServiceDescriptor().findMethodByName(methodName); 1090 } 1091 } 1092 1093 private static volatile io.grpc.ServiceDescriptor serviceDescriptor; 1094 getServiceDescriptor()1095 public static io.grpc.ServiceDescriptor getServiceDescriptor() { 1096 io.grpc.ServiceDescriptor result = serviceDescriptor; 1097 if (result == null) { 1098 synchronized (OsLoginServiceGrpc.class) { 1099 result = serviceDescriptor; 1100 if (result == null) { 1101 serviceDescriptor = 1102 result = 1103 io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) 1104 .setSchemaDescriptor(new OsLoginServiceFileDescriptorSupplier()) 1105 .addMethod(getCreateSshPublicKeyMethod()) 1106 .addMethod(getDeletePosixAccountMethod()) 1107 .addMethod(getDeleteSshPublicKeyMethod()) 1108 .addMethod(getGetLoginProfileMethod()) 1109 .addMethod(getGetSshPublicKeyMethod()) 1110 .addMethod(getImportSshPublicKeyMethod()) 1111 .addMethod(getUpdateSshPublicKeyMethod()) 1112 .build(); 1113 } 1114 } 1115 } 1116 return result; 1117 } 1118 } 1119