Class GenerateAccessTokenRequest.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

        public GenerateAccessTokenRequest 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
      • isInitialized

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

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

        public final GenerateAccessTokenRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateAccessTokenRequest.Builder>
      • mergeUnknownFields

        public final GenerateAccessTokenRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateAccessTokenRequest.Builder>