Class ForwardSshTunnelConnectivity.Builder

    • 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<ForwardSshTunnelConnectivity.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<ForwardSshTunnelConnectivity.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public ForwardSshTunnelConnectivity.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<ForwardSshTunnelConnectivity.Builder>
        Throws:
        IOException
      • getHostnameBytes

        public com.google.protobuf.ByteString getHostnameBytes()
         Required. Hostname for the SSH tunnel.
         
        string hostname = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getHostnameBytes in interface ForwardSshTunnelConnectivityOrBuilder
        Returns:
        The bytes for hostname.
      • setHostname

        public ForwardSshTunnelConnectivity.Builder setHostname​(String value)
         Required. Hostname for the SSH tunnel.
         
        string hostname = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The hostname to set.
        Returns:
        This builder for chaining.
      • clearHostname

        public ForwardSshTunnelConnectivity.Builder clearHostname()
         Required. Hostname for the SSH tunnel.
         
        string hostname = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setHostnameBytes

        public ForwardSshTunnelConnectivity.Builder setHostnameBytes​(com.google.protobuf.ByteString value)
         Required. Hostname for the SSH tunnel.
         
        string hostname = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for hostname to set.
        Returns:
        This builder for chaining.
      • getUsernameBytes

        public com.google.protobuf.ByteString getUsernameBytes()
         Required. Username for the SSH tunnel.
         
        string username = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getUsernameBytes in interface ForwardSshTunnelConnectivityOrBuilder
        Returns:
        The bytes for username.
      • setUsername

        public ForwardSshTunnelConnectivity.Builder setUsername​(String value)
         Required. Username for the SSH tunnel.
         
        string username = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The username to set.
        Returns:
        This builder for chaining.
      • clearUsername

        public ForwardSshTunnelConnectivity.Builder clearUsername()
         Required. Username for the SSH tunnel.
         
        string username = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setUsernameBytes

        public ForwardSshTunnelConnectivity.Builder setUsernameBytes​(com.google.protobuf.ByteString value)
         Required. Username for the SSH tunnel.
         
        string username = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for username to set.
        Returns:
        This builder for chaining.
      • setPort

        public ForwardSshTunnelConnectivity.Builder setPort​(int value)
         Port for the SSH tunnel, default value is 22.
         
        int32 port = 3;
        Parameters:
        value - The port to set.
        Returns:
        This builder for chaining.
      • hasPassword

        public boolean hasPassword()
         Input only. SSH password.
         
        string password = 100 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        hasPassword in interface ForwardSshTunnelConnectivityOrBuilder
        Returns:
        Whether the password field is set.
      • getPasswordBytes

        public com.google.protobuf.ByteString getPasswordBytes()
         Input only. SSH password.
         
        string password = 100 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getPasswordBytes in interface ForwardSshTunnelConnectivityOrBuilder
        Returns:
        The bytes for password.
      • setPassword

        public ForwardSshTunnelConnectivity.Builder setPassword​(String value)
         Input only. SSH password.
         
        string password = 100 [(.google.api.field_behavior) = INPUT_ONLY];
        Parameters:
        value - The password to set.
        Returns:
        This builder for chaining.
      • clearPassword

        public ForwardSshTunnelConnectivity.Builder clearPassword()
         Input only. SSH password.
         
        string password = 100 [(.google.api.field_behavior) = INPUT_ONLY];
        Returns:
        This builder for chaining.
      • setPasswordBytes

        public ForwardSshTunnelConnectivity.Builder setPasswordBytes​(com.google.protobuf.ByteString value)
         Input only. SSH password.
         
        string password = 100 [(.google.api.field_behavior) = INPUT_ONLY];
        Parameters:
        value - The bytes for password to set.
        Returns:
        This builder for chaining.
      • hasPrivateKey

        public boolean hasPrivateKey()
         Input only. SSH private key.
         
        string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        hasPrivateKey in interface ForwardSshTunnelConnectivityOrBuilder
        Returns:
        Whether the privateKey field is set.
      • getPrivateKeyBytes

        public com.google.protobuf.ByteString getPrivateKeyBytes()
         Input only. SSH private key.
         
        string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getPrivateKeyBytes in interface ForwardSshTunnelConnectivityOrBuilder
        Returns:
        The bytes for privateKey.
      • setPrivateKey

        public ForwardSshTunnelConnectivity.Builder setPrivateKey​(String value)
         Input only. SSH private key.
         
        string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY];
        Parameters:
        value - The privateKey to set.
        Returns:
        This builder for chaining.
      • clearPrivateKey

        public ForwardSshTunnelConnectivity.Builder clearPrivateKey()
         Input only. SSH private key.
         
        string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY];
        Returns:
        This builder for chaining.
      • setPrivateKeyBytes

        public ForwardSshTunnelConnectivity.Builder setPrivateKeyBytes​(com.google.protobuf.ByteString value)
         Input only. SSH private key.
         
        string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY];
        Parameters:
        value - The bytes for privateKey to set.
        Returns:
        This builder for chaining.