Class Authority.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Authority.Builder>
com.google.cloud.gkehub.v1beta1.Authority.Builder
All Implemented Interfaces:
AuthorityOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Authority

public static final class Authority.Builder extends com.google.protobuf.GeneratedMessage.Builder<Authority.Builder> implements AuthorityOrBuilder
 Authority encodes how Google will recognize identities from this Membership.
 See the workload identity documentation for more details:
 https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
 
Protobuf type google.cloud.gkehub.v1beta1.Authority
  • 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<Authority.Builder>
    • clear

      public Authority.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<Authority.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<Authority.Builder>
    • getDefaultInstanceForType

      public Authority getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Authority build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Authority buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Authority.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<Authority.Builder>
    • mergeFrom

      public Authority.Builder mergeFrom(Authority other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Authority.Builder>
    • mergeFrom

      public Authority.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<Authority.Builder>
      Throws:
      IOException
    • getIssuer

      public String getIssuer()
       Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with
       `https://` and be a valid URL with length <2000 characters.
      
       If set, then Google will allow valid OIDC tokens from this issuer to
       authenticate within the workload_identity_pool. OIDC discovery will be
       performed on this URI to validate tokens from the issuer.
      
       Clearing `issuer` disables Workload Identity. `issuer` cannot be directly
       modified; it must be cleared (and Workload Identity disabled) before using
       a new issuer (and re-enabling Workload Identity).
       
      string issuer = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIssuer in interface AuthorityOrBuilder
      Returns:
      The issuer.
    • getIssuerBytes

      public com.google.protobuf.ByteString getIssuerBytes()
       Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with
       `https://` and be a valid URL with length <2000 characters.
      
       If set, then Google will allow valid OIDC tokens from this issuer to
       authenticate within the workload_identity_pool. OIDC discovery will be
       performed on this URI to validate tokens from the issuer.
      
       Clearing `issuer` disables Workload Identity. `issuer` cannot be directly
       modified; it must be cleared (and Workload Identity disabled) before using
       a new issuer (and re-enabling Workload Identity).
       
      string issuer = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIssuerBytes in interface AuthorityOrBuilder
      Returns:
      The bytes for issuer.
    • setIssuer

      public Authority.Builder setIssuer(String value)
       Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with
       `https://` and be a valid URL with length <2000 characters.
      
       If set, then Google will allow valid OIDC tokens from this issuer to
       authenticate within the workload_identity_pool. OIDC discovery will be
       performed on this URI to validate tokens from the issuer.
      
       Clearing `issuer` disables Workload Identity. `issuer` cannot be directly
       modified; it must be cleared (and Workload Identity disabled) before using
       a new issuer (and re-enabling Workload Identity).
       
      string issuer = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The issuer to set.
      Returns:
      This builder for chaining.
    • clearIssuer

      public Authority.Builder clearIssuer()
       Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with
       `https://` and be a valid URL with length <2000 characters.
      
       If set, then Google will allow valid OIDC tokens from this issuer to
       authenticate within the workload_identity_pool. OIDC discovery will be
       performed on this URI to validate tokens from the issuer.
      
       Clearing `issuer` disables Workload Identity. `issuer` cannot be directly
       modified; it must be cleared (and Workload Identity disabled) before using
       a new issuer (and re-enabling Workload Identity).
       
      string issuer = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setIssuerBytes

      public Authority.Builder setIssuerBytes(com.google.protobuf.ByteString value)
       Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with
       `https://` and be a valid URL with length <2000 characters.
      
       If set, then Google will allow valid OIDC tokens from this issuer to
       authenticate within the workload_identity_pool. OIDC discovery will be
       performed on this URI to validate tokens from the issuer.
      
       Clearing `issuer` disables Workload Identity. `issuer` cannot be directly
       modified; it must be cleared (and Workload Identity disabled) before using
       a new issuer (and re-enabling Workload Identity).
       
      string issuer = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for issuer to set.
      Returns:
      This builder for chaining.
    • getWorkloadIdentityPool

      public String getWorkloadIdentityPool()
       Output only. The name of the workload identity pool in which `issuer` will
       be recognized.
      
       There is a single Workload Identity Pool per Hub that is shared
       between all Memberships that belong to that Hub. For a Hub hosted in
       {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`,
       although this is subject to change in newer versions of this API.
       
      string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWorkloadIdentityPool in interface AuthorityOrBuilder
      Returns:
      The workloadIdentityPool.
    • getWorkloadIdentityPoolBytes

      public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes()
       Output only. The name of the workload identity pool in which `issuer` will
       be recognized.
      
       There is a single Workload Identity Pool per Hub that is shared
       between all Memberships that belong to that Hub. For a Hub hosted in
       {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`,
       although this is subject to change in newer versions of this API.
       
      string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWorkloadIdentityPoolBytes in interface AuthorityOrBuilder
      Returns:
      The bytes for workloadIdentityPool.
    • setWorkloadIdentityPool

      public Authority.Builder setWorkloadIdentityPool(String value)
       Output only. The name of the workload identity pool in which `issuer` will
       be recognized.
      
       There is a single Workload Identity Pool per Hub that is shared
       between all Memberships that belong to that Hub. For a Hub hosted in
       {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`,
       although this is subject to change in newer versions of this API.
       
      string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The workloadIdentityPool to set.
      Returns:
      This builder for chaining.
    • clearWorkloadIdentityPool

      public Authority.Builder clearWorkloadIdentityPool()
       Output only. The name of the workload identity pool in which `issuer` will
       be recognized.
      
       There is a single Workload Identity Pool per Hub that is shared
       between all Memberships that belong to that Hub. For a Hub hosted in
       {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`,
       although this is subject to change in newer versions of this API.
       
      string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setWorkloadIdentityPoolBytes

      public Authority.Builder setWorkloadIdentityPoolBytes(com.google.protobuf.ByteString value)
       Output only. The name of the workload identity pool in which `issuer` will
       be recognized.
      
       There is a single Workload Identity Pool per Hub that is shared
       between all Memberships that belong to that Hub. For a Hub hosted in
       {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`,
       although this is subject to change in newer versions of this API.
       
      string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for workloadIdentityPool to set.
      Returns:
      This builder for chaining.
    • getIdentityProvider

      public String getIdentityProvider()
       Output only. An identity provider that reflects the `issuer` in the
       workload identity pool.
       
      string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIdentityProvider in interface AuthorityOrBuilder
      Returns:
      The identityProvider.
    • getIdentityProviderBytes

      public com.google.protobuf.ByteString getIdentityProviderBytes()
       Output only. An identity provider that reflects the `issuer` in the
       workload identity pool.
       
      string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIdentityProviderBytes in interface AuthorityOrBuilder
      Returns:
      The bytes for identityProvider.
    • setIdentityProvider

      public Authority.Builder setIdentityProvider(String value)
       Output only. An identity provider that reflects the `issuer` in the
       workload identity pool.
       
      string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The identityProvider to set.
      Returns:
      This builder for chaining.
    • clearIdentityProvider

      public Authority.Builder clearIdentityProvider()
       Output only. An identity provider that reflects the `issuer` in the
       workload identity pool.
       
      string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setIdentityProviderBytes

      public Authority.Builder setIdentityProviderBytes(com.google.protobuf.ByteString value)
       Output only. An identity provider that reflects the `issuer` in the
       workload identity pool.
       
      string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for identityProvider to set.
      Returns:
      This builder for chaining.
    • getOidcJwks

      public com.google.protobuf.ByteString getOidcJwks()
       Optional. OIDC verification keys for this Membership in JWKS format (RFC
       7517).
      
       When this field is set, OIDC discovery will NOT be performed on `issuer`,
       and instead OIDC tokens will be validated using this field.
       
      bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOidcJwks in interface AuthorityOrBuilder
      Returns:
      The oidcJwks.
    • setOidcJwks

      public Authority.Builder setOidcJwks(com.google.protobuf.ByteString value)
       Optional. OIDC verification keys for this Membership in JWKS format (RFC
       7517).
      
       When this field is set, OIDC discovery will NOT be performed on `issuer`,
       and instead OIDC tokens will be validated using this field.
       
      bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The oidcJwks to set.
      Returns:
      This builder for chaining.
    • clearOidcJwks

      public Authority.Builder clearOidcJwks()
       Optional. OIDC verification keys for this Membership in JWKS format (RFC
       7517).
      
       When this field is set, OIDC discovery will NOT be performed on `issuer`,
       and instead OIDC tokens will be validated using this field.
       
      bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.