Class Service.ValidateAttestationOccurrenceRequest.Builder (1.29.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Service.ValidateAttestationOccurrenceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Service.ValidateAttestationOccurrenceRequest.Builder
Overrides

build()

public Service.ValidateAttestationOccurrenceRequest build()
Returns
TypeDescription
Service.ValidateAttestationOccurrenceRequest

buildPartial()

public Service.ValidateAttestationOccurrenceRequest buildPartial()
Returns
TypeDescription
Service.ValidateAttestationOccurrenceRequest

clear()

public Service.ValidateAttestationOccurrenceRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Service.ValidateAttestationOccurrenceRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Service.ValidateAttestationOccurrenceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Service.ValidateAttestationOccurrenceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Service.ValidateAttestationOccurrenceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Service.ValidateAttestationOccurrenceRequest.Builder
Overrides

clone()

public Service.ValidateAttestationOccurrenceRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for attestor.

getDefaultInstanceForType()

public Service.ValidateAttestationOccurrenceRequest getDefaultInstanceForType()
Returns
TypeDescription
Service.ValidateAttestationOccurrenceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the attestation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueio.grafeas.v1.AttestationOccurrence
Returns
TypeDescription
Service.ValidateAttestationOccurrenceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Service.ValidateAttestationOccurrenceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Service.ValidateAttestationOccurrenceRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Service.ValidateAttestationOccurrenceRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Service.ValidateAttestationOccurrenceRequest.Builder
Overrides

mergeFrom(Service.ValidateAttestationOccurrenceRequest other)

public Service.ValidateAttestationOccurrenceRequest.Builder mergeFrom(Service.ValidateAttestationOccurrenceRequest other)
Parameter
NameDescription
otherService.ValidateAttestationOccurrenceRequest
Returns
TypeDescription
Service.ValidateAttestationOccurrenceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Service.ValidateAttestationOccurrenceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueio.grafeas.v1.AttestationOccurrence
Returns
TypeDescription
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
NameDescription
builderForValueio.grafeas.v1.AttestationOccurrence.Builder
Returns
TypeDescription
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
NameDescription
valueString

The attestor to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for attestor to set.

Returns
TypeDescription
Service.ValidateAttestationOccurrenceRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Service.ValidateAttestationOccurrenceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The occurrenceNote to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for occurrenceNote to set.

Returns
TypeDescription
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
NameDescription
valueString

The occurrenceResourceUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for occurrenceResourceUri to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Service.ValidateAttestationOccurrenceRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Service.ValidateAttestationOccurrenceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Service.ValidateAttestationOccurrenceRequest.Builder
Overrides