Interface Pipeline.Destination.AuthenticationConfig.OAuthTokenOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Pipeline.Destination.AuthenticationConfig.OAuthToken, Pipeline.Destination.AuthenticationConfig.OAuthToken.Builder
Enclosing class:
Pipeline.Destination.AuthenticationConfig

public static interface Pipeline.Destination.AuthenticationConfig.OAuthTokenOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

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

    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

    • getServiceAccount

      String getServiceAccount()
       Required. Service account email used to generate the [OAuth
       token](https://developers.google.com/identity/protocols/OAuth2).
       The principal who calls this API must have
       iam.serviceAccounts.actAs permission in the service account. See
       https://cloud.google.com/iam/docs/understanding-service-accounts
       for more information. Eventarc service agents must have
       roles/roles/iam.serviceAccountTokenCreator role to allow Pipeline
       to create OAuth2 tokens for authenticated requests.
       
      string service_account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      The serviceAccount.
    • getServiceAccountBytes

      com.google.protobuf.ByteString getServiceAccountBytes()
       Required. Service account email used to generate the [OAuth
       token](https://developers.google.com/identity/protocols/OAuth2).
       The principal who calls this API must have
       iam.serviceAccounts.actAs permission in the service account. See
       https://cloud.google.com/iam/docs/understanding-service-accounts
       for more information. Eventarc service agents must have
       roles/roles/iam.serviceAccountTokenCreator role to allow Pipeline
       to create OAuth2 tokens for authenticated requests.
       
      string service_account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      The bytes for serviceAccount.
    • getScope

      String getScope()
       Optional. OAuth scope to be used for generating OAuth access token.
       If not specified, "https://www.googleapis.com/auth/cloud-platform"
       will be used.
       
      string scope = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The scope.
    • getScopeBytes

      com.google.protobuf.ByteString getScopeBytes()
       Optional. OAuth scope to be used for generating OAuth access token.
       If not specified, "https://www.googleapis.com/auth/cloud-platform"
       will be used.
       
      string scope = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for scope.