Class GenerateAccessTokenRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenerateAccessTokenRequest.Builder>
com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.Builder
All Implemented Interfaces:
GenerateAccessTokenRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GenerateAccessTokenRequest

public static final class GenerateAccessTokenRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<GenerateAccessTokenRequest.Builder> implements GenerateAccessTokenRequestOrBuilder
 Request message for GenerateAccessToken.
 
Protobuf type google.cloud.workstations.v1beta.GenerateAccessTokenRequest
  • 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<GenerateAccessTokenRequest.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<GenerateAccessTokenRequest.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<GenerateAccessTokenRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public GenerateAccessTokenRequest.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<GenerateAccessTokenRequest.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<GenerateAccessTokenRequest.Builder>
    • mergeFrom

      public GenerateAccessTokenRequest.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<GenerateAccessTokenRequest.Builder>
      Throws:
      IOException
    • getExpirationCase

      public GenerateAccessTokenRequest.ExpirationCase getExpirationCase()
      Specified by:
      getExpirationCase in interface GenerateAccessTokenRequestOrBuilder
    • clearExpiration

      public GenerateAccessTokenRequest.Builder clearExpiration()
    • hasExpireTime

      public boolean hasExpireTime()
       Desired expiration time of the access token. This value must
       be at most 24 hours in the future. If a value is not specified, the
       token's expiration time will be set to a default value of 1 hour in the
       future.
       
      .google.protobuf.Timestamp expire_time = 2;
      Specified by:
      hasExpireTime in interface GenerateAccessTokenRequestOrBuilder
      Returns:
      Whether the expireTime field is set.
    • getExpireTime

      public com.google.protobuf.Timestamp getExpireTime()
       Desired expiration time of the access token. This value must
       be at most 24 hours in the future. If a value is not specified, the
       token's expiration time will be set to a default value of 1 hour in the
       future.
       
      .google.protobuf.Timestamp expire_time = 2;
      Specified by:
      getExpireTime in interface GenerateAccessTokenRequestOrBuilder
      Returns:
      The expireTime.
    • setExpireTime

      public GenerateAccessTokenRequest.Builder setExpireTime(com.google.protobuf.Timestamp value)
       Desired expiration time of the access token. This value must
       be at most 24 hours in the future. If a value is not specified, the
       token's expiration time will be set to a default value of 1 hour in the
       future.
       
      .google.protobuf.Timestamp expire_time = 2;
    • setExpireTime

      public GenerateAccessTokenRequest.Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Desired expiration time of the access token. This value must
       be at most 24 hours in the future. If a value is not specified, the
       token's expiration time will be set to a default value of 1 hour in the
       future.
       
      .google.protobuf.Timestamp expire_time = 2;
    • mergeExpireTime

      public GenerateAccessTokenRequest.Builder mergeExpireTime(com.google.protobuf.Timestamp value)
       Desired expiration time of the access token. This value must
       be at most 24 hours in the future. If a value is not specified, the
       token's expiration time will be set to a default value of 1 hour in the
       future.
       
      .google.protobuf.Timestamp expire_time = 2;
    • clearExpireTime

      public GenerateAccessTokenRequest.Builder clearExpireTime()
       Desired expiration time of the access token. This value must
       be at most 24 hours in the future. If a value is not specified, the
       token's expiration time will be set to a default value of 1 hour in the
       future.
       
      .google.protobuf.Timestamp expire_time = 2;
    • getExpireTimeBuilder

      public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
       Desired expiration time of the access token. This value must
       be at most 24 hours in the future. If a value is not specified, the
       token's expiration time will be set to a default value of 1 hour in the
       future.
       
      .google.protobuf.Timestamp expire_time = 2;
    • getExpireTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
       Desired expiration time of the access token. This value must
       be at most 24 hours in the future. If a value is not specified, the
       token's expiration time will be set to a default value of 1 hour in the
       future.
       
      .google.protobuf.Timestamp expire_time = 2;
      Specified by:
      getExpireTimeOrBuilder in interface GenerateAccessTokenRequestOrBuilder
    • hasTtl

      public boolean hasTtl()
       Desired lifetime duration of the access token. This value must
       be at most 24 hours. If a value is not specified, the token's lifetime
       will be set to a default value of 1 hour.
       
      .google.protobuf.Duration ttl = 3;
      Specified by:
      hasTtl in interface GenerateAccessTokenRequestOrBuilder
      Returns:
      Whether the ttl field is set.
    • getTtl

      public com.google.protobuf.Duration getTtl()
       Desired lifetime duration of the access token. This value must
       be at most 24 hours. If a value is not specified, the token's lifetime
       will be set to a default value of 1 hour.
       
      .google.protobuf.Duration ttl = 3;
      Specified by:
      getTtl in interface GenerateAccessTokenRequestOrBuilder
      Returns:
      The ttl.
    • setTtl

      public GenerateAccessTokenRequest.Builder setTtl(com.google.protobuf.Duration value)
       Desired lifetime duration of the access token. This value must
       be at most 24 hours. If a value is not specified, the token's lifetime
       will be set to a default value of 1 hour.
       
      .google.protobuf.Duration ttl = 3;
    • setTtl

      public GenerateAccessTokenRequest.Builder setTtl(com.google.protobuf.Duration.Builder builderForValue)
       Desired lifetime duration of the access token. This value must
       be at most 24 hours. If a value is not specified, the token's lifetime
       will be set to a default value of 1 hour.
       
      .google.protobuf.Duration ttl = 3;
    • mergeTtl

      public GenerateAccessTokenRequest.Builder mergeTtl(com.google.protobuf.Duration value)
       Desired lifetime duration of the access token. This value must
       be at most 24 hours. If a value is not specified, the token's lifetime
       will be set to a default value of 1 hour.
       
      .google.protobuf.Duration ttl = 3;
    • clearTtl

       Desired lifetime duration of the access token. This value must
       be at most 24 hours. If a value is not specified, the token's lifetime
       will be set to a default value of 1 hour.
       
      .google.protobuf.Duration ttl = 3;
    • getTtlBuilder

      public com.google.protobuf.Duration.Builder getTtlBuilder()
       Desired lifetime duration of the access token. This value must
       be at most 24 hours. If a value is not specified, the token's lifetime
       will be set to a default value of 1 hour.
       
      .google.protobuf.Duration ttl = 3;
    • getTtlOrBuilder

      public com.google.protobuf.DurationOrBuilder getTtlOrBuilder()
       Desired lifetime duration of the access token. This value must
       be at most 24 hours. If a value is not specified, the token's lifetime
       will be set to a default value of 1 hour.
       
      .google.protobuf.Duration ttl = 3;
      Specified by:
      getTtlOrBuilder in interface GenerateAccessTokenRequestOrBuilder
    • getWorkstation

      public String getWorkstation()
       Required. Name of the workstation for which the access token should be
       generated.
       
      string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getWorkstation in interface GenerateAccessTokenRequestOrBuilder
      Returns:
      The workstation.
    • getWorkstationBytes

      public com.google.protobuf.ByteString getWorkstationBytes()
       Required. Name of the workstation for which the access token should be
       generated.
       
      string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getWorkstationBytes in interface GenerateAccessTokenRequestOrBuilder
      Returns:
      The bytes for workstation.
    • setWorkstation

      public GenerateAccessTokenRequest.Builder setWorkstation(String value)
       Required. Name of the workstation for which the access token should be
       generated.
       
      string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The workstation to set.
      Returns:
      This builder for chaining.
    • clearWorkstation

      public GenerateAccessTokenRequest.Builder clearWorkstation()
       Required. Name of the workstation for which the access token should be
       generated.
       
      string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setWorkstationBytes

      public GenerateAccessTokenRequest.Builder setWorkstationBytes(com.google.protobuf.ByteString value)
       Required. Name of the workstation for which the access token should be
       generated.
       
      string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for workstation to set.
      Returns:
      This builder for chaining.