Package com.google.cloud.shell.v1
Class StartEnvironmentRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StartEnvironmentRequest.Builder>
com.google.cloud.shell.v1.StartEnvironmentRequest.Builder
- All Implemented Interfaces:
StartEnvironmentRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StartEnvironmentRequest
public static final class StartEnvironmentRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StartEnvironmentRequest.Builder>
implements StartEnvironmentRequestOrBuilder
Request message for [StartEnvironment][google.cloud.shell.v1.CloudShellService.StartEnvironment].Protobuf type
google.cloud.shell.v1.StartEnvironmentRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllPublicKeys(Iterable<String> values) Public keys that should be added to the environment before it is started.addPublicKeys(String value) Public keys that should be added to the environment before it is started.addPublicKeysBytes(com.google.protobuf.ByteString value) Public keys that should be added to the environment before it is started.build()clear()The initial access token passed to the environment.Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.Public keys that should be added to the environment before it is started.The initial access token passed to the environment.com.google.protobuf.ByteStringThe initial access token passed to the environment.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.com.google.protobuf.ByteStringName of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.getPublicKeys(int index) Public keys that should be added to the environment before it is started.com.google.protobuf.ByteStringgetPublicKeysBytes(int index) Public keys that should be added to the environment before it is started.intPublic keys that should be added to the environment before it is started.com.google.protobuf.ProtocolStringListPublic keys that should be added to the environment before it is started.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(StartEnvironmentRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAccessToken(String value) The initial access token passed to the environment.setAccessTokenBytes(com.google.protobuf.ByteString value) The initial access token passed to the environment.Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.setNameBytes(com.google.protobuf.ByteString value) Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.setPublicKeys(int index, String value) Public keys that should be added to the environment before it is started.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<StartEnvironmentRequest.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<StartEnvironmentRequest.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<StartEnvironmentRequest.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<StartEnvironmentRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StartEnvironmentRequest.Builder>
-
mergeFrom
public StartEnvironmentRequest.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<StartEnvironmentRequest.Builder>- Throws:
IOException
-
getName
Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.
string name = 1;- Specified by:
getNamein interfaceStartEnvironmentRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.
string name = 1;- Specified by:
getNameBytesin interfaceStartEnvironmentRequestOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getAccessToken
The initial access token passed to the environment. If this is present and valid, the environment will be pre-authenticated with gcloud so that the user can run gcloud commands in Cloud Shell without having to log in. This code can be updated later by calling AuthorizeEnvironment.
string access_token = 2;- Specified by:
getAccessTokenin interfaceStartEnvironmentRequestOrBuilder- Returns:
- The accessToken.
-
getAccessTokenBytes
public com.google.protobuf.ByteString getAccessTokenBytes()The initial access token passed to the environment. If this is present and valid, the environment will be pre-authenticated with gcloud so that the user can run gcloud commands in Cloud Shell without having to log in. This code can be updated later by calling AuthorizeEnvironment.
string access_token = 2;- Specified by:
getAccessTokenBytesin interfaceStartEnvironmentRequestOrBuilder- Returns:
- The bytes for accessToken.
-
setAccessToken
The initial access token passed to the environment. If this is present and valid, the environment will be pre-authenticated with gcloud so that the user can run gcloud commands in Cloud Shell without having to log in. This code can be updated later by calling AuthorizeEnvironment.
string access_token = 2;- Parameters:
value- The accessToken to set.- Returns:
- This builder for chaining.
-
clearAccessToken
The initial access token passed to the environment. If this is present and valid, the environment will be pre-authenticated with gcloud so that the user can run gcloud commands in Cloud Shell without having to log in. This code can be updated later by calling AuthorizeEnvironment.
string access_token = 2;- Returns:
- This builder for chaining.
-
setAccessTokenBytes
The initial access token passed to the environment. If this is present and valid, the environment will be pre-authenticated with gcloud so that the user can run gcloud commands in Cloud Shell without having to log in. This code can be updated later by calling AuthorizeEnvironment.
string access_token = 2;- Parameters:
value- The bytes for accessToken to set.- Returns:
- This builder for chaining.
-
getPublicKeysList
public com.google.protobuf.ProtocolStringList getPublicKeysList()Public keys that should be added to the environment before it is started.
repeated string public_keys = 3;- Specified by:
getPublicKeysListin interfaceStartEnvironmentRequestOrBuilder- Returns:
- A list containing the publicKeys.
-
getPublicKeysCount
public int getPublicKeysCount()Public keys that should be added to the environment before it is started.
repeated string public_keys = 3;- Specified by:
getPublicKeysCountin interfaceStartEnvironmentRequestOrBuilder- Returns:
- The count of publicKeys.
-
getPublicKeys
Public keys that should be added to the environment before it is started.
repeated string public_keys = 3;- Specified by:
getPublicKeysin interfaceStartEnvironmentRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The publicKeys at the given index.
-
getPublicKeysBytes
public com.google.protobuf.ByteString getPublicKeysBytes(int index) Public keys that should be added to the environment before it is started.
repeated string public_keys = 3;- Specified by:
getPublicKeysBytesin interfaceStartEnvironmentRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the publicKeys at the given index.
-
setPublicKeys
Public keys that should be added to the environment before it is started.
repeated string public_keys = 3;- Parameters:
index- The index to set the value at.value- The publicKeys to set.- Returns:
- This builder for chaining.
-
addPublicKeys
Public keys that should be added to the environment before it is started.
repeated string public_keys = 3;- Parameters:
value- The publicKeys to add.- Returns:
- This builder for chaining.
-
addAllPublicKeys
Public keys that should be added to the environment before it is started.
repeated string public_keys = 3;- Parameters:
values- The publicKeys to add.- Returns:
- This builder for chaining.
-
clearPublicKeys
Public keys that should be added to the environment before it is started.
repeated string public_keys = 3;- Returns:
- This builder for chaining.
-
addPublicKeysBytes
Public keys that should be added to the environment before it is started.
repeated string public_keys = 3;- Parameters:
value- The bytes of the publicKeys to add.- Returns:
- This builder for chaining.
-