Class CreateSSHKeyRequest.Builder

  • All Implemented Interfaces:
    CreateSSHKeyRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    CreateSSHKeyRequest

    public static final class CreateSSHKeyRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CreateSSHKeyRequest.Builder>
    implements CreateSSHKeyRequestOrBuilder
     Message for registering a public SSH key in a project.
     
    Protobuf type google.cloud.baremetalsolution.v2.CreateSSHKeyRequest
    • Method Detail

      • getDescriptor

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

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

        public CreateSSHKeyRequest.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.GeneratedMessageV3.Builder<CreateSSHKeyRequest.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.GeneratedMessageV3.Builder<CreateSSHKeyRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public CreateSSHKeyRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSSHKeyRequest.Builder>
      • setField

        public CreateSSHKeyRequest.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSSHKeyRequest.Builder>
      • clearField

        public CreateSSHKeyRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSSHKeyRequest.Builder>
      • clearOneof

        public CreateSSHKeyRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSSHKeyRequest.Builder>
      • setRepeatedField

        public CreateSSHKeyRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            int index,
                                                            Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSSHKeyRequest.Builder>
      • addRepeatedField

        public CreateSSHKeyRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSSHKeyRequest.Builder>
      • mergeFrom

        public CreateSSHKeyRequest.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<CreateSSHKeyRequest.Builder>
      • isInitialized

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

        public CreateSSHKeyRequest.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<CreateSSHKeyRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Required. The parent containing the SSH keys.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface CreateSSHKeyRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The parent containing the SSH keys.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface CreateSSHKeyRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateSSHKeyRequest.Builder setParent​(String value)
         Required. The parent containing the SSH keys.
         
        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 CreateSSHKeyRequest.Builder clearParent()
         Required. The parent containing the SSH keys.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateSSHKeyRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The parent containing the SSH keys.
         
        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.
      • hasSshKey

        public boolean hasSshKey()
         Required. The SSH key to register.
         
        .google.cloud.baremetalsolution.v2.SSHKey ssh_key = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasSshKey in interface CreateSSHKeyRequestOrBuilder
        Returns:
        Whether the sshKey field is set.
      • getSshKey

        public SSHKey getSshKey()
         Required. The SSH key to register.
         
        .google.cloud.baremetalsolution.v2.SSHKey ssh_key = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getSshKey in interface CreateSSHKeyRequestOrBuilder
        Returns:
        The sshKey.
      • setSshKey

        public CreateSSHKeyRequest.Builder setSshKey​(SSHKey value)
         Required. The SSH key to register.
         
        .google.cloud.baremetalsolution.v2.SSHKey ssh_key = 2 [(.google.api.field_behavior) = REQUIRED];
      • setSshKey

        public CreateSSHKeyRequest.Builder setSshKey​(SSHKey.Builder builderForValue)
         Required. The SSH key to register.
         
        .google.cloud.baremetalsolution.v2.SSHKey ssh_key = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeSshKey

        public CreateSSHKeyRequest.Builder mergeSshKey​(SSHKey value)
         Required. The SSH key to register.
         
        .google.cloud.baremetalsolution.v2.SSHKey ssh_key = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearSshKey

        public CreateSSHKeyRequest.Builder clearSshKey()
         Required. The SSH key to register.
         
        .google.cloud.baremetalsolution.v2.SSHKey ssh_key = 2 [(.google.api.field_behavior) = REQUIRED];
      • getSshKeyBuilder

        public SSHKey.Builder getSshKeyBuilder()
         Required. The SSH key to register.
         
        .google.cloud.baremetalsolution.v2.SSHKey ssh_key = 2 [(.google.api.field_behavior) = REQUIRED];
      • getSshKeyId

        public String getSshKeyId()
         Required. The ID to use for the key, which will become the final component
         of the key's resource name.
        
         This value must match the regex:
           [a-zA-Z0-9@.\-_]{1,64}
         
        string ssh_key_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getSshKeyId in interface CreateSSHKeyRequestOrBuilder
        Returns:
        The sshKeyId.
      • getSshKeyIdBytes

        public com.google.protobuf.ByteString getSshKeyIdBytes()
         Required. The ID to use for the key, which will become the final component
         of the key's resource name.
        
         This value must match the regex:
           [a-zA-Z0-9@.\-_]{1,64}
         
        string ssh_key_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getSshKeyIdBytes in interface CreateSSHKeyRequestOrBuilder
        Returns:
        The bytes for sshKeyId.
      • setSshKeyId

        public CreateSSHKeyRequest.Builder setSshKeyId​(String value)
         Required. The ID to use for the key, which will become the final component
         of the key's resource name.
        
         This value must match the regex:
           [a-zA-Z0-9@.\-_]{1,64}
         
        string ssh_key_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The sshKeyId to set.
        Returns:
        This builder for chaining.
      • clearSshKeyId

        public CreateSSHKeyRequest.Builder clearSshKeyId()
         Required. The ID to use for the key, which will become the final component
         of the key's resource name.
        
         This value must match the regex:
           [a-zA-Z0-9@.\-_]{1,64}
         
        string ssh_key_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setSshKeyIdBytes

        public CreateSSHKeyRequest.Builder setSshKeyIdBytes​(com.google.protobuf.ByteString value)
         Required. The ID to use for the key, which will become the final component
         of the key's resource name.
        
         This value must match the regex:
           [a-zA-Z0-9@.\-_]{1,64}
         
        string ssh_key_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for sshKeyId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CreateSSHKeyRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSSHKeyRequest.Builder>
      • mergeUnknownFields

        public final CreateSSHKeyRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSSHKeyRequest.Builder>