Class VerifyAttestationRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VerifyAttestationRequest.Builder>
com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.Builder
All Implemented Interfaces:
VerifyAttestationRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
VerifyAttestationRequest

public static final class VerifyAttestationRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<VerifyAttestationRequest.Builder> implements VerifyAttestationRequestOrBuilder
 A request for an OIDC token, providing all the necessary information needed
 for this service to verify the plaform state of the requestor.
 
Protobuf type google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest
  • 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<VerifyAttestationRequest.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<VerifyAttestationRequest.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<VerifyAttestationRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public VerifyAttestationRequest.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<VerifyAttestationRequest.Builder>
      Throws:
      IOException
    • getChallenge

      public String getChallenge()
       Required. The name of the Challenge whose nonce was used to generate the
       attestation, in the format `projects/*/locations/*/challenges/*`. The
       provided Challenge will be consumed, and cannot be used again.
       
      string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getChallenge in interface VerifyAttestationRequestOrBuilder
      Returns:
      The challenge.
    • getChallengeBytes

      public com.google.protobuf.ByteString getChallengeBytes()
       Required. The name of the Challenge whose nonce was used to generate the
       attestation, in the format `projects/*/locations/*/challenges/*`. The
       provided Challenge will be consumed, and cannot be used again.
       
      string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getChallengeBytes in interface VerifyAttestationRequestOrBuilder
      Returns:
      The bytes for challenge.
    • setChallenge

      public VerifyAttestationRequest.Builder setChallenge(String value)
       Required. The name of the Challenge whose nonce was used to generate the
       attestation, in the format `projects/*/locations/*/challenges/*`. The
       provided Challenge will be consumed, and cannot be used again.
       
      string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The challenge to set.
      Returns:
      This builder for chaining.
    • clearChallenge

      public VerifyAttestationRequest.Builder clearChallenge()
       Required. The name of the Challenge whose nonce was used to generate the
       attestation, in the format `projects/*/locations/*/challenges/*`. The
       provided Challenge will be consumed, and cannot be used again.
       
      string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setChallengeBytes

      public VerifyAttestationRequest.Builder setChallengeBytes(com.google.protobuf.ByteString value)
       Required. The name of the Challenge whose nonce was used to generate the
       attestation, in the format `projects/*/locations/*/challenges/*`. The
       provided Challenge will be consumed, and cannot be used again.
       
      string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for challenge to set.
      Returns:
      This builder for chaining.
    • hasGcpCredentials

      public boolean hasGcpCredentials()
       Optional. Credentials used to populate the "emails" claim in the
       claims_token.
       
      .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasGcpCredentials in interface VerifyAttestationRequestOrBuilder
      Returns:
      Whether the gcpCredentials field is set.
    • getGcpCredentials

      public GcpCredentials getGcpCredentials()
       Optional. Credentials used to populate the "emails" claim in the
       claims_token.
       
      .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGcpCredentials in interface VerifyAttestationRequestOrBuilder
      Returns:
      The gcpCredentials.
    • setGcpCredentials

      public VerifyAttestationRequest.Builder setGcpCredentials(GcpCredentials value)
       Optional. Credentials used to populate the "emails" claim in the
       claims_token.
       
      .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setGcpCredentials

      public VerifyAttestationRequest.Builder setGcpCredentials(GcpCredentials.Builder builderForValue)
       Optional. Credentials used to populate the "emails" claim in the
       claims_token.
       
      .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeGcpCredentials

      public VerifyAttestationRequest.Builder mergeGcpCredentials(GcpCredentials value)
       Optional. Credentials used to populate the "emails" claim in the
       claims_token.
       
      .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearGcpCredentials

      public VerifyAttestationRequest.Builder clearGcpCredentials()
       Optional. Credentials used to populate the "emails" claim in the
       claims_token.
       
      .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getGcpCredentialsBuilder

      public GcpCredentials.Builder getGcpCredentialsBuilder()
       Optional. Credentials used to populate the "emails" claim in the
       claims_token.
       
      .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getGcpCredentialsOrBuilder

      public GcpCredentialsOrBuilder getGcpCredentialsOrBuilder()
       Optional. Credentials used to populate the "emails" claim in the
       claims_token.
       
      .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGcpCredentialsOrBuilder in interface VerifyAttestationRequestOrBuilder
    • hasTpmAttestation

      public boolean hasTpmAttestation()
       Required. The TPM-specific data provided by the attesting platform, used to
       populate any of the claims regarding platform state.
       
      .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasTpmAttestation in interface VerifyAttestationRequestOrBuilder
      Returns:
      Whether the tpmAttestation field is set.
    • getTpmAttestation

      public TpmAttestation getTpmAttestation()
       Required. The TPM-specific data provided by the attesting platform, used to
       populate any of the claims regarding platform state.
       
      .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTpmAttestation in interface VerifyAttestationRequestOrBuilder
      Returns:
      The tpmAttestation.
    • setTpmAttestation

      public VerifyAttestationRequest.Builder setTpmAttestation(TpmAttestation value)
       Required. The TPM-specific data provided by the attesting platform, used to
       populate any of the claims regarding platform state.
       
      .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];
    • setTpmAttestation

      public VerifyAttestationRequest.Builder setTpmAttestation(TpmAttestation.Builder builderForValue)
       Required. The TPM-specific data provided by the attesting platform, used to
       populate any of the claims regarding platform state.
       
      .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeTpmAttestation

      public VerifyAttestationRequest.Builder mergeTpmAttestation(TpmAttestation value)
       Required. The TPM-specific data provided by the attesting platform, used to
       populate any of the claims regarding platform state.
       
      .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearTpmAttestation

      public VerifyAttestationRequest.Builder clearTpmAttestation()
       Required. The TPM-specific data provided by the attesting platform, used to
       populate any of the claims regarding platform state.
       
      .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];
    • getTpmAttestationBuilder

      public TpmAttestation.Builder getTpmAttestationBuilder()
       Required. The TPM-specific data provided by the attesting platform, used to
       populate any of the claims regarding platform state.
       
      .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];
    • getTpmAttestationOrBuilder

      public TpmAttestationOrBuilder getTpmAttestationOrBuilder()
       Required. The TPM-specific data provided by the attesting platform, used to
       populate any of the claims regarding platform state.
       
      .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTpmAttestationOrBuilder in interface VerifyAttestationRequestOrBuilder