Class ForwardSshTunnelConnectivity.Builder (1.1.1)

public static final class ForwardSshTunnelConnectivity.Builder extends GeneratedMessageV3.Builder<ForwardSshTunnelConnectivity.Builder> implements ForwardSshTunnelConnectivityOrBuilder

Forward SSH Tunnel connectivity.

Protobuf type google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ForwardSshTunnelConnectivity.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder
Overrides

build()

public ForwardSshTunnelConnectivity build()
Returns
TypeDescription
ForwardSshTunnelConnectivity

buildPartial()

public ForwardSshTunnelConnectivity buildPartial()
Returns
TypeDescription
ForwardSshTunnelConnectivity

clear()

public ForwardSshTunnelConnectivity.Builder clear()
Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder
Overrides

clearAuthenticationMethod()

public ForwardSshTunnelConnectivity.Builder clearAuthenticationMethod()
Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder

clearField(Descriptors.FieldDescriptor field)

public ForwardSshTunnelConnectivity.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder
Overrides

clearHostname()

public ForwardSshTunnelConnectivity.Builder clearHostname()

Required. Hostname for the SSH tunnel.

string hostname = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ForwardSshTunnelConnectivity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder
Overrides

clearPassword()

public ForwardSshTunnelConnectivity.Builder clearPassword()

Input only. SSH password.

string password = 100 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder

This builder for chaining.

clearPort()

public ForwardSshTunnelConnectivity.Builder clearPort()

Port for the SSH tunnel, default value is 22.

int32 port = 3;

Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder

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
TypeDescription
ForwardSshTunnelConnectivity.Builder

This builder for chaining.

clearUsername()

public ForwardSshTunnelConnectivity.Builder clearUsername()

Required. Username for the SSH tunnel.

string username = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder

This builder for chaining.

clone()

public ForwardSshTunnelConnectivity.Builder clone()
Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder
Overrides

getAuthenticationMethodCase()

public ForwardSshTunnelConnectivity.AuthenticationMethodCase getAuthenticationMethodCase()
Returns
TypeDescription
ForwardSshTunnelConnectivity.AuthenticationMethodCase

getDefaultInstanceForType()

public ForwardSshTunnelConnectivity getDefaultInstanceForType()
Returns
TypeDescription
ForwardSshTunnelConnectivity

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHostname()

public String getHostname()

Required. Hostname for the SSH tunnel.

string hostname = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The hostname.

getHostnameBytes()

public ByteString getHostnameBytes()

Required. Hostname for the SSH tunnel.

string hostname = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for hostname.

getPassword()

public String getPassword()

Input only. SSH password.

string password = 100 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
String

The password.

getPasswordBytes()

public ByteString getPasswordBytes()

Input only. SSH password.

string password = 100 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for password.

getPort()

public int getPort()

Port for the SSH tunnel, default value is 22.

int32 port = 3;

Returns
TypeDescription
int

The port.

getPrivateKey()

public String getPrivateKey()

Input only. SSH private key.

string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
String

The privateKey.

getPrivateKeyBytes()

public ByteString getPrivateKeyBytes()

Input only. SSH private key.

string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for privateKey.

getUsername()

public String getUsername()

Required. Username for the SSH tunnel.

string username = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

Required. Username for the SSH tunnel.

string username = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for username.

hasPassword()

public boolean hasPassword()

Input only. SSH password.

string password = 100 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
boolean

Whether the password field is set.

hasPrivateKey()

public boolean hasPrivateKey()

Input only. SSH private key.

string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
boolean

Whether the privateKey field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ForwardSshTunnelConnectivity other)

public ForwardSshTunnelConnectivity.Builder mergeFrom(ForwardSshTunnelConnectivity other)
Parameter
NameDescription
otherForwardSshTunnelConnectivity
Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ForwardSshTunnelConnectivity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ForwardSshTunnelConnectivity.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ForwardSshTunnelConnectivity.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ForwardSshTunnelConnectivity.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder
Overrides

setHostname(String value)

public ForwardSshTunnelConnectivity.Builder setHostname(String value)

Required. Hostname for the SSH tunnel.

string hostname = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The hostname to set.

Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder

This builder for chaining.

setHostnameBytes(ByteString value)

public ForwardSshTunnelConnectivity.Builder setHostnameBytes(ByteString value)

Required. Hostname for the SSH tunnel.

string hostname = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for hostname to set.

Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder

This builder for chaining.

setPassword(String value)

public ForwardSshTunnelConnectivity.Builder setPassword(String value)

Input only. SSH password.

string password = 100 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueString

The password to set.

Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder

This builder for chaining.

setPasswordBytes(ByteString value)

public ForwardSshTunnelConnectivity.Builder setPasswordBytes(ByteString value)

Input only. SSH password.

string password = 100 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for password to set.

Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder

This builder for chaining.

setPort(int value)

public ForwardSshTunnelConnectivity.Builder setPort(int value)

Port for the SSH tunnel, default value is 22.

int32 port = 3;

Parameter
NameDescription
valueint

The port to set.

Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder

This builder for chaining.

setPrivateKey(String value)

public ForwardSshTunnelConnectivity.Builder setPrivateKey(String value)

Input only. SSH private key.

string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueString

The privateKey to set.

Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder

This builder for chaining.

setPrivateKeyBytes(ByteString value)

public ForwardSshTunnelConnectivity.Builder setPrivateKeyBytes(ByteString value)

Input only. SSH private key.

string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for privateKey to set.

Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ForwardSshTunnelConnectivity.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ForwardSshTunnelConnectivity.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder
Overrides

setUsername(String value)

public ForwardSshTunnelConnectivity.Builder setUsername(String value)

Required. Username for the SSH tunnel.

string username = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The username to set.

Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder

This builder for chaining.

setUsernameBytes(ByteString value)

public ForwardSshTunnelConnectivity.Builder setUsernameBytes(ByteString value)

Required. Username for the SSH tunnel.

string username = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for username to set.

Returns
TypeDescription
ForwardSshTunnelConnectivity.Builder

This builder for chaining.