Class UserOwnedDrydockNote.Builder (1.44.0)

publicstaticfinalclass UserOwnedDrydockNote.BuilderextendsGeneratedMessageV3.Builder<UserOwnedDrydockNote.Builder>implementsUserOwnedDrydockNoteOrBuilder

An user owned drydock note references a Drydock ATTESTATION_AUTHORITY Note created by the user.

Protobuf type google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllPublicKeys(Iterable<? extends AttestorPublicKey> values)

publicUserOwnedDrydockNote.BuilderaddAllPublicKeys(Iterable<?extendsAttestorPublicKey>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];

Parameter
Name Description
values Iterable<? extends com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey>
Returns
Type Description
UserOwnedDrydockNote.Builder

addPublicKeys(AttestorPublicKey value)

publicUserOwnedDrydockNote.BuilderaddPublicKeys(AttestorPublicKeyvalue)

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];

Parameter
Name Description
value AttestorPublicKey
Returns
Type Description
UserOwnedDrydockNote.Builder

addPublicKeys(AttestorPublicKey.Builder builderForValue)

publicUserOwnedDrydockNote.BuilderaddPublicKeys(AttestorPublicKey.BuilderbuilderForValue)

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];

Parameter
Name Description
builderForValue AttestorPublicKey.Builder
Returns
Type Description
UserOwnedDrydockNote.Builder

addPublicKeys(int index, AttestorPublicKey value)

publicUserOwnedDrydockNote.BuilderaddPublicKeys(intindex,AttestorPublicKeyvalue)

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];

Parameters
Name Description
index int
value AttestorPublicKey
Returns
Type Description
UserOwnedDrydockNote.Builder

addPublicKeys(int index, AttestorPublicKey.Builder builderForValue)

publicUserOwnedDrydockNote.BuilderaddPublicKeys(intindex,AttestorPublicKey.BuilderbuilderForValue)

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];

Parameters
Name Description
index int
builderForValue AttestorPublicKey.Builder
Returns
Type Description
UserOwnedDrydockNote.Builder

addPublicKeysBuilder()

publicAttestorPublicKey.BuilderaddPublicKeysBuilder()

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];

Returns
Type Description
AttestorPublicKey.Builder

addPublicKeysBuilder(int index)

publicAttestorPublicKey.BuilderaddPublicKeysBuilder(intindex)

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];

Parameter
Name Description
index int
Returns
Type Description
AttestorPublicKey.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicUserOwnedDrydockNote.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UserOwnedDrydockNote.Builder
Overrides

build()

publicUserOwnedDrydockNotebuild()
Returns
Type Description
UserOwnedDrydockNote

buildPartial()

publicUserOwnedDrydockNotebuildPartial()
Returns
Type Description
UserOwnedDrydockNote

clear()

publicUserOwnedDrydockNote.Builderclear()
Returns
Type Description
UserOwnedDrydockNote.Builder
Overrides

clearDelegationServiceAccountEmail()

publicUserOwnedDrydockNote.BuilderclearDelegationServiceAccountEmail()

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 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
Type Description
UserOwnedDrydockNote.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicUserOwnedDrydockNote.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UserOwnedDrydockNote.Builder
Overrides

clearNoteReference()

publicUserOwnedDrydockNote.BuilderclearNoteReference()

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
Type Description
UserOwnedDrydockNote.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicUserOwnedDrydockNote.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UserOwnedDrydockNote.Builder
Overrides

clearPublicKeys()

publicUserOwnedDrydockNote.BuilderclearPublicKeys()

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];

Returns
Type Description
UserOwnedDrydockNote.Builder

clone()

publicUserOwnedDrydockNote.Builderclone()
Returns
Type Description
UserOwnedDrydockNote.Builder
Overrides

getDefaultInstanceForType()

publicUserOwnedDrydockNotegetDefaultInstanceForType()
Returns
Type Description
UserOwnedDrydockNote

getDelegationServiceAccountEmail()

publicStringgetDelegationServiceAccountEmail()

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 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
Type Description
String

The delegationServiceAccountEmail.

getDelegationServiceAccountEmailBytes()

publicByteStringgetDelegationServiceAccountEmailBytes()

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 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
Type Description
ByteString

