Class Resources.UserOwnedGrafeasNote.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Resources.UserOwnedGrafeasNote.Builder>
com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Resources.UserOwnedGrafeasNoteOrBuilder, Cloneable
Enclosing class:
Resources.UserOwnedGrafeasNote

public static final class Resources.UserOwnedGrafeasNote.Builder extends com.google.protobuf.GeneratedMessage.Builder<Resources.UserOwnedGrafeasNote.Builder> implements Resources.UserOwnedGrafeasNoteOrBuilder
 An [user owned Grafeas note][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote] references a Grafeas
 Attestation.Authority Note created by the user.
 
Protobuf type google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote
  • 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<Resources.UserOwnedGrafeasNote.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<Resources.UserOwnedGrafeasNote.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<Resources.UserOwnedGrafeasNote.Builder>
    • getDefaultInstanceForType

      public Resources.UserOwnedGrafeasNote 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

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

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

      public Resources.UserOwnedGrafeasNote.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<Resources.UserOwnedGrafeasNote.Builder>
      Throws:
      IOException
    • getNoteReference

      public String getNoteReference()
       Required. The Grafeas resource name of a Attestation.Authority Note,
       created by the user, in the format: `projects/*/notes/*`. This field may
       not be updated.
      
       An attestation by this attestor is stored as a Grafeas
       Attestation.Authority Occurrence that names a container image and that
       links to this Note. Grafeas is an external dependency.
       
      string note_reference = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNoteReference in interface Resources.UserOwnedGrafeasNoteOrBuilder
      Returns:
      The noteReference.
    • getNoteReferenceBytes

      public com.google.protobuf.ByteString getNoteReferenceBytes()
       Required. The Grafeas resource name of a Attestation.Authority Note,
       created by the user, in the format: `projects/*/notes/*`. This field may
       not be updated.
      
       An attestation by this attestor is stored as a Grafeas
       Attestation.Authority Occurrence that names a container image and that
       links to this Note. Grafeas is an external dependency.
       
      string note_reference = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNoteReferenceBytes in interface Resources.UserOwnedGrafeasNoteOrBuilder
      Returns:
      The bytes for noteReference.
    • setNoteReference

      public Resources.UserOwnedGrafeasNote.Builder setNoteReference(String value)
       Required. The Grafeas resource name of a Attestation.Authority Note,
       created by the user, in the format: `projects/*/notes/*`. This field may
       not be updated.
      
       An attestation by this attestor is stored as a Grafeas
       Attestation.Authority Occurrence that names a container image and that
       links to this Note. Grafeas is an external dependency.
       
      string note_reference = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The noteReference to set.
      Returns:
      This builder for chaining.
    • clearNoteReference

      public Resources.UserOwnedGrafeasNote.Builder clearNoteReference()
       Required. The Grafeas resource name of a Attestation.Authority Note,
       created by the user, in the format: `projects/*/notes/*`. This field may
       not be updated.
      
       An attestation by this attestor is stored as a Grafeas
       Attestation.Authority Occurrence that names a container image and that
       links to this Note. Grafeas is an external dependency.
       
      string note_reference = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNoteReferenceBytes

      public Resources.UserOwnedGrafeasNote.Builder setNoteReferenceBytes(com.google.protobuf.ByteString value)
       Required. The Grafeas resource name of a Attestation.Authority Note,
       created by the user, in the format: `projects/*/notes/*`. This field may
       not be updated.
      
       An attestation by this attestor is stored as a Grafeas
       Attestation.Authority Occurrence that names a container image and that
       links to this Note. Grafeas is an external dependency.
       
      string note_reference = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for noteReference to set.
      Returns:
      This builder for chaining.
    • getPublicKeysList

      public List<Resources.AttestorPublicKey> getPublicKeysList()
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublicKeysList in interface Resources.UserOwnedGrafeasNoteOrBuilder
    • getPublicKeysCount

      public int getPublicKeysCount()
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublicKeysCount in interface Resources.UserOwnedGrafeasNoteOrBuilder
    • getPublicKeys

      public Resources.AttestorPublicKey getPublicKeys(int index)
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublicKeys in interface Resources.UserOwnedGrafeasNoteOrBuilder
    • setPublicKeys

      public Resources.UserOwnedGrafeasNote.Builder setPublicKeys(int index, Resources.AttestorPublicKey value)
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setPublicKeys

      public Resources.UserOwnedGrafeasNote.Builder setPublicKeys(int index, Resources.AttestorPublicKey.Builder builderForValue)
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addPublicKeys

       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addPublicKeys

      public Resources.UserOwnedGrafeasNote.Builder addPublicKeys(int index, Resources.AttestorPublicKey value)
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addPublicKeys

       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addPublicKeys

      public Resources.UserOwnedGrafeasNote.Builder addPublicKeys(int index, Resources.AttestorPublicKey.Builder builderForValue)
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addAllPublicKeys

       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearPublicKeys

      public Resources.UserOwnedGrafeasNote.Builder clearPublicKeys()
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
    • removePublicKeys

      public Resources.UserOwnedGrafeasNote.Builder removePublicKeys(int index)
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getPublicKeysBuilder

      public Resources.AttestorPublicKey.Builder getPublicKeysBuilder(int index)
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getPublicKeysOrBuilder

      public Resources.AttestorPublicKeyOrBuilder getPublicKeysOrBuilder(int index)
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublicKeysOrBuilder in interface Resources.UserOwnedGrafeasNoteOrBuilder
    • getPublicKeysOrBuilderList

      public List<? extends Resources.AttestorPublicKeyOrBuilder> getPublicKeysOrBuilderList()
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublicKeysOrBuilderList in interface Resources.UserOwnedGrafeasNoteOrBuilder
    • addPublicKeysBuilder

      public Resources.AttestorPublicKey.Builder addPublicKeysBuilder()
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addPublicKeysBuilder

      public Resources.AttestorPublicKey.Builder addPublicKeysBuilder(int index)
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getPublicKeysBuilderList

      public List<Resources.AttestorPublicKey.Builder> getPublicKeysBuilderList()
       Optional. Public keys that verify attestations signed by this
       attestor.  This field may be updated.
      
       If this field is non-empty, one of the specified public keys must
       verify that an attestation was signed by this attestor for the
       image specified in the admission request.
      
       If this field is empty, this attestor always returns that no
       valid attestations exist.
       
      repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getDelegationServiceAccountEmail

      public String getDelegationServiceAccountEmail()
       Output only. This field will contain the service account email address
       that this Attestor will use as the principal when querying Container
       Analysis. Attestor administrators must grant this service account the
       IAM role needed to read attestations from the [note_reference][Note] in
       Container Analysis (`containeranalysis.notes.occurrences.viewer`).
      
       This email address is fixed for the lifetime of the Attestor, but callers
       should not make any other assumptions about the service account email;
       future versions may use an email based on a different naming pattern.
       
      string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDelegationServiceAccountEmail in interface Resources.UserOwnedGrafeasNoteOrBuilder
      Returns:
      The delegationServiceAccountEmail.
    • getDelegationServiceAccountEmailBytes

      public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes()
       Output only. This field will contain the service account email address
       that this Attestor will use as the principal when querying Container
       Analysis. Attestor administrators must grant this service account the
       IAM role needed to read attestations from the [note_reference][Note] in
       Container Analysis (`containeranalysis.notes.occurrences.viewer`).
      
       This email address is fixed for the lifetime of the Attestor, but callers
       should not make any other assumptions about the service account email;
       future versions may use an email based on a different naming pattern.
       
      string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDelegationServiceAccountEmailBytes in interface Resources.UserOwnedGrafeasNoteOrBuilder
      Returns:
      The bytes for delegationServiceAccountEmail.
    • setDelegationServiceAccountEmail

      public Resources.UserOwnedGrafeasNote.Builder setDelegationServiceAccountEmail(String value)
       Output only. This field will contain the service account email address
       that this Attestor will use as the principal when querying Container
       Analysis. Attestor administrators must grant this service account the
       IAM role needed to read attestations from the [note_reference][Note] in
       Container Analysis (`containeranalysis.notes.occurrences.viewer`).
      
       This email address is fixed for the lifetime of the Attestor, but callers
       should not make any other assumptions about the service account email;
       future versions may use an email based on a different naming pattern.
       
      string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The delegationServiceAccountEmail to set.
      Returns:
      This builder for chaining.
    • clearDelegationServiceAccountEmail

      public Resources.UserOwnedGrafeasNote.Builder clearDelegationServiceAccountEmail()
       Output only. This field will contain the service account email address
       that this Attestor will use as the principal when querying Container
       Analysis. Attestor administrators must grant this service account the
       IAM role needed to read attestations from the [note_reference][Note] in
       Container Analysis (`containeranalysis.notes.occurrences.viewer`).
      
       This email address is fixed for the lifetime of the Attestor, but callers
       should not make any other assumptions about the service account email;
       future versions may use an email based on a different naming pattern.
       
      string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDelegationServiceAccountEmailBytes

      public Resources.UserOwnedGrafeasNote.Builder setDelegationServiceAccountEmailBytes(com.google.protobuf.ByteString value)
       Output only. This field will contain the service account email address
       that this Attestor will use as the principal when querying Container
       Analysis. Attestor administrators must grant this service account the
       IAM role needed to read attestations from the [note_reference][Note] in
       Container Analysis (`containeranalysis.notes.occurrences.viewer`).
      
       This email address is fixed for the lifetime of the Attestor, but callers
       should not make any other assumptions about the service account email;
       future versions may use an email based on a different naming pattern.
       
      string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for delegationServiceAccountEmail to set.
      Returns:
      This builder for chaining.