From 20836001f9d84fdc125e870f9af142ca8e08574f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 16 Nov 2022 21:16:17 +0000 Subject: [PATCH] feat: added CreateSshPublicKey RPC PiperOrigin-RevId: 488460648 Source-Link: https://github.com/googleapis/googleapis/commit/236055995b64ba17e1441fe12908ca6e0f1953b9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/59576752785e41d49590c1ed00042827611f3438 Copy-Tag: eyJwIjoiamF2YS1vcy1sb2dpbi8uT3dsQm90LnlhbWwiLCJoIjoiNTk1NzY3NTI3ODVlNDFkNDk1OTBjMWVkMDAwNDI4Mjc2MTFmMzQzOCJ9 --- .../cloud/oslogin/v1/OsLoginServiceGrpc.java | 978 --------- .../DeletePosixAccountRequestOrBuilder.java | 58 - .../DeleteSshPublicKeyRequestOrBuilder.java | 58 - .../v1/GetSshPublicKeyRequestOrBuilder.java | 58 - .../google/cloud/oslogin/v1/OsLoginProto.java | 252 --- .../com/google/cloud/oslogin/v1/UserName.java | 166 -- .../oslogin/v1/OsLoginServiceClient.java | 182 +- .../oslogin/v1/OsLoginServiceSettings.java | 19 +- .../cloud/oslogin/v1/gapic_metadata.json | 3 + .../google/cloud/oslogin/v1/package-info.java | 6 +- .../GrpcOsLoginServiceCallableFactory.java | 0 .../v1/stub/GrpcOsLoginServiceStub.java | 37 + ...HttpJsonOsLoginServiceCallableFactory.java | 0 .../v1/stub/HttpJsonOsLoginServiceStub.java | 57 + .../oslogin/v1/stub/OsLoginServiceStub.java | 6 + .../v1/stub/OsLoginServiceStubSettings.java | 38 +- .../cloud/oslogin/v1/MockOsLoginService.java | 0 .../oslogin/v1/MockOsLoginServiceImpl.java | 22 + .../v1/OsLoginServiceClientHttpJsonTest.java | 137 +- .../oslogin/v1/OsLoginServiceClientTest.java | 127 +- .../cloud/oslogin/v1/OsLoginServiceGrpc.java | 845 ++++++++ .../cloud/oslogin/common/OsLoginProto.java | 1809 +++++++---------- .../oslogin/common/PosixAccountName.java | 0 .../oslogin/common/SshPublicKeyName.java | 0 .../google/cloud/oslogin/common/UserName.java | 0 .../oslogin/v1/CreateSshPublicKeyRequest.java | 804 ++++++++ .../CreateSshPublicKeyRequestOrBuilder.java | 56 + .../oslogin/v1/DeletePosixAccountRequest.java | 358 ++-- .../DeletePosixAccountRequestOrBuilder.java | 33 + .../oslogin/v1/DeleteSshPublicKeyRequest.java | 358 ++-- .../DeleteSshPublicKeyRequestOrBuilder.java | 33 + .../oslogin/v1/GetLoginProfileRequest.java | 513 ++--- .../v1/GetLoginProfileRequestOrBuilder.java | 53 +- .../oslogin/v1/GetSshPublicKeyRequest.java | 355 ++-- .../v1/GetSshPublicKeyRequestOrBuilder.java | 33 + .../oslogin/v1/ImportSshPublicKeyRequest.java | 580 ++---- .../ImportSshPublicKeyRequestOrBuilder.java | 64 +- .../v1/ImportSshPublicKeyResponse.java | 503 +++-- .../ImportSshPublicKeyResponseOrBuilder.java | 46 +- .../google/cloud/oslogin/v1/LoginProfile.java | 783 +++---- .../oslogin/v1/LoginProfileOrBuilder.java | 68 +- .../google/cloud/oslogin/v1/OsLoginProto.java | 253 +++ .../oslogin/v1/UpdateSshPublicKeyRequest.java | 584 ++---- .../UpdateSshPublicKeyRequestOrBuilder.java | 63 +- .../google/cloud/oslogin/common/common.proto | 5 +- .../google/cloud/oslogin/v1/oslogin.proto | 33 +- 46 files changed, 5164 insertions(+), 5272 deletions(-) delete mode 100644 java-os-login/grpc-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceGrpc.java delete mode 100644 java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeletePosixAccountRequestOrBuilder.java delete mode 100644 java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeleteSshPublicKeyRequestOrBuilder.java delete mode 100644 java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetSshPublicKeyRequestOrBuilder.java delete mode 100644 java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginProto.java delete mode 100644 java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UserName.java rename {java-os-login => owl-bot-staging/java-os-login/v1}/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceClient.java (85%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceSettings.java (93%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/gapic_metadata.json (89%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/package-info.java (86%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/GrpcOsLoginServiceCallableFactory.java (100%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/GrpcOsLoginServiceStub.java (88%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/HttpJsonOsLoginServiceCallableFactory.java (100%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/HttpJsonOsLoginServiceStub.java (87%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStub.java (91%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java (91%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/MockOsLoginService.java (100%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/MockOsLoginServiceImpl.java (88%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/OsLoginServiceClientHttpJsonTest.java (84%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/OsLoginServiceClientTest.java (84%) create mode 100644 owl-bot-staging/java-os-login/v1/grpc-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceGrpc.java rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/OsLoginProto.java (71%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/PosixAccountName.java (100%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/SshPublicKeyName.java (100%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/UserName.java (100%) create mode 100644 owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/CreateSshPublicKeyRequest.java create mode 100644 owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/CreateSshPublicKeyRequestOrBuilder.java rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeletePosixAccountRequest.java (63%) create mode 100644 owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeletePosixAccountRequestOrBuilder.java rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeleteSshPublicKeyRequest.java (63%) create mode 100644 owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeleteSshPublicKeyRequestOrBuilder.java rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetLoginProfileRequest.java (65%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetLoginProfileRequestOrBuilder.java (53%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetSshPublicKeyRequest.java (63%) create mode 100644 owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetSshPublicKeyRequestOrBuilder.java rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyRequest.java (62%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyRequestOrBuilder.java (50%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyResponse.java (58%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyResponseOrBuilder.java (60%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/LoginProfile.java (65%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/LoginProfileOrBuilder.java (74%) create mode 100644 owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginProto.java rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UpdateSshPublicKeyRequest.java (64%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UpdateSshPublicKeyRequestOrBuilder.java (60%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/proto/google/cloud/oslogin/common/common.proto (97%) rename {java-os-login => owl-bot-staging/java-os-login/v1}/proto-google-cloud-os-login-v1/src/main/proto/google/cloud/oslogin/v1/oslogin.proto (87%) diff --git a/java-os-login/grpc-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceGrpc.java b/java-os-login/grpc-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceGrpc.java deleted file mode 100644 index 4bb1b10ad44a..000000000000 --- a/java-os-login/grpc-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceGrpc.java +++ /dev/null @@ -1,978 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.oslogin.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Cloud OS Login API
- * The Cloud OS Login API allows you to manage users and their associated SSH
- * public keys for logging into virtual machines on Google Cloud Platform.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/oslogin/v1/oslogin.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class OsLoginServiceGrpc { - - private OsLoginServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.oslogin.v1.OsLoginService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.oslogin.v1.DeletePosixAccountRequest, com.google.protobuf.Empty> - getDeletePosixAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePosixAccount", - requestType = com.google.cloud.oslogin.v1.DeletePosixAccountRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.oslogin.v1.DeletePosixAccountRequest, com.google.protobuf.Empty> - getDeletePosixAccountMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.oslogin.v1.DeletePosixAccountRequest, com.google.protobuf.Empty> - getDeletePosixAccountMethod; - if ((getDeletePosixAccountMethod = OsLoginServiceGrpc.getDeletePosixAccountMethod) == null) { - synchronized (OsLoginServiceGrpc.class) { - if ((getDeletePosixAccountMethod = OsLoginServiceGrpc.getDeletePosixAccountMethod) - == null) { - OsLoginServiceGrpc.getDeletePosixAccountMethod = - getDeletePosixAccountMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePosixAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.oslogin.v1.DeletePosixAccountRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new OsLoginServiceMethodDescriptorSupplier("DeletePosixAccount")) - .build(); - } - } - } - return getDeletePosixAccountMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest, com.google.protobuf.Empty> - getDeleteSshPublicKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSshPublicKey", - requestType = com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest, com.google.protobuf.Empty> - getDeleteSshPublicKeyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest, com.google.protobuf.Empty> - getDeleteSshPublicKeyMethod; - if ((getDeleteSshPublicKeyMethod = OsLoginServiceGrpc.getDeleteSshPublicKeyMethod) == null) { - synchronized (OsLoginServiceGrpc.class) { - if ((getDeleteSshPublicKeyMethod = OsLoginServiceGrpc.getDeleteSshPublicKeyMethod) - == null) { - OsLoginServiceGrpc.getDeleteSshPublicKeyMethod = - getDeleteSshPublicKeyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSshPublicKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new OsLoginServiceMethodDescriptorSupplier("DeleteSshPublicKey")) - .build(); - } - } - } - return getDeleteSshPublicKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.oslogin.v1.GetLoginProfileRequest, - com.google.cloud.oslogin.v1.LoginProfile> - getGetLoginProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLoginProfile", - requestType = com.google.cloud.oslogin.v1.GetLoginProfileRequest.class, - responseType = com.google.cloud.oslogin.v1.LoginProfile.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.oslogin.v1.GetLoginProfileRequest, - com.google.cloud.oslogin.v1.LoginProfile> - getGetLoginProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.oslogin.v1.GetLoginProfileRequest, - com.google.cloud.oslogin.v1.LoginProfile> - getGetLoginProfileMethod; - if ((getGetLoginProfileMethod = OsLoginServiceGrpc.getGetLoginProfileMethod) == null) { - synchronized (OsLoginServiceGrpc.class) { - if ((getGetLoginProfileMethod = OsLoginServiceGrpc.getGetLoginProfileMethod) == null) { - OsLoginServiceGrpc.getGetLoginProfileMethod = - getGetLoginProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLoginProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.oslogin.v1.GetLoginProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.oslogin.v1.LoginProfile.getDefaultInstance())) - .setSchemaDescriptor( - new OsLoginServiceMethodDescriptorSupplier("GetLoginProfile")) - .build(); - } - } - } - return getGetLoginProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.oslogin.v1.GetSshPublicKeyRequest, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - getGetSshPublicKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSshPublicKey", - requestType = com.google.cloud.oslogin.v1.GetSshPublicKeyRequest.class, - responseType = com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.oslogin.v1.GetSshPublicKeyRequest, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - getGetSshPublicKeyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.oslogin.v1.GetSshPublicKeyRequest, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - getGetSshPublicKeyMethod; - if ((getGetSshPublicKeyMethod = OsLoginServiceGrpc.getGetSshPublicKeyMethod) == null) { - synchronized (OsLoginServiceGrpc.class) { - if ((getGetSshPublicKeyMethod = OsLoginServiceGrpc.getGetSshPublicKeyMethod) == null) { - OsLoginServiceGrpc.getGetSshPublicKeyMethod = - getGetSshPublicKeyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSshPublicKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.oslogin.v1.GetSshPublicKeyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey - .getDefaultInstance())) - .setSchemaDescriptor( - new OsLoginServiceMethodDescriptorSupplier("GetSshPublicKey")) - .build(); - } - } - } - return getGetSshPublicKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest, - com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse> - getImportSshPublicKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportSshPublicKey", - requestType = com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest.class, - responseType = com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest, - com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse> - getImportSshPublicKeyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest, - com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse> - getImportSshPublicKeyMethod; - if ((getImportSshPublicKeyMethod = OsLoginServiceGrpc.getImportSshPublicKeyMethod) == null) { - synchronized (OsLoginServiceGrpc.class) { - if ((getImportSshPublicKeyMethod = OsLoginServiceGrpc.getImportSshPublicKeyMethod) - == null) { - OsLoginServiceGrpc.getImportSshPublicKeyMethod = - getImportSshPublicKeyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportSshPublicKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new OsLoginServiceMethodDescriptorSupplier("ImportSshPublicKey")) - .build(); - } - } - } - return getImportSshPublicKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - getUpdateSshPublicKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSshPublicKey", - requestType = com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.class, - responseType = com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - getUpdateSshPublicKeyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - getUpdateSshPublicKeyMethod; - if ((getUpdateSshPublicKeyMethod = OsLoginServiceGrpc.getUpdateSshPublicKeyMethod) == null) { - synchronized (OsLoginServiceGrpc.class) { - if ((getUpdateSshPublicKeyMethod = OsLoginServiceGrpc.getUpdateSshPublicKeyMethod) - == null) { - OsLoginServiceGrpc.getUpdateSshPublicKeyMethod = - getUpdateSshPublicKeyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSshPublicKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey - .getDefaultInstance())) - .setSchemaDescriptor( - new OsLoginServiceMethodDescriptorSupplier("UpdateSshPublicKey")) - .build(); - } - } - } - return getUpdateSshPublicKeyMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static OsLoginServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public OsLoginServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new OsLoginServiceStub(channel, callOptions); - } - }; - return OsLoginServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static OsLoginServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public OsLoginServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new OsLoginServiceBlockingStub(channel, callOptions); - } - }; - return OsLoginServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static OsLoginServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public OsLoginServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new OsLoginServiceFutureStub(channel, callOptions); - } - }; - return OsLoginServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Cloud OS Login API
-   * The Cloud OS Login API allows you to manage users and their associated SSH
-   * public keys for logging into virtual machines on Google Cloud Platform.
-   * 
- */ - public abstract static class OsLoginServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Deletes a POSIX account.
-     * 
- */ - public void deletePosixAccount( - com.google.cloud.oslogin.v1.DeletePosixAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePosixAccountMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an SSH public key.
-     * 
- */ - public void deleteSshPublicKey( - com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSshPublicKeyMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the profile information used for logging in to a virtual machine
-     * on Google Compute Engine.
-     * 
- */ - public void getLoginProfile( - com.google.cloud.oslogin.v1.GetLoginProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetLoginProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves an SSH public key.
-     * 
- */ - public void getSshPublicKey( - com.google.cloud.oslogin.v1.GetSshPublicKeyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSshPublicKeyMethod(), responseObserver); - } - - /** - * - * - *
-     * Adds an SSH public key and returns the profile information. Default POSIX
-     * account information is set when no username and UID exist as part of the
-     * login profile.
-     * 
- */ - public void importSshPublicKey( - com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getImportSshPublicKeyMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an SSH public key and returns the profile information. This method
-     * supports patch semantics.
-     * 
- */ - public void updateSshPublicKey( - com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSshPublicKeyMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getDeletePosixAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.oslogin.v1.DeletePosixAccountRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_POSIX_ACCOUNT))) - .addMethod( - getDeleteSshPublicKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_SSH_PUBLIC_KEY))) - .addMethod( - getGetLoginProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.oslogin.v1.GetLoginProfileRequest, - com.google.cloud.oslogin.v1.LoginProfile>(this, METHODID_GET_LOGIN_PROFILE))) - .addMethod( - getGetSshPublicKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.oslogin.v1.GetSshPublicKeyRequest, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey>( - this, METHODID_GET_SSH_PUBLIC_KEY))) - .addMethod( - getImportSshPublicKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest, - com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse>( - this, METHODID_IMPORT_SSH_PUBLIC_KEY))) - .addMethod( - getUpdateSshPublicKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey>( - this, METHODID_UPDATE_SSH_PUBLIC_KEY))) - .build(); - } - } - - /** - * - * - *
-   * Cloud OS Login API
-   * The Cloud OS Login API allows you to manage users and their associated SSH
-   * public keys for logging into virtual machines on Google Cloud Platform.
-   * 
- */ - public static final class OsLoginServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private OsLoginServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected OsLoginServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new OsLoginServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Deletes a POSIX account.
-     * 
- */ - public void deletePosixAccount( - com.google.cloud.oslogin.v1.DeletePosixAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePosixAccountMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an SSH public key.
-     * 
- */ - public void deleteSshPublicKey( - com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSshPublicKeyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the profile information used for logging in to a virtual machine
-     * on Google Compute Engine.
-     * 
- */ - public void getLoginProfile( - com.google.cloud.oslogin.v1.GetLoginProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLoginProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves an SSH public key.
-     * 
- */ - public void getSshPublicKey( - com.google.cloud.oslogin.v1.GetSshPublicKeyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSshPublicKeyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Adds an SSH public key and returns the profile information. Default POSIX
-     * account information is set when no username and UID exist as part of the
-     * login profile.
-     * 
- */ - public void importSshPublicKey( - com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportSshPublicKeyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an SSH public key and returns the profile information. This method
-     * supports patch semantics.
-     * 
- */ - public void updateSshPublicKey( - com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSshPublicKeyMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Cloud OS Login API
-   * The Cloud OS Login API allows you to manage users and their associated SSH
-   * public keys for logging into virtual machines on Google Cloud Platform.
-   * 
- */ - public static final class OsLoginServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private OsLoginServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected OsLoginServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new OsLoginServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Deletes a POSIX account.
-     * 
- */ - public com.google.protobuf.Empty deletePosixAccount( - com.google.cloud.oslogin.v1.DeletePosixAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePosixAccountMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an SSH public key.
-     * 
- */ - public com.google.protobuf.Empty deleteSshPublicKey( - com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSshPublicKeyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the profile information used for logging in to a virtual machine
-     * on Google Compute Engine.
-     * 
- */ - public com.google.cloud.oslogin.v1.LoginProfile getLoginProfile( - com.google.cloud.oslogin.v1.GetLoginProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetLoginProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves an SSH public key.
-     * 
- */ - public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKey( - com.google.cloud.oslogin.v1.GetSshPublicKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSshPublicKeyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Adds an SSH public key and returns the profile information. Default POSIX
-     * account information is set when no username and UID exist as part of the
-     * login profile.
-     * 
- */ - public com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse importSshPublicKey( - com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getImportSshPublicKeyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an SSH public key and returns the profile information. This method
-     * supports patch semantics.
-     * 
- */ - public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey updateSshPublicKey( - com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSshPublicKeyMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Cloud OS Login API
-   * The Cloud OS Login API allows you to manage users and their associated SSH
-   * public keys for logging into virtual machines on Google Cloud Platform.
-   * 
- */ - public static final class OsLoginServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private OsLoginServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected OsLoginServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new OsLoginServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Deletes a POSIX account.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deletePosixAccount(com.google.cloud.oslogin.v1.DeletePosixAccountRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePosixAccountMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an SSH public key.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSshPublicKey(com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSshPublicKeyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the profile information used for logging in to a virtual machine
-     * on Google Compute Engine.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oslogin.v1.LoginProfile> - getLoginProfile(com.google.cloud.oslogin.v1.GetLoginProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetLoginProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves an SSH public key.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - getSshPublicKey(com.google.cloud.oslogin.v1.GetSshPublicKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSshPublicKeyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Adds an SSH public key and returns the profile information. Default POSIX
-     * account information is set when no username and UID exist as part of the
-     * login profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse> - importSshPublicKey(com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getImportSshPublicKeyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an SSH public key and returns the profile information. This method
-     * supports patch semantics.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - updateSshPublicKey(com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSshPublicKeyMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_DELETE_POSIX_ACCOUNT = 0; - private static final int METHODID_DELETE_SSH_PUBLIC_KEY = 1; - private static final int METHODID_GET_LOGIN_PROFILE = 2; - private static final int METHODID_GET_SSH_PUBLIC_KEY = 3; - private static final int METHODID_IMPORT_SSH_PUBLIC_KEY = 4; - private static final int METHODID_UPDATE_SSH_PUBLIC_KEY = 5; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final OsLoginServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(OsLoginServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_DELETE_POSIX_ACCOUNT: - serviceImpl.deletePosixAccount( - (com.google.cloud.oslogin.v1.DeletePosixAccountRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SSH_PUBLIC_KEY: - serviceImpl.deleteSshPublicKey( - (com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_LOGIN_PROFILE: - serviceImpl.getLoginProfile( - (com.google.cloud.oslogin.v1.GetLoginProfileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_SSH_PUBLIC_KEY: - serviceImpl.getSshPublicKey( - (com.google.cloud.oslogin.v1.GetSshPublicKeyRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey>) - responseObserver); - break; - case METHODID_IMPORT_SSH_PUBLIC_KEY: - serviceImpl.importSshPublicKey( - (com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_SSH_PUBLIC_KEY: - serviceImpl.updateSshPublicKey( - (com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class OsLoginServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - OsLoginServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.oslogin.v1.OsLoginProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("OsLoginService"); - } - } - - private static final class OsLoginServiceFileDescriptorSupplier - extends OsLoginServiceBaseDescriptorSupplier { - OsLoginServiceFileDescriptorSupplier() {} - } - - private static final class OsLoginServiceMethodDescriptorSupplier - extends OsLoginServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - OsLoginServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (OsLoginServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new OsLoginServiceFileDescriptorSupplier()) - .addMethod(getDeletePosixAccountMethod()) - .addMethod(getDeleteSshPublicKeyMethod()) - .addMethod(getGetLoginProfileMethod()) - .addMethod(getGetSshPublicKeyMethod()) - .addMethod(getImportSshPublicKeyMethod()) - .addMethod(getUpdateSshPublicKeyMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeletePosixAccountRequestOrBuilder.java b/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeletePosixAccountRequestOrBuilder.java deleted file mode 100644 index ce7709d79ec1..000000000000 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeletePosixAccountRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/oslogin/v1/oslogin.proto - -package com.google.cloud.oslogin.v1; - -public interface DeletePosixAccountRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.oslogin.v1.DeletePosixAccountRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A reference to the POSIX account to update. POSIX accounts are identified
-   * by the project ID they are associated with. A reference to the POSIX
-   * account is in format `users/{user}/projects/{project}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A reference to the POSIX account to update. POSIX accounts are identified
-   * by the project ID they are associated with. A reference to the POSIX
-   * account is in format `users/{user}/projects/{project}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeleteSshPublicKeyRequestOrBuilder.java b/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeleteSshPublicKeyRequestOrBuilder.java deleted file mode 100644 index 68d1a740d015..000000000000 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeleteSshPublicKeyRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/oslogin/v1/oslogin.proto - -package com.google.cloud.oslogin.v1; - -public interface DeleteSshPublicKeyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The fingerprint of the public key to update. Public keys are identified by
-   * their SHA-256 fingerprint. The fingerprint of the public key is in format
-   * `users/{user}/sshPublicKeys/{fingerprint}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The fingerprint of the public key to update. Public keys are identified by
-   * their SHA-256 fingerprint. The fingerprint of the public key is in format
-   * `users/{user}/sshPublicKeys/{fingerprint}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetSshPublicKeyRequestOrBuilder.java b/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetSshPublicKeyRequestOrBuilder.java deleted file mode 100644 index 62383b71aa0e..000000000000 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetSshPublicKeyRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/oslogin/v1/oslogin.proto - -package com.google.cloud.oslogin.v1; - -public interface GetSshPublicKeyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.oslogin.v1.GetSshPublicKeyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The fingerprint of the public key to retrieve. Public keys are identified
-   * by their SHA-256 fingerprint. The fingerprint of the public key is in
-   * format `users/{user}/sshPublicKeys/{fingerprint}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The fingerprint of the public key to retrieve. Public keys are identified
-   * by their SHA-256 fingerprint. The fingerprint of the public key is in
-   * format `users/{user}/sshPublicKeys/{fingerprint}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginProto.java b/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginProto.java deleted file mode 100644 index d12ed9396f3a..000000000000 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginProto.java +++ /dev/null @@ -1,252 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/oslogin/v1/oslogin.proto - -package com.google.cloud.oslogin.v1; - -public final class OsLoginProto { - private OsLoginProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_oslogin_v1_LoginProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_oslogin_v1_LoginProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_oslogin_v1_LoginProfile_SshPublicKeysEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_oslogin_v1_LoginProfile_SshPublicKeysEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n%google/cloud/oslogin/v1/oslogin.proto\022" - + "\027google.cloud.oslogin.v1\032\034google/api/ann" - + "otations.proto\032\027google/api/client.proto\032" - + "\037google/api/field_behavior.proto\032\031google" - + "/api/resource.proto\032(google/cloud/oslogi" - + "n/common/common.proto\032\033google/protobuf/e" - + "mpty.proto\032 google/protobuf/field_mask.p" - + "roto\"\230\002\n\014LoginProfile\022\021\n\004name\030\001 \001(\tB\003\340A\002" - + "\022A\n\016posix_accounts\030\002 \003(\0132).google.cloud." - + "oslogin.common.PosixAccount\022Q\n\017ssh_publi" - + "c_keys\030\003 \003(\01328.google.cloud.oslogin.v1.L" - + "oginProfile.SshPublicKeysEntry\032_\n\022SshPub" - + "licKeysEntry\022\013\n\003key\030\001 \001(\t\0228\n\005value\030\002 \001(\013" - + "2).google.cloud.oslogin.common.SshPublic" - + "Key:\0028\001\"V\n\031DeletePosixAccountRequest\0229\n\004" - + "name\030\001 \001(\tB+\340A\002\372A%\n#oslogin.googleapis.c" - + "om/PosixAccount\"V\n\031DeleteSshPublicKeyReq" - + "uest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#oslogin.goog" - + "leapis.com/SshPublicKey\"z\n\026GetLoginProfi" - + "leRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\022#oslogin" - + ".googleapis.com/PosixAccount\022\022\n\nproject_" - + "id\030\002 \001(\t\022\021\n\tsystem_id\030\003 \001(\t\"S\n\026GetSshPub" - + "licKeyRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#osl" - + "ogin.googleapis.com/SshPublicKey\"\264\001\n\031Imp" - + "ortSshPublicKeyRequest\022;\n\006parent\030\001 \001(\tB+" - + "\340A\002\372A%\022#oslogin.googleapis.com/SshPublic" - + "Key\022F\n\016ssh_public_key\030\002 \001(\0132).google.clo" - + "ud.oslogin.common.SshPublicKeyB\003\340A\001\022\022\n\np" - + "roject_id\030\003 \001(\t\"Z\n\032ImportSshPublicKeyRes" - + "ponse\022<\n\rlogin_profile\030\001 \001(\0132%.google.cl" - + "oud.oslogin.v1.LoginProfile\"\317\001\n\031UpdateSs" - + "hPublicKeyRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n" - + "#oslogin.googleapis.com/SshPublicKey\022F\n\016" - + "ssh_public_key\030\002 \001(\0132).google.cloud.oslo" - + "gin.common.SshPublicKeyB\003\340A\002\022/\n\013update_m" - + "ask\030\003 \001(\0132\032.google.protobuf.FieldMask2\320\t" - + "\n\016OsLoginService\022\216\001\n\022DeletePosixAccount\022" - + "2.google.cloud.oslogin.v1.DeletePosixAcc" - + "ountRequest\032\026.google.protobuf.Empty\",\202\323\344" - + "\223\002\037*\035/v1/{name=users/*/projects/*}\332A\004nam" - + "e\022\223\001\n\022DeleteSshPublicKey\0222.google.cloud." - + "oslogin.v1.DeleteSshPublicKeyRequest\032\026.g" - + "oogle.protobuf.Empty\"1\202\323\344\223\002$*\"/v1/{name=" - + "users/*/sshPublicKeys/*}\332A\004name\022\231\001\n\017GetL" - + "oginProfile\022/.google.cloud.oslogin.v1.Ge" - + "tLoginProfileRequest\032%.google.cloud.oslo" - + "gin.v1.LoginProfile\".\202\323\344\223\002!\022\037/v1/{name=u" - + "sers/*}/loginProfile\332A\004name\022\240\001\n\017GetSshPu" - + "blicKey\022/.google.cloud.oslogin.v1.GetSsh" - + "PublicKeyRequest\032).google.cloud.oslogin." - + "common.SshPublicKey\"1\202\323\344\223\002$\022\"/v1/{name=u" - + "sers/*/sshPublicKeys/*}\332A\004name\022\371\001\n\022Impor" - + "tSshPublicKey\0222.google.cloud.oslogin.v1." - + "ImportSshPublicKeyRequest\0323.google.cloud" - + ".oslogin.v1.ImportSshPublicKeyResponse\"z" - + "\202\323\344\223\0029\"\'/v1/{parent=users/*}:importSshPu" - + "blicKey:\016ssh_public_key\332A\025parent,ssh_pub" - + "lic_key\332A parent,ssh_public_key,project_" - + "id\022\347\001\n\022UpdateSshPublicKey\0222.google.cloud" - + ".oslogin.v1.UpdateSshPublicKeyRequest\032)." - + "google.cloud.oslogin.common.SshPublicKey" - + "\"r\202\323\344\223\00242\"/v1/{name=users/*/sshPublicKey" - + "s/*}:\016ssh_public_key\332A\023name,ssh_public_k" - + "ey\332A\037name,ssh_public_key,update_mask\032r\312A" - + "\026oslogin.googleapis.com\322AVhttps://www.go" - + "ogleapis.com/auth/cloud-platform,https:/" - + "/www.googleapis.com/auth/computeB\276\001\n\033com" - + ".google.cloud.oslogin.v1B\014OsLoginProtoP\001" - + "Z>google.golang.org/genproto/googleapis/" - + "cloud/oslogin/v1;oslogin\252\002\027Google.Cloud." - + "OsLogin.V1\312\002\027Google\\Cloud\\OsLogin\\V1\352\002\032G" - + "oogle::Cloud::OsLogin::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.oslogin.common.OsLoginProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_oslogin_v1_LoginProfile_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_oslogin_v1_LoginProfile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_oslogin_v1_LoginProfile_descriptor, - new java.lang.String[] { - "Name", "PosixAccounts", "SshPublicKeys", - }); - internal_static_google_cloud_oslogin_v1_LoginProfile_SshPublicKeysEntry_descriptor = - internal_static_google_cloud_oslogin_v1_LoginProfile_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_oslogin_v1_LoginProfile_SshPublicKeysEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_oslogin_v1_LoginProfile_SshPublicKeysEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_descriptor, - new java.lang.String[] { - "Name", "ProjectId", "SystemId", - }); - internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_descriptor, - new java.lang.String[] { - "Parent", "SshPublicKey", "ProjectId", - }); - internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_descriptor, - new java.lang.String[] { - "LoginProfile", - }); - internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_descriptor, - new java.lang.String[] { - "Name", "SshPublicKey", "UpdateMask", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.oslogin.common.OsLoginProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UserName.java b/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UserName.java deleted file mode 100644 index 6241ca090cae..000000000000 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UserName.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.oslogin.v1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class UserName implements ResourceName { - private static final PathTemplate USER = PathTemplate.createWithoutUrlEncoding("users/{user}"); - private volatile Map fieldValuesMap; - private final String user; - - @Deprecated - protected UserName() { - user = null; - } - - private UserName(Builder builder) { - user = Preconditions.checkNotNull(builder.getUser()); - } - - public String getUser() { - return user; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static UserName of(String user) { - return newBuilder().setUser(user).build(); - } - - public static String format(String user) { - return newBuilder().setUser(user).build().toString(); - } - - public static UserName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - USER.validatedMatch(formattedString, "UserName.parse: formattedString not in valid format"); - return of(matchMap.get("user")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (UserName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return USER.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (user != null) { - fieldMapBuilder.put("user", user); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return USER.instantiate("user", user); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - UserName that = ((UserName) o); - return Objects.equals(this.user, that.user); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(user); - return h; - } - - /** Builder for users/{user}. */ - public static class Builder { - private String user; - - protected Builder() {} - - public String getUser() { - return user; - } - - public Builder setUser(String user) { - this.user = user; - return this; - } - - private Builder(UserName userName) { - this.user = userName.user; - } - - public UserName build() { - return new UserName(this); - } - } -} diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceClient.java b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceClient.java similarity index 85% rename from java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceClient.java rename to owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceClient.java index 6cbe69e9b81c..dc7fd5577ba0 100644 --- a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceClient.java +++ b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceClient.java @@ -19,6 +19,9 @@ import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.oslogin.common.OsLoginProto; +import com.google.cloud.oslogin.common.PosixAccountName; +import com.google.cloud.oslogin.common.SshPublicKeyName; +import com.google.cloud.oslogin.common.UserName; import com.google.cloud.oslogin.v1.stub.OsLoginServiceStub; import com.google.cloud.oslogin.v1.stub.OsLoginServiceStubSettings; import com.google.protobuf.Empty; @@ -44,8 +47,10 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { - * ProjectName name = ProjectName.of("[USER]", "[PROJECT]"); - * osLoginServiceClient.deletePosixAccount(name); + * UserName parent = UserName.of("[USER]"); + * OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build(); + * OsLoginProto.SshPublicKey response = + * osLoginServiceClient.createSshPublicKey(parent, sshPublicKey); * } * } * @@ -169,6 +174,133 @@ public OsLoginServiceStub getStub() { return stub; } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create an SSH public key + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
+   *   UserName parent = UserName.of("[USER]");
+   *   OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
+   *   OsLoginProto.SshPublicKey response =
+   *       osLoginServiceClient.createSshPublicKey(parent, sshPublicKey);
+   * }
+   * }
+ * + * @param parent Required. The unique ID for the user in format `users/{user}`. + * @param sshPublicKey Required. The SSH public key and expiration time. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OsLoginProto.SshPublicKey createSshPublicKey( + UserName parent, OsLoginProto.SshPublicKey sshPublicKey) { + CreateSshPublicKeyRequest request = + CreateSshPublicKeyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSshPublicKey(sshPublicKey) + .build(); + return createSshPublicKey(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create an SSH public key + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
+   *   String parent = UserName.of("[USER]").toString();
+   *   OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
+   *   OsLoginProto.SshPublicKey response =
+   *       osLoginServiceClient.createSshPublicKey(parent, sshPublicKey);
+   * }
+   * }
+ * + * @param parent Required. The unique ID for the user in format `users/{user}`. + * @param sshPublicKey Required. The SSH public key and expiration time. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OsLoginProto.SshPublicKey createSshPublicKey( + String parent, OsLoginProto.SshPublicKey sshPublicKey) { + CreateSshPublicKeyRequest request = + CreateSshPublicKeyRequest.newBuilder() + .setParent(parent) + .setSshPublicKey(sshPublicKey) + .build(); + return createSshPublicKey(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create an SSH public key + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
+   *   CreateSshPublicKeyRequest request =
+   *       CreateSshPublicKeyRequest.newBuilder()
+   *           .setParent(UserName.of("[USER]").toString())
+   *           .setSshPublicKey(OsLoginProto.SshPublicKey.newBuilder().build())
+   *           .build();
+   *   OsLoginProto.SshPublicKey response = osLoginServiceClient.createSshPublicKey(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OsLoginProto.SshPublicKey createSshPublicKey(CreateSshPublicKeyRequest request) { + return createSshPublicKeyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create an SSH public key + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
+   *   CreateSshPublicKeyRequest request =
+   *       CreateSshPublicKeyRequest.newBuilder()
+   *           .setParent(UserName.of("[USER]").toString())
+   *           .setSshPublicKey(OsLoginProto.SshPublicKey.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       osLoginServiceClient.createSshPublicKeyCallable().futureCall(request);
+   *   // Do something.
+   *   OsLoginProto.SshPublicKey response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createSshPublicKeyCallable() { + return stub.createSshPublicKeyCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a POSIX account. @@ -182,7 +314,7 @@ public OsLoginServiceStub getStub() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { - * ProjectName name = ProjectName.of("[USER]", "[PROJECT]"); + * PosixAccountName name = PosixAccountName.of("[USER]", "[PROJECT]"); * osLoginServiceClient.deletePosixAccount(name); * } * } @@ -192,7 +324,7 @@ public OsLoginServiceStub getStub() { * `users/{user}/projects/{project}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deletePosixAccount(ProjectName name) { + public final void deletePosixAccount(PosixAccountName name) { DeletePosixAccountRequest request = DeletePosixAccountRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -213,7 +345,7 @@ public final void deletePosixAccount(ProjectName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { - * String name = ProjectName.of("[USER]", "[PROJECT]").toString(); + * String name = PosixAccountName.of("[USER]", "[PROJECT]").toString(); * osLoginServiceClient.deletePosixAccount(name); * } * } @@ -244,7 +376,7 @@ public final void deletePosixAccount(String name) { * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { * DeletePosixAccountRequest request = * DeletePosixAccountRequest.newBuilder() - * .setName(ProjectName.of("[USER]", "[PROJECT]").toString()) + * .setName(PosixAccountName.of("[USER]", "[PROJECT]").toString()) * .build(); * osLoginServiceClient.deletePosixAccount(request); * } @@ -272,7 +404,7 @@ public final void deletePosixAccount(DeletePosixAccountRequest request) { * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { * DeletePosixAccountRequest request = * DeletePosixAccountRequest.newBuilder() - * .setName(ProjectName.of("[USER]", "[PROJECT]").toString()) + * .setName(PosixAccountName.of("[USER]", "[PROJECT]").toString()) * .build(); * ApiFuture future = * osLoginServiceClient.deletePosixAccountCallable().futureCall(request); @@ -298,7 +430,7 @@ public final UnaryCallable deletePosixAccountC * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { - * FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]"); + * SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]"); * osLoginServiceClient.deleteSshPublicKey(name); * } * } @@ -308,7 +440,7 @@ public final UnaryCallable deletePosixAccountC * `users/{user}/sshPublicKeys/{fingerprint}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSshPublicKey(FingerprintName name) { + public final void deleteSshPublicKey(SshPublicKeyName name) { DeleteSshPublicKeyRequest request = DeleteSshPublicKeyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -329,7 +461,7 @@ public final void deleteSshPublicKey(FingerprintName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { - * String name = FingerprintName.of("[USER]", "[FINGERPRINT]").toString(); + * String name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString(); * osLoginServiceClient.deleteSshPublicKey(name); * } * } @@ -360,7 +492,7 @@ public final void deleteSshPublicKey(String name) { * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { * DeleteSshPublicKeyRequest request = * DeleteSshPublicKeyRequest.newBuilder() - * .setName(FingerprintName.of("[USER]", "[FINGERPRINT]").toString()) + * .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString()) * .build(); * osLoginServiceClient.deleteSshPublicKey(request); * } @@ -388,7 +520,7 @@ public final void deleteSshPublicKey(DeleteSshPublicKeyRequest request) { * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { * DeleteSshPublicKeyRequest request = * DeleteSshPublicKeyRequest.newBuilder() - * .setName(FingerprintName.of("[USER]", "[FINGERPRINT]").toString()) + * .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString()) * .build(); * ApiFuture future = * osLoginServiceClient.deleteSshPublicKeyCallable().futureCall(request); @@ -531,7 +663,7 @@ public final UnaryCallable getLoginProfile * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { - * FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]"); + * SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]"); * OsLoginProto.SshPublicKey response = osLoginServiceClient.getSshPublicKey(name); * } * } @@ -541,7 +673,7 @@ public final UnaryCallable getLoginProfile * `users/{user}/sshPublicKeys/{fingerprint}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OsLoginProto.SshPublicKey getSshPublicKey(FingerprintName name) { + public final OsLoginProto.SshPublicKey getSshPublicKey(SshPublicKeyName name) { GetSshPublicKeyRequest request = GetSshPublicKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSshPublicKey(request); @@ -560,7 +692,7 @@ public final OsLoginProto.SshPublicKey getSshPublicKey(FingerprintName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { - * String name = FingerprintName.of("[USER]", "[FINGERPRINT]").toString(); + * String name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString(); * OsLoginProto.SshPublicKey response = osLoginServiceClient.getSshPublicKey(name); * } * } @@ -590,7 +722,7 @@ public final OsLoginProto.SshPublicKey getSshPublicKey(String name) { * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { * GetSshPublicKeyRequest request = * GetSshPublicKeyRequest.newBuilder() - * .setName(FingerprintName.of("[USER]", "[FINGERPRINT]").toString()) + * .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString()) * .build(); * OsLoginProto.SshPublicKey response = osLoginServiceClient.getSshPublicKey(request); * } @@ -618,7 +750,7 @@ public final OsLoginProto.SshPublicKey getSshPublicKey(GetSshPublicKeyRequest re * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { * GetSshPublicKeyRequest request = * GetSshPublicKeyRequest.newBuilder() - * .setName(FingerprintName.of("[USER]", "[FINGERPRINT]").toString()) + * .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString()) * .build(); * ApiFuture future = * osLoginServiceClient.getSshPublicKeyCallable().futureCall(request); @@ -855,7 +987,7 @@ public final ImportSshPublicKeyResponse importSshPublicKey(ImportSshPublicKeyReq * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { - * FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]"); + * SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]"); * OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build(); * OsLoginProto.SshPublicKey response = * osLoginServiceClient.updateSshPublicKey(name, sshPublicKey); @@ -869,7 +1001,7 @@ public final ImportSshPublicKeyResponse importSshPublicKey(ImportSshPublicKeyReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OsLoginProto.SshPublicKey updateSshPublicKey( - FingerprintName name, OsLoginProto.SshPublicKey sshPublicKey) { + SshPublicKeyName name, OsLoginProto.SshPublicKey sshPublicKey) { UpdateSshPublicKeyRequest request = UpdateSshPublicKeyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -892,7 +1024,7 @@ public final OsLoginProto.SshPublicKey updateSshPublicKey( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { - * String name = FingerprintName.of("[USER]", "[FINGERPRINT]").toString(); + * String name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString(); * OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build(); * OsLoginProto.SshPublicKey response = * osLoginServiceClient.updateSshPublicKey(name, sshPublicKey); @@ -926,7 +1058,7 @@ public final OsLoginProto.SshPublicKey updateSshPublicKey( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { - * FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]"); + * SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]"); * OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); * OsLoginProto.SshPublicKey response = @@ -942,7 +1074,7 @@ public final OsLoginProto.SshPublicKey updateSshPublicKey( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OsLoginProto.SshPublicKey updateSshPublicKey( - FingerprintName name, OsLoginProto.SshPublicKey sshPublicKey, FieldMask updateMask) { + SshPublicKeyName name, OsLoginProto.SshPublicKey sshPublicKey, FieldMask updateMask) { UpdateSshPublicKeyRequest request = UpdateSshPublicKeyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -966,7 +1098,7 @@ public final OsLoginProto.SshPublicKey updateSshPublicKey( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { - * String name = FingerprintName.of("[USER]", "[FINGERPRINT]").toString(); + * String name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString(); * OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); * OsLoginProto.SshPublicKey response = @@ -1008,7 +1140,7 @@ public final OsLoginProto.SshPublicKey updateSshPublicKey( * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { * UpdateSshPublicKeyRequest request = * UpdateSshPublicKeyRequest.newBuilder() - * .setName(FingerprintName.of("[USER]", "[FINGERPRINT]").toString()) + * .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString()) * .setSshPublicKey(OsLoginProto.SshPublicKey.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); @@ -1039,7 +1171,7 @@ public final OsLoginProto.SshPublicKey updateSshPublicKey(UpdateSshPublicKeyRequ * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) { * UpdateSshPublicKeyRequest request = * UpdateSshPublicKeyRequest.newBuilder() - * .setName(FingerprintName.of("[USER]", "[FINGERPRINT]").toString()) + * .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString()) * .setSshPublicKey(OsLoginProto.SshPublicKey.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceSettings.java b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceSettings.java similarity index 93% rename from java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceSettings.java rename to owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceSettings.java index de6a3f523b77..165fe56688f7 100644 --- a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceSettings.java +++ b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceSettings.java @@ -25,6 +25,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.oslogin.common.OsLoginProto; @@ -49,7 +50,7 @@ *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

For example, to set the total timeout of deletePosixAccount to 30 seconds: + *

For example, to set the total timeout of createSshPublicKey to 30 seconds: * *

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -60,10 +61,10 @@
  * OsLoginServiceSettings.Builder osLoginServiceSettingsBuilder =
  *     OsLoginServiceSettings.newBuilder();
  * osLoginServiceSettingsBuilder
- *     .deletePosixAccountSettings()
+ *     .createSshPublicKeySettings()
  *     .setRetrySettings(
  *         osLoginServiceSettingsBuilder
- *             .deletePosixAccountSettings()
+ *             .createSshPublicKeySettings()
  *             .getRetrySettings()
  *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
@@ -74,6 +75,12 @@
 @Generated("by gapic-generator-java")
 public class OsLoginServiceSettings extends ClientSettings {
 
+  /** Returns the object with the settings used for calls to createSshPublicKey. */
+  public UnaryCallSettings
+      createSshPublicKeySettings() {
+    return ((OsLoginServiceStubSettings) getStubSettings()).createSshPublicKeySettings();
+  }
+
   /** Returns the object with the settings used for calls to deletePosixAccount. */
   public UnaryCallSettings deletePosixAccountSettings() {
     return ((OsLoginServiceStubSettings) getStubSettings()).deletePosixAccountSettings();
@@ -222,6 +229,12 @@ public Builder applyToAllUnaryMethods(
       return this;
     }
 
+    /** Returns the builder for the settings used for calls to createSshPublicKey. */
+    public UnaryCallSettings.Builder
+        createSshPublicKeySettings() {
+      return getStubSettingsBuilder().createSshPublicKeySettings();
+    }
+
     /** Returns the builder for the settings used for calls to deletePosixAccount. */
     public UnaryCallSettings.Builder
         deletePosixAccountSettings() {
diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/gapic_metadata.json b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/gapic_metadata.json
similarity index 89%
rename from java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/gapic_metadata.json
rename to owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/gapic_metadata.json
index e26d9749e145..48a08d23b11a 100644
--- a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/gapic_metadata.json
+++ b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/gapic_metadata.json
@@ -10,6 +10,9 @@
         "grpc": {
           "libraryClient": "OsLoginServiceClient",
           "rpcs": {
+            "CreateSshPublicKey": {
+              "methods": ["createSshPublicKey", "createSshPublicKey", "createSshPublicKey", "createSshPublicKeyCallable"]
+            },
             "DeletePosixAccount": {
               "methods": ["deletePosixAccount", "deletePosixAccount", "deletePosixAccount", "deletePosixAccountCallable"]
             },
diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/package-info.java b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/package-info.java
similarity index 86%
rename from java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/package-info.java
rename to owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/package-info.java
index 14bcc2d400e7..56f0cc127145 100644
--- a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/package-info.java
+++ b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/package-info.java
@@ -33,8 +33,10 @@
  * // - It may require specifying regional endpoints when creating the service client as shown in
  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
- *   PosixAccountName name = PosixAccountName.of("[USER]", "[PROJECT]");
- *   osLoginServiceClient.deletePosixAccount(name);
+ *   UserName parent = UserName.of("[USER]");
+ *   OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
+ *   OsLoginProto.SshPublicKey response =
+ *       osLoginServiceClient.createSshPublicKey(parent, sshPublicKey);
  * }
  * }
*/ diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/GrpcOsLoginServiceCallableFactory.java b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/GrpcOsLoginServiceCallableFactory.java similarity index 100% rename from java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/GrpcOsLoginServiceCallableFactory.java rename to owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/GrpcOsLoginServiceCallableFactory.java diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/GrpcOsLoginServiceStub.java b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/GrpcOsLoginServiceStub.java similarity index 88% rename from java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/GrpcOsLoginServiceStub.java rename to owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/GrpcOsLoginServiceStub.java index f6afc623a404..7fee9d0d6084 100644 --- a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/GrpcOsLoginServiceStub.java +++ b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/GrpcOsLoginServiceStub.java @@ -23,6 +23,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.oslogin.common.OsLoginProto; +import com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest; import com.google.cloud.oslogin.v1.DeletePosixAccountRequest; import com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest; import com.google.cloud.oslogin.v1.GetLoginProfileRequest; @@ -37,6 +38,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -48,6 +50,17 @@ */ @Generated("by gapic-generator-java") public class GrpcOsLoginServiceStub extends OsLoginServiceStub { + private static final MethodDescriptor + createSshPublicKeyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oslogin.v1.OsLoginService/CreateSshPublicKey") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateSshPublicKeyRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(OsLoginProto.SshPublicKey.getDefaultInstance())) + .build(); + private static final MethodDescriptor deletePosixAccountMethodDescriptor = MethodDescriptor.newBuilder() @@ -111,6 +124,8 @@ public class GrpcOsLoginServiceStub extends OsLoginServiceStub { ProtoUtils.marshaller(OsLoginProto.SshPublicKey.getDefaultInstance())) .build(); + private final UnaryCallable + createSshPublicKeyCallable; private final UnaryCallable deletePosixAccountCallable; private final UnaryCallable deleteSshPublicKeyCallable; private final UnaryCallable getLoginProfileCallable; @@ -165,6 +180,17 @@ protected GrpcOsLoginServiceStub( this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + GrpcCallSettings + createSshPublicKeyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSshPublicKeyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); GrpcCallSettings deletePosixAccountTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deletePosixAccountMethodDescriptor) @@ -229,6 +255,11 @@ protected GrpcOsLoginServiceStub( }) .build(); + this.createSshPublicKeyCallable = + callableFactory.createUnaryCallable( + createSshPublicKeyTransportSettings, + settings.createSshPublicKeySettings(), + clientContext); this.deletePosixAccountCallable = callableFactory.createUnaryCallable( deletePosixAccountTransportSettings, @@ -264,6 +295,12 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override + public UnaryCallable + createSshPublicKeyCallable() { + return createSshPublicKeyCallable; + } + @Override public UnaryCallable deletePosixAccountCallable() { return deletePosixAccountCallable; diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/HttpJsonOsLoginServiceCallableFactory.java b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/HttpJsonOsLoginServiceCallableFactory.java similarity index 100% rename from java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/HttpJsonOsLoginServiceCallableFactory.java rename to owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/HttpJsonOsLoginServiceCallableFactory.java diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/HttpJsonOsLoginServiceStub.java b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/HttpJsonOsLoginServiceStub.java similarity index 87% rename from java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/HttpJsonOsLoginServiceStub.java rename to owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/HttpJsonOsLoginServiceStub.java index bd19e2a97574..21f3ec2d5c50 100644 --- a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/HttpJsonOsLoginServiceStub.java +++ b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/HttpJsonOsLoginServiceStub.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.oslogin.common.OsLoginProto; +import com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest; import com.google.cloud.oslogin.v1.DeletePosixAccountRequest; import com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest; import com.google.cloud.oslogin.v1.GetLoginProfileRequest; @@ -58,6 +59,42 @@ public class HttpJsonOsLoginServiceStub extends OsLoginServiceStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + private static final ApiMethodDescriptor + createSshPublicKeyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oslogin.v1.OsLoginService/CreateSshPublicKey") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=users/*}/sshPublicKeys", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("sshPublicKey", request.getSshPublicKey(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(OsLoginProto.SshPublicKey.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor deletePosixAccountMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -266,6 +303,8 @@ public class HttpJsonOsLoginServiceStub extends OsLoginServiceStub { .build()) .build(); + private final UnaryCallable + createSshPublicKeyCallable; private final UnaryCallable deletePosixAccountCallable; private final UnaryCallable deleteSshPublicKeyCallable; private final UnaryCallable getLoginProfileCallable; @@ -318,6 +357,12 @@ protected HttpJsonOsLoginServiceStub( throws IOException { this.callableFactory = callableFactory; + HttpJsonCallSettings + createSshPublicKeyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSshPublicKeyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings deletePosixAccountTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deletePosixAccountMethodDescriptor) @@ -352,6 +397,11 @@ protected HttpJsonOsLoginServiceStub( .setTypeRegistry(typeRegistry) .build(); + this.createSshPublicKeyCallable = + callableFactory.createUnaryCallable( + createSshPublicKeyTransportSettings, + settings.createSshPublicKeySettings(), + clientContext); this.deletePosixAccountCallable = callableFactory.createUnaryCallable( deletePosixAccountTransportSettings, @@ -386,6 +436,7 @@ protected HttpJsonOsLoginServiceStub( @InternalApi public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createSshPublicKeyMethodDescriptor); methodDescriptors.add(deletePosixAccountMethodDescriptor); methodDescriptors.add(deleteSshPublicKeyMethodDescriptor); methodDescriptors.add(getLoginProfileMethodDescriptor); @@ -395,6 +446,12 @@ public static List getMethodDescriptors() { return methodDescriptors; } + @Override + public UnaryCallable + createSshPublicKeyCallable() { + return createSshPublicKeyCallable; + } + @Override public UnaryCallable deletePosixAccountCallable() { return deletePosixAccountCallable; diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStub.java b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStub.java similarity index 91% rename from java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStub.java rename to owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStub.java index eab4b9a889d5..552b7f8584da 100644 --- a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStub.java +++ b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStub.java @@ -19,6 +19,7 @@ import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.oslogin.common.OsLoginProto; +import com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest; import com.google.cloud.oslogin.v1.DeletePosixAccountRequest; import com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest; import com.google.cloud.oslogin.v1.GetLoginProfileRequest; @@ -39,6 +40,11 @@ @Generated("by gapic-generator-java") public abstract class OsLoginServiceStub implements BackgroundResource { + public UnaryCallable + createSshPublicKeyCallable() { + throw new UnsupportedOperationException("Not implemented: createSshPublicKeyCallable()"); + } + public UnaryCallable deletePosixAccountCallable() { throw new UnsupportedOperationException("Not implemented: deletePosixAccountCallable()"); } diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java similarity index 91% rename from java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java rename to owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java index a04923759b3e..0170ef0bd254 100644 --- a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java +++ b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java @@ -35,6 +35,7 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.oslogin.common.OsLoginProto; +import com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest; import com.google.cloud.oslogin.v1.DeletePosixAccountRequest; import com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest; import com.google.cloud.oslogin.v1.GetLoginProfileRequest; @@ -68,7 +69,7 @@ *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

For example, to set the total timeout of deletePosixAccount to 30 seconds: + *

For example, to set the total timeout of createSshPublicKey to 30 seconds: * *

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -79,10 +80,10 @@
  * OsLoginServiceStubSettings.Builder osLoginServiceSettingsBuilder =
  *     OsLoginServiceStubSettings.newBuilder();
  * osLoginServiceSettingsBuilder
- *     .deletePosixAccountSettings()
+ *     .createSshPublicKeySettings()
  *     .setRetrySettings(
  *         osLoginServiceSettingsBuilder
- *             .deletePosixAccountSettings()
+ *             .createSshPublicKeySettings()
  *             .getRetrySettings()
  *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
@@ -96,9 +97,13 @@ public class OsLoginServiceStubSettings extends StubSettings DEFAULT_SERVICE_SCOPES =
       ImmutableList.builder()
           .add("https://www.googleapis.com/auth/cloud-platform")
+          .add("https://www.googleapis.com/auth/cloud-platform.read-only")
           .add("https://www.googleapis.com/auth/compute")
+          .add("https://www.googleapis.com/auth/compute.readonly")
           .build();
 
+  private final UnaryCallSettings
+      createSshPublicKeySettings;
   private final UnaryCallSettings deletePosixAccountSettings;
   private final UnaryCallSettings deleteSshPublicKeySettings;
   private final UnaryCallSettings getLoginProfileSettings;
@@ -109,6 +114,12 @@ public class OsLoginServiceStubSettings extends StubSettings
       updateSshPublicKeySettings;
 
+  /** Returns the object with the settings used for calls to createSshPublicKey. */
+  public UnaryCallSettings
+      createSshPublicKeySettings() {
+    return createSshPublicKeySettings;
+  }
+
   /** Returns the object with the settings used for calls to deletePosixAccount. */
   public UnaryCallSettings deletePosixAccountSettings() {
     return deletePosixAccountSettings;
@@ -248,6 +259,7 @@ public Builder toBuilder() {
   protected OsLoginServiceStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
+    createSshPublicKeySettings = settingsBuilder.createSshPublicKeySettings().build();
     deletePosixAccountSettings = settingsBuilder.deletePosixAccountSettings().build();
     deleteSshPublicKeySettings = settingsBuilder.deleteSshPublicKeySettings().build();
     getLoginProfileSettings = settingsBuilder.getLoginProfileSettings().build();
@@ -259,6 +271,8 @@ protected OsLoginServiceStubSettings(Builder settingsBuilder) throws IOException
   /** Builder for OsLoginServiceStubSettings. */
   public static class Builder extends StubSettings.Builder {
     private final ImmutableList> unaryMethodSettingsBuilders;
+    private final UnaryCallSettings.Builder
+        createSshPublicKeySettings;
     private final UnaryCallSettings.Builder
         deletePosixAccountSettings;
     private final UnaryCallSettings.Builder
@@ -277,6 +291,7 @@ public static class Builder extends StubSettings.Builder> definitions =
           ImmutableMap.builder();
+      definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList()));
       definitions.put(
           "retry_policy_0_codes",
           ImmutableSet.copyOf(
@@ -290,6 +305,8 @@ public static class Builder extends StubSettings.Builder definitions = ImmutableMap.builder();
       RetrySettings settings = null;
+      settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build();
+      definitions.put("no_retry_params", settings);
       settings =
           RetrySettings.newBuilder()
               .setInitialRetryDelay(Duration.ofMillis(100L))
@@ -311,6 +328,7 @@ protected Builder() {
     protected Builder(ClientContext clientContext) {
       super(clientContext);
 
+      createSshPublicKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       deletePosixAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       deleteSshPublicKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       getLoginProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -320,6 +338,7 @@ protected Builder(ClientContext clientContext) {
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
+              createSshPublicKeySettings,
               deletePosixAccountSettings,
               deleteSshPublicKeySettings,
               getLoginProfileSettings,
@@ -332,6 +351,7 @@ protected Builder(ClientContext clientContext) {
     protected Builder(OsLoginServiceStubSettings settings) {
       super(settings);
 
+      createSshPublicKeySettings = settings.createSshPublicKeySettings.toBuilder();
       deletePosixAccountSettings = settings.deletePosixAccountSettings.toBuilder();
       deleteSshPublicKeySettings = settings.deleteSshPublicKeySettings.toBuilder();
       getLoginProfileSettings = settings.getLoginProfileSettings.toBuilder();
@@ -341,6 +361,7 @@ protected Builder(OsLoginServiceStubSettings settings) {
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
+              createSshPublicKeySettings,
               deletePosixAccountSettings,
               deleteSshPublicKeySettings,
               getLoginProfileSettings,
@@ -376,6 +397,11 @@ private static Builder createHttpJsonDefault() {
     }
 
     private static Builder initDefaults(Builder builder) {
+      builder
+          .createSshPublicKeySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .deletePosixAccountSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
@@ -424,6 +450,12 @@ public Builder applyToAllUnaryMethods(
       return unaryMethodSettingsBuilders;
     }
 
+    /** Returns the builder for the settings used for calls to createSshPublicKey. */
+    public UnaryCallSettings.Builder
+        createSshPublicKeySettings() {
+      return createSshPublicKeySettings;
+    }
+
     /** Returns the builder for the settings used for calls to deletePosixAccount. */
     public UnaryCallSettings.Builder
         deletePosixAccountSettings() {
diff --git a/java-os-login/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/MockOsLoginService.java b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/MockOsLoginService.java
similarity index 100%
rename from java-os-login/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/MockOsLoginService.java
rename to owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/MockOsLoginService.java
diff --git a/java-os-login/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/MockOsLoginServiceImpl.java b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/MockOsLoginServiceImpl.java
similarity index 88%
rename from java-os-login/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/MockOsLoginServiceImpl.java
rename to owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/MockOsLoginServiceImpl.java
index 8cafbc124427..6a37b9a53970 100644
--- a/java-os-login/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/MockOsLoginServiceImpl.java
+++ b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/MockOsLoginServiceImpl.java
@@ -60,6 +60,28 @@ public void reset() {
     responses = new LinkedList<>();
   }
 
+  @Override
+  public void createSshPublicKey(
+      CreateSshPublicKeyRequest request,
+      StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof OsLoginProto.SshPublicKey) {
+      requests.add(request);
+      responseObserver.onNext(((OsLoginProto.SshPublicKey) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method CreateSshPublicKey, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  OsLoginProto.SshPublicKey.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
   @Override
   public void deletePosixAccount(
       DeletePosixAccountRequest request, StreamObserver responseObserver) {
diff --git a/java-os-login/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/OsLoginServiceClientHttpJsonTest.java b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/OsLoginServiceClientHttpJsonTest.java
similarity index 84%
rename from java-os-login/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/OsLoginServiceClientHttpJsonTest.java
rename to owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/OsLoginServiceClientHttpJsonTest.java
index b3bf589dba44..910edd7b4db3 100644
--- a/java-os-login/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/OsLoginServiceClientHttpJsonTest.java
+++ b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/OsLoginServiceClientHttpJsonTest.java
@@ -26,6 +26,9 @@
 import com.google.api.gax.rpc.StatusCode;
 import com.google.api.gax.rpc.testing.FakeStatusCode;
 import com.google.cloud.oslogin.common.OsLoginProto;
+import com.google.cloud.oslogin.common.PosixAccountName;
+import com.google.cloud.oslogin.common.SshPublicKeyName;
+import com.google.cloud.oslogin.common.UserName;
 import com.google.cloud.oslogin.v1.stub.HttpJsonOsLoginServiceStub;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
@@ -76,12 +79,110 @@ public void tearDown() throws Exception {
     mockService.reset();
   }
 
+  @Test
+  public void createSshPublicKeyTest() throws Exception {
+    OsLoginProto.SshPublicKey expectedResponse =
+        OsLoginProto.SshPublicKey.newBuilder()
+            .setKey("key106079")
+            .setExpirationTimeUsec(-2058878882)
+            .setFingerprint("fingerprint-1375934236")
+            .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    UserName parent = UserName.of("[USER]");
+    OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
+
+    OsLoginProto.SshPublicKey actualResponse = client.createSshPublicKey(parent, sshPublicKey);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void createSshPublicKeyExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      UserName parent = UserName.of("[USER]");
+      OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
+      client.createSshPublicKey(parent, sshPublicKey);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void createSshPublicKeyTest2() throws Exception {
+    OsLoginProto.SshPublicKey expectedResponse =
+        OsLoginProto.SshPublicKey.newBuilder()
+            .setKey("key106079")
+            .setExpirationTimeUsec(-2058878882)
+            .setFingerprint("fingerprint-1375934236")
+            .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String parent = "users/user-1015";
+    OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
+
+    OsLoginProto.SshPublicKey actualResponse = client.createSshPublicKey(parent, sshPublicKey);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void createSshPublicKeyExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String parent = "users/user-1015";
+      OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
+      client.createSshPublicKey(parent, sshPublicKey);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void deletePosixAccountTest() throws Exception {
     Empty expectedResponse = Empty.newBuilder().build();
     mockService.addResponse(expectedResponse);
 
-    ProjectName name = ProjectName.of("[USER]", "[PROJECT]");
+    PosixAccountName name = PosixAccountName.of("[USER]", "[PROJECT]");
 
     client.deletePosixAccount(name);
 
@@ -108,7 +209,7 @@ public void deletePosixAccountExceptionTest() throws Exception {
     mockService.addException(exception);
 
     try {
-      ProjectName name = ProjectName.of("[USER]", "[PROJECT]");
+      PosixAccountName name = PosixAccountName.of("[USER]", "[PROJECT]");
       client.deletePosixAccount(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
@@ -161,7 +262,7 @@ public void deleteSshPublicKeyTest() throws Exception {
     Empty expectedResponse = Empty.newBuilder().build();
     mockService.addResponse(expectedResponse);
 
-    FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
+    SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]");
 
     client.deleteSshPublicKey(name);
 
@@ -188,7 +289,7 @@ public void deleteSshPublicKeyExceptionTest() throws Exception {
     mockService.addException(exception);
 
     try {
-      FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
+      SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]");
       client.deleteSshPublicKey(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
@@ -335,11 +436,11 @@ public void getSshPublicKeyTest() throws Exception {
             .setKey("key106079")
             .setExpirationTimeUsec(-2058878882)
             .setFingerprint("fingerprint-1375934236")
-            .setName(FingerprintName.of("[USER]", "[FINGERPRINT]").toString())
+            .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString())
             .build();
     mockService.addResponse(expectedResponse);
 
-    FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
+    SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]");
 
     OsLoginProto.SshPublicKey actualResponse = client.getSshPublicKey(name);
     Assert.assertEquals(expectedResponse, actualResponse);
@@ -367,7 +468,7 @@ public void getSshPublicKeyExceptionTest() throws Exception {
     mockService.addException(exception);
 
     try {
-      FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
+      SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]");
       client.getSshPublicKey(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
@@ -382,7 +483,7 @@ public void getSshPublicKeyTest2() throws Exception {
             .setKey("key106079")
             .setExpirationTimeUsec(-2058878882)
             .setFingerprint("fingerprint-1375934236")
-            .setName(FingerprintName.of("[USER]", "[FINGERPRINT]").toString())
+            .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString())
             .build();
     mockService.addResponse(expectedResponse);
 
@@ -427,6 +528,7 @@ public void importSshPublicKeyTest() throws Exception {
     ImportSshPublicKeyResponse expectedResponse =
         ImportSshPublicKeyResponse.newBuilder()
             .setLoginProfile(LoginProfile.newBuilder().build())
+            .setDetails("details1557721666")
             .build();
     mockService.addResponse(expectedResponse);
 
@@ -473,6 +575,7 @@ public void importSshPublicKeyTest2() throws Exception {
     ImportSshPublicKeyResponse expectedResponse =
         ImportSshPublicKeyResponse.newBuilder()
             .setLoginProfile(LoginProfile.newBuilder().build())
+            .setDetails("details1557721666")
             .build();
     mockService.addResponse(expectedResponse);
 
@@ -519,6 +622,7 @@ public void importSshPublicKeyTest3() throws Exception {
     ImportSshPublicKeyResponse expectedResponse =
         ImportSshPublicKeyResponse.newBuilder()
             .setLoginProfile(LoginProfile.newBuilder().build())
+            .setDetails("details1557721666")
             .build();
     mockService.addResponse(expectedResponse);
 
@@ -568,6 +672,7 @@ public void importSshPublicKeyTest4() throws Exception {
     ImportSshPublicKeyResponse expectedResponse =
         ImportSshPublicKeyResponse.newBuilder()
             .setLoginProfile(LoginProfile.newBuilder().build())
+            .setDetails("details1557721666")
             .build();
     mockService.addResponse(expectedResponse);
 
@@ -619,11 +724,11 @@ public void updateSshPublicKeyTest() throws Exception {
             .setKey("key106079")
             .setExpirationTimeUsec(-2058878882)
             .setFingerprint("fingerprint-1375934236")
-            .setName(FingerprintName.of("[USER]", "[FINGERPRINT]").toString())
+            .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString())
             .build();
     mockService.addResponse(expectedResponse);
 
-    FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
+    SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]");
     OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
 
     OsLoginProto.SshPublicKey actualResponse = client.updateSshPublicKey(name, sshPublicKey);
@@ -652,7 +757,7 @@ public void updateSshPublicKeyExceptionTest() throws Exception {
     mockService.addException(exception);
 
     try {
-      FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
+      SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]");
       OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
       client.updateSshPublicKey(name, sshPublicKey);
       Assert.fail("No exception raised");
@@ -668,7 +773,7 @@ public void updateSshPublicKeyTest2() throws Exception {
             .setKey("key106079")
             .setExpirationTimeUsec(-2058878882)
             .setFingerprint("fingerprint-1375934236")
-            .setName(FingerprintName.of("[USER]", "[FINGERPRINT]").toString())
+            .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString())
             .build();
     mockService.addResponse(expectedResponse);
 
@@ -717,11 +822,11 @@ public void updateSshPublicKeyTest3() throws Exception {
             .setKey("key106079")
             .setExpirationTimeUsec(-2058878882)
             .setFingerprint("fingerprint-1375934236")
-            .setName(FingerprintName.of("[USER]", "[FINGERPRINT]").toString())
+            .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString())
             .build();
     mockService.addResponse(expectedResponse);
 
-    FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
+    SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]");
     OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
     FieldMask updateMask = FieldMask.newBuilder().build();
 
@@ -752,7 +857,7 @@ public void updateSshPublicKeyExceptionTest3() throws Exception {
     mockService.addException(exception);
 
     try {
-      FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
+      SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]");
       OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
       client.updateSshPublicKey(name, sshPublicKey, updateMask);
@@ -769,7 +874,7 @@ public void updateSshPublicKeyTest4() throws Exception {
             .setKey("key106079")
             .setExpirationTimeUsec(-2058878882)
             .setFingerprint("fingerprint-1375934236")
-            .setName(FingerprintName.of("[USER]", "[FINGERPRINT]").toString())
+            .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString())
             .build();
     mockService.addResponse(expectedResponse);
 
diff --git a/java-os-login/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/OsLoginServiceClientTest.java b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/OsLoginServiceClientTest.java
similarity index 84%
rename from java-os-login/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/OsLoginServiceClientTest.java
rename to owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/OsLoginServiceClientTest.java
index 92eec17f16a1..12ae5d097098 100644
--- a/java-os-login/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/OsLoginServiceClientTest.java
+++ b/owl-bot-staging/java-os-login/v1/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/OsLoginServiceClientTest.java
@@ -24,6 +24,9 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.cloud.oslogin.common.OsLoginProto;
+import com.google.cloud.oslogin.common.PosixAccountName;
+import com.google.cloud.oslogin.common.SshPublicKeyName;
+import com.google.cloud.oslogin.common.UserName;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
@@ -80,12 +83,100 @@ public void tearDown() throws Exception {
     client.close();
   }
 
+  @Test
+  public void createSshPublicKeyTest() throws Exception {
+    OsLoginProto.SshPublicKey expectedResponse =
+        OsLoginProto.SshPublicKey.newBuilder()
+            .setKey("key106079")
+            .setExpirationTimeUsec(-2058878882)
+            .setFingerprint("fingerprint-1375934236")
+            .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString())
+            .build();
+    mockOsLoginService.addResponse(expectedResponse);
+
+    UserName parent = UserName.of("[USER]");
+    OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
+
+    OsLoginProto.SshPublicKey actualResponse = client.createSshPublicKey(parent, sshPublicKey);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockOsLoginService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    CreateSshPublicKeyRequest actualRequest = ((CreateSshPublicKeyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(parent.toString(), actualRequest.getParent());
+    Assert.assertEquals(sshPublicKey, actualRequest.getSshPublicKey());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void createSshPublicKeyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockOsLoginService.addException(exception);
+
+    try {
+      UserName parent = UserName.of("[USER]");
+      OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
+      client.createSshPublicKey(parent, sshPublicKey);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void createSshPublicKeyTest2() throws Exception {
+    OsLoginProto.SshPublicKey expectedResponse =
+        OsLoginProto.SshPublicKey.newBuilder()
+            .setKey("key106079")
+            .setExpirationTimeUsec(-2058878882)
+            .setFingerprint("fingerprint-1375934236")
+            .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString())
+            .build();
+    mockOsLoginService.addResponse(expectedResponse);
+
+    String parent = "parent-995424086";
+    OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
+
+    OsLoginProto.SshPublicKey actualResponse = client.createSshPublicKey(parent, sshPublicKey);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockOsLoginService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    CreateSshPublicKeyRequest actualRequest = ((CreateSshPublicKeyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(parent, actualRequest.getParent());
+    Assert.assertEquals(sshPublicKey, actualRequest.getSshPublicKey());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void createSshPublicKeyExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockOsLoginService.addException(exception);
+
+    try {
+      String parent = "parent-995424086";
+      OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
+      client.createSshPublicKey(parent, sshPublicKey);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void deletePosixAccountTest() throws Exception {
     Empty expectedResponse = Empty.newBuilder().build();
     mockOsLoginService.addResponse(expectedResponse);
 
-    ProjectName name = ProjectName.of("[USER]", "[PROJECT]");
+    PosixAccountName name = PosixAccountName.of("[USER]", "[PROJECT]");
 
     client.deletePosixAccount(name);
 
@@ -106,7 +197,7 @@ public void deletePosixAccountExceptionTest() throws Exception {
     mockOsLoginService.addException(exception);
 
     try {
-      ProjectName name = ProjectName.of("[USER]", "[PROJECT]");
+      PosixAccountName name = PosixAccountName.of("[USER]", "[PROJECT]");
       client.deletePosixAccount(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
@@ -153,7 +244,7 @@ public void deleteSshPublicKeyTest() throws Exception {
     Empty expectedResponse = Empty.newBuilder().build();
     mockOsLoginService.addResponse(expectedResponse);
 
-    FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
+    SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]");
 
     client.deleteSshPublicKey(name);
 
@@ -174,7 +265,7 @@ public void deleteSshPublicKeyExceptionTest() throws Exception {
     mockOsLoginService.addException(exception);
 
     try {
-      FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
+      SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]");
       client.deleteSshPublicKey(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
@@ -303,11 +394,11 @@ public void getSshPublicKeyTest() throws Exception {
             .setKey("key106079")
             .setExpirationTimeUsec(-2058878882)
             .setFingerprint("fingerprint-1375934236")
-            .setName(FingerprintName.of("[USER]", "[FINGERPRINT]").toString())
+            .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString())
             .build();
     mockOsLoginService.addResponse(expectedResponse);
 
-    FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
+    SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]");
 
     OsLoginProto.SshPublicKey actualResponse = client.getSshPublicKey(name);
     Assert.assertEquals(expectedResponse, actualResponse);
@@ -329,7 +420,7 @@ public void getSshPublicKeyExceptionTest() throws Exception {
     mockOsLoginService.addException(exception);
 
     try {
-      FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
+      SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]");
       client.getSshPublicKey(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
@@ -344,7 +435,7 @@ public void getSshPublicKeyTest2() throws Exception {
             .setKey("key106079")
             .setExpirationTimeUsec(-2058878882)
             .setFingerprint("fingerprint-1375934236")
-            .setName(FingerprintName.of("[USER]", "[FINGERPRINT]").toString())
+            .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString())
             .build();
     mockOsLoginService.addResponse(expectedResponse);
 
@@ -383,6 +474,7 @@ public void importSshPublicKeyTest() throws Exception {
     ImportSshPublicKeyResponse expectedResponse =
         ImportSshPublicKeyResponse.newBuilder()
             .setLoginProfile(LoginProfile.newBuilder().build())
+            .setDetails("details1557721666")
             .build();
     mockOsLoginService.addResponse(expectedResponse);
 
@@ -424,6 +516,7 @@ public void importSshPublicKeyTest2() throws Exception {
     ImportSshPublicKeyResponse expectedResponse =
         ImportSshPublicKeyResponse.newBuilder()
             .setLoginProfile(LoginProfile.newBuilder().build())
+            .setDetails("details1557721666")
             .build();
     mockOsLoginService.addResponse(expectedResponse);
 
@@ -465,6 +558,7 @@ public void importSshPublicKeyTest3() throws Exception {
     ImportSshPublicKeyResponse expectedResponse =
         ImportSshPublicKeyResponse.newBuilder()
             .setLoginProfile(LoginProfile.newBuilder().build())
+            .setDetails("details1557721666")
             .build();
     mockOsLoginService.addResponse(expectedResponse);
 
@@ -510,6 +604,7 @@ public void importSshPublicKeyTest4() throws Exception {
     ImportSshPublicKeyResponse expectedResponse =
         ImportSshPublicKeyResponse.newBuilder()
             .setLoginProfile(LoginProfile.newBuilder().build())
+            .setDetails("details1557721666")
             .build();
     mockOsLoginService.addResponse(expectedResponse);
 
@@ -557,11 +652,11 @@ public void updateSshPublicKeyTest() throws Exception {
             .setKey("key106079")
             .setExpirationTimeUsec(-2058878882)
             .setFingerprint("fingerprint-1375934236")
-            .setName(FingerprintName.of("[USER]", "[FINGERPRINT]").toString())
+            .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString())
             .build();
     mockOsLoginService.addResponse(expectedResponse);
 
-    FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
+    SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]");
     OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
 
     OsLoginProto.SshPublicKey actualResponse = client.updateSshPublicKey(name, sshPublicKey);
@@ -585,7 +680,7 @@ public void updateSshPublicKeyExceptionTest() throws Exception {
     mockOsLoginService.addException(exception);
 
     try {
-      FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
+      SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]");
       OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
       client.updateSshPublicKey(name, sshPublicKey);
       Assert.fail("No exception raised");
@@ -601,7 +696,7 @@ public void updateSshPublicKeyTest2() throws Exception {
             .setKey("key106079")
             .setExpirationTimeUsec(-2058878882)
             .setFingerprint("fingerprint-1375934236")
-            .setName(FingerprintName.of("[USER]", "[FINGERPRINT]").toString())
+            .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString())
             .build();
     mockOsLoginService.addResponse(expectedResponse);
 
@@ -645,11 +740,11 @@ public void updateSshPublicKeyTest3() throws Exception {
             .setKey("key106079")
             .setExpirationTimeUsec(-2058878882)
             .setFingerprint("fingerprint-1375934236")
-            .setName(FingerprintName.of("[USER]", "[FINGERPRINT]").toString())
+            .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString())
             .build();
     mockOsLoginService.addResponse(expectedResponse);
 
-    FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
+    SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]");
     OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
     FieldMask updateMask = FieldMask.newBuilder().build();
 
@@ -676,7 +771,7 @@ public void updateSshPublicKeyExceptionTest3() throws Exception {
     mockOsLoginService.addException(exception);
 
     try {
-      FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
+      SshPublicKeyName name = SshPublicKeyName.of("[USER]", "[FINGERPRINT]");
       OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
       client.updateSshPublicKey(name, sshPublicKey, updateMask);
@@ -693,7 +788,7 @@ public void updateSshPublicKeyTest4() throws Exception {
             .setKey("key106079")
             .setExpirationTimeUsec(-2058878882)
             .setFingerprint("fingerprint-1375934236")
-            .setName(FingerprintName.of("[USER]", "[FINGERPRINT]").toString())
+            .setName(SshPublicKeyName.of("[USER]", "[FINGERPRINT]").toString())
             .build();
     mockOsLoginService.addResponse(expectedResponse);
 
diff --git a/owl-bot-staging/java-os-login/v1/grpc-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceGrpc.java b/owl-bot-staging/java-os-login/v1/grpc-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceGrpc.java
new file mode 100644
index 000000000000..74243a8cd525
--- /dev/null
+++ b/owl-bot-staging/java-os-login/v1/grpc-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceGrpc.java
@@ -0,0 +1,845 @@
+package com.google.cloud.oslogin.v1;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ * 
+ * Cloud OS Login API
+ * The Cloud OS Login API allows you to manage users and their associated SSH
+ * public keys for logging into virtual machines on Google Cloud Platform.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/oslogin/v1/oslogin.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class OsLoginServiceGrpc { + + private OsLoginServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.oslogin.v1.OsLoginService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateSshPublicKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSshPublicKey", + requestType = com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest.class, + responseType = com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSshPublicKeyMethod() { + io.grpc.MethodDescriptor getCreateSshPublicKeyMethod; + if ((getCreateSshPublicKeyMethod = OsLoginServiceGrpc.getCreateSshPublicKeyMethod) == null) { + synchronized (OsLoginServiceGrpc.class) { + if ((getCreateSshPublicKeyMethod = OsLoginServiceGrpc.getCreateSshPublicKeyMethod) == null) { + OsLoginServiceGrpc.getCreateSshPublicKeyMethod = getCreateSshPublicKeyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSshPublicKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance())) + .setSchemaDescriptor(new OsLoginServiceMethodDescriptorSupplier("CreateSshPublicKey")) + .build(); + } + } + } + return getCreateSshPublicKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeletePosixAccountMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePosixAccount", + requestType = com.google.cloud.oslogin.v1.DeletePosixAccountRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeletePosixAccountMethod() { + io.grpc.MethodDescriptor getDeletePosixAccountMethod; + if ((getDeletePosixAccountMethod = OsLoginServiceGrpc.getDeletePosixAccountMethod) == null) { + synchronized (OsLoginServiceGrpc.class) { + if ((getDeletePosixAccountMethod = OsLoginServiceGrpc.getDeletePosixAccountMethod) == null) { + OsLoginServiceGrpc.getDeletePosixAccountMethod = getDeletePosixAccountMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePosixAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oslogin.v1.DeletePosixAccountRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new OsLoginServiceMethodDescriptorSupplier("DeletePosixAccount")) + .build(); + } + } + } + return getDeletePosixAccountMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSshPublicKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSshPublicKey", + requestType = com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSshPublicKeyMethod() { + io.grpc.MethodDescriptor getDeleteSshPublicKeyMethod; + if ((getDeleteSshPublicKeyMethod = OsLoginServiceGrpc.getDeleteSshPublicKeyMethod) == null) { + synchronized (OsLoginServiceGrpc.class) { + if ((getDeleteSshPublicKeyMethod = OsLoginServiceGrpc.getDeleteSshPublicKeyMethod) == null) { + OsLoginServiceGrpc.getDeleteSshPublicKeyMethod = getDeleteSshPublicKeyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSshPublicKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new OsLoginServiceMethodDescriptorSupplier("DeleteSshPublicKey")) + .build(); + } + } + } + return getDeleteSshPublicKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetLoginProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetLoginProfile", + requestType = com.google.cloud.oslogin.v1.GetLoginProfileRequest.class, + responseType = com.google.cloud.oslogin.v1.LoginProfile.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetLoginProfileMethod() { + io.grpc.MethodDescriptor getGetLoginProfileMethod; + if ((getGetLoginProfileMethod = OsLoginServiceGrpc.getGetLoginProfileMethod) == null) { + synchronized (OsLoginServiceGrpc.class) { + if ((getGetLoginProfileMethod = OsLoginServiceGrpc.getGetLoginProfileMethod) == null) { + OsLoginServiceGrpc.getGetLoginProfileMethod = getGetLoginProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLoginProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oslogin.v1.GetLoginProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oslogin.v1.LoginProfile.getDefaultInstance())) + .setSchemaDescriptor(new OsLoginServiceMethodDescriptorSupplier("GetLoginProfile")) + .build(); + } + } + } + return getGetLoginProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSshPublicKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSshPublicKey", + requestType = com.google.cloud.oslogin.v1.GetSshPublicKeyRequest.class, + responseType = com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSshPublicKeyMethod() { + io.grpc.MethodDescriptor getGetSshPublicKeyMethod; + if ((getGetSshPublicKeyMethod = OsLoginServiceGrpc.getGetSshPublicKeyMethod) == null) { + synchronized (OsLoginServiceGrpc.class) { + if ((getGetSshPublicKeyMethod = OsLoginServiceGrpc.getGetSshPublicKeyMethod) == null) { + OsLoginServiceGrpc.getGetSshPublicKeyMethod = getGetSshPublicKeyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSshPublicKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oslogin.v1.GetSshPublicKeyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance())) + .setSchemaDescriptor(new OsLoginServiceMethodDescriptorSupplier("GetSshPublicKey")) + .build(); + } + } + } + return getGetSshPublicKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor getImportSshPublicKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportSshPublicKey", + requestType = com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest.class, + responseType = com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getImportSshPublicKeyMethod() { + io.grpc.MethodDescriptor getImportSshPublicKeyMethod; + if ((getImportSshPublicKeyMethod = OsLoginServiceGrpc.getImportSshPublicKeyMethod) == null) { + synchronized (OsLoginServiceGrpc.class) { + if ((getImportSshPublicKeyMethod = OsLoginServiceGrpc.getImportSshPublicKeyMethod) == null) { + OsLoginServiceGrpc.getImportSshPublicKeyMethod = getImportSshPublicKeyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportSshPublicKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse.getDefaultInstance())) + .setSchemaDescriptor(new OsLoginServiceMethodDescriptorSupplier("ImportSshPublicKey")) + .build(); + } + } + } + return getImportSshPublicKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSshPublicKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSshPublicKey", + requestType = com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.class, + responseType = com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSshPublicKeyMethod() { + io.grpc.MethodDescriptor getUpdateSshPublicKeyMethod; + if ((getUpdateSshPublicKeyMethod = OsLoginServiceGrpc.getUpdateSshPublicKeyMethod) == null) { + synchronized (OsLoginServiceGrpc.class) { + if ((getUpdateSshPublicKeyMethod = OsLoginServiceGrpc.getUpdateSshPublicKeyMethod) == null) { + OsLoginServiceGrpc.getUpdateSshPublicKeyMethod = getUpdateSshPublicKeyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSshPublicKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance())) + .setSchemaDescriptor(new OsLoginServiceMethodDescriptorSupplier("UpdateSshPublicKey")) + .build(); + } + } + } + return getUpdateSshPublicKeyMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static OsLoginServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OsLoginServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OsLoginServiceStub(channel, callOptions); + } + }; + return OsLoginServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static OsLoginServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OsLoginServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OsLoginServiceBlockingStub(channel, callOptions); + } + }; + return OsLoginServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static OsLoginServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OsLoginServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OsLoginServiceFutureStub(channel, callOptions); + } + }; + return OsLoginServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Cloud OS Login API
+   * The Cloud OS Login API allows you to manage users and their associated SSH
+   * public keys for logging into virtual machines on Google Cloud Platform.
+   * 
+ */ + public static abstract class OsLoginServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Create an SSH public key
+     * 
+ */ + public void createSshPublicKey(com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSshPublicKeyMethod(), responseObserver); + } + + /** + *
+     * Deletes a POSIX account.
+     * 
+ */ + public void deletePosixAccount(com.google.cloud.oslogin.v1.DeletePosixAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePosixAccountMethod(), responseObserver); + } + + /** + *
+     * Deletes an SSH public key.
+     * 
+ */ + public void deleteSshPublicKey(com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSshPublicKeyMethod(), responseObserver); + } + + /** + *
+     * Retrieves the profile information used for logging in to a virtual machine
+     * on Google Compute Engine.
+     * 
+ */ + public void getLoginProfile(com.google.cloud.oslogin.v1.GetLoginProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLoginProfileMethod(), responseObserver); + } + + /** + *
+     * Retrieves an SSH public key.
+     * 
+ */ + public void getSshPublicKey(com.google.cloud.oslogin.v1.GetSshPublicKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSshPublicKeyMethod(), responseObserver); + } + + /** + *
+     * Adds an SSH public key and returns the profile information. Default POSIX
+     * account information is set when no username and UID exist as part of the
+     * login profile.
+     * 
+ */ + public void importSshPublicKey(com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportSshPublicKeyMethod(), responseObserver); + } + + /** + *
+     * Updates an SSH public key and returns the profile information. This method
+     * supports patch semantics.
+     * 
+ */ + public void updateSshPublicKey(com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSshPublicKeyMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateSshPublicKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest, + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey>( + this, METHODID_CREATE_SSH_PUBLIC_KEY))) + .addMethod( + getDeletePosixAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oslogin.v1.DeletePosixAccountRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_POSIX_ACCOUNT))) + .addMethod( + getDeleteSshPublicKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SSH_PUBLIC_KEY))) + .addMethod( + getGetLoginProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oslogin.v1.GetLoginProfileRequest, + com.google.cloud.oslogin.v1.LoginProfile>( + this, METHODID_GET_LOGIN_PROFILE))) + .addMethod( + getGetSshPublicKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oslogin.v1.GetSshPublicKeyRequest, + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey>( + this, METHODID_GET_SSH_PUBLIC_KEY))) + .addMethod( + getImportSshPublicKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest, + com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse>( + this, METHODID_IMPORT_SSH_PUBLIC_KEY))) + .addMethod( + getUpdateSshPublicKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest, + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey>( + this, METHODID_UPDATE_SSH_PUBLIC_KEY))) + .build(); + } + } + + /** + *
+   * Cloud OS Login API
+   * The Cloud OS Login API allows you to manage users and their associated SSH
+   * public keys for logging into virtual machines on Google Cloud Platform.
+   * 
+ */ + public static final class OsLoginServiceStub extends io.grpc.stub.AbstractAsyncStub { + private OsLoginServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OsLoginServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OsLoginServiceStub(channel, callOptions); + } + + /** + *
+     * Create an SSH public key
+     * 
+ */ + public void createSshPublicKey(com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSshPublicKeyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a POSIX account.
+     * 
+ */ + public void deletePosixAccount(com.google.cloud.oslogin.v1.DeletePosixAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePosixAccountMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an SSH public key.
+     * 
+ */ + public void deleteSshPublicKey(com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSshPublicKeyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves the profile information used for logging in to a virtual machine
+     * on Google Compute Engine.
+     * 
+ */ + public void getLoginProfile(com.google.cloud.oslogin.v1.GetLoginProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLoginProfileMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves an SSH public key.
+     * 
+ */ + public void getSshPublicKey(com.google.cloud.oslogin.v1.GetSshPublicKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSshPublicKeyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Adds an SSH public key and returns the profile information. Default POSIX
+     * account information is set when no username and UID exist as part of the
+     * login profile.
+     * 
+ */ + public void importSshPublicKey(com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportSshPublicKeyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an SSH public key and returns the profile information. This method
+     * supports patch semantics.
+     * 
+ */ + public void updateSshPublicKey(com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSshPublicKeyMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Cloud OS Login API
+   * The Cloud OS Login API allows you to manage users and their associated SSH
+   * public keys for logging into virtual machines on Google Cloud Platform.
+   * 
+ */ + public static final class OsLoginServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private OsLoginServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OsLoginServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OsLoginServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Create an SSH public key
+     * 
+ */ + public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey createSshPublicKey(com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSshPublicKeyMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a POSIX account.
+     * 
+ */ + public com.google.protobuf.Empty deletePosixAccount(com.google.cloud.oslogin.v1.DeletePosixAccountRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePosixAccountMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an SSH public key.
+     * 
+ */ + public com.google.protobuf.Empty deleteSshPublicKey(com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSshPublicKeyMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieves the profile information used for logging in to a virtual machine
+     * on Google Compute Engine.
+     * 
+ */ + public com.google.cloud.oslogin.v1.LoginProfile getLoginProfile(com.google.cloud.oslogin.v1.GetLoginProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLoginProfileMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieves an SSH public key.
+     * 
+ */ + public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKey(com.google.cloud.oslogin.v1.GetSshPublicKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSshPublicKeyMethod(), getCallOptions(), request); + } + + /** + *
+     * Adds an SSH public key and returns the profile information. Default POSIX
+     * account information is set when no username and UID exist as part of the
+     * login profile.
+     * 
+ */ + public com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse importSshPublicKey(com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportSshPublicKeyMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an SSH public key and returns the profile information. This method
+     * supports patch semantics.
+     * 
+ */ + public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey updateSshPublicKey(com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSshPublicKeyMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Cloud OS Login API
+   * The Cloud OS Login API allows you to manage users and their associated SSH
+   * public keys for logging into virtual machines on Google Cloud Platform.
+   * 
+ */ + public static final class OsLoginServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private OsLoginServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OsLoginServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OsLoginServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Create an SSH public key
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSshPublicKey( + com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSshPublicKeyMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a POSIX account.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deletePosixAccount( + com.google.cloud.oslogin.v1.DeletePosixAccountRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePosixAccountMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an SSH public key.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSshPublicKey( + com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSshPublicKeyMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieves the profile information used for logging in to a virtual machine
+     * on Google Compute Engine.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getLoginProfile( + com.google.cloud.oslogin.v1.GetLoginProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLoginProfileMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieves an SSH public key.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSshPublicKey( + com.google.cloud.oslogin.v1.GetSshPublicKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSshPublicKeyMethod(), getCallOptions()), request); + } + + /** + *
+     * Adds an SSH public key and returns the profile information. Default POSIX
+     * account information is set when no username and UID exist as part of the
+     * login profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture importSshPublicKey( + com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportSshPublicKeyMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an SSH public key and returns the profile information. This method
+     * supports patch semantics.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSshPublicKey( + com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSshPublicKeyMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SSH_PUBLIC_KEY = 0; + private static final int METHODID_DELETE_POSIX_ACCOUNT = 1; + private static final int METHODID_DELETE_SSH_PUBLIC_KEY = 2; + private static final int METHODID_GET_LOGIN_PROFILE = 3; + private static final int METHODID_GET_SSH_PUBLIC_KEY = 4; + private static final int METHODID_IMPORT_SSH_PUBLIC_KEY = 5; + private static final int METHODID_UPDATE_SSH_PUBLIC_KEY = 6; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final OsLoginServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(OsLoginServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SSH_PUBLIC_KEY: + serviceImpl.createSshPublicKey((com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_POSIX_ACCOUNT: + serviceImpl.deletePosixAccount((com.google.cloud.oslogin.v1.DeletePosixAccountRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SSH_PUBLIC_KEY: + serviceImpl.deleteSshPublicKey((com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_LOGIN_PROFILE: + serviceImpl.getLoginProfile((com.google.cloud.oslogin.v1.GetLoginProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SSH_PUBLIC_KEY: + serviceImpl.getSshPublicKey((com.google.cloud.oslogin.v1.GetSshPublicKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_SSH_PUBLIC_KEY: + serviceImpl.importSshPublicKey((com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SSH_PUBLIC_KEY: + serviceImpl.updateSshPublicKey((com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class OsLoginServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + OsLoginServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.oslogin.v1.OsLoginProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("OsLoginService"); + } + } + + private static final class OsLoginServiceFileDescriptorSupplier + extends OsLoginServiceBaseDescriptorSupplier { + OsLoginServiceFileDescriptorSupplier() {} + } + + private static final class OsLoginServiceMethodDescriptorSupplier + extends OsLoginServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + OsLoginServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (OsLoginServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new OsLoginServiceFileDescriptorSupplier()) + .addMethod(getCreateSshPublicKeyMethod()) + .addMethod(getDeletePosixAccountMethod()) + .addMethod(getDeleteSshPublicKeyMethod()) + .addMethod(getGetLoginProfileMethod()) + .addMethod(getGetSshPublicKeyMethod()) + .addMethod(getImportSshPublicKeyMethod()) + .addMethod(getUpdateSshPublicKeyMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/OsLoginProto.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/OsLoginProto.java similarity index 71% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/OsLoginProto.java rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/OsLoginProto.java index 965754da6737..9f322f8c4972 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/OsLoginProto.java +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/OsLoginProto.java @@ -1,18 +1,3 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/oslogin/common/common.proto @@ -20,25 +5,25 @@ public final class OsLoginProto { private OsLoginProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** - * - * *
    * The operating system options for account entries.
    * 
* * Protobuf enum {@code google.cloud.oslogin.common.OperatingSystemType} */ - public enum OperatingSystemType implements com.google.protobuf.ProtocolMessageEnum { + public enum OperatingSystemType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The operating system type associated with the user account information is
      * unspecified.
@@ -48,8 +33,6 @@ public enum OperatingSystemType implements com.google.protobuf.ProtocolMessageEn
      */
     OPERATING_SYSTEM_TYPE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Linux user account information.
      * 
@@ -58,8 +41,6 @@ public enum OperatingSystemType implements com.google.protobuf.ProtocolMessageEn */ LINUX(1), /** - * - * *
      * Windows user account information.
      * 
@@ -71,8 +52,6 @@ public enum OperatingSystemType implements com.google.protobuf.ProtocolMessageEn ; /** - * - * *
      * The operating system type associated with the user account information is
      * unspecified.
@@ -82,8 +61,6 @@ public enum OperatingSystemType implements com.google.protobuf.ProtocolMessageEn
      */
     public static final int OPERATING_SYSTEM_TYPE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Linux user account information.
      * 
@@ -92,8 +69,6 @@ public enum OperatingSystemType implements com.google.protobuf.ProtocolMessageEn */ public static final int LINUX_VALUE = 1; /** - * - * *
      * Windows user account information.
      * 
@@ -102,6 +77,7 @@ public enum OperatingSystemType implements com.google.protobuf.ProtocolMessageEn */ public static final int WINDOWS_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -126,14 +102,10 @@ public static OperatingSystemType valueOf(int value) { */ public static OperatingSystemType forNumber(int value) { switch (value) { - case 0: - return OPERATING_SYSTEM_TYPE_UNSPECIFIED; - case 1: - return LINUX; - case 2: - return WINDOWS; - default: - return null; + case 0: return OPERATING_SYSTEM_TYPE_UNSPECIFIED; + case 1: return LINUX; + case 2: return WINDOWS; + default: return null; } } @@ -141,28 +113,28 @@ public static OperatingSystemType forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + OperatingSystemType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OperatingSystemType findValueByNumber(int number) { + return OperatingSystemType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OperatingSystemType findValueByNumber(int number) { - return OperatingSystemType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.oslogin.common.OsLoginProto.getDescriptor().getEnumTypes().get(0); } @@ -171,7 +143,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static OperatingSystemType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -188,271 +161,217 @@ private OperatingSystemType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.oslogin.common.OperatingSystemType) } - public interface PosixAccountOrBuilder - extends + public interface PosixAccountOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.oslogin.common.PosixAccount) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Only one POSIX account can be marked as primary.
      * 
* * bool primary = 1; - * * @return The primary. */ boolean getPrimary(); /** - * - * *
      * The username of the POSIX account.
      * 
* * string username = 2; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
      * The username of the POSIX account.
      * 
* * string username = 2; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
      * The user ID.
      * 
* * int64 uid = 3; - * * @return The uid. */ long getUid(); /** - * - * *
      * The default group ID.
      * 
* * int64 gid = 4; - * * @return The gid. */ long getGid(); /** - * - * *
      * The path to the home directory for this account.
      * 
* * string home_directory = 5; - * * @return The homeDirectory. */ java.lang.String getHomeDirectory(); /** - * - * *
      * The path to the home directory for this account.
      * 
* * string home_directory = 5; - * * @return The bytes for homeDirectory. */ - com.google.protobuf.ByteString getHomeDirectoryBytes(); + com.google.protobuf.ByteString + getHomeDirectoryBytes(); /** - * - * *
      * The path to the logic shell for this account.
      * 
* * string shell = 6; - * * @return The shell. */ java.lang.String getShell(); /** - * - * *
      * The path to the logic shell for this account.
      * 
* * string shell = 6; - * * @return The bytes for shell. */ - com.google.protobuf.ByteString getShellBytes(); + com.google.protobuf.ByteString + getShellBytes(); /** - * - * *
      * The GECOS (user information) entry for this account.
      * 
* * string gecos = 7; - * * @return The gecos. */ java.lang.String getGecos(); /** - * - * *
      * The GECOS (user information) entry for this account.
      * 
* * string gecos = 7; - * * @return The bytes for gecos. */ - com.google.protobuf.ByteString getGecosBytes(); + com.google.protobuf.ByteString + getGecosBytes(); /** - * - * *
      * System identifier for which account the username or uid applies to.
      * By default, the empty value is used.
      * 
* * string system_id = 8; - * * @return The systemId. */ java.lang.String getSystemId(); /** - * - * *
      * System identifier for which account the username or uid applies to.
      * By default, the empty value is used.
      * 
* * string system_id = 8; - * * @return The bytes for systemId. */ - com.google.protobuf.ByteString getSystemIdBytes(); + com.google.protobuf.ByteString + getSystemIdBytes(); /** - * - * *
      * Output only. A POSIX account identifier.
      * 
* * string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The accountId. */ java.lang.String getAccountId(); /** - * - * *
      * Output only. A POSIX account identifier.
      * 
* * string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for accountId. */ - com.google.protobuf.ByteString getAccountIdBytes(); + com.google.protobuf.ByteString + getAccountIdBytes(); /** - * - * *
      * The operating system type where this account applies.
      * 
* * .google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10; - * * @return The enum numeric value on the wire for operatingSystemType. */ int getOperatingSystemTypeValue(); /** - * - * *
      * The operating system type where this account applies.
      * 
* * .google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10; - * * @return The operatingSystemType. */ com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType getOperatingSystemType(); /** - * - * *
      * Output only. The canonical resource name.
      * 
* * string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Output only. The canonical resource name.
      * 
* * string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } /** - * - * *
    * The POSIX account information associated with a Google account.
    * 
* * Protobuf type {@code google.cloud.oslogin.common.PosixAccount} */ - public static final class PosixAccount extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class PosixAccount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.oslogin.common.PosixAccount) PosixAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PosixAccount.newBuilder() to construct. private PosixAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PosixAccount() { username_ = ""; homeDirectory_ = ""; @@ -466,41 +385,37 @@ private PosixAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PosixAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oslogin.common.OsLoginProto - .internal_static_google_cloud_oslogin_common_PosixAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.common.OsLoginProto.internal_static_google_cloud_oslogin_common_PosixAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oslogin.common.OsLoginProto - .internal_static_google_cloud_oslogin_common_PosixAccount_fieldAccessorTable + return com.google.cloud.oslogin.common.OsLoginProto.internal_static_google_cloud_oslogin_common_PosixAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.class, - com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder.class); + com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.class, com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder.class); } public static final int PRIMARY_FIELD_NUMBER = 1; private boolean primary_; /** - * - * *
      * Only one POSIX account can be marked as primary.
      * 
* * bool primary = 1; - * * @return The primary. */ @java.lang.Override @@ -511,14 +426,11 @@ public boolean getPrimary() { public static final int USERNAME_FIELD_NUMBER = 2; private volatile java.lang.Object username_; /** - * - * *
      * The username of the POSIX account.
      * 
* * string username = 2; - * * @return The username. */ @java.lang.Override @@ -527,29 +439,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
      * The username of the POSIX account.
      * 
* * string username = 2; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -560,14 +472,11 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int UID_FIELD_NUMBER = 3; private long uid_; /** - * - * *
      * The user ID.
      * 
* * int64 uid = 3; - * * @return The uid. */ @java.lang.Override @@ -578,14 +487,11 @@ public long getUid() { public static final int GID_FIELD_NUMBER = 4; private long gid_; /** - * - * *
      * The default group ID.
      * 
* * int64 gid = 4; - * * @return The gid. */ @java.lang.Override @@ -596,14 +502,11 @@ public long getGid() { public static final int HOME_DIRECTORY_FIELD_NUMBER = 5; private volatile java.lang.Object homeDirectory_; /** - * - * *
      * The path to the home directory for this account.
      * 
* * string home_directory = 5; - * * @return The homeDirectory. */ @java.lang.Override @@ -612,29 +515,29 @@ public java.lang.String getHomeDirectory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); homeDirectory_ = s; return s; } } /** - * - * *
      * The path to the home directory for this account.
      * 
* * string home_directory = 5; - * * @return The bytes for homeDirectory. */ @java.lang.Override - public com.google.protobuf.ByteString getHomeDirectoryBytes() { + public com.google.protobuf.ByteString + getHomeDirectoryBytes() { java.lang.Object ref = homeDirectory_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); homeDirectory_ = b; return b; } else { @@ -645,14 +548,11 @@ public com.google.protobuf.ByteString getHomeDirectoryBytes() { public static final int SHELL_FIELD_NUMBER = 6; private volatile java.lang.Object shell_; /** - * - * *
      * The path to the logic shell for this account.
      * 
* * string shell = 6; - * * @return The shell. */ @java.lang.Override @@ -661,29 +561,29 @@ public java.lang.String getShell() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shell_ = s; return s; } } /** - * - * *
      * The path to the logic shell for this account.
      * 
* * string shell = 6; - * * @return The bytes for shell. */ @java.lang.Override - public com.google.protobuf.ByteString getShellBytes() { + public com.google.protobuf.ByteString + getShellBytes() { java.lang.Object ref = shell_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); shell_ = b; return b; } else { @@ -694,14 +594,11 @@ public com.google.protobuf.ByteString getShellBytes() { public static final int GECOS_FIELD_NUMBER = 7; private volatile java.lang.Object gecos_; /** - * - * *
      * The GECOS (user information) entry for this account.
      * 
* * string gecos = 7; - * * @return The gecos. */ @java.lang.Override @@ -710,29 +607,29 @@ public java.lang.String getGecos() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gecos_ = s; return s; } } /** - * - * *
      * The GECOS (user information) entry for this account.
      * 
* * string gecos = 7; - * * @return The bytes for gecos. */ @java.lang.Override - public com.google.protobuf.ByteString getGecosBytes() { + public com.google.protobuf.ByteString + getGecosBytes() { java.lang.Object ref = gecos_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gecos_ = b; return b; } else { @@ -743,15 +640,12 @@ public com.google.protobuf.ByteString getGecosBytes() { public static final int SYSTEM_ID_FIELD_NUMBER = 8; private volatile java.lang.Object systemId_; /** - * - * *
      * System identifier for which account the username or uid applies to.
      * By default, the empty value is used.
      * 
* * string system_id = 8; - * * @return The systemId. */ @java.lang.Override @@ -760,30 +654,30 @@ public java.lang.String getSystemId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); systemId_ = s; return s; } } /** - * - * *
      * System identifier for which account the username or uid applies to.
      * By default, the empty value is used.
      * 
* * string system_id = 8; - * * @return The bytes for systemId. */ @java.lang.Override - public com.google.protobuf.ByteString getSystemIdBytes() { + public com.google.protobuf.ByteString + getSystemIdBytes() { java.lang.Object ref = systemId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); systemId_ = b; return b; } else { @@ -794,14 +688,11 @@ public com.google.protobuf.ByteString getSystemIdBytes() { public static final int ACCOUNT_ID_FIELD_NUMBER = 9; private volatile java.lang.Object accountId_; /** - * - * *
      * Output only. A POSIX account identifier.
      * 
* * string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The accountId. */ @java.lang.Override @@ -810,29 +701,29 @@ public java.lang.String getAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; } } /** - * - * *
      * Output only. A POSIX account identifier.
      * 
* * string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for accountId. */ @java.lang.Override - public com.google.protobuf.ByteString getAccountIdBytes() { + public com.google.protobuf.ByteString + getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accountId_ = b; return b; } else { @@ -843,54 +734,38 @@ public com.google.protobuf.ByteString getAccountIdBytes() { public static final int OPERATING_SYSTEM_TYPE_FIELD_NUMBER = 10; private int operatingSystemType_; /** - * - * *
      * The operating system type where this account applies.
      * 
* * .google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10; - * * @return The enum numeric value on the wire for operatingSystemType. */ - @java.lang.Override - public int getOperatingSystemTypeValue() { + @java.lang.Override public int getOperatingSystemTypeValue() { return operatingSystemType_; } /** - * - * *
      * The operating system type where this account applies.
      * 
* * .google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10; - * * @return The operatingSystemType. */ - @java.lang.Override - public com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType - getOperatingSystemType() { + @java.lang.Override public com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType getOperatingSystemType() { @SuppressWarnings("deprecation") - com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType result = - com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType.valueOf( - operatingSystemType_); - return result == null - ? com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType.UNRECOGNIZED - : result; + com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType result = com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType.valueOf(operatingSystemType_); + return result == null ? com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType.UNRECOGNIZED : result; } public static final int NAME_FIELD_NUMBER = 11; private volatile java.lang.Object name_; /** - * - * *
      * Output only. The canonical resource name.
      * 
* * string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -899,29 +774,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Output only. The canonical resource name.
      * 
* * string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -930,7 +805,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -942,7 +816,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (primary_ != false) { output.writeBool(1, primary_); } @@ -970,10 +845,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, accountId_); } - if (operatingSystemType_ - != com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType - .OPERATING_SYSTEM_TYPE_UNSPECIFIED - .getNumber()) { + if (operatingSystemType_ != com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType.OPERATING_SYSTEM_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(10, operatingSystemType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { @@ -989,16 +861,19 @@ public int getSerializedSize() { size = 0; if (primary_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, primary_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, primary_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } if (uid_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, uid_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, uid_); } if (gid_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, gid_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, gid_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(homeDirectory_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, homeDirectory_); @@ -1015,11 +890,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, accountId_); } - if (operatingSystemType_ - != com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType - .OPERATING_SYSTEM_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, operatingSystemType_); + if (operatingSystemType_ != com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType.OPERATING_SYSTEM_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, operatingSystemType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, name_); @@ -1032,25 +905,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.oslogin.common.OsLoginProto.PosixAccount)) { return super.equals(obj); } - com.google.cloud.oslogin.common.OsLoginProto.PosixAccount other = - (com.google.cloud.oslogin.common.OsLoginProto.PosixAccount) obj; - - if (getPrimary() != other.getPrimary()) return false; - if (!getUsername().equals(other.getUsername())) return false; - if (getUid() != other.getUid()) return false; - if (getGid() != other.getGid()) return false; - if (!getHomeDirectory().equals(other.getHomeDirectory())) return false; - if (!getShell().equals(other.getShell())) return false; - if (!getGecos().equals(other.getGecos())) return false; - if (!getSystemId().equals(other.getSystemId())) return false; - if (!getAccountId().equals(other.getAccountId())) return false; + com.google.cloud.oslogin.common.OsLoginProto.PosixAccount other = (com.google.cloud.oslogin.common.OsLoginProto.PosixAccount) obj; + + if (getPrimary() + != other.getPrimary()) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (getUid() + != other.getUid()) return false; + if (getGid() + != other.getGid()) return false; + if (!getHomeDirectory() + .equals(other.getHomeDirectory())) return false; + if (!getShell() + .equals(other.getShell())) return false; + if (!getGecos() + .equals(other.getGecos())) return false; + if (!getSystemId() + .equals(other.getSystemId())) return false; + if (!getAccountId() + .equals(other.getAccountId())) return false; if (operatingSystemType_ != other.operatingSystemType_) return false; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1063,13 +945,16 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PRIMARY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrimary()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPrimary()); hash = (37 * hash) + USERNAME_FIELD_NUMBER; hash = (53 * hash) + getUsername().hashCode(); hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUid()); hash = (37 * hash) + GID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGid()); hash = (37 * hash) + HOME_DIRECTORY_FIELD_NUMBER; hash = (53 * hash) + getHomeDirectory().hashCode(); hash = (37 * hash) + SHELL_FIELD_NUMBER; @@ -1090,94 +975,87 @@ public int hashCode() { } public static com.google.cloud.oslogin.common.OsLoginProto.PosixAccount parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.common.OsLoginProto.PosixAccount parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.common.OsLoginProto.PosixAccount parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.common.OsLoginProto.PosixAccount parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.common.OsLoginProto.PosixAccount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.common.OsLoginProto.PosixAccount parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.oslogin.common.OsLoginProto.PosixAccount parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.oslogin.common.OsLoginProto.PosixAccount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.common.OsLoginProto.PosixAccount parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.oslogin.common.OsLoginProto.PosixAccount parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.oslogin.common.OsLoginProto.PosixAccount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.common.OsLoginProto.PosixAccount parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.oslogin.common.OsLoginProto.PosixAccount parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.common.OsLoginProto.PosixAccount parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.oslogin.common.OsLoginProto.PosixAccount prototype) { + public static Builder newBuilder(com.google.cloud.oslogin.common.OsLoginProto.PosixAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1187,41 +1065,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The POSIX account information associated with a Google account.
      * 
* * Protobuf type {@code google.cloud.oslogin.common.PosixAccount} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.oslogin.common.PosixAccount) com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oslogin.common.OsLoginProto - .internal_static_google_cloud_oslogin_common_PosixAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.common.OsLoginProto.internal_static_google_cloud_oslogin_common_PosixAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oslogin.common.OsLoginProto - .internal_static_google_cloud_oslogin_common_PosixAccount_fieldAccessorTable + return com.google.cloud.oslogin.common.OsLoginProto.internal_static_google_cloud_oslogin_common_PosixAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.class, - com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder.class); + com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.class, com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder.class); } // Construct using com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1251,9 +1127,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.oslogin.common.OsLoginProto - .internal_static_google_cloud_oslogin_common_PosixAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.oslogin.common.OsLoginProto.internal_static_google_cloud_oslogin_common_PosixAccount_descriptor; } @java.lang.Override @@ -1272,8 +1148,7 @@ public com.google.cloud.oslogin.common.OsLoginProto.PosixAccount build() { @java.lang.Override public com.google.cloud.oslogin.common.OsLoginProto.PosixAccount buildPartial() { - com.google.cloud.oslogin.common.OsLoginProto.PosixAccount result = - new com.google.cloud.oslogin.common.OsLoginProto.PosixAccount(this); + com.google.cloud.oslogin.common.OsLoginProto.PosixAccount result = new com.google.cloud.oslogin.common.OsLoginProto.PosixAccount(this); result.primary_ = primary_; result.username_ = username_; result.uid_ = uid_; @@ -1293,41 +1168,38 @@ public com.google.cloud.oslogin.common.OsLoginProto.PosixAccount buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.oslogin.common.OsLoginProto.PosixAccount) { - return mergeFrom((com.google.cloud.oslogin.common.OsLoginProto.PosixAccount) other); + return mergeFrom((com.google.cloud.oslogin.common.OsLoginProto.PosixAccount)other); } else { super.mergeFrom(other); return this; @@ -1335,8 +1207,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.oslogin.common.OsLoginProto.PosixAccount other) { - if (other == com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.getDefaultInstance()) - return this; + if (other == com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.getDefaultInstance()) return this; if (other.getPrimary() != false) { setPrimary(other.getPrimary()); } @@ -1403,79 +1274,67 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - primary_ = input.readBool(); - - break; - } // case 8 - case 18: - { - username_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - uid_ = input.readInt64(); - - break; - } // case 24 - case 32: - { - gid_ = input.readInt64(); - - break; - } // case 32 - case 42: - { - homeDirectory_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: - { - shell_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: - { - gecos_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: - { - systemId_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: - { - accountId_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 80: - { - operatingSystemType_ = input.readEnum(); - - break; - } // case 80 - case 90: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 90 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + primary_ = input.readBool(); + + break; + } // case 8 + case 18: { + username_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + uid_ = input.readInt64(); + + break; + } // case 24 + case 32: { + gid_ = input.readInt64(); + + break; + } // case 32 + case 42: { + homeDirectory_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + shell_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: { + gecos_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: { + systemId_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: { + accountId_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 80: { + operatingSystemType_ = input.readEnum(); + + break; + } // case 80 + case 90: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 90 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1486,16 +1345,13 @@ public Builder mergeFrom( return this; } - private boolean primary_; + private boolean primary_ ; /** - * - * *
        * Only one POSIX account can be marked as primary.
        * 
* * bool primary = 1; - * * @return The primary. */ @java.lang.Override @@ -1503,36 +1359,30 @@ public boolean getPrimary() { return primary_; } /** - * - * *
        * Only one POSIX account can be marked as primary.
        * 
* * bool primary = 1; - * * @param value The primary to set. * @return This builder for chaining. */ public Builder setPrimary(boolean value) { - + primary_ = value; onChanged(); return this; } /** - * - * *
        * Only one POSIX account can be marked as primary.
        * 
* * bool primary = 1; - * * @return This builder for chaining. */ public Builder clearPrimary() { - + primary_ = false; onChanged(); return this; @@ -1540,20 +1390,18 @@ public Builder clearPrimary() { private java.lang.Object username_ = ""; /** - * - * *
        * The username of the POSIX account.
        * 
* * string username = 2; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1562,21 +1410,20 @@ public java.lang.String getUsername() { } } /** - * - * *
        * The username of the POSIX account.
        * 
* * string username = 2; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1584,76 +1431,66 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
        * The username of the POSIX account.
        * 
* * string username = 2; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
        * The username of the POSIX account.
        * 
* * string username = 2; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
        * The username of the POSIX account.
        * 
* * string username = 2; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; } - private long uid_; + private long uid_ ; /** - * - * *
        * The user ID.
        * 
* * int64 uid = 3; - * * @return The uid. */ @java.lang.Override @@ -1661,51 +1498,42 @@ public long getUid() { return uid_; } /** - * - * *
        * The user ID.
        * 
* * int64 uid = 3; - * * @param value The uid to set. * @return This builder for chaining. */ public Builder setUid(long value) { - + uid_ = value; onChanged(); return this; } /** - * - * *
        * The user ID.
        * 
* * int64 uid = 3; - * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = 0L; onChanged(); return this; } - private long gid_; + private long gid_ ; /** - * - * *
        * The default group ID.
        * 
* * int64 gid = 4; - * * @return The gid. */ @java.lang.Override @@ -1713,36 +1541,30 @@ public long getGid() { return gid_; } /** - * - * *
        * The default group ID.
        * 
* * int64 gid = 4; - * * @param value The gid to set. * @return This builder for chaining. */ public Builder setGid(long value) { - + gid_ = value; onChanged(); return this; } /** - * - * *
        * The default group ID.
        * 
* * int64 gid = 4; - * * @return This builder for chaining. */ public Builder clearGid() { - + gid_ = 0L; onChanged(); return this; @@ -1750,20 +1572,18 @@ public Builder clearGid() { private java.lang.Object homeDirectory_ = ""; /** - * - * *
        * The path to the home directory for this account.
        * 
* * string home_directory = 5; - * * @return The homeDirectory. */ public java.lang.String getHomeDirectory() { java.lang.Object ref = homeDirectory_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); homeDirectory_ = s; return s; @@ -1772,21 +1592,20 @@ public java.lang.String getHomeDirectory() { } } /** - * - * *
        * The path to the home directory for this account.
        * 
* * string home_directory = 5; - * * @return The bytes for homeDirectory. */ - public com.google.protobuf.ByteString getHomeDirectoryBytes() { + public com.google.protobuf.ByteString + getHomeDirectoryBytes() { java.lang.Object ref = homeDirectory_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); homeDirectory_ = b; return b; } else { @@ -1794,61 +1613,54 @@ public com.google.protobuf.ByteString getHomeDirectoryBytes() { } } /** - * - * *
        * The path to the home directory for this account.
        * 
* * string home_directory = 5; - * * @param value The homeDirectory to set. * @return This builder for chaining. */ - public Builder setHomeDirectory(java.lang.String value) { + public Builder setHomeDirectory( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + homeDirectory_ = value; onChanged(); return this; } /** - * - * *
        * The path to the home directory for this account.
        * 
* * string home_directory = 5; - * * @return This builder for chaining. */ public Builder clearHomeDirectory() { - + homeDirectory_ = getDefaultInstance().getHomeDirectory(); onChanged(); return this; } /** - * - * *
        * The path to the home directory for this account.
        * 
* * string home_directory = 5; - * * @param value The bytes for homeDirectory to set. * @return This builder for chaining. */ - public Builder setHomeDirectoryBytes(com.google.protobuf.ByteString value) { + public Builder setHomeDirectoryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + homeDirectory_ = value; onChanged(); return this; @@ -1856,20 +1668,18 @@ public Builder setHomeDirectoryBytes(com.google.protobuf.ByteString value) { private java.lang.Object shell_ = ""; /** - * - * *
        * The path to the logic shell for this account.
        * 
* * string shell = 6; - * * @return The shell. */ public java.lang.String getShell() { java.lang.Object ref = shell_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shell_ = s; return s; @@ -1878,21 +1688,20 @@ public java.lang.String getShell() { } } /** - * - * *
        * The path to the logic shell for this account.
        * 
* * string shell = 6; - * * @return The bytes for shell. */ - public com.google.protobuf.ByteString getShellBytes() { + public com.google.protobuf.ByteString + getShellBytes() { java.lang.Object ref = shell_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); shell_ = b; return b; } else { @@ -1900,61 +1709,54 @@ public com.google.protobuf.ByteString getShellBytes() { } } /** - * - * *
        * The path to the logic shell for this account.
        * 
* * string shell = 6; - * * @param value The shell to set. * @return This builder for chaining. */ - public Builder setShell(java.lang.String value) { + public Builder setShell( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + shell_ = value; onChanged(); return this; } /** - * - * *
        * The path to the logic shell for this account.
        * 
* * string shell = 6; - * * @return This builder for chaining. */ public Builder clearShell() { - + shell_ = getDefaultInstance().getShell(); onChanged(); return this; } /** - * - * *
        * The path to the logic shell for this account.
        * 
* * string shell = 6; - * * @param value The bytes for shell to set. * @return This builder for chaining. */ - public Builder setShellBytes(com.google.protobuf.ByteString value) { + public Builder setShellBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shell_ = value; onChanged(); return this; @@ -1962,20 +1764,18 @@ public Builder setShellBytes(com.google.protobuf.ByteString value) { private java.lang.Object gecos_ = ""; /** - * - * *
        * The GECOS (user information) entry for this account.
        * 
* * string gecos = 7; - * * @return The gecos. */ public java.lang.String getGecos() { java.lang.Object ref = gecos_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gecos_ = s; return s; @@ -1984,21 +1784,20 @@ public java.lang.String getGecos() { } } /** - * - * *
        * The GECOS (user information) entry for this account.
        * 
* * string gecos = 7; - * * @return The bytes for gecos. */ - public com.google.protobuf.ByteString getGecosBytes() { + public com.google.protobuf.ByteString + getGecosBytes() { java.lang.Object ref = gecos_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gecos_ = b; return b; } else { @@ -2006,61 +1805,54 @@ public com.google.protobuf.ByteString getGecosBytes() { } } /** - * - * *
        * The GECOS (user information) entry for this account.
        * 
* * string gecos = 7; - * * @param value The gecos to set. * @return This builder for chaining. */ - public Builder setGecos(java.lang.String value) { + public Builder setGecos( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gecos_ = value; onChanged(); return this; } /** - * - * *
        * The GECOS (user information) entry for this account.
        * 
* * string gecos = 7; - * * @return This builder for chaining. */ public Builder clearGecos() { - + gecos_ = getDefaultInstance().getGecos(); onChanged(); return this; } /** - * - * *
        * The GECOS (user information) entry for this account.
        * 
* * string gecos = 7; - * * @param value The bytes for gecos to set. * @return This builder for chaining. */ - public Builder setGecosBytes(com.google.protobuf.ByteString value) { + public Builder setGecosBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gecos_ = value; onChanged(); return this; @@ -2068,21 +1860,19 @@ public Builder setGecosBytes(com.google.protobuf.ByteString value) { private java.lang.Object systemId_ = ""; /** - * - * *
        * System identifier for which account the username or uid applies to.
        * By default, the empty value is used.
        * 
* * string system_id = 8; - * * @return The systemId. */ public java.lang.String getSystemId() { java.lang.Object ref = systemId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); systemId_ = s; return s; @@ -2091,22 +1881,21 @@ public java.lang.String getSystemId() { } } /** - * - * *
        * System identifier for which account the username or uid applies to.
        * By default, the empty value is used.
        * 
* * string system_id = 8; - * * @return The bytes for systemId. */ - public com.google.protobuf.ByteString getSystemIdBytes() { + public com.google.protobuf.ByteString + getSystemIdBytes() { java.lang.Object ref = systemId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); systemId_ = b; return b; } else { @@ -2114,64 +1903,57 @@ public com.google.protobuf.ByteString getSystemIdBytes() { } } /** - * - * *
        * System identifier for which account the username or uid applies to.
        * By default, the empty value is used.
        * 
* * string system_id = 8; - * * @param value The systemId to set. * @return This builder for chaining. */ - public Builder setSystemId(java.lang.String value) { + public Builder setSystemId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + systemId_ = value; onChanged(); return this; } /** - * - * *
        * System identifier for which account the username or uid applies to.
        * By default, the empty value is used.
        * 
* * string system_id = 8; - * * @return This builder for chaining. */ public Builder clearSystemId() { - + systemId_ = getDefaultInstance().getSystemId(); onChanged(); return this; } /** - * - * *
        * System identifier for which account the username or uid applies to.
        * By default, the empty value is used.
        * 
* * string system_id = 8; - * * @param value The bytes for systemId to set. * @return This builder for chaining. */ - public Builder setSystemIdBytes(com.google.protobuf.ByteString value) { + public Builder setSystemIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + systemId_ = value; onChanged(); return this; @@ -2179,20 +1961,18 @@ public Builder setSystemIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object accountId_ = ""; /** - * - * *
        * Output only. A POSIX account identifier.
        * 
* * string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The accountId. */ public java.lang.String getAccountId() { java.lang.Object ref = accountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; @@ -2201,21 +1981,20 @@ public java.lang.String getAccountId() { } } /** - * - * *
        * Output only. A POSIX account identifier.
        * 
* * string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for accountId. */ - public com.google.protobuf.ByteString getAccountIdBytes() { + public com.google.protobuf.ByteString + getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accountId_ = b; return b; } else { @@ -2223,61 +2002,54 @@ public com.google.protobuf.ByteString getAccountIdBytes() { } } /** - * - * *
        * Output only. A POSIX account identifier.
        * 
* * string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The accountId to set. * @return This builder for chaining. */ - public Builder setAccountId(java.lang.String value) { + public Builder setAccountId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + accountId_ = value; onChanged(); return this; } /** - * - * *
        * Output only. A POSIX account identifier.
        * 
* * string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearAccountId() { - + accountId_ = getDefaultInstance().getAccountId(); onChanged(); return this; } /** - * - * *
        * Output only. A POSIX account identifier.
        * 
* * string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for accountId to set. * @return This builder for chaining. */ - public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { + public Builder setAccountIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accountId_ = value; onChanged(); return this; @@ -2285,95 +2057,73 @@ public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { private int operatingSystemType_ = 0; /** - * - * *
        * The operating system type where this account applies.
        * 
* * .google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10; - * * @return The enum numeric value on the wire for operatingSystemType. */ - @java.lang.Override - public int getOperatingSystemTypeValue() { + @java.lang.Override public int getOperatingSystemTypeValue() { return operatingSystemType_; } /** - * - * *
        * The operating system type where this account applies.
        * 
* * .google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10; - * * @param value The enum numeric value on the wire for operatingSystemType to set. * @return This builder for chaining. */ public Builder setOperatingSystemTypeValue(int value) { - + operatingSystemType_ = value; onChanged(); return this; } /** - * - * *
        * The operating system type where this account applies.
        * 
* * .google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10; - * * @return The operatingSystemType. */ @java.lang.Override - public com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType - getOperatingSystemType() { + public com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType getOperatingSystemType() { @SuppressWarnings("deprecation") - com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType result = - com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType.valueOf( - operatingSystemType_); - return result == null - ? com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType.UNRECOGNIZED - : result; + com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType result = com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType.valueOf(operatingSystemType_); + return result == null ? com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType.UNRECOGNIZED : result; } /** - * - * *
        * The operating system type where this account applies.
        * 
* * .google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10; - * * @param value The operatingSystemType to set. * @return This builder for chaining. */ - public Builder setOperatingSystemType( - com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType value) { + public Builder setOperatingSystemType(com.google.cloud.oslogin.common.OsLoginProto.OperatingSystemType value) { if (value == null) { throw new NullPointerException(); } - + operatingSystemType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * The operating system type where this account applies.
        * 
* * .google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10; - * * @return This builder for chaining. */ public Builder clearOperatingSystemType() { - + operatingSystemType_ = 0; onChanged(); return this; @@ -2381,20 +2131,18 @@ public Builder clearOperatingSystemType() { private java.lang.Object name_ = ""; /** - * - * *
        * Output only. The canonical resource name.
        * 
* * string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2403,21 +2151,20 @@ public java.lang.String getName() { } } /** - * - * *
        * Output only. The canonical resource name.
        * 
* * string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2425,66 +2172,58 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Output only. The canonical resource name.
        * 
* * string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The canonical resource name.
        * 
* * string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Output only. The canonical resource name.
        * 
* * string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2497,12 +2236,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.oslogin.common.PosixAccount) } // @@protoc_insertion_point(class_scope:google.cloud.oslogin.common.PosixAccount) private static final com.google.cloud.oslogin.common.OsLoginProto.PosixAccount DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.oslogin.common.OsLoginProto.PosixAccount(); } @@ -2511,28 +2250,27 @@ public static com.google.cloud.oslogin.common.OsLoginProto.PosixAccount getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PosixAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PosixAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2547,16 +2285,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.oslogin.common.OsLoginProto.PosixAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SshPublicKeyOrBuilder - extends + public interface SshPublicKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.oslogin.common.SshPublicKey) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Public key text in SSH format, defined by
      * <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
@@ -2564,13 +2300,10 @@ public interface SshPublicKeyOrBuilder
      * 
* * string key = 1; - * * @return The key. */ java.lang.String getKey(); /** - * - * *
      * Public key text in SSH format, defined by
      * <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
@@ -2578,93 +2311,77 @@ public interface SshPublicKeyOrBuilder
      * 
* * string key = 1; - * * @return The bytes for key. */ - com.google.protobuf.ByteString getKeyBytes(); + com.google.protobuf.ByteString + getKeyBytes(); /** - * - * *
      * An expiration time in microseconds since epoch.
      * 
* * int64 expiration_time_usec = 2; - * * @return The expirationTimeUsec. */ long getExpirationTimeUsec(); /** - * - * *
      * Output only. The SHA-256 fingerprint of the SSH public key.
      * 
* * string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The fingerprint. */ java.lang.String getFingerprint(); /** - * - * *
      * Output only. The SHA-256 fingerprint of the SSH public key.
      * 
* * string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for fingerprint. */ - com.google.protobuf.ByteString getFingerprintBytes(); + com.google.protobuf.ByteString + getFingerprintBytes(); /** - * - * *
      * Output only. The canonical resource name.
      * 
* * string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Output only. The canonical resource name.
      * 
* * string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } /** - * - * *
    * The SSH public key information associated with a Google account.
    * 
* * Protobuf type {@code google.cloud.oslogin.common.SshPublicKey} */ - public static final class SshPublicKey extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SshPublicKey extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.oslogin.common.SshPublicKey) SshPublicKeyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SshPublicKey.newBuilder() to construct. private SshPublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SshPublicKey() { key_ = ""; fingerprint_ = ""; @@ -2673,35 +2390,32 @@ private SshPublicKey() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SshPublicKey(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oslogin.common.OsLoginProto - .internal_static_google_cloud_oslogin_common_SshPublicKey_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.common.OsLoginProto.internal_static_google_cloud_oslogin_common_SshPublicKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oslogin.common.OsLoginProto - .internal_static_google_cloud_oslogin_common_SshPublicKey_fieldAccessorTable + return com.google.cloud.oslogin.common.OsLoginProto.internal_static_google_cloud_oslogin_common_SshPublicKey_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.class, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder.class); + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.class, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** - * - * *
      * Public key text in SSH format, defined by
      * <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
@@ -2709,7 +2423,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string key = 1; - * * @return The key. */ @java.lang.Override @@ -2718,15 +2431,14 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** - * - * *
      * Public key text in SSH format, defined by
      * <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
@@ -2734,15 +2446,16 @@ public java.lang.String getKey() {
      * 
* * string key = 1; - * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -2753,14 +2466,11 @@ public com.google.protobuf.ByteString getKeyBytes() { public static final int EXPIRATION_TIME_USEC_FIELD_NUMBER = 2; private long expirationTimeUsec_; /** - * - * *
      * An expiration time in microseconds since epoch.
      * 
* * int64 expiration_time_usec = 2; - * * @return The expirationTimeUsec. */ @java.lang.Override @@ -2771,14 +2481,11 @@ public long getExpirationTimeUsec() { public static final int FINGERPRINT_FIELD_NUMBER = 3; private volatile java.lang.Object fingerprint_; /** - * - * *
      * Output only. The SHA-256 fingerprint of the SSH public key.
      * 
* * string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The fingerprint. */ @java.lang.Override @@ -2787,29 +2494,29 @@ public java.lang.String getFingerprint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fingerprint_ = s; return s; } } /** - * - * *
      * Output only. The SHA-256 fingerprint of the SSH public key.
      * 
* * string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for fingerprint. */ @java.lang.Override - public com.google.protobuf.ByteString getFingerprintBytes() { + public com.google.protobuf.ByteString + getFingerprintBytes() { java.lang.Object ref = fingerprint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fingerprint_ = b; return b; } else { @@ -2820,14 +2527,11 @@ public com.google.protobuf.ByteString getFingerprintBytes() { public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** - * - * *
      * Output only. The canonical resource name.
      * 
* * string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -2836,29 +2540,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Output only. The canonical resource name.
      * 
* * string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2867,7 +2571,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2879,7 +2582,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -2905,7 +2609,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (expirationTimeUsec_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, expirationTimeUsec_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, expirationTimeUsec_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fingerprint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fingerprint_); @@ -2921,18 +2626,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey)) { return super.equals(obj); } - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey other = - (com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey) obj; + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey other = (com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey) obj; - if (!getKey().equals(other.getKey())) return false; - if (getExpirationTimeUsec() != other.getExpirationTimeUsec()) return false; - if (!getFingerprint().equals(other.getFingerprint())) return false; - if (!getName().equals(other.getName())) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (getExpirationTimeUsec() + != other.getExpirationTimeUsec()) return false; + if (!getFingerprint() + .equals(other.getFingerprint())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2947,7 +2655,8 @@ public int hashCode() { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + EXPIRATION_TIME_USEC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getExpirationTimeUsec()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getExpirationTimeUsec()); hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER; hash = (53 * hash) + getFingerprint().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; @@ -2958,94 +2667,87 @@ public int hashCode() { } public static com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey prototype) { + public static Builder newBuilder(com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3055,41 +2757,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The SSH public key information associated with a Google account.
      * 
* * Protobuf type {@code google.cloud.oslogin.common.SshPublicKey} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.oslogin.common.SshPublicKey) com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oslogin.common.OsLoginProto - .internal_static_google_cloud_oslogin_common_SshPublicKey_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.common.OsLoginProto.internal_static_google_cloud_oslogin_common_SshPublicKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oslogin.common.OsLoginProto - .internal_static_google_cloud_oslogin_common_SshPublicKey_fieldAccessorTable + return com.google.cloud.oslogin.common.OsLoginProto.internal_static_google_cloud_oslogin_common_SshPublicKey_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.class, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder.class); + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.class, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder.class); } // Construct using com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3105,9 +2805,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.oslogin.common.OsLoginProto - .internal_static_google_cloud_oslogin_common_SshPublicKey_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.oslogin.common.OsLoginProto.internal_static_google_cloud_oslogin_common_SshPublicKey_descriptor; } @java.lang.Override @@ -3126,8 +2826,7 @@ public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey build() { @java.lang.Override public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey buildPartial() { - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey result = - new com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey(this); + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey result = new com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey(this); result.key_ = key_; result.expirationTimeUsec_ = expirationTimeUsec_; result.fingerprint_ = fingerprint_; @@ -3140,41 +2839,38 @@ public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey) { - return mergeFrom((com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey) other); + return mergeFrom((com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey)other); } else { super.mergeFrom(other); return this; @@ -3182,8 +2878,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey other) { - if (other == com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance()) - return this; + if (other == com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); @@ -3225,37 +2920,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - key_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - expirationTimeUsec_ = input.readInt64(); - - break; - } // case 16 - case 26: - { - fingerprint_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + key_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + expirationTimeUsec_ = input.readInt64(); + + break; + } // case 16 + case 26: { + fingerprint_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3268,8 +2958,6 @@ public Builder mergeFrom( private java.lang.Object key_ = ""; /** - * - * *
        * Public key text in SSH format, defined by
        * <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
@@ -3277,13 +2965,13 @@ public Builder mergeFrom(
        * 
* * string key = 1; - * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -3292,8 +2980,6 @@ public java.lang.String getKey() { } } /** - * - * *
        * Public key text in SSH format, defined by
        * <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
@@ -3301,14 +2987,15 @@ public java.lang.String getKey() {
        * 
* * string key = 1; - * * @return The bytes for key. */ - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -3316,8 +3003,6 @@ public com.google.protobuf.ByteString getKeyBytes() { } } /** - * - * *
        * Public key text in SSH format, defined by
        * <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
@@ -3325,22 +3010,20 @@ public com.google.protobuf.ByteString getKeyBytes() {
        * 
* * string key = 1; - * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey(java.lang.String value) { + public Builder setKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** - * - * *
        * Public key text in SSH format, defined by
        * <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
@@ -3348,18 +3031,15 @@ public Builder setKey(java.lang.String value) {
        * 
* * string key = 1; - * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** - * - * *
        * Public key text in SSH format, defined by
        * <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
@@ -3367,31 +3047,28 @@ public Builder clearKey() {
        * 
* * string key = 1; - * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; } - private long expirationTimeUsec_; + private long expirationTimeUsec_ ; /** - * - * *
        * An expiration time in microseconds since epoch.
        * 
* * int64 expiration_time_usec = 2; - * * @return The expirationTimeUsec. */ @java.lang.Override @@ -3399,36 +3076,30 @@ public long getExpirationTimeUsec() { return expirationTimeUsec_; } /** - * - * *
        * An expiration time in microseconds since epoch.
        * 
* * int64 expiration_time_usec = 2; - * * @param value The expirationTimeUsec to set. * @return This builder for chaining. */ public Builder setExpirationTimeUsec(long value) { - + expirationTimeUsec_ = value; onChanged(); return this; } /** - * - * *
        * An expiration time in microseconds since epoch.
        * 
* * int64 expiration_time_usec = 2; - * * @return This builder for chaining. */ public Builder clearExpirationTimeUsec() { - + expirationTimeUsec_ = 0L; onChanged(); return this; @@ -3436,20 +3107,18 @@ public Builder clearExpirationTimeUsec() { private java.lang.Object fingerprint_ = ""; /** - * - * *
        * Output only. The SHA-256 fingerprint of the SSH public key.
        * 
* * string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The fingerprint. */ public java.lang.String getFingerprint() { java.lang.Object ref = fingerprint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fingerprint_ = s; return s; @@ -3458,21 +3127,20 @@ public java.lang.String getFingerprint() { } } /** - * - * *
        * Output only. The SHA-256 fingerprint of the SSH public key.
        * 
* * string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for fingerprint. */ - public com.google.protobuf.ByteString getFingerprintBytes() { + public com.google.protobuf.ByteString + getFingerprintBytes() { java.lang.Object ref = fingerprint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fingerprint_ = b; return b; } else { @@ -3480,61 +3148,54 @@ public com.google.protobuf.ByteString getFingerprintBytes() { } } /** - * - * *
        * Output only. The SHA-256 fingerprint of the SSH public key.
        * 
* * string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The fingerprint to set. * @return This builder for chaining. */ - public Builder setFingerprint(java.lang.String value) { + public Builder setFingerprint( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fingerprint_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The SHA-256 fingerprint of the SSH public key.
        * 
* * string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearFingerprint() { - + fingerprint_ = getDefaultInstance().getFingerprint(); onChanged(); return this; } /** - * - * *
        * Output only. The SHA-256 fingerprint of the SSH public key.
        * 
* * string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for fingerprint to set. * @return This builder for chaining. */ - public Builder setFingerprintBytes(com.google.protobuf.ByteString value) { + public Builder setFingerprintBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fingerprint_ = value; onChanged(); return this; @@ -3542,20 +3203,18 @@ public Builder setFingerprintBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
        * Output only. The canonical resource name.
        * 
* * string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3564,21 +3223,20 @@ public java.lang.String getName() { } } /** - * - * *
        * Output only. The canonical resource name.
        * 
* * string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3586,66 +3244,58 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Output only. The canonical resource name.
        * 
* * string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The canonical resource name.
        * 
* * string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Output only. The canonical resource name.
        * 
* * string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3658,12 +3308,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.oslogin.common.SshPublicKey) } // @@protoc_insertion_point(class_scope:google.cloud.oslogin.common.SshPublicKey) private static final com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey(); } @@ -3672,28 +3322,27 @@ public static com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SshPublicKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SshPublicKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3708,92 +3357,80 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_oslogin_common_PosixAccount_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oslogin_common_PosixAccount_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_oslogin_common_PosixAccount_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_oslogin_common_SshPublicKey_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oslogin_common_SshPublicKey_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_oslogin_common_SshPublicKey_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { return descriptor; } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { java.lang.String[] descriptorData = { - "\n(google/cloud/oslogin/common/common.pro" - + "to\022\033google.cloud.oslogin.common\032\037google/" - + "api/field_behavior.proto\032\031google/api/res" - + "ource.proto\"\334\002\n\014PosixAccount\022\017\n\007primary\030" - + "\001 \001(\010\022\020\n\010username\030\002 \001(\t\022\013\n\003uid\030\003 \001(\003\022\013\n\003" - + "gid\030\004 \001(\003\022\026\n\016home_directory\030\005 \001(\t\022\r\n\005she" - + "ll\030\006 \001(\t\022\r\n\005gecos\030\007 \001(\t\022\021\n\tsystem_id\030\010 \001" - + "(\t\022\027\n\naccount_id\030\t \001(\tB\003\340A\003\022O\n\025operating" - + "_system_type\030\n \001(\01620.google.cloud.oslogi" - + "n.common.OperatingSystemType\022\021\n\004name\030\013 \001" - + "(\tB\003\340A\003:I\352AF\n#oslogin.googleapis.com/Pos" - + "ixAccount\022\037users/{user}/projects/{projec" - + "t}\"\272\001\n\014SshPublicKey\022\013\n\003key\030\001 \001(\t\022\034\n\024expi" - + "ration_time_usec\030\002 \001(\003\022\030\n\013fingerprint\030\003 " - + "\001(\tB\003\340A\003\022\021\n\004name\030\004 \001(\tB\003\340A\003:R\352AO\n#oslogi" - + "n.googleapis.com/SshPublicKey\022(users/{us" - + "er}/sshPublicKeys/{fingerprint}*T\n\023Opera" - + "tingSystemType\022%\n!OPERATING_SYSTEM_TYPE_" - + "UNSPECIFIED\020\000\022\t\n\005LINUX\020\001\022\013\n\007WINDOWS\020\002B\375\001" - + "\n\037com.google.cloud.oslogin.commonB\014OsLog" - + "inProtoZAgoogle.golang.org/genproto/goog" - + "leapis/cloud/oslogin/common;common\252\002\033Goo" - + "gle.Cloud.OsLogin.Common\312\002\033Google\\Cloud\\" - + "OsLogin\\Common\352\002\036Google::Cloud::OsLogin:" - + ":Common\352A+\n\033oslogin.googleapis.com/User\022" - + "\014users/{user}b\006proto3" + "\n(google/cloud/oslogin/common/common.pro" + + "to\022\033google.cloud.oslogin.common\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\"\334\002\n\014PosixAccount\022\017\n\007primary\030" + + "\001 \001(\010\022\020\n\010username\030\002 \001(\t\022\013\n\003uid\030\003 \001(\003\022\013\n\003" + + "gid\030\004 \001(\003\022\026\n\016home_directory\030\005 \001(\t\022\r\n\005she" + + "ll\030\006 \001(\t\022\r\n\005gecos\030\007 \001(\t\022\021\n\tsystem_id\030\010 \001" + + "(\t\022\027\n\naccount_id\030\t \001(\tB\003\340A\003\022O\n\025operating" + + "_system_type\030\n \001(\01620.google.cloud.oslogi" + + "n.common.OperatingSystemType\022\021\n\004name\030\013 \001" + + "(\tB\003\340A\003:I\352AF\n#oslogin.googleapis.com/Pos" + + "ixAccount\022\037users/{user}/projects/{projec" + + "t}\"\272\001\n\014SshPublicKey\022\013\n\003key\030\001 \001(\t\022\034\n\024expi" + + "ration_time_usec\030\002 \001(\003\022\030\n\013fingerprint\030\003 " + + "\001(\tB\003\340A\003\022\021\n\004name\030\004 \001(\tB\003\340A\003:R\352AO\n#oslogi" + + "n.googleapis.com/SshPublicKey\022(users/{us" + + "er}/sshPublicKeys/{fingerprint}*T\n\023Opera" + + "tingSystemType\022%\n!OPERATING_SYSTEM_TYPE_" + + "UNSPECIFIED\020\000\022\t\n\005LINUX\020\001\022\013\n\007WINDOWS\020\002B\375\001" + + "\n\037com.google.cloud.oslogin.commonB\014OsLog" + + "inProtoZAgoogle.golang.org/genproto/goog" + + "leapis/cloud/oslogin/common;common\252\002\033Goo" + + "gle.Cloud.OsLogin.Common\312\002\033Google\\Cloud\\" + + "OsLogin\\Common\352\002\036Google::Cloud::OsLogin:" + + ":Common\352A+\n\033oslogin.googleapis.com/User\022" + + "\014users/{user}b\006proto3" }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); internal_static_google_cloud_oslogin_common_PosixAccount_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_oslogin_common_PosixAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_oslogin_common_PosixAccount_descriptor, - new java.lang.String[] { - "Primary", - "Username", - "Uid", - "Gid", - "HomeDirectory", - "Shell", - "Gecos", - "SystemId", - "AccountId", - "OperatingSystemType", - "Name", - }); + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oslogin_common_PosixAccount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oslogin_common_PosixAccount_descriptor, + new java.lang.String[] { "Primary", "Username", "Uid", "Gid", "HomeDirectory", "Shell", "Gecos", "SystemId", "AccountId", "OperatingSystemType", "Name", }); internal_static_google_cloud_oslogin_common_SshPublicKey_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_oslogin_common_SshPublicKey_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_oslogin_common_SshPublicKey_descriptor, - new java.lang.String[] { - "Key", "ExpirationTimeUsec", "Fingerprint", "Name", - }); + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oslogin_common_SshPublicKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oslogin_common_SshPublicKey_descriptor, + new java.lang.String[] { "Key", "ExpirationTimeUsec", "Fingerprint", "Name", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); registry.add(com.google.api.ResourceProto.resourceDefinition); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); } diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/PosixAccountName.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/PosixAccountName.java similarity index 100% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/PosixAccountName.java rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/PosixAccountName.java diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/SshPublicKeyName.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/SshPublicKeyName.java similarity index 100% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/SshPublicKeyName.java rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/SshPublicKeyName.java diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/UserName.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/UserName.java similarity index 100% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/UserName.java rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/UserName.java diff --git a/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/CreateSshPublicKeyRequest.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/CreateSshPublicKeyRequest.java new file mode 100644 index 000000000000..92a5b70f670a --- /dev/null +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/CreateSshPublicKeyRequest.java @@ -0,0 +1,804 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oslogin/v1/oslogin.proto + +package com.google.cloud.oslogin.v1; + +/** + *
+ * A request message for creating an SSH public key.
+ * 
+ * + * Protobuf type {@code google.cloud.oslogin.v1.CreateSshPublicKeyRequest} + */ +public final class CreateSshPublicKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.oslogin.v1.CreateSshPublicKeyRequest) + CreateSshPublicKeyRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateSshPublicKeyRequest.newBuilder() to construct. + private CreateSshPublicKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateSshPublicKeyRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateSshPublicKeyRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_CreateSshPublicKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_CreateSshPublicKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest.class, com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Required. The unique ID for the user in format `users/{user}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. The unique ID for the user in format `users/{user}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SSH_PUBLIC_KEY_FIELD_NUMBER = 2; + private com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey sshPublicKey_; + /** + *
+   * Required. The SSH public key and expiration time.
+   * 
+ * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the sshPublicKey field is set. + */ + @java.lang.Override + public boolean hasSshPublicKey() { + return sshPublicKey_ != null; + } + /** + *
+   * Required. The SSH public key and expiration time.
+   * 
+ * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The sshPublicKey. + */ + @java.lang.Override + public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKey() { + return sshPublicKey_ == null ? com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance() : sshPublicKey_; + } + /** + *
+   * Required. The SSH public key and expiration time.
+   * 
+ * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder getSshPublicKeyOrBuilder() { + return getSshPublicKey(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (sshPublicKey_ != null) { + output.writeMessage(2, getSshPublicKey()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (sshPublicKey_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSshPublicKey()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest)) { + return super.equals(obj); + } + com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest other = (com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (hasSshPublicKey() != other.hasSshPublicKey()) return false; + if (hasSshPublicKey()) { + if (!getSshPublicKey() + .equals(other.getSshPublicKey())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasSshPublicKey()) { + hash = (37 * hash) + SSH_PUBLIC_KEY_FIELD_NUMBER; + hash = (53 * hash) + getSshPublicKey().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A request message for creating an SSH public key.
+   * 
+ * + * Protobuf type {@code google.cloud.oslogin.v1.CreateSshPublicKeyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.oslogin.v1.CreateSshPublicKeyRequest) + com.google.cloud.oslogin.v1.CreateSshPublicKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_CreateSshPublicKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_CreateSshPublicKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest.class, com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest.Builder.class); + } + + // Construct using com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (sshPublicKeyBuilder_ == null) { + sshPublicKey_ = null; + } else { + sshPublicKey_ = null; + sshPublicKeyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_CreateSshPublicKeyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest getDefaultInstanceForType() { + return com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest build() { + com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest buildPartial() { + com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest result = new com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest(this); + result.parent_ = parent_; + if (sshPublicKeyBuilder_ == null) { + result.sshPublicKey_ = sshPublicKey_; + } else { + result.sshPublicKey_ = sshPublicKeyBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest) { + return mergeFrom((com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest other) { + if (other == com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasSshPublicKey()) { + mergeSshPublicKey(other.getSshPublicKey()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getSshPublicKeyFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The unique ID for the user in format `users/{user}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The unique ID for the user in format `users/{user}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The unique ID for the user in format `users/{user}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The unique ID for the user in format `users/{user}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * Required. The unique ID for the user in format `users/{user}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey sshPublicKey_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder> sshPublicKeyBuilder_; + /** + *
+     * Required. The SSH public key and expiration time.
+     * 
+ * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the sshPublicKey field is set. + */ + public boolean hasSshPublicKey() { + return sshPublicKeyBuilder_ != null || sshPublicKey_ != null; + } + /** + *
+     * Required. The SSH public key and expiration time.
+     * 
+ * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The sshPublicKey. + */ + public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKey() { + if (sshPublicKeyBuilder_ == null) { + return sshPublicKey_ == null ? com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance() : sshPublicKey_; + } else { + return sshPublicKeyBuilder_.getMessage(); + } + } + /** + *
+     * Required. The SSH public key and expiration time.
+     * 
+ * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSshPublicKey(com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey value) { + if (sshPublicKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sshPublicKey_ = value; + onChanged(); + } else { + sshPublicKeyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. The SSH public key and expiration time.
+     * 
+ * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSshPublicKey( + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder builderForValue) { + if (sshPublicKeyBuilder_ == null) { + sshPublicKey_ = builderForValue.build(); + onChanged(); + } else { + sshPublicKeyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. The SSH public key and expiration time.
+     * 
+ * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeSshPublicKey(com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey value) { + if (sshPublicKeyBuilder_ == null) { + if (sshPublicKey_ != null) { + sshPublicKey_ = + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.newBuilder(sshPublicKey_).mergeFrom(value).buildPartial(); + } else { + sshPublicKey_ = value; + } + onChanged(); + } else { + sshPublicKeyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. The SSH public key and expiration time.
+     * 
+ * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearSshPublicKey() { + if (sshPublicKeyBuilder_ == null) { + sshPublicKey_ = null; + onChanged(); + } else { + sshPublicKey_ = null; + sshPublicKeyBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. The SSH public key and expiration time.
+     * 
+ * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder getSshPublicKeyBuilder() { + + onChanged(); + return getSshPublicKeyFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The SSH public key and expiration time.
+     * 
+ * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder getSshPublicKeyOrBuilder() { + if (sshPublicKeyBuilder_ != null) { + return sshPublicKeyBuilder_.getMessageOrBuilder(); + } else { + return sshPublicKey_ == null ? + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance() : sshPublicKey_; + } + } + /** + *
+     * Required. The SSH public key and expiration time.
+     * 
+ * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder> + getSshPublicKeyFieldBuilder() { + if (sshPublicKeyBuilder_ == null) { + sshPublicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder>( + getSshPublicKey(), + getParentForChildren(), + isClean()); + sshPublicKey_ = null; + } + return sshPublicKeyBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.oslogin.v1.CreateSshPublicKeyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.CreateSshPublicKeyRequest) + private static final com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest(); + } + + public static com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSshPublicKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/CreateSshPublicKeyRequestOrBuilder.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/CreateSshPublicKeyRequestOrBuilder.java new file mode 100644 index 000000000000..935b03b989e6 --- /dev/null +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/CreateSshPublicKeyRequestOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oslogin/v1/oslogin.proto + +package com.google.cloud.oslogin.v1; + +public interface CreateSshPublicKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.oslogin.v1.CreateSshPublicKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The unique ID for the user in format `users/{user}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The unique ID for the user in format `users/{user}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The SSH public key and expiration time.
+   * 
+ * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the sshPublicKey field is set. + */ + boolean hasSshPublicKey(); + /** + *
+   * Required. The SSH public key and expiration time.
+   * 
+ * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The sshPublicKey. + */ + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKey(); + /** + *
+   * Required. The SSH public key and expiration time.
+   * 
+ * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder getSshPublicKeyOrBuilder(); +} diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeletePosixAccountRequest.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeletePosixAccountRequest.java similarity index 63% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeletePosixAccountRequest.java rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeletePosixAccountRequest.java index e2998ba4f544..2a9174db4f9b 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeletePosixAccountRequest.java +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeletePosixAccountRequest.java @@ -1,87 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/oslogin/v1/oslogin.proto package com.google.cloud.oslogin.v1; /** - * - * *
  * A request message for deleting a POSIX account entry.
  * 
* * Protobuf type {@code google.cloud.oslogin.v1.DeletePosixAccountRequest} */ -public final class DeletePosixAccountRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeletePosixAccountRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.oslogin.v1.DeletePosixAccountRequest) DeletePosixAccountRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeletePosixAccountRequest.newBuilder() to construct. private DeletePosixAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeletePosixAccountRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeletePosixAccountRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_fieldAccessorTable + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oslogin.v1.DeletePosixAccountRequest.class, - com.google.cloud.oslogin.v1.DeletePosixAccountRequest.Builder.class); + com.google.cloud.oslogin.v1.DeletePosixAccountRequest.class, com.google.cloud.oslogin.v1.DeletePosixAccountRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. A reference to the POSIX account to update. POSIX accounts are identified
    * by the project ID they are associated with. A reference to the POSIX
    * account is in format `users/{user}/projects/{project}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,33 +66,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A reference to the POSIX account to update. POSIX accounts are identified
    * by the project ID they are associated with. A reference to the POSIX
    * account is in format `users/{user}/projects/{project}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -161,15 +135,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.oslogin.v1.DeletePosixAccountRequest)) { return super.equals(obj); } - com.google.cloud.oslogin.v1.DeletePosixAccountRequest other = - (com.google.cloud.oslogin.v1.DeletePosixAccountRequest) obj; + com.google.cloud.oslogin.v1.DeletePosixAccountRequest other = (com.google.cloud.oslogin.v1.DeletePosixAccountRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,136 +163,129 @@ public int hashCode() { } public static com.google.cloud.oslogin.v1.DeletePosixAccountRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.DeletePosixAccountRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.v1.DeletePosixAccountRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.DeletePosixAccountRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.v1.DeletePosixAccountRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.DeletePosixAccountRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.oslogin.v1.DeletePosixAccountRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.oslogin.v1.DeletePosixAccountRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.DeletePosixAccountRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.oslogin.v1.DeletePosixAccountRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.oslogin.v1.DeletePosixAccountRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.DeletePosixAccountRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.oslogin.v1.DeletePosixAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.DeletePosixAccountRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.oslogin.v1.DeletePosixAccountRequest prototype) { + public static Builder newBuilder(com.google.cloud.oslogin.v1.DeletePosixAccountRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A request message for deleting a POSIX account entry.
    * 
* * Protobuf type {@code google.cloud.oslogin.v1.DeletePosixAccountRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.oslogin.v1.DeletePosixAccountRequest) com.google.cloud.oslogin.v1.DeletePosixAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_fieldAccessorTable + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oslogin.v1.DeletePosixAccountRequest.class, - com.google.cloud.oslogin.v1.DeletePosixAccountRequest.Builder.class); + com.google.cloud.oslogin.v1.DeletePosixAccountRequest.class, com.google.cloud.oslogin.v1.DeletePosixAccountRequest.Builder.class); } // Construct using com.google.cloud.oslogin.v1.DeletePosixAccountRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,9 +295,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_descriptor; } @java.lang.Override @@ -349,8 +316,7 @@ public com.google.cloud.oslogin.v1.DeletePosixAccountRequest build() { @java.lang.Override public com.google.cloud.oslogin.v1.DeletePosixAccountRequest buildPartial() { - com.google.cloud.oslogin.v1.DeletePosixAccountRequest result = - new com.google.cloud.oslogin.v1.DeletePosixAccountRequest(this); + com.google.cloud.oslogin.v1.DeletePosixAccountRequest result = new com.google.cloud.oslogin.v1.DeletePosixAccountRequest(this); result.name_ = name_; onBuilt(); return result; @@ -360,39 +326,38 @@ public com.google.cloud.oslogin.v1.DeletePosixAccountRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.oslogin.v1.DeletePosixAccountRequest) { - return mergeFrom((com.google.cloud.oslogin.v1.DeletePosixAccountRequest) other); + return mergeFrom((com.google.cloud.oslogin.v1.DeletePosixAccountRequest)other); } else { super.mergeFrom(other); return this; @@ -400,8 +365,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.oslogin.v1.DeletePosixAccountRequest other) { - if (other == com.google.cloud.oslogin.v1.DeletePosixAccountRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.oslogin.v1.DeletePosixAccountRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -432,19 +396,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -457,24 +419,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. A reference to the POSIX account to update. POSIX accounts are identified
      * by the project ID they are associated with. A reference to the POSIX
      * account is in format `users/{user}/projects/{project}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -483,25 +441,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A reference to the POSIX account to update. POSIX accounts are identified
      * by the project ID they are associated with. A reference to the POSIX
      * account is in format `users/{user}/projects/{project}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -509,80 +464,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A reference to the POSIX account to update. POSIX accounts are identified
      * by the project ID they are associated with. A reference to the POSIX
      * account is in format `users/{user}/projects/{project}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. A reference to the POSIX account to update. POSIX accounts are identified
      * by the project ID they are associated with. A reference to the POSIX
      * account is in format `users/{user}/projects/{project}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. A reference to the POSIX account to update. POSIX accounts are identified
      * by the project ID they are associated with. A reference to the POSIX
      * account is in format `users/{user}/projects/{project}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +534,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.oslogin.v1.DeletePosixAccountRequest) } // @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.DeletePosixAccountRequest) private static final com.google.cloud.oslogin.v1.DeletePosixAccountRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.oslogin.v1.DeletePosixAccountRequest(); } @@ -606,27 +548,27 @@ public static com.google.cloud.oslogin.v1.DeletePosixAccountRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePosixAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePosixAccountRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +583,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.oslogin.v1.DeletePosixAccountRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeletePosixAccountRequestOrBuilder.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeletePosixAccountRequestOrBuilder.java new file mode 100644 index 000000000000..b20e0942473c --- /dev/null +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeletePosixAccountRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oslogin/v1/oslogin.proto + +package com.google.cloud.oslogin.v1; + +public interface DeletePosixAccountRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.oslogin.v1.DeletePosixAccountRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A reference to the POSIX account to update. POSIX accounts are identified
+   * by the project ID they are associated with. A reference to the POSIX
+   * account is in format `users/{user}/projects/{project}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A reference to the POSIX account to update. POSIX accounts are identified
+   * by the project ID they are associated with. A reference to the POSIX
+   * account is in format `users/{user}/projects/{project}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeleteSshPublicKeyRequest.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeleteSshPublicKeyRequest.java similarity index 63% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeleteSshPublicKeyRequest.java rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeleteSshPublicKeyRequest.java index 76273d1bc3a7..9e836272dccd 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeleteSshPublicKeyRequest.java +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeleteSshPublicKeyRequest.java @@ -1,87 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/oslogin/v1/oslogin.proto package com.google.cloud.oslogin.v1; /** - * - * *
  * A request message for deleting an SSH public key.
  * 
* * Protobuf type {@code google.cloud.oslogin.v1.DeleteSshPublicKeyRequest} */ -public final class DeleteSshPublicKeyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteSshPublicKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) DeleteSshPublicKeyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteSshPublicKeyRequest.newBuilder() to construct. private DeleteSshPublicKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteSshPublicKeyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSshPublicKeyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_fieldAccessorTable + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.class, - com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.Builder.class); + com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.class, com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The fingerprint of the public key to update. Public keys are identified by
    * their SHA-256 fingerprint. The fingerprint of the public key is in format
    * `users/{user}/sshPublicKeys/{fingerprint}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,33 +66,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The fingerprint of the public key to update. Public keys are identified by
    * their SHA-256 fingerprint. The fingerprint of the public key is in format
    * `users/{user}/sshPublicKeys/{fingerprint}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -161,15 +135,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest)) { return super.equals(obj); } - com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest other = - (com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) obj; + com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest other = (com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,136 +163,129 @@ public int hashCode() { } public static com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest prototype) { + public static Builder newBuilder(com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A request message for deleting an SSH public key.
    * 
* * Protobuf type {@code google.cloud.oslogin.v1.DeleteSshPublicKeyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_fieldAccessorTable + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.class, - com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.Builder.class); + com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.class, com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.Builder.class); } // Construct using com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,9 +295,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_descriptor; } @java.lang.Override @@ -349,8 +316,7 @@ public com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest build() { @java.lang.Override public com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest buildPartial() { - com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest result = - new com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest(this); + com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest result = new com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -360,39 +326,38 @@ public com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) { - return mergeFrom((com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) other); + return mergeFrom((com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest)other); } else { super.mergeFrom(other); return this; @@ -400,8 +365,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest other) { - if (other == com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -432,19 +396,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -457,24 +419,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The fingerprint of the public key to update. Public keys are identified by
      * their SHA-256 fingerprint. The fingerprint of the public key is in format
      * `users/{user}/sshPublicKeys/{fingerprint}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -483,25 +441,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The fingerprint of the public key to update. Public keys are identified by
      * their SHA-256 fingerprint. The fingerprint of the public key is in format
      * `users/{user}/sshPublicKeys/{fingerprint}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -509,80 +464,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The fingerprint of the public key to update. Public keys are identified by
      * their SHA-256 fingerprint. The fingerprint of the public key is in format
      * `users/{user}/sshPublicKeys/{fingerprint}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The fingerprint of the public key to update. Public keys are identified by
      * their SHA-256 fingerprint. The fingerprint of the public key is in format
      * `users/{user}/sshPublicKeys/{fingerprint}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The fingerprint of the public key to update. Public keys are identified by
      * their SHA-256 fingerprint. The fingerprint of the public key is in format
      * `users/{user}/sshPublicKeys/{fingerprint}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +534,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) private static final com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest(); } @@ -606,27 +548,27 @@ public static com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSshPublicKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSshPublicKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +583,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeleteSshPublicKeyRequestOrBuilder.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeleteSshPublicKeyRequestOrBuilder.java new file mode 100644 index 000000000000..f6377f4c4a2e --- /dev/null +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeleteSshPublicKeyRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oslogin/v1/oslogin.proto + +package com.google.cloud.oslogin.v1; + +public interface DeleteSshPublicKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The fingerprint of the public key to update. Public keys are identified by
+   * their SHA-256 fingerprint. The fingerprint of the public key is in format
+   * `users/{user}/sshPublicKeys/{fingerprint}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The fingerprint of the public key to update. Public keys are identified by
+   * their SHA-256 fingerprint. The fingerprint of the public key is in format
+   * `users/{user}/sshPublicKeys/{fingerprint}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetLoginProfileRequest.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetLoginProfileRequest.java similarity index 65% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetLoginProfileRequest.java rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetLoginProfileRequest.java index a15b0ef24a2c..aa69073227e1 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetLoginProfileRequest.java +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetLoginProfileRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/oslogin/v1/oslogin.proto package com.google.cloud.oslogin.v1; /** - * - * *
  * A request message for retrieving the login profile information for a user.
  * 
* * Protobuf type {@code google.cloud.oslogin.v1.GetLoginProfileRequest} */ -public final class GetLoginProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetLoginProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.oslogin.v1.GetLoginProfileRequest) GetLoginProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetLoginProfileRequest.newBuilder() to construct. private GetLoginProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetLoginProfileRequest() { name_ = ""; projectId_ = ""; @@ -45,43 +27,37 @@ private GetLoginProfileRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetLoginProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_fieldAccessorTable + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oslogin.v1.GetLoginProfileRequest.class, - com.google.cloud.oslogin.v1.GetLoginProfileRequest.Builder.class); + com.google.cloud.oslogin.v1.GetLoginProfileRequest.class, com.google.cloud.oslogin.v1.GetLoginProfileRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The unique ID for the user in format `users/{user}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,31 +66,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The unique ID for the user in format `users/{user}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,14 +99,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** - * - * *
    * The project ID of the Google Cloud Platform project.
    * 
* * string project_id = 2; - * * @return The projectId. */ @java.lang.Override @@ -141,29 +112,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * The project ID of the Google Cloud Platform project.
    * 
* * string project_id = 2; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -174,14 +145,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int SYSTEM_ID_FIELD_NUMBER = 3; private volatile java.lang.Object systemId_; /** - * - * *
    * A system ID for filtering the results of the request.
    * 
* * string system_id = 3; - * * @return The systemId. */ @java.lang.Override @@ -190,29 +158,29 @@ public java.lang.String getSystemId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); systemId_ = s; return s; } } /** - * - * *
    * A system ID for filtering the results of the request.
    * 
* * string system_id = 3; - * * @return The bytes for systemId. */ @java.lang.Override - public com.google.protobuf.ByteString getSystemIdBytes() { + public com.google.protobuf.ByteString + getSystemIdBytes() { java.lang.Object ref = systemId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); systemId_ = b; return b; } else { @@ -221,7 +189,6 @@ public com.google.protobuf.ByteString getSystemIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -269,17 +237,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.oslogin.v1.GetLoginProfileRequest)) { return super.equals(obj); } - com.google.cloud.oslogin.v1.GetLoginProfileRequest other = - (com.google.cloud.oslogin.v1.GetLoginProfileRequest) obj; + com.google.cloud.oslogin.v1.GetLoginProfileRequest other = (com.google.cloud.oslogin.v1.GetLoginProfileRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getSystemId().equals(other.getSystemId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getSystemId() + .equals(other.getSystemId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -303,135 +273,129 @@ public int hashCode() { } public static com.google.cloud.oslogin.v1.GetLoginProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.GetLoginProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.v1.GetLoginProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.GetLoginProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.v1.GetLoginProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.GetLoginProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.oslogin.v1.GetLoginProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.oslogin.v1.GetLoginProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.GetLoginProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.oslogin.v1.GetLoginProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.oslogin.v1.GetLoginProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.GetLoginProfileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.oslogin.v1.GetLoginProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.GetLoginProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.oslogin.v1.GetLoginProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A request message for retrieving the login profile information for a user.
    * 
* * Protobuf type {@code google.cloud.oslogin.v1.GetLoginProfileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.oslogin.v1.GetLoginProfileRequest) com.google.cloud.oslogin.v1.GetLoginProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_fieldAccessorTable + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oslogin.v1.GetLoginProfileRequest.class, - com.google.cloud.oslogin.v1.GetLoginProfileRequest.Builder.class); + com.google.cloud.oslogin.v1.GetLoginProfileRequest.class, com.google.cloud.oslogin.v1.GetLoginProfileRequest.Builder.class); } // Construct using com.google.cloud.oslogin.v1.GetLoginProfileRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_descriptor; } @java.lang.Override @@ -466,8 +430,7 @@ public com.google.cloud.oslogin.v1.GetLoginProfileRequest build() { @java.lang.Override public com.google.cloud.oslogin.v1.GetLoginProfileRequest buildPartial() { - com.google.cloud.oslogin.v1.GetLoginProfileRequest result = - new com.google.cloud.oslogin.v1.GetLoginProfileRequest(this); + com.google.cloud.oslogin.v1.GetLoginProfileRequest result = new com.google.cloud.oslogin.v1.GetLoginProfileRequest(this); result.name_ = name_; result.projectId_ = projectId_; result.systemId_ = systemId_; @@ -479,39 +442,38 @@ public com.google.cloud.oslogin.v1.GetLoginProfileRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.oslogin.v1.GetLoginProfileRequest) { - return mergeFrom((com.google.cloud.oslogin.v1.GetLoginProfileRequest) other); + return mergeFrom((com.google.cloud.oslogin.v1.GetLoginProfileRequest)other); } else { super.mergeFrom(other); return this; @@ -519,8 +481,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.oslogin.v1.GetLoginProfileRequest other) { - if (other == com.google.cloud.oslogin.v1.GetLoginProfileRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.oslogin.v1.GetLoginProfileRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -559,31 +520,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - systemId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + systemId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -596,22 +553,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The unique ID for the user in format `users/{user}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -620,23 +573,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The unique ID for the user in format `users/{user}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -644,67 +594,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The unique ID for the user in format `users/{user}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The unique ID for the user in format `users/{user}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The unique ID for the user in format `users/{user}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -712,20 +649,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * *
      * The project ID of the Google Cloud Platform project.
      * 
* * string project_id = 2; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -734,21 +669,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * The project ID of the Google Cloud Platform project.
      * 
* * string project_id = 2; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -756,61 +690,54 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * The project ID of the Google Cloud Platform project.
      * 
* * string project_id = 2; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * The project ID of the Google Cloud Platform project.
      * 
* * string project_id = 2; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * The project ID of the Google Cloud Platform project.
      * 
* * string project_id = 2; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -818,20 +745,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object systemId_ = ""; /** - * - * *
      * A system ID for filtering the results of the request.
      * 
* * string system_id = 3; - * * @return The systemId. */ public java.lang.String getSystemId() { java.lang.Object ref = systemId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); systemId_ = s; return s; @@ -840,21 +765,20 @@ public java.lang.String getSystemId() { } } /** - * - * *
      * A system ID for filtering the results of the request.
      * 
* * string system_id = 3; - * * @return The bytes for systemId. */ - public com.google.protobuf.ByteString getSystemIdBytes() { + public com.google.protobuf.ByteString + getSystemIdBytes() { java.lang.Object ref = systemId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); systemId_ = b; return b; } else { @@ -862,68 +786,61 @@ public com.google.protobuf.ByteString getSystemIdBytes() { } } /** - * - * *
      * A system ID for filtering the results of the request.
      * 
* * string system_id = 3; - * * @param value The systemId to set. * @return This builder for chaining. */ - public Builder setSystemId(java.lang.String value) { + public Builder setSystemId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + systemId_ = value; onChanged(); return this; } /** - * - * *
      * A system ID for filtering the results of the request.
      * 
* * string system_id = 3; - * * @return This builder for chaining. */ public Builder clearSystemId() { - + systemId_ = getDefaultInstance().getSystemId(); onChanged(); return this; } /** - * - * *
      * A system ID for filtering the results of the request.
      * 
* * string system_id = 3; - * * @param value The bytes for systemId to set. * @return This builder for chaining. */ - public Builder setSystemIdBytes(com.google.protobuf.ByteString value) { + public Builder setSystemIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + systemId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -933,12 +850,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.oslogin.v1.GetLoginProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.GetLoginProfileRequest) private static final com.google.cloud.oslogin.v1.GetLoginProfileRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.oslogin.v1.GetLoginProfileRequest(); } @@ -947,27 +864,27 @@ public static com.google.cloud.oslogin.v1.GetLoginProfileRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLoginProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLoginProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -982,4 +899,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.oslogin.v1.GetLoginProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetLoginProfileRequestOrBuilder.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetLoginProfileRequestOrBuilder.java similarity index 53% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetLoginProfileRequestOrBuilder.java rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetLoginProfileRequestOrBuilder.java index 583f759548f0..72ef68d275ee 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetLoginProfileRequestOrBuilder.java +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetLoginProfileRequestOrBuilder.java @@ -1,104 +1,69 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/oslogin/v1/oslogin.proto package com.google.cloud.oslogin.v1; -public interface GetLoginProfileRequestOrBuilder - extends +public interface GetLoginProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.oslogin.v1.GetLoginProfileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The unique ID for the user in format `users/{user}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The unique ID for the user in format `users/{user}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The project ID of the Google Cloud Platform project.
    * 
* * string project_id = 2; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * The project ID of the Google Cloud Platform project.
    * 
* * string project_id = 2; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * A system ID for filtering the results of the request.
    * 
* * string system_id = 3; - * * @return The systemId. */ java.lang.String getSystemId(); /** - * - * *
    * A system ID for filtering the results of the request.
    * 
* * string system_id = 3; - * * @return The bytes for systemId. */ - com.google.protobuf.ByteString getSystemIdBytes(); + com.google.protobuf.ByteString + getSystemIdBytes(); } diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetSshPublicKeyRequest.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetSshPublicKeyRequest.java similarity index 63% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetSshPublicKeyRequest.java rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetSshPublicKeyRequest.java index e03184918d95..c23e4ffe2d68 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetSshPublicKeyRequest.java +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetSshPublicKeyRequest.java @@ -1,87 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/oslogin/v1/oslogin.proto package com.google.cloud.oslogin.v1; /** - * - * *
  * A request message for retrieving an SSH public key.
  * 
* * Protobuf type {@code google.cloud.oslogin.v1.GetSshPublicKeyRequest} */ -public final class GetSshPublicKeyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSshPublicKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.oslogin.v1.GetSshPublicKeyRequest) GetSshPublicKeyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSshPublicKeyRequest.newBuilder() to construct. private GetSshPublicKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSshPublicKeyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSshPublicKeyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_fieldAccessorTable + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oslogin.v1.GetSshPublicKeyRequest.class, - com.google.cloud.oslogin.v1.GetSshPublicKeyRequest.Builder.class); + com.google.cloud.oslogin.v1.GetSshPublicKeyRequest.class, com.google.cloud.oslogin.v1.GetSshPublicKeyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The fingerprint of the public key to retrieve. Public keys are identified
    * by their SHA-256 fingerprint. The fingerprint of the public key is in
    * format `users/{user}/sshPublicKeys/{fingerprint}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,33 +66,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The fingerprint of the public key to retrieve. Public keys are identified
    * by their SHA-256 fingerprint. The fingerprint of the public key is in
    * format `users/{user}/sshPublicKeys/{fingerprint}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -161,15 +135,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.oslogin.v1.GetSshPublicKeyRequest)) { return super.equals(obj); } - com.google.cloud.oslogin.v1.GetSshPublicKeyRequest other = - (com.google.cloud.oslogin.v1.GetSshPublicKeyRequest) obj; + com.google.cloud.oslogin.v1.GetSshPublicKeyRequest other = (com.google.cloud.oslogin.v1.GetSshPublicKeyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,135 +163,129 @@ public int hashCode() { } public static com.google.cloud.oslogin.v1.GetSshPublicKeyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.GetSshPublicKeyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.v1.GetSshPublicKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.GetSshPublicKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.v1.GetSshPublicKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.GetSshPublicKeyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.oslogin.v1.GetSshPublicKeyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.oslogin.v1.GetSshPublicKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.GetSshPublicKeyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.oslogin.v1.GetSshPublicKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.oslogin.v1.GetSshPublicKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.GetSshPublicKeyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.oslogin.v1.GetSshPublicKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.GetSshPublicKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.oslogin.v1.GetSshPublicKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A request message for retrieving an SSH public key.
    * 
* * Protobuf type {@code google.cloud.oslogin.v1.GetSshPublicKeyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.oslogin.v1.GetSshPublicKeyRequest) com.google.cloud.oslogin.v1.GetSshPublicKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_fieldAccessorTable + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oslogin.v1.GetSshPublicKeyRequest.class, - com.google.cloud.oslogin.v1.GetSshPublicKeyRequest.Builder.class); + com.google.cloud.oslogin.v1.GetSshPublicKeyRequest.class, com.google.cloud.oslogin.v1.GetSshPublicKeyRequest.Builder.class); } // Construct using com.google.cloud.oslogin.v1.GetSshPublicKeyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -327,9 +295,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_descriptor; } @java.lang.Override @@ -348,8 +316,7 @@ public com.google.cloud.oslogin.v1.GetSshPublicKeyRequest build() { @java.lang.Override public com.google.cloud.oslogin.v1.GetSshPublicKeyRequest buildPartial() { - com.google.cloud.oslogin.v1.GetSshPublicKeyRequest result = - new com.google.cloud.oslogin.v1.GetSshPublicKeyRequest(this); + com.google.cloud.oslogin.v1.GetSshPublicKeyRequest result = new com.google.cloud.oslogin.v1.GetSshPublicKeyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -359,39 +326,38 @@ public com.google.cloud.oslogin.v1.GetSshPublicKeyRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.oslogin.v1.GetSshPublicKeyRequest) { - return mergeFrom((com.google.cloud.oslogin.v1.GetSshPublicKeyRequest) other); + return mergeFrom((com.google.cloud.oslogin.v1.GetSshPublicKeyRequest)other); } else { super.mergeFrom(other); return this; @@ -399,8 +365,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.oslogin.v1.GetSshPublicKeyRequest other) { - if (other == com.google.cloud.oslogin.v1.GetSshPublicKeyRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.oslogin.v1.GetSshPublicKeyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -431,19 +396,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -456,24 +419,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The fingerprint of the public key to retrieve. Public keys are identified
      * by their SHA-256 fingerprint. The fingerprint of the public key is in
      * format `users/{user}/sshPublicKeys/{fingerprint}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -482,25 +441,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The fingerprint of the public key to retrieve. Public keys are identified
      * by their SHA-256 fingerprint. The fingerprint of the public key is in
      * format `users/{user}/sshPublicKeys/{fingerprint}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -508,80 +464,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The fingerprint of the public key to retrieve. Public keys are identified
      * by their SHA-256 fingerprint. The fingerprint of the public key is in
      * format `users/{user}/sshPublicKeys/{fingerprint}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The fingerprint of the public key to retrieve. Public keys are identified
      * by their SHA-256 fingerprint. The fingerprint of the public key is in
      * format `users/{user}/sshPublicKeys/{fingerprint}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The fingerprint of the public key to retrieve. Public keys are identified
      * by their SHA-256 fingerprint. The fingerprint of the public key is in
      * format `users/{user}/sshPublicKeys/{fingerprint}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -591,12 +534,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.oslogin.v1.GetSshPublicKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.GetSshPublicKeyRequest) private static final com.google.cloud.oslogin.v1.GetSshPublicKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.oslogin.v1.GetSshPublicKeyRequest(); } @@ -605,27 +548,27 @@ public static com.google.cloud.oslogin.v1.GetSshPublicKeyRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSshPublicKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSshPublicKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,4 +583,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.oslogin.v1.GetSshPublicKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetSshPublicKeyRequestOrBuilder.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetSshPublicKeyRequestOrBuilder.java new file mode 100644 index 000000000000..d52ce1891320 --- /dev/null +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/GetSshPublicKeyRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oslogin/v1/oslogin.proto + +package com.google.cloud.oslogin.v1; + +public interface GetSshPublicKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.oslogin.v1.GetSshPublicKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The fingerprint of the public key to retrieve. Public keys are identified
+   * by their SHA-256 fingerprint. The fingerprint of the public key is in
+   * format `users/{user}/sshPublicKeys/{fingerprint}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The fingerprint of the public key to retrieve. Public keys are identified
+   * by their SHA-256 fingerprint. The fingerprint of the public key is in
+   * format `users/{user}/sshPublicKeys/{fingerprint}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyRequest.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyRequest.java similarity index 62% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyRequest.java rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyRequest.java index 0255eb41c7ae..ea1020bc2dd5 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyRequest.java +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/oslogin/v1/oslogin.proto package com.google.cloud.oslogin.v1; /** - * - * *
  * A request message for importing an SSH public key.
  * 
* * Protobuf type {@code google.cloud.oslogin.v1.ImportSshPublicKeyRequest} */ -public final class ImportSshPublicKeyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportSshPublicKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.oslogin.v1.ImportSshPublicKeyRequest) ImportSshPublicKeyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportSshPublicKeyRequest.newBuilder() to construct. private ImportSshPublicKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportSshPublicKeyRequest() { parent_ = ""; projectId_ = ""; @@ -44,43 +26,37 @@ private ImportSshPublicKeyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportSshPublicKeyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_fieldAccessorTable + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest.class, - com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest.Builder.class); + com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest.class, com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The unique ID for the user in format `users/{user}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -89,31 +65,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The unique ID for the user in format `users/{user}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -124,16 +98,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SSH_PUBLIC_KEY_FIELD_NUMBER = 2; private com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey sshPublicKey_; /** - * - * *
    * Optional. The SSH public key and expiration time.
    * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sshPublicKey field is set. */ @java.lang.Override @@ -141,52 +110,37 @@ public boolean hasSshPublicKey() { return sshPublicKey_ != null; } /** - * - * *
    * Optional. The SSH public key and expiration time.
    * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The sshPublicKey. */ @java.lang.Override public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKey() { - return sshPublicKey_ == null - ? com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance() - : sshPublicKey_; + return sshPublicKey_ == null ? com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance() : sshPublicKey_; } /** - * - * *
    * Optional. The SSH public key and expiration time.
    * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder - getSshPublicKeyOrBuilder() { + public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder getSshPublicKeyOrBuilder() { return getSshPublicKey(); } public static final int PROJECT_ID_FIELD_NUMBER = 3; private volatile java.lang.Object projectId_; /** - * - * *
    * The project ID of the Google Cloud Platform project.
    * 
* * string project_id = 3; - * * @return The projectId. */ @java.lang.Override @@ -195,29 +149,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * The project ID of the Google Cloud Platform project.
    * 
* * string project_id = 3; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -226,7 +180,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,7 +191,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -261,7 +215,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (sshPublicKey_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSshPublicKey()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSshPublicKey()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, projectId_); @@ -274,20 +229,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest)) { return super.equals(obj); } - com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest other = - (com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest) obj; + com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest other = (com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasSshPublicKey() != other.hasSshPublicKey()) return false; if (hasSshPublicKey()) { - if (!getSshPublicKey().equals(other.getSshPublicKey())) return false; + if (!getSshPublicKey() + .equals(other.getSshPublicKey())) return false; } - if (!getProjectId().equals(other.getProjectId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -313,136 +270,129 @@ public int hashCode() { } public static com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest prototype) { + public static Builder newBuilder(com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A request message for importing an SSH public key.
    * 
* * Protobuf type {@code google.cloud.oslogin.v1.ImportSshPublicKeyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.oslogin.v1.ImportSshPublicKeyRequest) com.google.cloud.oslogin.v1.ImportSshPublicKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_fieldAccessorTable + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest.class, - com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest.Builder.class); + com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest.class, com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest.Builder.class); } // Construct using com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -460,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_descriptor; } @java.lang.Override @@ -481,8 +431,7 @@ public com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest build() { @java.lang.Override public com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest buildPartial() { - com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest result = - new com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest(this); + com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest result = new com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest(this); result.parent_ = parent_; if (sshPublicKeyBuilder_ == null) { result.sshPublicKey_ = sshPublicKey_; @@ -498,39 +447,38 @@ public com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest) { - return mergeFrom((com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest) other); + return mergeFrom((com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest)other); } else { super.mergeFrom(other); return this; @@ -538,8 +486,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest other) { - if (other == com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -577,31 +524,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getSshPublicKeyFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getSshPublicKeyFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - projectId_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + projectId_ = input.readStringRequireUtf8(); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -614,22 +559,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The unique ID for the user in format `users/{user}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -638,23 +579,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The unique ID for the user in format `users/{user}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -662,67 +600,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The unique ID for the user in format `users/{user}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The unique ID for the user in format `users/{user}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The unique ID for the user in format `users/{user}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -730,61 +655,41 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey sshPublicKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder> - sshPublicKeyBuilder_; + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder> sshPublicKeyBuilder_; /** - * - * *
      * Optional. The SSH public key and expiration time.
      * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sshPublicKey field is set. */ public boolean hasSshPublicKey() { return sshPublicKeyBuilder_ != null || sshPublicKey_ != null; } /** - * - * *
      * Optional. The SSH public key and expiration time.
      * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The sshPublicKey. */ public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKey() { if (sshPublicKeyBuilder_ == null) { - return sshPublicKey_ == null - ? com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance() - : sshPublicKey_; + return sshPublicKey_ == null ? com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance() : sshPublicKey_; } else { return sshPublicKeyBuilder_.getMessage(); } } /** - * - * *
      * Optional. The SSH public key and expiration time.
      * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setSshPublicKey( - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey value) { + public Builder setSshPublicKey(com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey value) { if (sshPublicKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -798,15 +703,11 @@ public Builder setSshPublicKey( return this; } /** - * - * *
      * Optional. The SSH public key and expiration time.
      * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSshPublicKey( com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder builderForValue) { @@ -820,24 +721,17 @@ public Builder setSshPublicKey( return this; } /** - * - * *
      * Optional. The SSH public key and expiration time.
      * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeSshPublicKey( - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey value) { + public Builder mergeSshPublicKey(com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey value) { if (sshPublicKeyBuilder_ == null) { if (sshPublicKey_ != null) { sshPublicKey_ = - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.newBuilder(sshPublicKey_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.newBuilder(sshPublicKey_).mergeFrom(value).buildPartial(); } else { sshPublicKey_ = value; } @@ -849,15 +743,11 @@ public Builder mergeSshPublicKey( return this; } /** - * - * *
      * Optional. The SSH public key and expiration time.
      * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSshPublicKey() { if (sshPublicKeyBuilder_ == null) { @@ -871,66 +761,48 @@ public Builder clearSshPublicKey() { return this; } /** - * - * *
      * Optional. The SSH public key and expiration time.
      * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder - getSshPublicKeyBuilder() { - + public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder getSshPublicKeyBuilder() { + onChanged(); return getSshPublicKeyFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The SSH public key and expiration time.
      * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder - getSshPublicKeyOrBuilder() { + public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder getSshPublicKeyOrBuilder() { if (sshPublicKeyBuilder_ != null) { return sshPublicKeyBuilder_.getMessageOrBuilder(); } else { - return sshPublicKey_ == null - ? com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance() - : sshPublicKey_; + return sshPublicKey_ == null ? + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance() : sshPublicKey_; } } /** - * - * *
      * Optional. The SSH public key and expiration time.
      * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder> + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder> getSshPublicKeyFieldBuilder() { if (sshPublicKeyBuilder_ == null) { - sshPublicKeyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder>( - getSshPublicKey(), getParentForChildren(), isClean()); + sshPublicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder>( + getSshPublicKey(), + getParentForChildren(), + isClean()); sshPublicKey_ = null; } return sshPublicKeyBuilder_; @@ -938,20 +810,18 @@ public Builder clearSshPublicKey() { private java.lang.Object projectId_ = ""; /** - * - * *
      * The project ID of the Google Cloud Platform project.
      * 
* * string project_id = 3; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -960,21 +830,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * The project ID of the Google Cloud Platform project.
      * 
* * string project_id = 3; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -982,68 +851,61 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * The project ID of the Google Cloud Platform project.
      * 
* * string project_id = 3; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * The project ID of the Google Cloud Platform project.
      * 
* * string project_id = 3; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * The project ID of the Google Cloud Platform project.
      * 
* * string project_id = 3; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1053,12 +915,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.oslogin.v1.ImportSshPublicKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.ImportSshPublicKeyRequest) private static final com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest(); } @@ -1067,27 +929,27 @@ public static com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportSshPublicKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportSshPublicKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1102,4 +964,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyRequestOrBuilder.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyRequestOrBuilder.java similarity index 50% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyRequestOrBuilder.java rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyRequestOrBuilder.java index a051cf6de1be..d3f5b04ad963 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyRequestOrBuilder.java +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyRequestOrBuilder.java @@ -1,120 +1,76 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/oslogin/v1/oslogin.proto package com.google.cloud.oslogin.v1; -public interface ImportSshPublicKeyRequestOrBuilder - extends +public interface ImportSshPublicKeyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.oslogin.v1.ImportSshPublicKeyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The unique ID for the user in format `users/{user}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The unique ID for the user in format `users/{user}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The SSH public key and expiration time.
    * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sshPublicKey field is set. */ boolean hasSshPublicKey(); /** - * - * *
    * Optional. The SSH public key and expiration time.
    * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The sshPublicKey. */ com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKey(); /** - * - * *
    * Optional. The SSH public key and expiration time.
    * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder getSshPublicKeyOrBuilder(); /** - * - * *
    * The project ID of the Google Cloud Platform project.
    * 
* * string project_id = 3; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * The project ID of the Google Cloud Platform project.
    * 
* * string project_id = 3; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); } diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyResponse.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyResponse.java similarity index 58% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyResponse.java rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyResponse.java index 89c12cb77f78..b57d930c5912 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyResponse.java +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyResponse.java @@ -1,81 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/oslogin/v1/oslogin.proto package com.google.cloud.oslogin.v1; /** - * - * *
  * A response message for importing an SSH public key.
  * 
* * Protobuf type {@code google.cloud.oslogin.v1.ImportSshPublicKeyResponse} */ -public final class ImportSshPublicKeyResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportSshPublicKeyResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.oslogin.v1.ImportSshPublicKeyResponse) ImportSshPublicKeyResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportSshPublicKeyResponse.newBuilder() to construct. private ImportSshPublicKeyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImportSshPublicKeyResponse() {} + private ImportSshPublicKeyResponse() { + details_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportSshPublicKeyResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_fieldAccessorTable + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse.class, - com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse.Builder.class); + com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse.class, com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse.Builder.class); } public static final int LOGIN_PROFILE_FIELD_NUMBER = 1; private com.google.cloud.oslogin.v1.LoginProfile loginProfile_; /** - * - * *
    * The login profile information for the user.
    * 
* * .google.cloud.oslogin.v1.LoginProfile login_profile = 1; - * * @return Whether the loginProfile field is set. */ @java.lang.Override @@ -83,25 +63,18 @@ public boolean hasLoginProfile() { return loginProfile_ != null; } /** - * - * *
    * The login profile information for the user.
    * 
* * .google.cloud.oslogin.v1.LoginProfile login_profile = 1; - * * @return The loginProfile. */ @java.lang.Override public com.google.cloud.oslogin.v1.LoginProfile getLoginProfile() { - return loginProfile_ == null - ? com.google.cloud.oslogin.v1.LoginProfile.getDefaultInstance() - : loginProfile_; + return loginProfile_ == null ? com.google.cloud.oslogin.v1.LoginProfile.getDefaultInstance() : loginProfile_; } /** - * - * *
    * The login profile information for the user.
    * 
@@ -113,8 +86,53 @@ public com.google.cloud.oslogin.v1.LoginProfileOrBuilder getLoginProfileOrBuilde return getLoginProfile(); } - private byte memoizedIsInitialized = -1; + public static final int DETAILS_FIELD_NUMBER = 2; + private volatile java.lang.Object details_; + /** + *
+   * Detailed information about import results.
+   * 
+ * + * string details = 2; + * @return The details. + */ + @java.lang.Override + public java.lang.String getDetails() { + java.lang.Object ref = details_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + details_ = s; + return s; + } + } + /** + *
+   * Detailed information about import results.
+   * 
+ * + * string details = 2; + * @return The bytes for details. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDetailsBytes() { + java.lang.Object ref = details_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + details_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,10 +144,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (loginProfile_ != null) { output.writeMessage(1, getLoginProfile()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, details_); + } getUnknownFields().writeTo(output); } @@ -140,7 +162,11 @@ public int getSerializedSize() { size = 0; if (loginProfile_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLoginProfile()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLoginProfile()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, details_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -150,18 +176,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse)) { return super.equals(obj); } - com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse other = - (com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse) obj; + com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse other = (com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse) obj; if (hasLoginProfile() != other.hasLoginProfile()) return false; if (hasLoginProfile()) { - if (!getLoginProfile().equals(other.getLoginProfile())) return false; + if (!getLoginProfile() + .equals(other.getLoginProfile())) return false; } + if (!getDetails() + .equals(other.getDetails())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,142 +205,137 @@ public int hashCode() { hash = (37 * hash) + LOGIN_PROFILE_FIELD_NUMBER; hash = (53 * hash) + getLoginProfile().hashCode(); } + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDetails().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse prototype) { + public static Builder newBuilder(com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A response message for importing an SSH public key.
    * 
* * Protobuf type {@code google.cloud.oslogin.v1.ImportSshPublicKeyResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.oslogin.v1.ImportSshPublicKeyResponse) com.google.cloud.oslogin.v1.ImportSshPublicKeyResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_fieldAccessorTable + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse.class, - com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse.Builder.class); + com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse.class, com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse.Builder.class); } // Construct using com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -322,13 +345,15 @@ public Builder clear() { loginProfile_ = null; loginProfileBuilder_ = null; } + details_ = ""; + return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_descriptor; } @java.lang.Override @@ -347,13 +372,13 @@ public com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse build() { @java.lang.Override public com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse buildPartial() { - com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse result = - new com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse(this); + com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse result = new com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse(this); if (loginProfileBuilder_ == null) { result.loginProfile_ = loginProfile_; } else { result.loginProfile_ = loginProfileBuilder_.build(); } + result.details_ = details_; onBuilt(); return result; } @@ -362,39 +387,38 @@ public com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse) { - return mergeFrom((com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse) other); + return mergeFrom((com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse)other); } else { super.mergeFrom(other); return this; @@ -402,11 +426,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse other) { - if (other == com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse.getDefaultInstance()) return this; if (other.hasLoginProfile()) { mergeLoginProfile(other.getLoginProfile()); } + if (!other.getDetails().isEmpty()) { + details_ = other.details_; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -433,19 +460,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getLoginProfileFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getLoginProfileFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + details_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -458,47 +490,34 @@ public Builder mergeFrom( private com.google.cloud.oslogin.v1.LoginProfile loginProfile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.oslogin.v1.LoginProfile, - com.google.cloud.oslogin.v1.LoginProfile.Builder, - com.google.cloud.oslogin.v1.LoginProfileOrBuilder> - loginProfileBuilder_; + com.google.cloud.oslogin.v1.LoginProfile, com.google.cloud.oslogin.v1.LoginProfile.Builder, com.google.cloud.oslogin.v1.LoginProfileOrBuilder> loginProfileBuilder_; /** - * - * *
      * The login profile information for the user.
      * 
* * .google.cloud.oslogin.v1.LoginProfile login_profile = 1; - * * @return Whether the loginProfile field is set. */ public boolean hasLoginProfile() { return loginProfileBuilder_ != null || loginProfile_ != null; } /** - * - * *
      * The login profile information for the user.
      * 
* * .google.cloud.oslogin.v1.LoginProfile login_profile = 1; - * * @return The loginProfile. */ public com.google.cloud.oslogin.v1.LoginProfile getLoginProfile() { if (loginProfileBuilder_ == null) { - return loginProfile_ == null - ? com.google.cloud.oslogin.v1.LoginProfile.getDefaultInstance() - : loginProfile_; + return loginProfile_ == null ? com.google.cloud.oslogin.v1.LoginProfile.getDefaultInstance() : loginProfile_; } else { return loginProfileBuilder_.getMessage(); } } /** - * - * *
      * The login profile information for the user.
      * 
@@ -519,8 +538,6 @@ public Builder setLoginProfile(com.google.cloud.oslogin.v1.LoginProfile value) { return this; } /** - * - * *
      * The login profile information for the user.
      * 
@@ -539,8 +556,6 @@ public Builder setLoginProfile( return this; } /** - * - * *
      * The login profile information for the user.
      * 
@@ -551,9 +566,7 @@ public Builder mergeLoginProfile(com.google.cloud.oslogin.v1.LoginProfile value) if (loginProfileBuilder_ == null) { if (loginProfile_ != null) { loginProfile_ = - com.google.cloud.oslogin.v1.LoginProfile.newBuilder(loginProfile_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.oslogin.v1.LoginProfile.newBuilder(loginProfile_).mergeFrom(value).buildPartial(); } else { loginProfile_ = value; } @@ -565,8 +578,6 @@ public Builder mergeLoginProfile(com.google.cloud.oslogin.v1.LoginProfile value) return this; } /** - * - * *
      * The login profile information for the user.
      * 
@@ -585,8 +596,6 @@ public Builder clearLoginProfile() { return this; } /** - * - * *
      * The login profile information for the user.
      * 
@@ -594,13 +603,11 @@ public Builder clearLoginProfile() { * .google.cloud.oslogin.v1.LoginProfile login_profile = 1; */ public com.google.cloud.oslogin.v1.LoginProfile.Builder getLoginProfileBuilder() { - + onChanged(); return getLoginProfileFieldBuilder().getBuilder(); } /** - * - * *
      * The login profile information for the user.
      * 
@@ -611,14 +618,11 @@ public com.google.cloud.oslogin.v1.LoginProfileOrBuilder getLoginProfileOrBuilde if (loginProfileBuilder_ != null) { return loginProfileBuilder_.getMessageOrBuilder(); } else { - return loginProfile_ == null - ? com.google.cloud.oslogin.v1.LoginProfile.getDefaultInstance() - : loginProfile_; + return loginProfile_ == null ? + com.google.cloud.oslogin.v1.LoginProfile.getDefaultInstance() : loginProfile_; } } /** - * - * *
      * The login profile information for the user.
      * 
@@ -626,24 +630,117 @@ public com.google.cloud.oslogin.v1.LoginProfileOrBuilder getLoginProfileOrBuilde * .google.cloud.oslogin.v1.LoginProfile login_profile = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.oslogin.v1.LoginProfile, - com.google.cloud.oslogin.v1.LoginProfile.Builder, - com.google.cloud.oslogin.v1.LoginProfileOrBuilder> + com.google.cloud.oslogin.v1.LoginProfile, com.google.cloud.oslogin.v1.LoginProfile.Builder, com.google.cloud.oslogin.v1.LoginProfileOrBuilder> getLoginProfileFieldBuilder() { if (loginProfileBuilder_ == null) { - loginProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.oslogin.v1.LoginProfile, - com.google.cloud.oslogin.v1.LoginProfile.Builder, - com.google.cloud.oslogin.v1.LoginProfileOrBuilder>( - getLoginProfile(), getParentForChildren(), isClean()); + loginProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oslogin.v1.LoginProfile, com.google.cloud.oslogin.v1.LoginProfile.Builder, com.google.cloud.oslogin.v1.LoginProfileOrBuilder>( + getLoginProfile(), + getParentForChildren(), + isClean()); loginProfile_ = null; } return loginProfileBuilder_; } + private java.lang.Object details_ = ""; + /** + *
+     * Detailed information about import results.
+     * 
+ * + * string details = 2; + * @return The details. + */ + public java.lang.String getDetails() { + java.lang.Object ref = details_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + details_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Detailed information about import results.
+     * 
+ * + * string details = 2; + * @return The bytes for details. + */ + public com.google.protobuf.ByteString + getDetailsBytes() { + java.lang.Object ref = details_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + details_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Detailed information about import results.
+     * 
+ * + * string details = 2; + * @param value The details to set. + * @return This builder for chaining. + */ + public Builder setDetails( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + details_ = value; + onChanged(); + return this; + } + /** + *
+     * Detailed information about import results.
+     * 
+ * + * string details = 2; + * @return This builder for chaining. + */ + public Builder clearDetails() { + + details_ = getDefaultInstance().getDetails(); + onChanged(); + return this; + } + /** + *
+     * Detailed information about import results.
+     * 
+ * + * string details = 2; + * @param value The bytes for details to set. + * @return This builder for chaining. + */ + public Builder setDetailsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + details_ = value; + onChanged(); + return this; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -653,12 +750,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.oslogin.v1.ImportSshPublicKeyResponse) } // @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.ImportSshPublicKeyResponse) private static final com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse(); } @@ -667,27 +764,27 @@ public static com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportSshPublicKeyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportSshPublicKeyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -702,4 +799,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyResponseOrBuilder.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyResponseOrBuilder.java similarity index 60% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyResponseOrBuilder.java rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyResponseOrBuilder.java index d61d57550170..66352019514d 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyResponseOrBuilder.java +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/ImportSshPublicKeyResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/oslogin/v1/oslogin.proto package com.google.cloud.oslogin.v1; -public interface ImportSshPublicKeyResponseOrBuilder - extends +public interface ImportSshPublicKeyResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.oslogin.v1.ImportSshPublicKeyResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The login profile information for the user.
    * 
* * .google.cloud.oslogin.v1.LoginProfile login_profile = 1; - * * @return Whether the loginProfile field is set. */ boolean hasLoginProfile(); /** - * - * *
    * The login profile information for the user.
    * 
* * .google.cloud.oslogin.v1.LoginProfile login_profile = 1; - * * @return The loginProfile. */ com.google.cloud.oslogin.v1.LoginProfile getLoginProfile(); /** - * - * *
    * The login profile information for the user.
    * 
@@ -57,4 +33,24 @@ public interface ImportSshPublicKeyResponseOrBuilder * .google.cloud.oslogin.v1.LoginProfile login_profile = 1; */ com.google.cloud.oslogin.v1.LoginProfileOrBuilder getLoginProfileOrBuilder(); + + /** + *
+   * Detailed information about import results.
+   * 
+ * + * string details = 2; + * @return The details. + */ + java.lang.String getDetails(); + /** + *
+   * Detailed information about import results.
+   * 
+ * + * string details = 2; + * @return The bytes for details. + */ + com.google.protobuf.ByteString + getDetailsBytes(); } diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/LoginProfile.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/LoginProfile.java similarity index 65% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/LoginProfile.java rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/LoginProfile.java index 39c3d78ad300..84b1270220c4 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/LoginProfile.java +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/LoginProfile.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/oslogin/v1/oslogin.proto package com.google.cloud.oslogin.v1; /** - * - * *
  * The user profile information used for logging in to a virtual machine on
  * Google Compute Engine.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.oslogin.v1.LoginProfile}
  */
-public final class LoginProfile extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LoginProfile extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.oslogin.v1.LoginProfile)
     LoginProfileOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LoginProfile.newBuilder() to construct.
   private LoginProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LoginProfile() {
     name_ = "";
     posixAccounts_ = java.util.Collections.emptyList();
@@ -45,52 +27,49 @@ private LoginProfile() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LoginProfile();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.oslogin.v1.OsLoginProto
-        .internal_static_google_cloud_oslogin_v1_LoginProfile_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_LoginProfile_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 3:
         return internalGetSshPublicKeys();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.oslogin.v1.OsLoginProto
-        .internal_static_google_cloud_oslogin_v1_LoginProfile_fieldAccessorTable
+    return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_LoginProfile_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.oslogin.v1.LoginProfile.class,
-            com.google.cloud.oslogin.v1.LoginProfile.Builder.class);
+            com.google.cloud.oslogin.v1.LoginProfile.class, com.google.cloud.oslogin.v1.LoginProfile.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. A unique user ID.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -99,29 +78,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A unique user ID.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -132,8 +111,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int POSIX_ACCOUNTS_FIELD_NUMBER = 2; private java.util.List posixAccounts_; /** - * - * *
    * The list of POSIX accounts associated with the user.
    * 
@@ -141,13 +118,10 @@ public com.google.protobuf.ByteString getNameBytes() { * repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; */ @java.lang.Override - public java.util.List - getPosixAccountsList() { + public java.util.List getPosixAccountsList() { return posixAccounts_; } /** - * - * *
    * The list of POSIX accounts associated with the user.
    * 
@@ -155,14 +129,11 @@ public com.google.protobuf.ByteString getNameBytes() { * repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder> + public java.util.List getPosixAccountsOrBuilderList() { return posixAccounts_; } /** - * - * *
    * The list of POSIX accounts associated with the user.
    * 
@@ -174,8 +145,6 @@ public int getPosixAccountsCount() { return posixAccounts_.size(); } /** - * - * *
    * The list of POSIX accounts associated with the user.
    * 
@@ -187,8 +156,6 @@ public com.google.cloud.oslogin.common.OsLoginProto.PosixAccount getPosixAccount return posixAccounts_.get(index); } /** - * - * *
    * The list of POSIX accounts associated with the user.
    * 
@@ -196,36 +163,27 @@ public com.google.cloud.oslogin.common.OsLoginProto.PosixAccount getPosixAccount * repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; */ @java.lang.Override - public com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder - getPosixAccountsOrBuilder(int index) { + public com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder getPosixAccountsOrBuilder( + int index) { return posixAccounts_.get(index); } public static final int SSH_PUBLIC_KEYS_FIELD_NUMBER = 3; - private static final class SshPublicKeysDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - defaultEntry = + java.lang.String, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_LoginProfile_SshPublicKeysEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey - .getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_LoginProfile_SshPublicKeysEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance()); } - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - sshPublicKeys_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - internalGetSshPublicKeys() { + java.lang.String, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> sshPublicKeys_; + private com.google.protobuf.MapField + internalGetSshPublicKeys() { if (sshPublicKeys_ == null) { return com.google.protobuf.MapField.emptyMapField( SshPublicKeysDefaultEntryHolder.defaultEntry); @@ -237,31 +195,28 @@ public int getSshPublicKeysCount() { return internalGetSshPublicKeys().getMap().size(); } /** - * - * *
    * A map from SSH public key fingerprint to the associated key object.
    * 
* * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; */ + @java.lang.Override - public boolean containsSshPublicKeys(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsSshPublicKeys( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetSshPublicKeys().getMap().containsKey(key); } - /** Use {@link #getSshPublicKeysMap()} instead. */ + /** + * Use {@link #getSshPublicKeysMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getSshPublicKeys() { + public java.util.Map getSshPublicKeys() { return getSshPublicKeysMap(); } /** - * - * *
    * A map from SSH public key fingerprint to the associated key object.
    * 
@@ -269,13 +224,11 @@ public boolean containsSshPublicKeys(java.lang.String key) { * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; */ @java.lang.Override - public java.util.Map - getSshPublicKeysMap() { + + public java.util.Map getSshPublicKeysMap() { return internalGetSshPublicKeys().getMap(); } /** - * - * *
    * A map from SSH public key fingerprint to the associated key object.
    * 
@@ -283,19 +236,16 @@ public boolean containsSshPublicKeys(java.lang.String key) { * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; */ @java.lang.Override + public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKeysOrDefault( java.lang.String key, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetSshPublicKeys().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * A map from SSH public key fingerprint to the associated key object.
    * 
@@ -303,11 +253,10 @@ public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKey * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; */ @java.lang.Override + public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKeysOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetSshPublicKeys().getMap(); if (!map.containsKey(key)) { @@ -317,7 +266,6 @@ public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKey } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -329,15 +277,20 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < posixAccounts_.size(); i++) { output.writeMessage(2, posixAccounts_.get(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetSshPublicKeys(), SshPublicKeysDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetSshPublicKeys(), + SshPublicKeysDefaultEntryHolder.defaultEntry, + 3); getUnknownFields().writeTo(output); } @@ -351,20 +304,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < posixAccounts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, posixAccounts_.get(i)); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - entry : internalGetSshPublicKeys().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - sshPublicKeys__ = - SshPublicKeysDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, sshPublicKeys__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, posixAccounts_.get(i)); + } + for (java.util.Map.Entry entry + : internalGetSshPublicKeys().getMap().entrySet()) { + com.google.protobuf.MapEntry + sshPublicKeys__ = SshPublicKeysDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, sshPublicKeys__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -374,16 +325,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.oslogin.v1.LoginProfile)) { return super.equals(obj); } com.google.cloud.oslogin.v1.LoginProfile other = (com.google.cloud.oslogin.v1.LoginProfile) obj; - if (!getName().equals(other.getName())) return false; - if (!getPosixAccountsList().equals(other.getPosixAccountsList())) return false; - if (!internalGetSshPublicKeys().equals(other.internalGetSshPublicKeys())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPosixAccountsList() + .equals(other.getPosixAccountsList())) return false; + if (!internalGetSshPublicKeys().equals( + other.internalGetSshPublicKeys())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -410,104 +364,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.oslogin.v1.LoginProfile parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.oslogin.v1.LoginProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.LoginProfile parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.v1.LoginProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.LoginProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.v1.LoginProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.LoginProfile parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.v1.LoginProfile parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.LoginProfile parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.oslogin.v1.LoginProfile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.oslogin.v1.LoginProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.LoginProfile parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.oslogin.v1.LoginProfile parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.LoginProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.oslogin.v1.LoginProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The user profile information used for logging in to a virtual machine on
    * Google Compute Engine.
@@ -515,52 +462,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.oslogin.v1.LoginProfile}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.oslogin.v1.LoginProfile)
       com.google.cloud.oslogin.v1.LoginProfileOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.oslogin.v1.OsLoginProto
-          .internal_static_google_cloud_oslogin_v1_LoginProfile_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_LoginProfile_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 3:
           return internalGetSshPublicKeys();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 3:
           return internalGetMutableSshPublicKeys();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.oslogin.v1.OsLoginProto
-          .internal_static_google_cloud_oslogin_v1_LoginProfile_fieldAccessorTable
+      return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_LoginProfile_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.oslogin.v1.LoginProfile.class,
-              com.google.cloud.oslogin.v1.LoginProfile.Builder.class);
+              com.google.cloud.oslogin.v1.LoginProfile.class, com.google.cloud.oslogin.v1.LoginProfile.Builder.class);
     }
 
     // Construct using com.google.cloud.oslogin.v1.LoginProfile.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -578,9 +528,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.oslogin.v1.OsLoginProto
-          .internal_static_google_cloud_oslogin_v1_LoginProfile_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_LoginProfile_descriptor;
     }
 
     @java.lang.Override
@@ -599,8 +549,7 @@ public com.google.cloud.oslogin.v1.LoginProfile build() {
 
     @java.lang.Override
     public com.google.cloud.oslogin.v1.LoginProfile buildPartial() {
-      com.google.cloud.oslogin.v1.LoginProfile result =
-          new com.google.cloud.oslogin.v1.LoginProfile(this);
+      com.google.cloud.oslogin.v1.LoginProfile result = new com.google.cloud.oslogin.v1.LoginProfile(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (posixAccountsBuilder_ == null) {
@@ -622,39 +571,38 @@ public com.google.cloud.oslogin.v1.LoginProfile buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.oslogin.v1.LoginProfile) {
-        return mergeFrom((com.google.cloud.oslogin.v1.LoginProfile) other);
+        return mergeFrom((com.google.cloud.oslogin.v1.LoginProfile)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -685,16 +633,16 @@ public Builder mergeFrom(com.google.cloud.oslogin.v1.LoginProfile other) {
             posixAccountsBuilder_ = null;
             posixAccounts_ = other.posixAccounts_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            posixAccountsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPosixAccountsFieldBuilder()
-                    : null;
+            posixAccountsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPosixAccountsFieldBuilder() : null;
           } else {
             posixAccountsBuilder_.addAllMessages(other.posixAccounts_);
           }
         }
       }
-      internalGetMutableSshPublicKeys().mergeFrom(other.internalGetSshPublicKeys());
+      internalGetMutableSshPublicKeys().mergeFrom(
+          other.internalGetSshPublicKeys());
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -721,46 +669,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.oslogin.common.OsLoginProto.PosixAccount m =
-                    input.readMessage(
-                        com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.parser(),
-                        extensionRegistry);
-                if (posixAccountsBuilder_ == null) {
-                  ensurePosixAccountsIsMutable();
-                  posixAccounts_.add(m);
-                } else {
-                  posixAccountsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.protobuf.MapEntry<
-                        java.lang.String, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey>
-                    sshPublicKeys__ =
-                        input.readMessage(
-                            SshPublicKeysDefaultEntryHolder.defaultEntry.getParserForType(),
-                            extensionRegistry);
-                internalGetMutableSshPublicKeys()
-                    .getMutableMap()
-                    .put(sshPublicKeys__.getKey(), sshPublicKeys__.getValue());
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.oslogin.common.OsLoginProto.PosixAccount m =
+                  input.readMessage(
+                      com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.parser(),
+                      extensionRegistry);
+              if (posixAccountsBuilder_ == null) {
+                ensurePosixAccountsIsMutable();
+                posixAccounts_.add(m);
+              } else {
+                posixAccountsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 26: {
+              com.google.protobuf.MapEntry
+              sshPublicKeys__ = input.readMessage(
+                  SshPublicKeysDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableSshPublicKeys().getMutableMap().put(
+                  sshPublicKeys__.getKey(), sshPublicKeys__.getValue());
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -770,25 +710,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. A unique user ID.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -797,21 +734,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A unique user ID.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -819,95 +755,79 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A unique user ID.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. A unique user ID.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. A unique user ID.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private java.util.List - posixAccounts_ = java.util.Collections.emptyList(); - + private java.util.List posixAccounts_ = + java.util.Collections.emptyList(); private void ensurePosixAccountsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - posixAccounts_ = - new java.util.ArrayList( - posixAccounts_); + posixAccounts_ = new java.util.ArrayList(posixAccounts_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.oslogin.common.OsLoginProto.PosixAccount, - com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder, - com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder> - posixAccountsBuilder_; + com.google.cloud.oslogin.common.OsLoginProto.PosixAccount, com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder, com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder> posixAccountsBuilder_; /** - * - * *
      * The list of POSIX accounts associated with the user.
      * 
* * repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; */ - public java.util.List - getPosixAccountsList() { + public java.util.List getPosixAccountsList() { if (posixAccountsBuilder_ == null) { return java.util.Collections.unmodifiableList(posixAccounts_); } else { @@ -915,8 +835,6 @@ private void ensurePosixAccountsIsMutable() { } } /** - * - * *
      * The list of POSIX accounts associated with the user.
      * 
@@ -931,8 +849,6 @@ public int getPosixAccountsCount() { } } /** - * - * *
      * The list of POSIX accounts associated with the user.
      * 
@@ -947,8 +863,6 @@ public com.google.cloud.oslogin.common.OsLoginProto.PosixAccount getPosixAccount } } /** - * - * *
      * The list of POSIX accounts associated with the user.
      * 
@@ -970,8 +884,6 @@ public Builder setPosixAccounts( return this; } /** - * - * *
      * The list of POSIX accounts associated with the user.
      * 
@@ -979,8 +891,7 @@ public Builder setPosixAccounts( * repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; */ public Builder setPosixAccounts( - int index, - com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder builderForValue) { + int index, com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder builderForValue) { if (posixAccountsBuilder_ == null) { ensurePosixAccountsIsMutable(); posixAccounts_.set(index, builderForValue.build()); @@ -991,16 +902,13 @@ public Builder setPosixAccounts( return this; } /** - * - * *
      * The list of POSIX accounts associated with the user.
      * 
* * repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; */ - public Builder addPosixAccounts( - com.google.cloud.oslogin.common.OsLoginProto.PosixAccount value) { + public Builder addPosixAccounts(com.google.cloud.oslogin.common.OsLoginProto.PosixAccount value) { if (posixAccountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1014,8 +922,6 @@ public Builder addPosixAccounts( return this; } /** - * - * *
      * The list of POSIX accounts associated with the user.
      * 
@@ -1037,8 +943,6 @@ public Builder addPosixAccounts( return this; } /** - * - * *
      * The list of POSIX accounts associated with the user.
      * 
@@ -1057,8 +961,6 @@ public Builder addPosixAccounts( return this; } /** - * - * *
      * The list of POSIX accounts associated with the user.
      * 
@@ -1066,8 +968,7 @@ public Builder addPosixAccounts( * repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; */ public Builder addPosixAccounts( - int index, - com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder builderForValue) { + int index, com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder builderForValue) { if (posixAccountsBuilder_ == null) { ensurePosixAccountsIsMutable(); posixAccounts_.add(index, builderForValue.build()); @@ -1078,8 +979,6 @@ public Builder addPosixAccounts( return this; } /** - * - * *
      * The list of POSIX accounts associated with the user.
      * 
@@ -1087,11 +986,11 @@ public Builder addPosixAccounts( * repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; */ public Builder addAllPosixAccounts( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (posixAccountsBuilder_ == null) { ensurePosixAccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, posixAccounts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, posixAccounts_); onChanged(); } else { posixAccountsBuilder_.addAllMessages(values); @@ -1099,8 +998,6 @@ public Builder addAllPosixAccounts( return this; } /** - * - * *
      * The list of POSIX accounts associated with the user.
      * 
@@ -1118,8 +1015,6 @@ public Builder clearPosixAccounts() { return this; } /** - * - * *
      * The list of POSIX accounts associated with the user.
      * 
@@ -1137,47 +1032,39 @@ public Builder removePosixAccounts(int index) { return this; } /** - * - * *
      * The list of POSIX accounts associated with the user.
      * 
* * repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; */ - public com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder - getPosixAccountsBuilder(int index) { + public com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder getPosixAccountsBuilder( + int index) { return getPosixAccountsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of POSIX accounts associated with the user.
      * 
* * repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; */ - public com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder - getPosixAccountsOrBuilder(int index) { + public com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder getPosixAccountsOrBuilder( + int index) { if (posixAccountsBuilder_ == null) { - return posixAccounts_.get(index); - } else { + return posixAccounts_.get(index); } else { return posixAccountsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of POSIX accounts associated with the user.
      * 
* * repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; */ - public java.util.List< - ? extends com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder> - getPosixAccountsOrBuilderList() { + public java.util.List + getPosixAccountsOrBuilderList() { if (posixAccountsBuilder_ != null) { return posixAccountsBuilder_.getMessageOrBuilderList(); } else { @@ -1185,61 +1072,45 @@ public Builder removePosixAccounts(int index) { } } /** - * - * *
      * The list of POSIX accounts associated with the user.
      * 
* * repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; */ - public com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder - addPosixAccountsBuilder() { - return getPosixAccountsFieldBuilder() - .addBuilder( - com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.getDefaultInstance()); + public com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder addPosixAccountsBuilder() { + return getPosixAccountsFieldBuilder().addBuilder( + com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.getDefaultInstance()); } /** - * - * *
      * The list of POSIX accounts associated with the user.
      * 
* * repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; */ - public com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder - addPosixAccountsBuilder(int index) { - return getPosixAccountsFieldBuilder() - .addBuilder( - index, - com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.getDefaultInstance()); + public com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder addPosixAccountsBuilder( + int index) { + return getPosixAccountsFieldBuilder().addBuilder( + index, com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.getDefaultInstance()); } /** - * - * *
      * The list of POSIX accounts associated with the user.
      * 
* * repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; */ - public java.util.List - getPosixAccountsBuilderList() { + public java.util.List + getPosixAccountsBuilderList() { return getPosixAccountsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.oslogin.common.OsLoginProto.PosixAccount, - com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder, - com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder> + com.google.cloud.oslogin.common.OsLoginProto.PosixAccount, com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder, com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder> getPosixAccountsFieldBuilder() { if (posixAccountsBuilder_ == null) { - posixAccountsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.oslogin.common.OsLoginProto.PosixAccount, - com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder, - com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder>( + posixAccountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oslogin.common.OsLoginProto.PosixAccount, com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder, com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder>( posixAccounts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1250,27 +1121,21 @@ public Builder removePosixAccounts(int index) { } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - sshPublicKeys_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - internalGetSshPublicKeys() { + java.lang.String, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> sshPublicKeys_; + private com.google.protobuf.MapField + internalGetSshPublicKeys() { if (sshPublicKeys_ == null) { return com.google.protobuf.MapField.emptyMapField( SshPublicKeysDefaultEntryHolder.defaultEntry); } return sshPublicKeys_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - internalGetMutableSshPublicKeys() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableSshPublicKeys() { + onChanged();; if (sshPublicKeys_ == null) { - sshPublicKeys_ = - com.google.protobuf.MapField.newMapField(SshPublicKeysDefaultEntryHolder.defaultEntry); + sshPublicKeys_ = com.google.protobuf.MapField.newMapField( + SshPublicKeysDefaultEntryHolder.defaultEntry); } if (!sshPublicKeys_.isMutable()) { sshPublicKeys_ = sshPublicKeys_.copy(); @@ -1282,85 +1147,70 @@ public int getSshPublicKeysCount() { return internalGetSshPublicKeys().getMap().size(); } /** - * - * *
      * A map from SSH public key fingerprint to the associated key object.
      * 
* - * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; - * + * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; */ + @java.lang.Override - public boolean containsSshPublicKeys(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsSshPublicKeys( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetSshPublicKeys().getMap().containsKey(key); } - /** Use {@link #getSshPublicKeysMap()} instead. */ + /** + * Use {@link #getSshPublicKeysMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - getSshPublicKeys() { + public java.util.Map getSshPublicKeys() { return getSshPublicKeysMap(); } /** - * - * *
      * A map from SSH public key fingerprint to the associated key object.
      * 
* - * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; - * + * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - getSshPublicKeysMap() { + + public java.util.Map getSshPublicKeysMap() { return internalGetSshPublicKeys().getMap(); } /** - * - * *
      * A map from SSH public key fingerprint to the associated key object.
      * 
* - * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; - * + * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; */ @java.lang.Override + public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKeysOrDefault( java.lang.String key, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetSshPublicKeys().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetSshPublicKeys().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * A map from SSH public key fingerprint to the associated key object.
      * 
* - * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; - * + * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; */ @java.lang.Override + public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKeysOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetSshPublicKeys().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetSshPublicKeys().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1368,74 +1218,69 @@ public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKey } public Builder clearSshPublicKeys() { - internalGetMutableSshPublicKeys().getMutableMap().clear(); + internalGetMutableSshPublicKeys().getMutableMap() + .clear(); return this; } /** - * - * *
      * A map from SSH public key fingerprint to the associated key object.
      * 
* - * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; - * + * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; */ - public Builder removeSshPublicKeys(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableSshPublicKeys().getMutableMap().remove(key); + + public Builder removeSshPublicKeys( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableSshPublicKeys().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey> - getMutableSshPublicKeys() { + public java.util.Map + getMutableSshPublicKeys() { return internalGetMutableSshPublicKeys().getMutableMap(); } /** - * - * *
      * A map from SSH public key fingerprint to the associated key object.
      * 
* - * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; - * + * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; */ public Builder putSshPublicKeys( - java.lang.String key, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey value) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableSshPublicKeys().getMutableMap().put(key, value); + internalGetMutableSshPublicKeys().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * A map from SSH public key fingerprint to the associated key object.
      * 
* - * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; - * + * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; */ + public Builder putAllSshPublicKeys( - java.util.Map - values) { - internalGetMutableSshPublicKeys().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableSshPublicKeys().getMutableMap() + .putAll(values); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1445,12 +1290,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.oslogin.v1.LoginProfile) } // @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.LoginProfile) private static final com.google.cloud.oslogin.v1.LoginProfile DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.oslogin.v1.LoginProfile(); } @@ -1459,27 +1304,27 @@ public static com.google.cloud.oslogin.v1.LoginProfile getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoginProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoginProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1494,4 +1339,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.oslogin.v1.LoginProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/LoginProfileOrBuilder.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/LoginProfileOrBuilder.java similarity index 74% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/LoginProfileOrBuilder.java rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/LoginProfileOrBuilder.java index aa788fce3ddd..eed0e7aec06e 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/LoginProfileOrBuilder.java +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/LoginProfileOrBuilder.java @@ -1,66 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/oslogin/v1/oslogin.proto package com.google.cloud.oslogin.v1; -public interface LoginProfileOrBuilder - extends +public interface LoginProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.oslogin.v1.LoginProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. A unique user ID.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. A unique user ID.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The list of POSIX accounts associated with the user.
    * 
* * repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; */ - java.util.List getPosixAccountsList(); + java.util.List + getPosixAccountsList(); /** - * - * *
    * The list of POSIX accounts associated with the user.
    * 
@@ -69,8 +45,6 @@ public interface LoginProfileOrBuilder */ com.google.cloud.oslogin.common.OsLoginProto.PosixAccount getPosixAccounts(int index); /** - * - * *
    * The list of POSIX accounts associated with the user.
    * 
@@ -79,19 +53,15 @@ public interface LoginProfileOrBuilder */ int getPosixAccountsCount(); /** - * - * *
    * The list of POSIX accounts associated with the user.
    * 
* * repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; */ - java.util.List + java.util.List getPosixAccountsOrBuilderList(); /** - * - * *
    * The list of POSIX accounts associated with the user.
    * 
@@ -102,8 +72,6 @@ com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder getPosixAccou int index); /** - * - * *
    * A map from SSH public key fingerprint to the associated key object.
    * 
@@ -112,22 +80,21 @@ com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder getPosixAccou */ int getSshPublicKeysCount(); /** - * - * *
    * A map from SSH public key fingerprint to the associated key object.
    * 
* * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; */ - boolean containsSshPublicKeys(java.lang.String key); - /** Use {@link #getSshPublicKeysMap()} instead. */ + boolean containsSshPublicKeys( + java.lang.String key); + /** + * Use {@link #getSshPublicKeysMap()} instead. + */ @java.lang.Deprecated java.util.Map - getSshPublicKeys(); + getSshPublicKeys(); /** - * - * *
    * A map from SSH public key fingerprint to the associated key object.
    * 
@@ -135,10 +102,8 @@ com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder getPosixAccou * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; */ java.util.Map - getSshPublicKeysMap(); + getSshPublicKeysMap(); /** - * - * *
    * A map from SSH public key fingerprint to the associated key object.
    * 
@@ -147,19 +112,18 @@ com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder getPosixAccou */ /* nullable */ - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKeysOrDefault( +com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKeysOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey defaultValue); +com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey defaultValue); /** - * - * *
    * A map from SSH public key fingerprint to the associated key object.
    * 
* * map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; */ + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKeysOrThrow( java.lang.String key); } diff --git a/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginProto.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginProto.java new file mode 100644 index 000000000000..6bee69ba5a50 --- /dev/null +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginProto.java @@ -0,0 +1,253 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/oslogin/v1/oslogin.proto + +package com.google.cloud.oslogin.v1; + +public final class OsLoginProto { + private OsLoginProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oslogin_v1_LoginProfile_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oslogin_v1_LoginProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oslogin_v1_LoginProfile_SshPublicKeysEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oslogin_v1_LoginProfile_SshPublicKeysEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oslogin_v1_CreateSshPublicKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oslogin_v1_CreateSshPublicKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n%google/cloud/oslogin/v1/oslogin.proto\022" + + "\027google.cloud.oslogin.v1\032\034google/api/ann" + + "otations.proto\032\027google/api/client.proto\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032(google/cloud/oslogi" + + "n/common/common.proto\032\033google/protobuf/e" + + "mpty.proto\032 google/protobuf/field_mask.p" + + "roto\"\230\002\n\014LoginProfile\022\021\n\004name\030\001 \001(\tB\003\340A\002" + + "\022A\n\016posix_accounts\030\002 \003(\0132).google.cloud." + + "oslogin.common.PosixAccount\022Q\n\017ssh_publi" + + "c_keys\030\003 \003(\01328.google.cloud.oslogin.v1.L" + + "oginProfile.SshPublicKeysEntry\032_\n\022SshPub" + + "licKeysEntry\022\013\n\003key\030\001 \001(\t\0228\n\005value\030\002 \001(\013" + + "2).google.cloud.oslogin.common.SshPublic" + + "Key:\0028\001\"\240\001\n\031CreateSshPublicKeyRequest\022;\n" + + "\006parent\030\001 \001(\tB+\340A\002\372A%\022#oslogin.googleapi" + + "s.com/SshPublicKey\022F\n\016ssh_public_key\030\002 \001" + + "(\0132).google.cloud.oslogin.common.SshPubl" + + "icKeyB\003\340A\002\"V\n\031DeletePosixAccountRequest\022" + + "9\n\004name\030\001 \001(\tB+\340A\002\372A%\n#oslogin.googleapi" + + "s.com/PosixAccount\"V\n\031DeleteSshPublicKey" + + "Request\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#oslogin.g" + + "oogleapis.com/SshPublicKey\"z\n\026GetLoginPr" + + "ofileRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\022#oslo" + + "gin.googleapis.com/PosixAccount\022\022\n\nproje" + + "ct_id\030\002 \001(\t\022\021\n\tsystem_id\030\003 \001(\t\"S\n\026GetSsh" + + "PublicKeyRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#" + + "oslogin.googleapis.com/SshPublicKey\"\264\001\n\031" + + "ImportSshPublicKeyRequest\022;\n\006parent\030\001 \001(" + + "\tB+\340A\002\372A%\022#oslogin.googleapis.com/SshPub" + + "licKey\022F\n\016ssh_public_key\030\002 \001(\0132).google." + + "cloud.oslogin.common.SshPublicKeyB\003\340A\001\022\022" + + "\n\nproject_id\030\003 \001(\t\"k\n\032ImportSshPublicKey" + + "Response\022<\n\rlogin_profile\030\001 \001(\0132%.google" + + ".cloud.oslogin.v1.LoginProfile\022\017\n\007detail" + + "s\030\002 \001(\t\"\317\001\n\031UpdateSshPublicKeyRequest\0229\n" + + "\004name\030\001 \001(\tB+\340A\002\372A%\n#oslogin.googleapis." + + "com/SshPublicKey\022F\n\016ssh_public_key\030\002 \001(\013" + + "2).google.cloud.oslogin.common.SshPublic" + + "KeyB\003\340A\002\022/\n\013update_mask\030\003 \001(\0132\032.google.p" + + "rotobuf.FieldMask2\206\014\n\016OsLoginService\022\307\001\n" + + "\022CreateSshPublicKey\0222.google.cloud.oslog" + + "in.v1.CreateSshPublicKeyRequest\032).google" + + ".cloud.oslogin.common.SshPublicKey\"R\202\323\344\223" + + "\0024\"\"/v1/{parent=users/*}/sshPublicKeys:\016" + + "ssh_public_key\332A\025parent,ssh_public_key\022\216" + + "\001\n\022DeletePosixAccount\0222.google.cloud.osl" + + "ogin.v1.DeletePosixAccountRequest\032\026.goog" + + "le.protobuf.Empty\",\202\323\344\223\002\037*\035/v1/{name=use" + + "rs/*/projects/*}\332A\004name\022\223\001\n\022DeleteSshPub" + + "licKey\0222.google.cloud.oslogin.v1.DeleteS" + + "shPublicKeyRequest\032\026.google.protobuf.Emp" + + "ty\"1\202\323\344\223\002$*\"/v1/{name=users/*/sshPublicK" + + "eys/*}\332A\004name\022\231\001\n\017GetLoginProfile\022/.goog" + + "le.cloud.oslogin.v1.GetLoginProfileReque" + + "st\032%.google.cloud.oslogin.v1.LoginProfil" + + "e\".\202\323\344\223\002!\022\037/v1/{name=users/*}/loginProfi" + + "le\332A\004name\022\240\001\n\017GetSshPublicKey\022/.google.c" + + "loud.oslogin.v1.GetSshPublicKeyRequest\032)" + + ".google.cloud.oslogin.common.SshPublicKe" + + "y\"1\202\323\344\223\002$\022\"/v1/{name=users/*/sshPublicKe" + + "ys/*}\332A\004name\022\371\001\n\022ImportSshPublicKey\0222.go" + + "ogle.cloud.oslogin.v1.ImportSshPublicKey" + + "Request\0323.google.cloud.oslogin.v1.Import" + + "SshPublicKeyResponse\"z\202\323\344\223\0029\"\'/v1/{paren" + + "t=users/*}:importSshPublicKey:\016ssh_publi" + + "c_key\332A\025parent,ssh_public_key\332A parent,s" + + "sh_public_key,project_id\022\347\001\n\022UpdateSshPu" + + "blicKey\0222.google.cloud.oslogin.v1.Update" + + "SshPublicKeyRequest\032).google.cloud.oslog" + + "in.common.SshPublicKey\"r\202\323\344\223\00242\"/v1/{nam" + + "e=users/*/sshPublicKeys/*}:\016ssh_public_k" + + "ey\332A\023name,ssh_public_key\332A\037name,ssh_publ" + + "ic_key,update_mask\032\335\001\312A\026oslogin.googleap" + + "is.com\322A\300\001https://www.googleapis.com/aut" + + "h/cloud-platform,https://www.googleapis." + + "com/auth/cloud-platform.read-only,https:" + + "//www.googleapis.com/auth/compute,https:" + + "//www.googleapis.com/auth/compute.readon" + + "lyB\276\001\n\033com.google.cloud.oslogin.v1B\014OsLo" + + "ginProtoP\001Z>google.golang.org/genproto/g" + + "oogleapis/cloud/oslogin/v1;oslogin\252\002\027Goo" + + "gle.Cloud.OsLogin.V1\312\002\027Google\\Cloud\\OsLo" + + "gin\\V1\352\002\032Google::Cloud::OsLogin::V1b\006pro" + + "to3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.oslogin.common.OsLoginProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_oslogin_v1_LoginProfile_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oslogin_v1_LoginProfile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oslogin_v1_LoginProfile_descriptor, + new java.lang.String[] { "Name", "PosixAccounts", "SshPublicKeys", }); + internal_static_google_cloud_oslogin_v1_LoginProfile_SshPublicKeysEntry_descriptor = + internal_static_google_cloud_oslogin_v1_LoginProfile_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_oslogin_v1_LoginProfile_SshPublicKeysEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oslogin_v1_LoginProfile_SshPublicKeysEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_oslogin_v1_CreateSshPublicKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oslogin_v1_CreateSshPublicKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oslogin_v1_CreateSshPublicKeyRequest_descriptor, + new java.lang.String[] { "Parent", "SshPublicKey", }); + internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oslogin_v1_GetLoginProfileRequest_descriptor, + new java.lang.String[] { "Name", "ProjectId", "SystemId", }); + internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oslogin_v1_GetSshPublicKeyRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyRequest_descriptor, + new java.lang.String[] { "Parent", "SshPublicKey", "ProjectId", }); + internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oslogin_v1_ImportSshPublicKeyResponse_descriptor, + new java.lang.String[] { "LoginProfile", "Details", }); + internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_descriptor, + new java.lang.String[] { "Name", "SshPublicKey", "UpdateMask", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.oslogin.common.OsLoginProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UpdateSshPublicKeyRequest.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UpdateSshPublicKeyRequest.java similarity index 64% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UpdateSshPublicKeyRequest.java rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UpdateSshPublicKeyRequest.java index 036c2e640f92..557a645b5c5a 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UpdateSshPublicKeyRequest.java +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UpdateSshPublicKeyRequest.java @@ -1,87 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/oslogin/v1/oslogin.proto package com.google.cloud.oslogin.v1; /** - * - * *
  * A request message for updating an SSH public key.
  * 
* * Protobuf type {@code google.cloud.oslogin.v1.UpdateSshPublicKeyRequest} */ -public final class UpdateSshPublicKeyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSshPublicKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.oslogin.v1.UpdateSshPublicKeyRequest) UpdateSshPublicKeyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSshPublicKeyRequest.newBuilder() to construct. private UpdateSshPublicKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSshPublicKeyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSshPublicKeyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_fieldAccessorTable + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.class, - com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.Builder.class); + com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.class, com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The fingerprint of the public key to update. Public keys are identified by
    * their SHA-256 fingerprint. The fingerprint of the public key is in format
    * `users/{user}/sshPublicKeys/{fingerprint}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,33 +66,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The fingerprint of the public key to update. Public keys are identified by
    * their SHA-256 fingerprint. The fingerprint of the public key is in format
    * `users/{user}/sshPublicKeys/{fingerprint}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -127,16 +101,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SSH_PUBLIC_KEY_FIELD_NUMBER = 2; private com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey sshPublicKey_; /** - * - * *
    * Required. The SSH public key and expiration time.
    * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sshPublicKey field is set. */ @java.lang.Override @@ -144,52 +113,37 @@ public boolean hasSshPublicKey() { return sshPublicKey_ != null; } /** - * - * *
    * Required. The SSH public key and expiration time.
    * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The sshPublicKey. */ @java.lang.Override public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKey() { - return sshPublicKey_ == null - ? com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance() - : sshPublicKey_; + return sshPublicKey_ == null ? com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance() : sshPublicKey_; } /** - * - * *
    * Required. The SSH public key and expiration time.
    * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder - getSshPublicKeyOrBuilder() { + public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder getSshPublicKeyOrBuilder() { return getSshPublicKey(); } public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Mask to control which fields get updated. Updates all if not present.
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -197,14 +151,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Mask to control which fields get updated. Updates all if not present.
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ @java.lang.Override @@ -212,8 +163,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Mask to control which fields get updated. Updates all if not present.
    * 
@@ -226,7 +175,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,7 +186,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -261,10 +210,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (sshPublicKey_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSshPublicKey()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSshPublicKey()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -274,22 +225,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest)) { return super.equals(obj); } - com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest other = - (com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest) obj; + com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest other = (com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasSshPublicKey() != other.hasSshPublicKey()) return false; if (hasSshPublicKey()) { - if (!getSshPublicKey().equals(other.getSshPublicKey())) return false; + if (!getSshPublicKey() + .equals(other.getSshPublicKey())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -318,136 +271,129 @@ public int hashCode() { } public static com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest prototype) { + public static Builder newBuilder(com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A request message for updating an SSH public key.
    * 
* * Protobuf type {@code google.cloud.oslogin.v1.UpdateSshPublicKeyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.oslogin.v1.UpdateSshPublicKeyRequest) com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_fieldAccessorTable + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.class, - com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.Builder.class); + com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.class, com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.Builder.class); } // Construct using com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +415,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.oslogin.v1.OsLoginProto - .internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.oslogin.v1.OsLoginProto.internal_static_google_cloud_oslogin_v1_UpdateSshPublicKeyRequest_descriptor; } @java.lang.Override @@ -490,8 +436,7 @@ public com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest build() { @java.lang.Override public com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest buildPartial() { - com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest result = - new com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest(this); + com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest result = new com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest(this); result.name_ = name_; if (sshPublicKeyBuilder_ == null) { result.sshPublicKey_ = sshPublicKey_; @@ -511,39 +456,38 @@ public com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest) { - return mergeFrom((com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest) other); + return mergeFrom((com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest)other); } else { super.mergeFrom(other); return this; @@ -551,8 +495,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest other) { - if (other == com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -589,31 +532,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); + case 10: { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getSshPublicKeyFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getSshPublicKeyFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -626,24 +569,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The fingerprint of the public key to update. Public keys are identified by
      * their SHA-256 fingerprint. The fingerprint of the public key is in format
      * `users/{user}/sshPublicKeys/{fingerprint}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -652,25 +591,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The fingerprint of the public key to update. Public keys are identified by
      * their SHA-256 fingerprint. The fingerprint of the public key is in format
      * `users/{user}/sshPublicKeys/{fingerprint}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -678,73 +614,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The fingerprint of the public key to update. Public keys are identified by
      * their SHA-256 fingerprint. The fingerprint of the public key is in format
      * `users/{user}/sshPublicKeys/{fingerprint}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The fingerprint of the public key to update. Public keys are identified by
      * their SHA-256 fingerprint. The fingerprint of the public key is in format
      * `users/{user}/sshPublicKeys/{fingerprint}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The fingerprint of the public key to update. Public keys are identified by
      * their SHA-256 fingerprint. The fingerprint of the public key is in format
      * `users/{user}/sshPublicKeys/{fingerprint}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -752,61 +675,41 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey sshPublicKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder> - sshPublicKeyBuilder_; + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder> sshPublicKeyBuilder_; /** - * - * *
      * Required. The SSH public key and expiration time.
      * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sshPublicKey field is set. */ public boolean hasSshPublicKey() { return sshPublicKeyBuilder_ != null || sshPublicKey_ != null; } /** - * - * *
      * Required. The SSH public key and expiration time.
      * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The sshPublicKey. */ public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKey() { if (sshPublicKeyBuilder_ == null) { - return sshPublicKey_ == null - ? com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance() - : sshPublicKey_; + return sshPublicKey_ == null ? com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance() : sshPublicKey_; } else { return sshPublicKeyBuilder_.getMessage(); } } /** - * - * *
      * Required. The SSH public key and expiration time.
      * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSshPublicKey( - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey value) { + public Builder setSshPublicKey(com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey value) { if (sshPublicKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -820,15 +723,11 @@ public Builder setSshPublicKey( return this; } /** - * - * *
      * Required. The SSH public key and expiration time.
      * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSshPublicKey( com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder builderForValue) { @@ -842,24 +741,17 @@ public Builder setSshPublicKey( return this; } /** - * - * *
      * Required. The SSH public key and expiration time.
      * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeSshPublicKey( - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey value) { + public Builder mergeSshPublicKey(com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey value) { if (sshPublicKeyBuilder_ == null) { if (sshPublicKey_ != null) { sshPublicKey_ = - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.newBuilder(sshPublicKey_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.newBuilder(sshPublicKey_).mergeFrom(value).buildPartial(); } else { sshPublicKey_ = value; } @@ -871,15 +763,11 @@ public Builder mergeSshPublicKey( return this; } /** - * - * *
      * Required. The SSH public key and expiration time.
      * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSshPublicKey() { if (sshPublicKeyBuilder_ == null) { @@ -893,66 +781,48 @@ public Builder clearSshPublicKey() { return this; } /** - * - * *
      * Required. The SSH public key and expiration time.
      * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder - getSshPublicKeyBuilder() { - + public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder getSshPublicKeyBuilder() { + onChanged(); return getSshPublicKeyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The SSH public key and expiration time.
      * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder - getSshPublicKeyOrBuilder() { + public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder getSshPublicKeyOrBuilder() { if (sshPublicKeyBuilder_ != null) { return sshPublicKeyBuilder_.getMessageOrBuilder(); } else { - return sshPublicKey_ == null - ? com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance() - : sshPublicKey_; + return sshPublicKey_ == null ? + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.getDefaultInstance() : sshPublicKey_; } } /** - * - * *
      * Required. The SSH public key and expiration time.
      * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder> + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder> getSshPublicKeyFieldBuilder() { if (sshPublicKeyBuilder_ == null) { - sshPublicKeyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder, - com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder>( - getSshPublicKey(), getParentForChildren(), isClean()); + sshPublicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey.Builder, com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder>( + getSshPublicKey(), + getParentForChildren(), + isClean()); sshPublicKey_ = null; } return sshPublicKeyBuilder_; @@ -960,47 +830,34 @@ public Builder clearSshPublicKey() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Mask to control which fields get updated. Updates all if not present.
      * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Mask to control which fields get updated. Updates all if not present.
      * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Mask to control which fields get updated. Updates all if not present.
      * 
@@ -1021,15 +878,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Mask to control which fields get updated. Updates all if not present.
      * 
* * .google.protobuf.FieldMask update_mask = 3; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -1040,8 +896,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Mask to control which fields get updated. Updates all if not present.
      * 
@@ -1052,7 +906,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1064,8 +918,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Mask to control which fields get updated. Updates all if not present.
      * 
@@ -1084,8 +936,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Mask to control which fields get updated. Updates all if not present.
      * 
@@ -1093,13 +943,11 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 3; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Mask to control which fields get updated. Updates all if not present.
      * 
@@ -1110,14 +958,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Mask to control which fields get updated. Updates all if not present.
      * 
@@ -1125,24 +970,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1152,12 +994,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.oslogin.v1.UpdateSshPublicKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.UpdateSshPublicKeyRequest) private static final com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest(); } @@ -1166,27 +1008,27 @@ public static com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSshPublicKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSshPublicKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1201,4 +1043,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UpdateSshPublicKeyRequestOrBuilder.java b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UpdateSshPublicKeyRequestOrBuilder.java similarity index 60% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UpdateSshPublicKeyRequestOrBuilder.java rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UpdateSshPublicKeyRequestOrBuilder.java index 6136f982317e..22518df5f71a 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UpdateSshPublicKeyRequestOrBuilder.java +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UpdateSshPublicKeyRequestOrBuilder.java @@ -1,129 +1,82 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/oslogin/v1/oslogin.proto package com.google.cloud.oslogin.v1; -public interface UpdateSshPublicKeyRequestOrBuilder - extends +public interface UpdateSshPublicKeyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.oslogin.v1.UpdateSshPublicKeyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The fingerprint of the public key to update. Public keys are identified by
    * their SHA-256 fingerprint. The fingerprint of the public key is in format
    * `users/{user}/sshPublicKeys/{fingerprint}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The fingerprint of the public key to update. Public keys are identified by
    * their SHA-256 fingerprint. The fingerprint of the public key is in format
    * `users/{user}/sshPublicKeys/{fingerprint}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The SSH public key and expiration time.
    * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sshPublicKey field is set. */ boolean hasSshPublicKey(); /** - * - * *
    * Required. The SSH public key and expiration time.
    * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The sshPublicKey. */ com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKey(); /** - * - * *
    * Required. The SSH public key and expiration time.
    * 
* - * - * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.oslogin.common.OsLoginProto.SshPublicKeyOrBuilder getSshPublicKeyOrBuilder(); /** - * - * *
    * Mask to control which fields get updated. Updates all if not present.
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Mask to control which fields get updated. Updates all if not present.
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Mask to control which fields get updated. Updates all if not present.
    * 
diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/proto/google/cloud/oslogin/common/common.proto b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/proto/google/cloud/oslogin/common/common.proto similarity index 97% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/proto/google/cloud/oslogin/common/common.proto rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/proto/google/cloud/oslogin/common/common.proto index 4d9755f0d205..6eeaf8908d86 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/proto/google/cloud/oslogin/common/common.proto +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/proto/google/cloud/oslogin/common/common.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// syntax = "proto3"; @@ -26,8 +25,6 @@ option java_outer_classname = "OsLoginProto"; option java_package = "com.google.cloud.oslogin.common"; option php_namespace = "Google\\Cloud\\OsLogin\\Common"; option ruby_package = "Google::Cloud::OsLogin::Common"; - -// Define a "User" resource owned by OS Login. option (google.api.resource_definition) = { type: "oslogin.googleapis.com/User" pattern: "users/{user}" diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/proto/google/cloud/oslogin/v1/oslogin.proto b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/proto/google/cloud/oslogin/v1/oslogin.proto similarity index 87% rename from java-os-login/proto-google-cloud-os-login-v1/src/main/proto/google/cloud/oslogin/v1/oslogin.proto rename to owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/proto/google/cloud/oslogin/v1/oslogin.proto index 25e9be0a07e7..fb3575600c47 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/proto/google/cloud/oslogin/v1/oslogin.proto +++ b/owl-bot-staging/java-os-login/v1/proto-google-cloud-os-login-v1/src/main/proto/google/cloud/oslogin/v1/oslogin.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// syntax = "proto3"; @@ -41,7 +40,18 @@ service OsLoginService { option (google.api.default_host) = "oslogin.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform," - "https://www.googleapis.com/auth/compute"; + "https://www.googleapis.com/auth/cloud-platform.read-only," + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/compute.readonly"; + + // Create an SSH public key + rpc CreateSshPublicKey(CreateSshPublicKeyRequest) returns (google.cloud.oslogin.common.SshPublicKey) { + option (google.api.http) = { + post: "/v1/{parent=users/*}/sshPublicKeys" + body: "ssh_public_key" + }; + option (google.api.method_signature) = "parent,ssh_public_key"; + } // Deletes a POSIX account. rpc DeletePosixAccount(DeletePosixAccountRequest) returns (google.protobuf.Empty) { @@ -113,6 +123,20 @@ message LoginProfile { map ssh_public_keys = 3; } +// A request message for creating an SSH public key. +message CreateSshPublicKeyRequest { + // Required. The unique ID for the user in format `users/{user}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oslogin.googleapis.com/SshPublicKey" + } + ]; + + // Required. The SSH public key and expiration time. + google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(google.api.field_behavior) = REQUIRED]; +} + // A request message for deleting a POSIX account entry. message DeletePosixAccountRequest { // Required. A reference to the POSIX account to update. POSIX accounts are identified @@ -190,6 +214,9 @@ message ImportSshPublicKeyRequest { message ImportSshPublicKeyResponse { // The login profile information for the user. LoginProfile login_profile = 1; + + // Detailed information about import results. + string details = 2; } // A request message for updating an SSH public key.