Class UserOwnedDrydockNote.Builder

  • All Implemented Interfaces:
    UserOwnedDrydockNoteOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    UserOwnedDrydockNote

    public static final class UserOwnedDrydockNote.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<UserOwnedDrydockNote.Builder>
    implements UserOwnedDrydockNoteOrBuilder
     An [user owned drydock note][google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote] references a Drydock
     ATTESTATION_AUTHORITY Note created by the user.
     
    Protobuf type google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote
    • 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<UserOwnedDrydockNote.Builder>
      • clear

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

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

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

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

        public UserOwnedDrydockNote.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<UserOwnedDrydockNote.Builder>
      • setField

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

        public UserOwnedDrydockNote.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<UserOwnedDrydockNote.Builder>
      • clearOneof

        public UserOwnedDrydockNote.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<UserOwnedDrydockNote.Builder>
      • setRepeatedField

        public UserOwnedDrydockNote.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<UserOwnedDrydockNote.Builder>
      • addRepeatedField

        public UserOwnedDrydockNote.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<UserOwnedDrydockNote.Builder>
      • isInitialized

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

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

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

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

        public UserOwnedDrydockNote.Builder setNoteReference​(String value)
         Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
         created by the user, in the format: `projects/*/notes/*` (or the legacy
         `providers/*/notes/*`). This field may not be updated.
        
         An attestation by this attestor is stored as a Drydock
         ATTESTATION_AUTHORITY Occurrence that names a container image and that
         links to this Note. Drydock 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 UserOwnedDrydockNote.Builder clearNoteReference()
         Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
         created by the user, in the format: `projects/*/notes/*` (or the legacy
         `providers/*/notes/*`). This field may not be updated.
        
         An attestation by this attestor is stored as a Drydock
         ATTESTATION_AUTHORITY Occurrence that names a container image and that
         links to this Note. Drydock is an external dependency.
         
        string note_reference = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setNoteReferenceBytes

        public UserOwnedDrydockNote.Builder setNoteReferenceBytes​(com.google.protobuf.ByteString value)
         Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
         created by the user, in the format: `projects/*/notes/*` (or the legacy
         `providers/*/notes/*`). This field may not be updated.
        
         An attestation by this attestor is stored as a Drydock
         ATTESTATION_AUTHORITY Occurrence that names a container image and that
         links to this Note. Drydock 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<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.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPublicKeysList in interface UserOwnedDrydockNoteOrBuilder
      • 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.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPublicKeysCount in interface UserOwnedDrydockNoteOrBuilder
      • getPublicKeys

        public 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.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPublicKeys in interface UserOwnedDrydockNoteOrBuilder
      • setPublicKeys

        public UserOwnedDrydockNote.Builder setPublicKeys​(int index,
                                                          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.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      • setPublicKeys

        public UserOwnedDrydockNote.Builder setPublicKeys​(int index,
                                                          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.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      • addPublicKeys

        public UserOwnedDrydockNote.Builder addPublicKeys​(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.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      • addPublicKeys

        public UserOwnedDrydockNote.Builder addPublicKeys​(int index,
                                                          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.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      • addPublicKeys

        public UserOwnedDrydockNote.Builder addPublicKeys​(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.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      • addPublicKeys

        public UserOwnedDrydockNote.Builder addPublicKeys​(int index,
                                                          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.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      • addAllPublicKeys

        public UserOwnedDrydockNote.Builder addAllPublicKeys​(Iterable<? extends AttestorPublicKey> values)
         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.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      • clearPublicKeys

        public UserOwnedDrydockNote.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.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      • removePublicKeys

        public UserOwnedDrydockNote.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.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      • getPublicKeysBuilder

        public 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.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      • getPublicKeysOrBuilder

        public 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.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPublicKeysOrBuilder in interface UserOwnedDrydockNoteOrBuilder
      • getPublicKeysOrBuilderList

        public List<? extends 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.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPublicKeysOrBuilderList in interface UserOwnedDrydockNoteOrBuilder
      • addPublicKeysBuilder

        public 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.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      • addPublicKeysBuilder

        public 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.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
      • getPublicKeysBuilderList

        public List<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.v1beta1.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 UserOwnedDrydockNoteOrBuilder
        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 UserOwnedDrydockNoteOrBuilder
        Returns:
        The bytes for delegationServiceAccountEmail.
      • setDelegationServiceAccountEmail

        public UserOwnedDrydockNote.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 UserOwnedDrydockNote.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 UserOwnedDrydockNote.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.
      • setUnknownFields

        public final UserOwnedDrydockNote.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<UserOwnedDrydockNote.Builder>
      • mergeUnknownFields

        public final UserOwnedDrydockNote.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<UserOwnedDrydockNote.Builder>