Class Service.ValidateAttestationOccurrenceRequest.Builder (1.46.0)

public static final class Service.ValidateAttestationOccurrenceRequest.Builder extends GeneratedMessageV3.Builder<Service.ValidateAttestationOccurrenceRequest.Builder> implements Service.ValidateAttestationOccurrenceRequestOrBuilder

Request message for ValidationHelperV1.ValidateAttestationOccurrence.

Protobuf type google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Service.ValidateAttestationOccurrenceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder
Overrides

build()

public Service.ValidateAttestationOccurrenceRequest build()
Returns
Type Description
Service.ValidateAttestationOccurrenceRequest

buildPartial()

public Service.ValidateAttestationOccurrenceRequest buildPartial()
Returns
Type Description
Service.ValidateAttestationOccurrenceRequest

clear()

public Service.ValidateAttestationOccurrenceRequest.Builder clear()
Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder
Overrides

clearAttestation()

public Service.ValidateAttestationOccurrenceRequest.Builder clearAttestation()

Required. An AttestationOccurrence to be checked that it can be verified by the Attestor. It does not have to be an existing entity in Container Analysis. It must otherwise be a valid AttestationOccurrence.

.grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder

clearAttestor()

public Service.ValidateAttestationOccurrenceRequest.Builder clearAttestor()

