Class VerifyConfidentialGkeRequest.ConfidentialGkeOptions.Builder

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

public static final class VerifyConfidentialGkeRequest.ConfidentialGkeOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<VerifyConfidentialGkeRequest.ConfidentialGkeOptions.Builder> implements VerifyConfidentialGkeRequest.ConfidentialGkeOptionsOrBuilder
 Token options for Confidential GKE attestation.
 
Protobuf type google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions
  • 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<VerifyConfidentialGkeRequest.ConfidentialGkeOptions.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<VerifyConfidentialGkeRequest.ConfidentialGkeOptions.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<VerifyConfidentialGkeRequest.ConfidentialGkeOptions.Builder>
    • getDefaultInstanceForType

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

      public VerifyConfidentialGkeRequest.ConfidentialGkeOptions.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<VerifyConfidentialGkeRequest.ConfidentialGkeOptions.Builder>
      Throws:
      IOException
    • getAudience

      public String getAudience()
       Optional. Optional string to issue the token with a custom audience
       claim. Required if custom nonces are specified.
       
      string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAudience in interface VerifyConfidentialGkeRequest.ConfidentialGkeOptionsOrBuilder
      Returns:
      The audience.
    • getAudienceBytes

      public com.google.protobuf.ByteString getAudienceBytes()
       Optional. Optional string to issue the token with a custom audience
       claim. Required if custom nonces are specified.
       
      string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAudienceBytes in interface VerifyConfidentialGkeRequest.ConfidentialGkeOptionsOrBuilder
      Returns:
      The bytes for audience.
    • setAudience

       Optional. Optional string to issue the token with a custom audience
       claim. Required if custom nonces are specified.
       
      string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The audience to set.
      Returns:
      This builder for chaining.
    • clearAudience

       Optional. Optional string to issue the token with a custom audience
       claim. Required if custom nonces are specified.
       
      string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setAudienceBytes

      public VerifyConfidentialGkeRequest.ConfidentialGkeOptions.Builder setAudienceBytes(com.google.protobuf.ByteString value)
       Optional. Optional string to issue the token with a custom audience
       claim. Required if custom nonces are specified.
       
      string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for audience to set.
      Returns:
      This builder for chaining.
    • getNonceList

      public com.google.protobuf.ProtocolStringList getNonceList()
       Optional. Optional parameter to place one or more nonces in the eat_nonce
       claim in the output token. The minimum size for JSON-encoded EATs is 10
       bytes and the maximum size is 74 bytes.
       
      repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNonceList in interface VerifyConfidentialGkeRequest.ConfidentialGkeOptionsOrBuilder
      Returns:
      A list containing the nonce.
    • getNonceCount

      public int getNonceCount()
       Optional. Optional parameter to place one or more nonces in the eat_nonce
       claim in the output token. The minimum size for JSON-encoded EATs is 10
       bytes and the maximum size is 74 bytes.
       
      repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNonceCount in interface VerifyConfidentialGkeRequest.ConfidentialGkeOptionsOrBuilder
      Returns:
      The count of nonce.
    • getNonce

      public String getNonce(int index)
       Optional. Optional parameter to place one or more nonces in the eat_nonce
       claim in the output token. The minimum size for JSON-encoded EATs is 10
       bytes and the maximum size is 74 bytes.
       
      repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNonce in interface VerifyConfidentialGkeRequest.ConfidentialGkeOptionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The nonce at the given index.
    • getNonceBytes

      public com.google.protobuf.ByteString getNonceBytes(int index)
       Optional. Optional parameter to place one or more nonces in the eat_nonce
       claim in the output token. The minimum size for JSON-encoded EATs is 10
       bytes and the maximum size is 74 bytes.
       
      repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNonceBytes in interface VerifyConfidentialGkeRequest.ConfidentialGkeOptionsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the nonce at the given index.
    • setNonce

       Optional. Optional parameter to place one or more nonces in the eat_nonce
       claim in the output token. The minimum size for JSON-encoded EATs is 10
       bytes and the maximum size is 74 bytes.
       
      repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The nonce to set.
      Returns:
      This builder for chaining.
    • addNonce

       Optional. Optional parameter to place one or more nonces in the eat_nonce
       claim in the output token. The minimum size for JSON-encoded EATs is 10
       bytes and the maximum size is 74 bytes.
       
      repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The nonce to add.
      Returns:
      This builder for chaining.
    • addAllNonce

       Optional. Optional parameter to place one or more nonces in the eat_nonce
       claim in the output token. The minimum size for JSON-encoded EATs is 10
       bytes and the maximum size is 74 bytes.
       
      repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The nonce to add.
      Returns:
      This builder for chaining.
    • clearNonce

       Optional. Optional parameter to place one or more nonces in the eat_nonce
       claim in the output token. The minimum size for JSON-encoded EATs is 10
       bytes and the maximum size is 74 bytes.
       
      repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addNonceBytes

      public VerifyConfidentialGkeRequest.ConfidentialGkeOptions.Builder addNonceBytes(com.google.protobuf.ByteString value)
       Optional. Optional parameter to place one or more nonces in the eat_nonce
       claim in the output token. The minimum size for JSON-encoded EATs is 10
       bytes and the maximum size is 74 bytes.
       
      repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the nonce to add.
      Returns:
      This builder for chaining.
    • getSignatureTypeValue

      public int getSignatureTypeValue()
       Optional. Optional specification for how to sign the attestation token.
       Defaults to SIGNATURE_TYPE_OIDC if unspecified.
       
      .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSignatureTypeValue in interface VerifyConfidentialGkeRequest.ConfidentialGkeOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for signatureType.
    • setSignatureTypeValue

      public VerifyConfidentialGkeRequest.ConfidentialGkeOptions.Builder setSignatureTypeValue(int value)
       Optional. Optional specification for how to sign the attestation token.
       Defaults to SIGNATURE_TYPE_OIDC if unspecified.
       
      .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for signatureType to set.
      Returns:
      This builder for chaining.
    • getSignatureType

      public SignatureType getSignatureType()
       Optional. Optional specification for how to sign the attestation token.
       Defaults to SIGNATURE_TYPE_OIDC if unspecified.
       
      .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSignatureType in interface VerifyConfidentialGkeRequest.ConfidentialGkeOptionsOrBuilder
      Returns:
      The signatureType.
    • setSignatureType

       Optional. Optional specification for how to sign the attestation token.
       Defaults to SIGNATURE_TYPE_OIDC if unspecified.
       
      .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The signatureType to set.
      Returns:
      This builder for chaining.
    • clearSignatureType

       Optional. Optional specification for how to sign the attestation token.
       Defaults to SIGNATURE_TYPE_OIDC if unspecified.
       
      .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.