Class DiscoveryOccurrence.VulnerabilityAttestation.Builder (2.54.0)

public static final class DiscoveryOccurrence.VulnerabilityAttestation.Builder extends GeneratedMessageV3.Builder<DiscoveryOccurrence.VulnerabilityAttestation.Builder> implements DiscoveryOccurrence.VulnerabilityAttestationOrBuilder

The status of an vulnerability attestation generation.

Protobuf type grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiscoveryOccurrence.VulnerabilityAttestation build()
Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation

buildPartial()

public DiscoveryOccurrence.VulnerabilityAttestation buildPartial()
Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation

clear()

public DiscoveryOccurrence.VulnerabilityAttestation.Builder clear()
Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder
Overrides

clearError()

public DiscoveryOccurrence.VulnerabilityAttestation.Builder clearError()

If failure, the error reason for why the attestation generation failed.

string error = 3;

Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DiscoveryOccurrence.VulnerabilityAttestation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder
Overrides

clearLastAttemptTime()

public DiscoveryOccurrence.VulnerabilityAttestation.Builder clearLastAttemptTime()

The last time we attempted to generate an attestation.

.google.protobuf.Timestamp last_attempt_time = 1;

Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DiscoveryOccurrence.VulnerabilityAttestation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder
Overrides

clearState()

public DiscoveryOccurrence.VulnerabilityAttestation.Builder clearState()

The success/failure state of the latest attestation attempt.

.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2;

Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder

This builder for chaining.

clone()

public DiscoveryOccurrence.VulnerabilityAttestation.Builder clone()
Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder
Overrides

getDefaultInstanceForType()

public DiscoveryOccurrence.VulnerabilityAttestation getDefaultInstanceForType()
Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation

getDescriptorForType()

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

getError()

public String getError()

If failure, the error reason for why the attestation generation failed.

string error = 3;

Returns
Type Description
String

The error.

getErrorBytes()

public ByteString getErrorBytes()

If failure, the error reason for why the attestation generation failed.

string error = 3;

Returns
Type Description
ByteString

The bytes for error.

getLastAttemptTime()

public Timestamp getLastAttemptTime()

The last time we attempted to generate an attestation.

.google.protobuf.Timestamp last_attempt_time = 1;

Returns
Type Description
Timestamp

The lastAttemptTime.

getLastAttemptTimeBuilder()

public Timestamp.Builder getLastAttemptTimeBuilder()

The last time we attempted to generate an attestation.

.google.protobuf.Timestamp last_attempt_time = 1;

Returns
Type Description
Builder

getLastAttemptTimeOrBuilder()

public TimestampOrBuilder getLastAttemptTimeOrBuilder()

The last time we attempted to generate an attestation.

.google.protobuf.Timestamp last_attempt_time = 1;

Returns
Type Description
TimestampOrBuilder

getState()

public DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState getState()

The success/failure state of the latest attestation attempt.

.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2;

Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState

The state.

getStateValue()

public int getStateValue()

The success/failure state of the latest attestation attempt.

.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2;

Returns
Type Description
int

The enum numeric value on the wire for state.

hasLastAttemptTime()

public boolean hasLastAttemptTime()

The last time we attempted to generate an attestation.

.google.protobuf.Timestamp last_attempt_time = 1;

Returns
Type Description
boolean

Whether the lastAttemptTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DiscoveryOccurrence.VulnerabilityAttestation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder
Overrides

mergeFrom(DiscoveryOccurrence.VulnerabilityAttestation other)

public DiscoveryOccurrence.VulnerabilityAttestation.Builder mergeFrom(DiscoveryOccurrence.VulnerabilityAttestation other)
Parameter
Name Description
other DiscoveryOccurrence.VulnerabilityAttestation
Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder

mergeLastAttemptTime(Timestamp value)

public DiscoveryOccurrence.VulnerabilityAttestation.Builder mergeLastAttemptTime(Timestamp value)

The last time we attempted to generate an attestation.

.google.protobuf.Timestamp last_attempt_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryOccurrence.VulnerabilityAttestation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder
Overrides

setError(String value)

public DiscoveryOccurrence.VulnerabilityAttestation.Builder setError(String value)

If failure, the error reason for why the attestation generation failed.

string error = 3;

Parameter
Name Description
value String

The error to set.

Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder

This builder for chaining.

setErrorBytes(ByteString value)

public DiscoveryOccurrence.VulnerabilityAttestation.Builder setErrorBytes(ByteString value)

If failure, the error reason for why the attestation generation failed.

string error = 3;

Parameter
Name Description
value ByteString

The bytes for error to set.

Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLastAttemptTime(Timestamp value)

public DiscoveryOccurrence.VulnerabilityAttestation.Builder setLastAttemptTime(Timestamp value)

The last time we attempted to generate an attestation.

.google.protobuf.Timestamp last_attempt_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder

setLastAttemptTime(Timestamp.Builder builderForValue)

public DiscoveryOccurrence.VulnerabilityAttestation.Builder setLastAttemptTime(Timestamp.Builder builderForValue)

The last time we attempted to generate an attestation.

.google.protobuf.Timestamp last_attempt_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder

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

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

setState(DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState value)

public DiscoveryOccurrence.VulnerabilityAttestation.Builder setState(DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState value)

The success/failure state of the latest attestation attempt.

.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2;

Parameter
Name Description
value DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState

The state to set.

Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder

This builder for chaining.

setStateValue(int value)

public DiscoveryOccurrence.VulnerabilityAttestation.Builder setStateValue(int value)

The success/failure state of the latest attestation attempt.

.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryOccurrence.VulnerabilityAttestation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiscoveryOccurrence.VulnerabilityAttestation.Builder
Overrides