Package namespace.cloud.compute.v1beta
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 Summary
Modifier and TypeMethodDescriptionaddAllSshHostKeys(Iterable<? extends com.google.protobuf.ByteString> values) The SSH server public host keys, encoded in the OpenSSH public key format.addSshHostKeys(com.google.protobuf.ByteString value) The SSH server public host keys, encoded in the OpenSSH public key format.build()clear()This SSH endpoint can be used to establish an SSH session with the instance.The SSH server public host keys, encoded in the OpenSSH public key format.If set, this private key can be used to establish an SSH session to the instance.Which username to use when establishing an SSH session.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThis SSH endpoint can be used to establish an SSH session with the instance.com.google.protobuf.ByteStringThis SSH endpoint can be used to establish an SSH session with the instance.com.google.protobuf.ByteStringgetSshHostKeys(int index) The SSH server public host keys, encoded in the OpenSSH public key format.intThe SSH server public host keys, encoded in the OpenSSH public key format.List<com.google.protobuf.ByteString> The SSH server public host keys, encoded in the OpenSSH public key format.com.google.protobuf.ByteStringIf set, this private key can be used to establish an SSH session to the instance.Which username to use when establishing an SSH session.com.google.protobuf.ByteStringWhich username to use when establishing an SSH session.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setEndpoint(String value) This SSH endpoint can be used to establish an SSH session with the instance.setEndpointBytes(com.google.protobuf.ByteString value) This SSH endpoint can be used to establish an SSH session with the instance.setSshHostKeys(int index, com.google.protobuf.ByteString value) The SSH server public host keys, encoded in the OpenSSH public key format.setSshPrivateKey(com.google.protobuf.ByteString value) If set, this private key can be used to establish an SSH session to the instance.setUsername(String value) Which username to use when establishing an SSH session.setUsernameBytes(com.google.protobuf.ByteString value) Which username to use when establishing an SSH session.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Compute.GetSSHConfigResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Compute.GetSSHConfigResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Compute.GetSSHConfigResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Compute.GetSSHConfigResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getSshPrivateKeyin interfaceCompute.GetSSHConfigResponseOrBuilder- Returns:
- The sshPrivateKey.
-
setSshPrivateKey
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
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
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:
getUsernamein interfaceCompute.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:
getUsernameBytesin interfaceCompute.GetSSHConfigResponseOrBuilder- Returns:
- The bytes for username.
-
setUsername
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
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
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
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:
getEndpointin interfaceCompute.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:
getEndpointBytesin interfaceCompute.GetSSHConfigResponseOrBuilder- Returns:
- The bytes for endpoint.
-
setEndpoint
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
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
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
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:
getSshHostKeysListin interfaceCompute.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:
getSshHostKeysCountin interfaceCompute.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:
getSshHostKeysin interfaceCompute.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
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
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.
-