Class CreateSshPublicKeyRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateSshPublicKeyRequest.Builder>
com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest.Builder
All Implemented Interfaces:
CreateSshPublicKeyRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateSshPublicKeyRequest

public static final class CreateSshPublicKeyRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateSshPublicKeyRequest.Builder> implements CreateSshPublicKeyRequestOrBuilder
 A request message for creating an SSH public key.
 
Protobuf type google.cloud.oslogin.v1.CreateSshPublicKeyRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CreateSshPublicKeyRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CreateSshPublicKeyRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CreateSshPublicKeyRequest.Builder>
    • getDefaultInstanceForType

      public CreateSshPublicKeyRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CreateSshPublicKeyRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CreateSshPublicKeyRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CreateSshPublicKeyRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateSshPublicKeyRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CreateSshPublicKeyRequest.Builder>
    • mergeFrom

      public CreateSshPublicKeyRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateSshPublicKeyRequest.Builder>
      Throws:
      IOException
    • getParent

      public 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) = { ... }
      Specified by:
      getParent in interface CreateSshPublicKeyRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      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) = { ... }
      Specified by:
      getParentBytes in interface CreateSshPublicKeyRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateSshPublicKeyRequest.Builder setParent(String value)
       Required. The unique ID for the user in format `users/{user}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateSshPublicKeyRequest.Builder clearParent()
       Required. The unique ID for the user in format `users/{user}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateSshPublicKeyRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The unique ID for the user in format `users/{user}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasSshPublicKey

      public boolean hasSshPublicKey()
       Required. The SSH public key and expiration time.
       
      .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSshPublicKey in interface CreateSshPublicKeyRequestOrBuilder
      Returns:
      Whether the sshPublicKey field is set.
    • getSshPublicKey

      public 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];
      Specified by:
      getSshPublicKey in interface CreateSshPublicKeyRequestOrBuilder
      Returns:
      The sshPublicKey.
    • setSshPublicKey

       Required. The SSH public key and expiration time.
       
      .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED];
    • setSshPublicKey

      public CreateSshPublicKeyRequest.Builder setSshPublicKey(OsLoginProto.SshPublicKey.Builder builderForValue)
       Required. The SSH public key and expiration time.
       
      .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeSshPublicKey

       Required. The SSH public key and expiration time.
       
      .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearSshPublicKey

      public CreateSshPublicKeyRequest.Builder clearSshPublicKey()
       Required. The SSH public key and expiration time.
       
      .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSshPublicKeyBuilder

      public OsLoginProto.SshPublicKey.Builder getSshPublicKeyBuilder()
       Required. The SSH public key and expiration time.
       
      .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSshPublicKeyOrBuilder

      public OsLoginProto.SshPublicKeyOrBuilder getSshPublicKeyOrBuilder()
       Required. The SSH public key and expiration time.
       
      .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSshPublicKeyOrBuilder in interface CreateSshPublicKeyRequestOrBuilder