Class Pipeline.Destination.AuthenticationConfig.OAuthToken.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Pipeline.Destination.AuthenticationConfig.OAuthToken.Builder>
com.google.cloud.eventarc.v1.Pipeline.Destination.AuthenticationConfig.OAuthToken.Builder
All Implemented Interfaces:
Pipeline.Destination.AuthenticationConfig.OAuthTokenOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Pipeline.Destination.AuthenticationConfig.OAuthToken

public static final class Pipeline.Destination.AuthenticationConfig.OAuthToken.Builder extends com.google.protobuf.GeneratedMessage.Builder<Pipeline.Destination.AuthenticationConfig.OAuthToken.Builder> implements Pipeline.Destination.AuthenticationConfig.OAuthTokenOrBuilder
 Contains information needed for generating an
 [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
 This type of authorization should generally only be used when calling
 Google APIs hosted on *.googleapis.com.
 
Protobuf type google.cloud.eventarc.v1.Pipeline.Destination.AuthenticationConfig.OAuthToken
  • 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<Pipeline.Destination.AuthenticationConfig.OAuthToken.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<Pipeline.Destination.AuthenticationConfig.OAuthToken.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<Pipeline.Destination.AuthenticationConfig.OAuthToken.Builder>
    • getDefaultInstanceForType

      public Pipeline.Destination.AuthenticationConfig.OAuthToken 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

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

      public Pipeline.Destination.AuthenticationConfig.OAuthToken.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<Pipeline.Destination.AuthenticationConfig.OAuthToken.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<Pipeline.Destination.AuthenticationConfig.OAuthToken.Builder>
    • mergeFrom

      public Pipeline.Destination.AuthenticationConfig.OAuthToken.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<Pipeline.Destination.AuthenticationConfig.OAuthToken.Builder>
      Throws:
      IOException
    • getServiceAccount

      public 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) = { ... }
      Specified by:
      getServiceAccount in interface Pipeline.Destination.AuthenticationConfig.OAuthTokenOrBuilder
      Returns:
      The serviceAccount.
    • getServiceAccountBytes

      public 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) = { ... }
      Specified by:
      getServiceAccountBytes in interface Pipeline.Destination.AuthenticationConfig.OAuthTokenOrBuilder
      Returns:
      The bytes for serviceAccount.
    • setServiceAccount

       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) = { ... }
      Parameters:
      value - The serviceAccount to set.
      Returns:
      This builder for chaining.
    • clearServiceAccount

       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:
      This builder for chaining.
    • setServiceAccountBytes

      public Pipeline.Destination.AuthenticationConfig.OAuthToken.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      Parameters:
      value - The bytes for serviceAccount to set.
      Returns:
      This builder for chaining.
    • getScope

      public 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];
      Specified by:
      getScope in interface Pipeline.Destination.AuthenticationConfig.OAuthTokenOrBuilder
      Returns:
      The scope.
    • getScopeBytes

      public 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];
      Specified by:
      getScopeBytes in interface Pipeline.Destination.AuthenticationConfig.OAuthTokenOrBuilder
      Returns:
      The bytes for scope.
    • setScope

       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];
      Parameters:
      value - The scope to set.
      Returns:
      This builder for chaining.
    • clearScope

       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:
      This builder for chaining.
    • setScopeBytes

      public Pipeline.Destination.AuthenticationConfig.OAuthToken.Builder setScopeBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for scope to set.
      Returns:
      This builder for chaining.