Class DiscoveryOccurrence.Builder (2.1.3)

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

Provides information about the analysis status of a discovered resource.

Protobuf type grafeas.v1.DiscoveryOccurrence

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiscoveryOccurrence build()
Returns
TypeDescription
DiscoveryOccurrence

buildPartial()

public DiscoveryOccurrence buildPartial()
Returns
TypeDescription
DiscoveryOccurrence

clear()

public DiscoveryOccurrence.Builder clear()
Returns
TypeDescription
DiscoveryOccurrence.Builder
Overrides

clearAnalysisStatus()

public DiscoveryOccurrence.Builder clearAnalysisStatus()

The status of discovery for the resource.

.grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;

Returns
TypeDescription
DiscoveryOccurrence.Builder

This builder for chaining.

clearAnalysisStatusError()

public DiscoveryOccurrence.Builder clearAnalysisStatusError()

When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.

.google.rpc.Status analysis_status_error = 3;

Returns
TypeDescription
DiscoveryOccurrence.Builder

clearContinuousAnalysis()

public DiscoveryOccurrence.Builder clearContinuousAnalysis()

Whether the resource is continuously analyzed.

.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;

Returns
TypeDescription
DiscoveryOccurrence.Builder

This builder for chaining.

clearCpe()

public DiscoveryOccurrence.Builder clearCpe()

The CPE of the resource being scanned.

string cpe = 4;

Returns
TypeDescription
DiscoveryOccurrence.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DiscoveryOccurrence.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DiscoveryOccurrence.Builder
Overrides

clearLastScanTime()

public DiscoveryOccurrence.Builder clearLastScanTime()

The last time this resource was scanned.

.google.protobuf.Timestamp last_scan_time = 5;

Returns
TypeDescription
DiscoveryOccurrence.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public DiscoveryOccurrence.Builder clone()
Returns
TypeDescription
DiscoveryOccurrence.Builder
Overrides

getAnalysisStatus()

public DiscoveryOccurrence.AnalysisStatus getAnalysisStatus()

The status of discovery for the resource.

.grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;

Returns
TypeDescription
DiscoveryOccurrence.AnalysisStatus

The analysisStatus.

getAnalysisStatusError()

public Status getAnalysisStatusError()

When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.

.google.rpc.Status analysis_status_error = 3;

Returns
TypeDescription
com.google.rpc.Status

The analysisStatusError.

getAnalysisStatusErrorBuilder()

public Status.Builder getAnalysisStatusErrorBuilder()

When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.

.google.rpc.Status analysis_status_error = 3;

Returns
TypeDescription
com.google.rpc.Status.Builder

getAnalysisStatusErrorOrBuilder()

public StatusOrBuilder getAnalysisStatusErrorOrBuilder()

When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.

.google.rpc.Status analysis_status_error = 3;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getAnalysisStatusValue()

public int getAnalysisStatusValue()

The status of discovery for the resource.

.grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for analysisStatus.

getContinuousAnalysis()

public DiscoveryOccurrence.ContinuousAnalysis getContinuousAnalysis()

Whether the resource is continuously analyzed.

.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;

Returns
TypeDescription
DiscoveryOccurrence.ContinuousAnalysis

The continuousAnalysis.

getContinuousAnalysisValue()

public int getContinuousAnalysisValue()

Whether the resource is continuously analyzed.

.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for continuousAnalysis.

getCpe()

public String getCpe()

The CPE of the resource being scanned.

string cpe = 4;

Returns
TypeDescription
String

The cpe.

getCpeBytes()

public ByteString getCpeBytes()

The CPE of the resource being scanned.

string cpe = 4;

Returns
TypeDescription
ByteString

The bytes for cpe.

getDefaultInstanceForType()

public DiscoveryOccurrence getDefaultInstanceForType()
Returns
TypeDescription
DiscoveryOccurrence

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLastScanTime()

public Timestamp getLastScanTime()

The last time this resource was scanned.

.google.protobuf.Timestamp last_scan_time = 5;

Returns
TypeDescription
Timestamp

The lastScanTime.

getLastScanTimeBuilder()

public Timestamp.Builder getLastScanTimeBuilder()

The last time this resource was scanned.

.google.protobuf.Timestamp last_scan_time = 5;

Returns
TypeDescription
Builder

getLastScanTimeOrBuilder()

public TimestampOrBuilder getLastScanTimeOrBuilder()

The last time this resource was scanned.

.google.protobuf.Timestamp last_scan_time = 5;