The bytes for delegationServiceAccountEmail.

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNoteReference()

publicStringgetNoteReference()

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
Type Description
String

The noteReference.

getNoteReferenceBytes()

publicByteStringgetNoteReferenceBytes()

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
Type Description
ByteString

The bytes for noteReference.

getPublicKeys(int index)

publicAttestorPublicKeygetPublicKeys(intindex)

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];

Parameter
Name Description
index int
Returns
Type Description
AttestorPublicKey

getPublicKeysBuilder(int index)

publicAttestorPublicKey.BuildergetPublicKeysBuilder(intindex)

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];

Parameter
Name Description
index int
Returns
Type Description
AttestorPublicKey.Builder

getPublicKeysBuilderList()

publicList<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];

Returns
Type Description
List<Builder>

getPublicKeysCount()

publicintgetPublicKeysCount()

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];

Returns
Type Description
int

getPublicKeysList()

publicList<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];

Returns
Type Description
List<AttestorPublicKey>

getPublicKeysOrBuilder(int index)

publicAttestorPublicKeyOrBuildergetPublicKeysOrBuilder(intindex)

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];

Parameter
Name Description
index int
Returns
Type Description
AttestorPublicKeyOrBuilder

getPublicKeysOrBuilderList()

publicList<?extendsAttestorPublicKeyOrBuilder>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];

Returns
Type Description
List<? extends com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder>

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserOwnedDrydockNote other)

publicUserOwnedDrydockNote.BuildermergeFrom(UserOwnedDrydockNoteother)
Parameter
Name Description
other UserOwnedDrydockNote
Returns
Type Description
UserOwnedDrydockNote.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicUserOwnedDrydockNote.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserOwnedDrydockNote.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicUserOwnedDrydockNote.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
UserOwnedDrydockNote.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalUserOwnedDrydockNote.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UserOwnedDrydockNote.Builder
Overrides

removePublicKeys(int index)

publicUserOwnedDrydockNote.BuilderremovePublicKeys(intindex)

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];

Parameter
Name Description
index int
Returns
Type Description
UserOwnedDrydockNote.Builder

setDelegationServiceAccountEmail(String value)

publicUserOwnedDrydockNote.BuildersetDelegationServiceAccountEmail(Stringvalue)

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 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];

Parameter
Name Description
value String

The delegationServiceAccountEmail to set.

Returns
Type Description
UserOwnedDrydockNote.Builder

This builder for chaining.

setDelegationServiceAccountEmailBytes(ByteString value)

publicUserOwnedDrydockNote.BuildersetDelegationServiceAccountEmailBytes(ByteStringvalue)

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 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];

Parameter
Name Description
value ByteString

The bytes for delegationServiceAccountEmail to set.

Returns
Type Description
UserOwnedDrydockNote.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicUserOwnedDrydockNote.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UserOwnedDrydockNote.Builder
Overrides

setNoteReference(String value)

publicUserOwnedDrydockNote.BuildersetNoteReference(Stringvalue)

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];

Parameter
Name Description
value String

The noteReference to set.

Returns
Type Description
UserOwnedDrydockNote.Builder

This builder for chaining.

setNoteReferenceBytes(ByteString value)

publicUserOwnedDrydockNote.BuildersetNoteReferenceBytes(ByteStringvalue)

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];

Parameter
Name Description
value ByteString

The bytes for noteReference to set.

Returns
Type Description
UserOwnedDrydockNote.Builder

This builder for chaining.

setPublicKeys(int index, AttestorPublicKey value)

publicUserOwnedDrydockNote.BuildersetPublicKeys(intindex,AttestorPublicKeyvalue)

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];

Parameters
Name Description
index int
value AttestorPublicKey
Returns
Type Description
UserOwnedDrydockNote.Builder

setPublicKeys(int index, AttestorPublicKey.Builder builderForValue)

publicUserOwnedDrydockNote.BuildersetPublicKeys(intindex,AttestorPublicKey.BuilderbuilderForValue)

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];

Parameters
Name Description
index int
builderForValue AttestorPublicKey.Builder
Returns
Type Description
UserOwnedDrydockNote.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicUserOwnedDrydockNote.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UserOwnedDrydockNote.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalUserOwnedDrydockNote.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UserOwnedDrydockNote.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.