Class ImportSshPublicKeyRequest.Builder

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

public static final class ImportSshPublicKeyRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ImportSshPublicKeyRequest.Builder> implements ImportSshPublicKeyRequestOrBuilder
 A request message for importing an SSH public key.
 
Protobuf type google.cloud.oslogin.v1.ImportSshPublicKeyRequest
  • 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<ImportSshPublicKeyRequest.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<ImportSshPublicKeyRequest.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<ImportSshPublicKeyRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public ImportSshPublicKeyRequest.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<ImportSshPublicKeyRequest.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<ImportSshPublicKeyRequest.Builder>
    • mergeFrom

      public ImportSshPublicKeyRequest.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<ImportSshPublicKeyRequest.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 ImportSshPublicKeyRequestOrBuilder
      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 ImportSshPublicKeyRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public ImportSshPublicKeyRequest.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 ImportSshPublicKeyRequest.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 ImportSshPublicKeyRequest.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()
       Optional. The SSH public key and expiration time.
       
      .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSshPublicKey in interface ImportSshPublicKeyRequestOrBuilder
      Returns:
      Whether the sshPublicKey field is set.
    • getSshPublicKey

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

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

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

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

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

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

      public OsLoginProto.SshPublicKeyOrBuilder getSshPublicKeyOrBuilder()
       Optional. The SSH public key and expiration time.
       
      .google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSshPublicKeyOrBuilder in interface ImportSshPublicKeyRequestOrBuilder
    • getProjectId

      public String getProjectId()
       The project ID of the Google Cloud Platform project.
       
      string project_id = 3;
      Specified by:
      getProjectId in interface ImportSshPublicKeyRequestOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       The project ID of the Google Cloud Platform project.
       
      string project_id = 3;
      Specified by:
      getProjectIdBytes in interface ImportSshPublicKeyRequestOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public ImportSshPublicKeyRequest.Builder setProjectId(String value)
       The project ID of the Google Cloud Platform project.
       
      string project_id = 3;
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      public ImportSshPublicKeyRequest.Builder clearProjectId()
       The project ID of the Google Cloud Platform project.
       
      string project_id = 3;
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public ImportSshPublicKeyRequest.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       The project ID of the Google Cloud Platform project.
       
      string project_id = 3;
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • getRegionsList

      public com.google.protobuf.ProtocolStringList getRegionsList()
       Optional. The regions to which to assert that the key was written.
       If unspecified, defaults to all regions.
       Regions are listed at https://cloud.google.com/about/locations#region.
       
      repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRegionsList in interface ImportSshPublicKeyRequestOrBuilder
      Returns:
      A list containing the regions.
    • getRegionsCount

      public int getRegionsCount()
       Optional. The regions to which to assert that the key was written.
       If unspecified, defaults to all regions.
       Regions are listed at https://cloud.google.com/about/locations#region.
       
      repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRegionsCount in interface ImportSshPublicKeyRequestOrBuilder
      Returns:
      The count of regions.
    • getRegions

      public String getRegions(int index)
       Optional. The regions to which to assert that the key was written.
       If unspecified, defaults to all regions.
       Regions are listed at https://cloud.google.com/about/locations#region.
       
      repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRegions in interface ImportSshPublicKeyRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The regions at the given index.
    • getRegionsBytes

      public com.google.protobuf.ByteString getRegionsBytes(int index)
       Optional. The regions to which to assert that the key was written.
       If unspecified, defaults to all regions.
       Regions are listed at https://cloud.google.com/about/locations#region.
       
      repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRegionsBytes in interface ImportSshPublicKeyRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the regions at the given index.
    • setRegions

      public ImportSshPublicKeyRequest.Builder setRegions(int index, String value)
       Optional. The regions to which to assert that the key was written.
       If unspecified, defaults to all regions.
       Regions are listed at https://cloud.google.com/about/locations#region.
       
      repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The regions to set.
      Returns:
      This builder for chaining.
    • addRegions

      public ImportSshPublicKeyRequest.Builder addRegions(String value)
       Optional. The regions to which to assert that the key was written.
       If unspecified, defaults to all regions.
       Regions are listed at https://cloud.google.com/about/locations#region.
       
      repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The regions to add.
      Returns:
      This builder for chaining.
    • addAllRegions

      public ImportSshPublicKeyRequest.Builder addAllRegions(Iterable<String> values)
       Optional. The regions to which to assert that the key was written.
       If unspecified, defaults to all regions.
       Regions are listed at https://cloud.google.com/about/locations#region.
       
      repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The regions to add.
      Returns:
      This builder for chaining.
    • clearRegions

      public ImportSshPublicKeyRequest.Builder clearRegions()
       Optional. The regions to which to assert that the key was written.
       If unspecified, defaults to all regions.
       Regions are listed at https://cloud.google.com/about/locations#region.
       
      repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addRegionsBytes

      public ImportSshPublicKeyRequest.Builder addRegionsBytes(com.google.protobuf.ByteString value)
       Optional. The regions to which to assert that the key was written.
       If unspecified, defaults to all regions.
       Regions are listed at https://cloud.google.com/about/locations#region.
       
      repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the regions to add.
      Returns:
      This builder for chaining.