Returns
TypeDescription
TimestampOrBuilder

hasAnalysisStatusError()

public boolean hasAnalysisStatusError()

When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.

.google.rpc.Status analysis_status_error = 3;

Returns
TypeDescription
boolean

Whether the analysisStatusError field is set.

hasLastScanTime()

public boolean hasLastScanTime()

The last time this resource was scanned.

.google.protobuf.Timestamp last_scan_time = 5;

Returns
TypeDescription
boolean

Whether the lastScanTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAnalysisStatusError(Status value)

public DiscoveryOccurrence.Builder mergeAnalysisStatusError(Status value)

When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.

.google.rpc.Status analysis_status_error = 3;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
DiscoveryOccurrence.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(DiscoveryOccurrence other)

public DiscoveryOccurrence.Builder mergeFrom(DiscoveryOccurrence other)
Parameter
NameDescription
otherDiscoveryOccurrence
Returns
TypeDescription
DiscoveryOccurrence.Builder

mergeLastScanTime(Timestamp value)

public DiscoveryOccurrence.Builder mergeLastScanTime(Timestamp value)

The last time this resource was scanned.

.google.protobuf.Timestamp last_scan_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DiscoveryOccurrence.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryOccurrence.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DiscoveryOccurrence.Builder
Overrides

setAnalysisStatus(DiscoveryOccurrence.AnalysisStatus value)

public DiscoveryOccurrence.Builder setAnalysisStatus(DiscoveryOccurrence.AnalysisStatus value)

The status of discovery for the resource.

.grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;

Parameter
NameDescription
valueDiscoveryOccurrence.AnalysisStatus

The analysisStatus to set.

Returns
TypeDescription
DiscoveryOccurrence.Builder

This builder for chaining.

setAnalysisStatusError(Status value)

public DiscoveryOccurrence.Builder setAnalysisStatusError(Status value)

When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.

.google.rpc.Status analysis_status_error = 3;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
DiscoveryOccurrence.Builder

setAnalysisStatusError(Status.Builder builderForValue)

public DiscoveryOccurrence.Builder setAnalysisStatusError(Status.Builder builderForValue)

When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.

.google.rpc.Status analysis_status_error = 3;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
DiscoveryOccurrence.Builder

setAnalysisStatusValue(int value)

public DiscoveryOccurrence.Builder setAnalysisStatusValue(int value)

The status of discovery for the resource.

.grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
DiscoveryOccurrence.Builder

This builder for chaining.

setContinuousAnalysis(DiscoveryOccurrence.ContinuousAnalysis value)

public DiscoveryOccurrence.Builder setContinuousAnalysis(DiscoveryOccurrence.ContinuousAnalysis value)

Whether the resource is continuously analyzed.

.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;

Parameter
NameDescription
valueDiscoveryOccurrence.ContinuousAnalysis

The continuousAnalysis to set.

Returns
TypeDescription
DiscoveryOccurrence.Builder

This builder for chaining.

setContinuousAnalysisValue(int value)

public DiscoveryOccurrence.Builder setContinuousAnalysisValue(int value)

Whether the resource is continuously analyzed.

.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
DiscoveryOccurrence.Builder

This builder for chaining.

setCpe(String value)

public DiscoveryOccurrence.Builder setCpe(String value)

The CPE of the resource being scanned.

string cpe = 4;

Parameter
NameDescription
valueString

The cpe to set.

Returns
TypeDescription
DiscoveryOccurrence.Builder

This builder for chaining.

setCpeBytes(ByteString value)

public DiscoveryOccurrence.Builder setCpeBytes(ByteString value)

The CPE of the resource being scanned.

string cpe = 4;

Parameter
NameDescription
valueByteString

The bytes for cpe to set.

Returns
TypeDescription
DiscoveryOccurrence.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryOccurrence.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DiscoveryOccurrence.Builder
Overrides

setLastScanTime(Timestamp value)

public DiscoveryOccurrence.Builder setLastScanTime(Timestamp value)

The last time this resource was scanned.

.google.protobuf.Timestamp last_scan_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DiscoveryOccurrence.Builder

setLastScanTime(Timestamp.Builder builderForValue)

public DiscoveryOccurrence.Builder setLastScanTime(Timestamp.Builder builderForValue)

The last time this resource was scanned.

.google.protobuf.Timestamp last_scan_time = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DiscoveryOccurrence.Builder

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

public DiscoveryOccurrence.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DiscoveryOccurrence.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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