publicfinalclass EnvironmentextendsGeneratedMessageV3implementsEnvironmentOrBuilder
A Cloud Shell environment, which is defined as the combination of a Docker
image specifying what is installed on the environment and a home directory
containing the user's data that will remain across sessions. Each user has
at least an environment with the ID "default".
Protobuf type google.cloud.shell.v1.Environment
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
DOCKER_IMAGE_FIELD_NUMBER
publicstaticfinalintDOCKER_IMAGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
ID_FIELD_NUMBER
publicstaticfinalintID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
NAME_FIELD_NUMBER
publicstaticfinalintNAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
PUBLIC_KEYS_FIELD_NUMBER
publicstaticfinalintPUBLIC_KEYS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SSH_HOST_FIELD_NUMBER
publicstaticfinalintSSH_HOST_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SSH_PORT_FIELD_NUMBER
publicstaticfinalintSSH_PORT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SSH_USERNAME_FIELD_NUMBER
publicstaticfinalintSSH_USERNAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
STATE_FIELD_NUMBER
publicstaticfinalintSTATE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
WEB_HOST_FIELD_NUMBER
publicstaticfinalintWEB_HOST_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticEnvironmentgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticEnvironment.BuildernewBuilder()
newBuilder(Environment prototype)
publicstaticEnvironment.BuildernewBuilder(Environmentprototype)
publicstaticEnvironmentparseDelimitedFrom(InputStreaminput)
publicstaticEnvironmentparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticEnvironmentparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticEnvironmentparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticEnvironmentparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticEnvironmentparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticEnvironmentparseFrom(CodedInputStreaminput)
publicstaticEnvironmentparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticEnvironmentparseFrom(InputStreaminput)
publicstaticEnvironmentparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticEnvironmentparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticEnvironmentparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<Environment>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
publicEnvironmentgetDefaultInstanceForType()
getDockerImage()
publicStringgetDockerImage()
Required. Immutable. Full path to the Docker image used to run this environment, e.g.
"gcr.io/dev-con/cloud-devshell:latest".
string docker_image = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns |
| Type |
Description |
String |
The dockerImage.
|
getDockerImageBytes()
publicByteStringgetDockerImageBytes()
Required. Immutable. Full path to the Docker image used to run this environment, e.g.
"gcr.io/dev-con/cloud-devshell:latest".
string docker_image = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns |
| Type |
Description |
ByteString |
The bytes for dockerImage.
|
getId()
Output only. The environment's identifier, unique among the user's
environments.
string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The id.
|
getIdBytes()
publicByteStringgetIdBytes()
Output only. The environment's identifier, unique among the user's
environments.
string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for id.
|
getName()
Immutable. Full name of this resource, in the format
users/{owner_email}/environments/{environment_id}. {owner_email} is the
email address of the user to whom this environment belongs, and
{environment_id} is the identifier of this environment. For example,
users/someone@example.com/environments/default.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Returns |
| Type |
Description |
String |
The name.
|
getNameBytes()
publicByteStringgetNameBytes()
Immutable. Full name of this resource, in the format
users/{owner_email}/environments/{environment_id}. {owner_email} is the
email address of the user to whom this environment belongs, and
{environment_id} is the identifier of this environment. For example,
users/someone@example.com/environments/default.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
publicParser<Environment>getParserForType()
Overrides
getPublicKeys(int index)
publicStringgetPublicKeys(intindex)
Output only. Public keys associated with the environment. Clients can
connect to this environment via SSH only if they possess a private key
corresponding to at least one of these public keys. Keys can be added to or
removed from the environment using the AddPublicKey and RemovePublicKey
methods.
repeated string public_keys = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The publicKeys at the given index.
|
getPublicKeysBytes(int index)
publicByteStringgetPublicKeysBytes(intindex)
Output only. Public keys associated with the environment. Clients can
connect to this environment via SSH only if they possess a private key
corresponding to at least one of these public keys. Keys can be added to or
removed from the environment using the AddPublicKey and RemovePublicKey
methods.
repeated string public_keys = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the publicKeys at the given index.
|
getPublicKeysCount()
publicintgetPublicKeysCount()
Output only. Public keys associated with the environment. Clients can
connect to this environment via SSH only if they possess a private key
corresponding to at least one of these public keys. Keys can be added to or
removed from the environment using the AddPublicKey and RemovePublicKey
methods.
repeated string public_keys = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
The count of publicKeys.
|
getPublicKeysList()
publicProtocolStringListgetPublicKeysList()
Output only. Public keys associated with the environment. Clients can
connect to this environment via SSH only if they possess a private key
corresponding to at least one of these public keys. Keys can be added to or
removed from the environment using the AddPublicKey and RemovePublicKey
methods.
repeated string public_keys = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getSshHost()
Output only. Host to which clients can connect to initiate SSH sessions
with the environment.
string ssh_host = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The sshHost.
|
getSshHostBytes()
publicByteStringgetSshHostBytes()
Output only. Host to which clients can connect to initiate SSH sessions
with the environment.
string ssh_host = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for sshHost.
|
getSshPort()
Output only. Port to which clients can connect to initiate SSH sessions
with the environment.
int32 ssh_port = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
The sshPort.
|
getSshUsername()
publicStringgetSshUsername()
Output only. Username that clients should use when initiating SSH sessions
with the environment.
string ssh_username = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The sshUsername.
|
getSshUsernameBytes()
publicByteStringgetSshUsernameBytes()
Output only. Username that clients should use when initiating SSH sessions
with the environment.
string ssh_username = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for sshUsername.
|
getState()
publicEnvironment.StategetState()
Output only. Current execution state of this environment.
.google.cloud.shell.v1.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue()
Output only. Current execution state of this environment.
.google.cloud.shell.v1.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for state.
|
getWebHost()
Output only. Host to which clients can connect to initiate HTTPS or WSS
connections with the environment.
string web_host = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The webHost.
|
getWebHostBytes()
publicByteStringgetWebHostBytes()
Output only. Host to which clients can connect to initiate HTTPS or WSS
connections with the environment.
string web_host = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for webHost.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicEnvironment.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedEnvironment.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicEnvironment.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides