Interface Tool.Authentication.BearerTokenConfigOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Tool.Authentication.BearerTokenConfig, Tool.Authentication.BearerTokenConfig.Builder
Enclosing class:
Tool.Authentication

public static interface Tool.Authentication.BearerTokenConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional.
    com.google.protobuf.ByteString
    Optional.
    Optional.
    com.google.protobuf.ByteString
    Optional.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getToken

      String getToken()
       Optional. The text token appended to the text `Bearer` to the request
       Authorization header.
       [Session parameters
       reference](https://cloud.google.com/dialogflow/cx/docs/concept/parameter#session-ref)
       can be used to pass the token dynamically, e.g.
       `$session.params.parameter-id`.
       
      string token = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The token.
    • getTokenBytes

      com.google.protobuf.ByteString getTokenBytes()
       Optional. The text token appended to the text `Bearer` to the request
       Authorization header.
       [Session parameters
       reference](https://cloud.google.com/dialogflow/cx/docs/concept/parameter#session-ref)
       can be used to pass the token dynamically, e.g.
       `$session.params.parameter-id`.
       
      string token = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for token.
    • getSecretVersionForToken

      String getSecretVersionForToken()
       Optional. The name of the SecretManager secret version resource storing
       the Bearer token. If this field is set, the `token` field will be
       ignored. Format:
       `projects/{project}/secrets/{secret}/versions/{version}`
       
      string secret_version_for_token = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      The secretVersionForToken.
    • getSecretVersionForTokenBytes

      com.google.protobuf.ByteString getSecretVersionForTokenBytes()
       Optional. The name of the SecretManager secret version resource storing
       the Bearer token. If this field is set, the `token` field will be
       ignored. Format:
       `projects/{project}/secrets/{secret}/versions/{version}`
       
      string secret_version_for_token = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      The bytes for secretVersionForToken.