Class 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.GeneratedMessageV3.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.v1.VerifyAttestationRequest
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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
      • setRepeatedField

        public VerifyAttestationRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VerifyAttestationRequest.Builder>
      • addRepeatedField

        public VerifyAttestationRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VerifyAttestationRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];
      • 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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTpmAttestationOrBuilder in interface VerifyAttestationRequestOrBuilder
      • hasConfidentialSpaceInfo

        public boolean hasConfidentialSpaceInfo()
         Optional. Optional information related to the Confidential Space TEE.
         
        .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasConfidentialSpaceInfo in interface VerifyAttestationRequestOrBuilder
        Returns:
        Whether the confidentialSpaceInfo field is set.
      • getConfidentialSpaceInfo

        public ConfidentialSpaceInfo getConfidentialSpaceInfo()
         Optional. Optional information related to the Confidential Space TEE.
         
        .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getConfidentialSpaceInfo in interface VerifyAttestationRequestOrBuilder
        Returns:
        The confidentialSpaceInfo.
      • setConfidentialSpaceInfo

        public VerifyAttestationRequest.Builder setConfidentialSpaceInfo​(ConfidentialSpaceInfo value)
         Optional. Optional information related to the Confidential Space TEE.
         
        .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL];
      • setConfidentialSpaceInfo

        public VerifyAttestationRequest.Builder setConfidentialSpaceInfo​(ConfidentialSpaceInfo.Builder builderForValue)
         Optional. Optional information related to the Confidential Space TEE.
         
        .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL];
      • mergeConfidentialSpaceInfo

        public VerifyAttestationRequest.Builder mergeConfidentialSpaceInfo​(ConfidentialSpaceInfo value)
         Optional. Optional information related to the Confidential Space TEE.
         
        .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL];
      • clearConfidentialSpaceInfo

        public VerifyAttestationRequest.Builder clearConfidentialSpaceInfo()
         Optional. Optional information related to the Confidential Space TEE.
         
        .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL];
      • getConfidentialSpaceInfoBuilder

        public ConfidentialSpaceInfo.Builder getConfidentialSpaceInfoBuilder()
         Optional. Optional information related to the Confidential Space TEE.
         
        .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL];
      • hasTokenOptions

        public boolean hasTokenOptions()
         Optional. A collection of optional, workload-specified claims that modify
         the token output.
         
        .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasTokenOptions in interface VerifyAttestationRequestOrBuilder
        Returns:
        Whether the tokenOptions field is set.
      • getTokenOptions

        public TokenOptions getTokenOptions()
         Optional. A collection of optional, workload-specified claims that modify
         the token output.
         
        .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTokenOptions in interface VerifyAttestationRequestOrBuilder
        Returns:
        The tokenOptions.
      • setTokenOptions

        public VerifyAttestationRequest.Builder setTokenOptions​(TokenOptions value)
         Optional. A collection of optional, workload-specified claims that modify
         the token output.
         
        .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL];
      • setTokenOptions

        public VerifyAttestationRequest.Builder setTokenOptions​(TokenOptions.Builder builderForValue)
         Optional. A collection of optional, workload-specified claims that modify
         the token output.
         
        .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL];
      • mergeTokenOptions

        public VerifyAttestationRequest.Builder mergeTokenOptions​(TokenOptions value)
         Optional. A collection of optional, workload-specified claims that modify
         the token output.
         
        .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL];
      • clearTokenOptions

        public VerifyAttestationRequest.Builder clearTokenOptions()
         Optional. A collection of optional, workload-specified claims that modify
         the token output.
         
        .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getTokenOptionsBuilder

        public TokenOptions.Builder getTokenOptionsBuilder()
         Optional. A collection of optional, workload-specified claims that modify
         the token output.
         
        .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL];
      • setUnknownFields

        public final VerifyAttestationRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VerifyAttestationRequest.Builder>
      • mergeUnknownFields

        public final VerifyAttestationRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VerifyAttestationRequest.Builder>