Class Compute.GetSSHConfigResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Compute.GetSSHConfigResponse.Builder>
com.google.protobuf.GeneratedMessage.Builder<Compute.GetSSHConfigResponse.Builder>
namespace.cloud.compute.v1beta.Compute.GetSSHConfigResponse.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Compute.GetSSHConfigResponseOrBuilder
Enclosing class:
Compute.GetSSHConfigResponse

public static final class Compute.GetSSHConfigResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<Compute.GetSSHConfigResponse.Builder> implements Compute.GetSSHConfigResponseOrBuilder
Protobuf type namespace.cloud.compute.v1beta.GetSSHConfigResponse
  • 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<Compute.GetSSHConfigResponse.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<Compute.GetSSHConfigResponse.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<Compute.GetSSHConfigResponse.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public Compute.GetSSHConfigResponse.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<Compute.GetSSHConfigResponse.Builder>
      Throws:
      IOException
    • getSshPrivateKey

      public com.google.protobuf.ByteString getSshPrivateKey()
       If set, this private key can be used to establish an SSH session to the instance.
       Any private key returned here has limited access rights, restricted to a single instance.
       
      bytes ssh_private_key = 1;
      Specified by:
      getSshPrivateKey in interface Compute.GetSSHConfigResponseOrBuilder
      Returns:
      The sshPrivateKey.
    • setSshPrivateKey

      public Compute.GetSSHConfigResponse.Builder setSshPrivateKey(com.google.protobuf.ByteString value)
       If set, this private key can be used to establish an SSH session to the instance.
       Any private key returned here has limited access rights, restricted to a single instance.
       
      bytes ssh_private_key = 1;
      Parameters:
      value - The sshPrivateKey to set.
      Returns:
      This builder for chaining.
    • clearSshPrivateKey

      public Compute.GetSSHConfigResponse.Builder clearSshPrivateKey()
       If set, this private key can be used to establish an SSH session to the instance.
       Any private key returned here has limited access rights, restricted to a single instance.
       
      bytes ssh_private_key = 1;
      Returns:
      This builder for chaining.
    • getUsername

      public String getUsername()
       Which username to use when establishing an SSH session.
       E.g. You can start a session from a terminal using `ssh <username>@<endpoint>`.
       
      string username = 2;
      Specified by:
      getUsername in interface Compute.GetSSHConfigResponseOrBuilder
      Returns:
      The username.
    • getUsernameBytes

      public com.google.protobuf.ByteString getUsernameBytes()
       Which username to use when establishing an SSH session.
       E.g. You can start a session from a terminal using `ssh <username>@<endpoint>`.
       
      string username = 2;
      Specified by:
      getUsernameBytes in interface Compute.GetSSHConfigResponseOrBuilder
      Returns:
      The bytes for username.
    • setUsername

      public Compute.GetSSHConfigResponse.Builder setUsername(String value)
       Which username to use when establishing an SSH session.
       E.g. You can start a session from a terminal using `ssh <username>@<endpoint>`.
       
      string username = 2;
      Parameters:
      value - The username to set.
      Returns:
      This builder for chaining.
    • clearUsername

      public Compute.GetSSHConfigResponse.Builder clearUsername()
       Which username to use when establishing an SSH session.
       E.g. You can start a session from a terminal using `ssh <username>@<endpoint>`.
       
      string username = 2;
      Returns:
      This builder for chaining.
    • setUsernameBytes

      public Compute.GetSSHConfigResponse.Builder setUsernameBytes(com.google.protobuf.ByteString value)
       Which username to use when establishing an SSH session.
       E.g. You can start a session from a terminal using `ssh <username>@<endpoint>`.
       
      string username = 2;
      Parameters:
      value - The bytes for username to set.
      Returns:
      This builder for chaining.
    • getEndpoint

      public String getEndpoint()
       This SSH endpoint can be used to establish an SSH session with the instance.
       Make sure to also configure the corresponding username.
       
      string endpoint = 3;
      Specified by:
      getEndpoint in interface Compute.GetSSHConfigResponseOrBuilder
      Returns:
      The endpoint.
    • getEndpointBytes

      public com.google.protobuf.ByteString getEndpointBytes()
       This SSH endpoint can be used to establish an SSH session with the instance.
       Make sure to also configure the corresponding username.
       
      string endpoint = 3;
      Specified by:
      getEndpointBytes in interface Compute.GetSSHConfigResponseOrBuilder
      Returns:
      The bytes for endpoint.
    • setEndpoint

      public Compute.GetSSHConfigResponse.Builder setEndpoint(String value)
       This SSH endpoint can be used to establish an SSH session with the instance.
       Make sure to also configure the corresponding username.
       
      string endpoint = 3;
      Parameters:
      value - The endpoint to set.
      Returns:
      This builder for chaining.
    • clearEndpoint

      public Compute.GetSSHConfigResponse.Builder clearEndpoint()
       This SSH endpoint can be used to establish an SSH session with the instance.
       Make sure to also configure the corresponding username.
       
      string endpoint = 3;
      Returns:
      This builder for chaining.
    • setEndpointBytes

      public Compute.GetSSHConfigResponse.Builder setEndpointBytes(com.google.protobuf.ByteString value)
       This SSH endpoint can be used to establish an SSH session with the instance.
       Make sure to also configure the corresponding username.
       
      string endpoint = 3;
      Parameters:
      value - The bytes for endpoint to set.
      Returns:
      This builder for chaining.
    • getSshHostKeysList

      public List<com.google.protobuf.ByteString> getSshHostKeysList()
       The SSH server public host keys, encoded in the OpenSSH public key format.
       Clients can use these keys to verify the server at endpoint.
       
      repeated bytes ssh_host_keys = 4;
      Specified by:
      getSshHostKeysList in interface Compute.GetSSHConfigResponseOrBuilder
      Returns:
      A list containing the sshHostKeys.
    • getSshHostKeysCount

      public int getSshHostKeysCount()
       The SSH server public host keys, encoded in the OpenSSH public key format.
       Clients can use these keys to verify the server at endpoint.
       
      repeated bytes ssh_host_keys = 4;
      Specified by:
      getSshHostKeysCount in interface Compute.GetSSHConfigResponseOrBuilder
      Returns:
      The count of sshHostKeys.
    • getSshHostKeys

      public com.google.protobuf.ByteString getSshHostKeys(int index)
       The SSH server public host keys, encoded in the OpenSSH public key format.
       Clients can use these keys to verify the server at endpoint.
       
      repeated bytes ssh_host_keys = 4;
      Specified by:
      getSshHostKeys in interface Compute.GetSSHConfigResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The sshHostKeys at the given index.
    • setSshHostKeys

      public Compute.GetSSHConfigResponse.Builder setSshHostKeys(int index, com.google.protobuf.ByteString value)
       The SSH server public host keys, encoded in the OpenSSH public key format.
       Clients can use these keys to verify the server at endpoint.
       
      repeated bytes ssh_host_keys = 4;
      Parameters:
      index - The index to set the value at.
      value - The sshHostKeys to set.
      Returns:
      This builder for chaining.
    • addSshHostKeys

      public Compute.GetSSHConfigResponse.Builder addSshHostKeys(com.google.protobuf.ByteString value)
       The SSH server public host keys, encoded in the OpenSSH public key format.
       Clients can use these keys to verify the server at endpoint.
       
      repeated bytes ssh_host_keys = 4;
      Parameters:
      value - The sshHostKeys to add.
      Returns:
      This builder for chaining.
    • addAllSshHostKeys

      public Compute.GetSSHConfigResponse.Builder addAllSshHostKeys(Iterable<? extends com.google.protobuf.ByteString> values)
       The SSH server public host keys, encoded in the OpenSSH public key format.
       Clients can use these keys to verify the server at endpoint.
       
      repeated bytes ssh_host_keys = 4;
      Parameters:
      values - The sshHostKeys to add.
      Returns:
      This builder for chaining.
    • clearSshHostKeys

      public Compute.GetSSHConfigResponse.Builder clearSshHostKeys()
       The SSH server public host keys, encoded in the OpenSSH public key format.
       Clients can use these keys to verify the server at endpoint.
       
      repeated bytes ssh_host_keys = 4;
      Returns:
      This builder for chaining.