Class Pipeline.Destination.AuthenticationConfig.OidcToken.Builder

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

public static final class Pipeline.Destination.AuthenticationConfig.OidcToken.Builder extends com.google.protobuf.GeneratedMessage.Builder<Pipeline.Destination.AuthenticationConfig.OidcToken.Builder> implements Pipeline.Destination.AuthenticationConfig.OidcTokenOrBuilder
 Represents a config used to authenticate with a Google OIDC token using
 a Google Cloud service account. Use this authentication method to
 invoke your Cloud Run and Cloud Functions destinations or HTTP
 endpoints that support Google OIDC.
 
Protobuf type google.cloud.eventarc.v1.Pipeline.Destination.AuthenticationConfig.OidcToken
  • 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.OidcToken.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.OidcToken.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.OidcToken.Builder>
    • getDefaultInstanceForType

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

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

      public String getServiceAccount()
       Required. Service account email used to generate the OIDC Token.
       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 the
       Pipeline to create OpenID 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.OidcTokenOrBuilder
      Returns:
      The serviceAccount.
    • getServiceAccountBytes

      public com.google.protobuf.ByteString getServiceAccountBytes()
       Required. Service account email used to generate the OIDC Token.
       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 the
       Pipeline to create OpenID 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.OidcTokenOrBuilder
      Returns:
      The bytes for serviceAccount.
    • setServiceAccount

       Required. Service account email used to generate the OIDC Token.
       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 the
       Pipeline to create OpenID 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 OIDC Token.
       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 the
       Pipeline to create OpenID 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.OidcToken.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
       Required. Service account email used to generate the OIDC Token.
       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 the
       Pipeline to create OpenID 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.
    • getAudience

      public String getAudience()
       Optional. Audience to be used to generate the OIDC Token. The
       audience claim identifies the recipient that the JWT is intended for.
       If unspecified, the destination URI will be used.
       
      string audience = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAudience in interface Pipeline.Destination.AuthenticationConfig.OidcTokenOrBuilder
      Returns:
      The audience.
    • getAudienceBytes

      public com.google.protobuf.ByteString getAudienceBytes()
       Optional. Audience to be used to generate the OIDC Token. The
       audience claim identifies the recipient that the JWT is intended for.
       If unspecified, the destination URI will be used.
       
      string audience = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAudienceBytes in interface Pipeline.Destination.AuthenticationConfig.OidcTokenOrBuilder
      Returns:
      The bytes for audience.
    • setAudience

       Optional. Audience to be used to generate the OIDC Token. The
       audience claim identifies the recipient that the JWT is intended for.
       If unspecified, the destination URI will be used.
       
      string audience = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The audience to set.
      Returns:
      This builder for chaining.
    • clearAudience

       Optional. Audience to be used to generate the OIDC Token. The
       audience claim identifies the recipient that the JWT is intended for.
       If unspecified, the destination URI will be used.
       
      string audience = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setAudienceBytes

      public Pipeline.Destination.AuthenticationConfig.OidcToken.Builder setAudienceBytes(com.google.protobuf.ByteString value)
       Optional. Audience to be used to generate the OIDC Token. The
       audience claim identifies the recipient that the JWT is intended for.
       If unspecified, the destination URI will be used.
       
      string audience = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for audience to set.
      Returns:
      This builder for chaining.