Required. The resource name of the Attestor of the occurrence, in the format projects/*/attestors/*.

string attestor = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Service.ValidateAttestationOccurrenceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder
Overrides

clearOccurrenceNote()

public Service.ValidateAttestationOccurrenceRequest.Builder clearOccurrenceNote()

Required. The resource name of the Note to which the containing Occurrence is associated.

string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder

This builder for chaining.

clearOccurrenceResourceUri()

public Service.ValidateAttestationOccurrenceRequest.Builder clearOccurrenceResourceUri()

Required. The URI of the artifact (e.g. container image) that is the subject of the containing Occurrence.

string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Service.ValidateAttestationOccurrenceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder
Overrides

clone()

public Service.ValidateAttestationOccurrenceRequest.Builder clone()
Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder
Overrides

getAttestation()

public AttestationOccurrence getAttestation()

Required. An AttestationOccurrence to be checked that it can be verified by the Attestor. It does not have to be an existing entity in Container Analysis. It must otherwise be a valid AttestationOccurrence.

.grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
io.grafeas.v1.AttestationOccurrence

The attestation.

getAttestationBuilder()

public AttestationOccurrence.Builder getAttestationBuilder()

Required. An AttestationOccurrence to be checked that it can be verified by the Attestor. It does not have to be an existing entity in Container Analysis. It must otherwise be a valid AttestationOccurrence.

.grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
io.grafeas.v1.AttestationOccurrence.Builder

getAttestationOrBuilder()

public AttestationOccurrenceOrBuilder getAttestationOrBuilder()

Required. An AttestationOccurrence to be checked that it can be verified by the Attestor. It does not have to be an existing entity in Container Analysis. It must otherwise be a valid AttestationOccurrence.

.grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
io.grafeas.v1.AttestationOccurrenceOrBuilder

getAttestor()

public String getAttestor()

Required. The resource name of the Attestor of the occurrence, in the format projects/*/attestors/*.

string attestor = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The attestor.

getAttestorBytes()

public ByteString getAttestorBytes()

Required. The resource name of the Attestor of the occurrence, in the format projects/*/attestors/*.

string attestor = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for attestor.

getDefaultInstanceForType()

public Service.ValidateAttestationOccurrenceRequest getDefaultInstanceForType()
Returns
Type Description
Service.ValidateAttestationOccurrenceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getOccurrenceNote()

public String getOccurrenceNote()

Required. The resource name of the Note to which the containing Occurrence is associated.

string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The occurrenceNote.

getOccurrenceNoteBytes()

public ByteString getOccurrenceNoteBytes()

Required. The resource name of the Note to which the containing Occurrence is associated.

string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for occurrenceNote.

getOccurrenceResourceUri()

public String getOccurrenceResourceUri()

Required. The URI of the artifact (e.g. container image) that is the subject of the containing Occurrence.

string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The occurrenceResourceUri.

getOccurrenceResourceUriBytes()

public ByteString getOccurrenceResourceUriBytes()

Required. The URI of the artifact (e.g. container image) that is the subject of the containing Occurrence.

string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for occurrenceResourceUri.

hasAttestation()

public boolean hasAttestation()

Required. An AttestationOccurrence to be checked that it can be verified by the Attestor. It does not have to be an existing entity in Container Analysis. It must otherwise be a valid AttestationOccurrence.

.grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the attestation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAttestation(AttestationOccurrence value)

public Service.ValidateAttestationOccurrenceRequest.Builder mergeAttestation(AttestationOccurrence value)

Required. An AttestationOccurrence to be checked that it can be verified by the Attestor. It does not have to be an existing entity in Container Analysis. It must otherwise be a valid AttestationOccurrence.

.grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value io.grafeas.v1.AttestationOccurrence
Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Service.ValidateAttestationOccurrenceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Service.ValidateAttestationOccurrenceRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder
Overrides

mergeFrom(Service.ValidateAttestationOccurrenceRequest other)

public Service.ValidateAttestationOccurrenceRequest.Builder mergeFrom(Service.ValidateAttestationOccurrenceRequest other)
Parameter
Name Description
other Service.ValidateAttestationOccurrenceRequest
Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Service.ValidateAttestationOccurrenceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder
Overrides

setAttestation(AttestationOccurrence value)

public Service.ValidateAttestationOccurrenceRequest.Builder setAttestation(AttestationOccurrence value)

Required. An AttestationOccurrence to be checked that it can be verified by the Attestor. It does not have to be an existing entity in Container Analysis. It must otherwise be a valid AttestationOccurrence.

.grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value io.grafeas.v1.AttestationOccurrence
Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder

setAttestation(AttestationOccurrence.Builder builderForValue)

public Service.ValidateAttestationOccurrenceRequest.Builder setAttestation(AttestationOccurrence.Builder builderForValue)

Required. An AttestationOccurrence to be checked that it can be verified by the Attestor. It does not have to be an existing entity in Container Analysis. It must otherwise be a valid AttestationOccurrence.

.grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue io.grafeas.v1.AttestationOccurrence.Builder
Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder

setAttestor(String value)

public Service.ValidateAttestationOccurrenceRequest.Builder setAttestor(String value)

Required. The resource name of the Attestor of the occurrence, in the format projects/*/attestors/*.

string attestor = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The attestor to set.

Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder

This builder for chaining.

setAttestorBytes(ByteString value)

public Service.ValidateAttestationOccurrenceRequest.Builder setAttestorBytes(ByteString value)

Required. The resource name of the Attestor of the occurrence, in the format projects/*/attestors/*.

string attestor = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for attestor to set.

Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Service.ValidateAttestationOccurrenceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder
Overrides

setOccurrenceNote(String value)

public Service.ValidateAttestationOccurrenceRequest.Builder setOccurrenceNote(String value)

Required. The resource name of the Note to which the containing Occurrence is associated.

string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The occurrenceNote to set.

Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder

This builder for chaining.

setOccurrenceNoteBytes(ByteString value)

public Service.ValidateAttestationOccurrenceRequest.Builder setOccurrenceNoteBytes(ByteString value)

Required. The resource name of the Note to which the containing Occurrence is associated.

string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for occurrenceNote to set.

Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder

This builder for chaining.

setOccurrenceResourceUri(String value)

public Service.ValidateAttestationOccurrenceRequest.Builder setOccurrenceResourceUri(String value)

Required. The URI of the artifact (e.g. container image) that is the subject of the containing Occurrence.

string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The occurrenceResourceUri to set.

Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder

This builder for chaining.

setOccurrenceResourceUriBytes(ByteString value)

public Service.ValidateAttestationOccurrenceRequest.Builder setOccurrenceResourceUriBytes(ByteString value)

Required. The URI of the artifact (e.g. container image) that is the subject of the containing Occurrence.

string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for occurrenceResourceUri to set.

Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder

This builder for chaining.

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

public Service.ValidateAttestationOccurrenceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Service.ValidateAttestationOccurrenceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Service.ValidateAttestationOccurrenceRequest.Builder
Overrides