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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<StartEnvironmentRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<StartEnvironmentRequest.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.GeneratedMessage.Builder<StartEnvironmentRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public StartEnvironmentRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StartEnvironmentRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<StartEnvironmentRequest.Builder>
      Throws:
      IOException
    • getName

      public String 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:
      getName in interface StartEnvironmentRequestOrBuilder
      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:
      getNameBytes in interface StartEnvironmentRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public StartEnvironmentRequest.Builder setName(String value)
       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

      public StartEnvironmentRequest.Builder 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

      public StartEnvironmentRequest.Builder 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`.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getAccessToken

      public String 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:
      getAccessToken in interface StartEnvironmentRequestOrBuilder
      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:
      getAccessTokenBytes in interface StartEnvironmentRequestOrBuilder
      Returns:
      The bytes for accessToken.
    • setAccessToken

      public StartEnvironmentRequest.Builder setAccessToken(String value)
       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

      public StartEnvironmentRequest.Builder 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

      public StartEnvironmentRequest.Builder setAccessTokenBytes(com.google.protobuf.ByteString value)
       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:
      getPublicKeysList in interface StartEnvironmentRequestOrBuilder
      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:
      getPublicKeysCount in interface StartEnvironmentRequestOrBuilder
      Returns:
      The count of publicKeys.
    • getPublicKeys

      public String getPublicKeys(int index)
       Public keys that should be added to the environment before it is started.
       
      repeated string public_keys = 3;
      Specified by:
      getPublicKeys in interface StartEnvironmentRequestOrBuilder
      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:
      getPublicKeysBytes in interface StartEnvironmentRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the publicKeys at the given index.
    • setPublicKeys

      public StartEnvironmentRequest.Builder setPublicKeys(int index, String value)
       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 StartEnvironmentRequest.Builder addPublicKeys(String value)
       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 StartEnvironmentRequest.Builder addAllPublicKeys(Iterable<String> values)
       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 StartEnvironmentRequest.Builder 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 StartEnvironmentRequest.Builder addPublicKeysBytes(com.google.protobuf.ByteString value)
       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.