Class Discovered.Builder (2.45.0)

public static final class Discovered.Builder extends GeneratedMessageV3.Builder<Discovered.Builder> implements DiscoveredOrBuilder

Provides information about the analysis status of a discovered resource.

Protobuf type grafeas.v1beta1.discovery.Discovered

Implements

DiscoveredOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Discovered build()
Returns
Type Description
Discovered

buildPartial()

public Discovered buildPartial()
Returns
Type Description
Discovered

clear()

public Discovered.Builder clear()
Returns
Type Description
Discovered.Builder
Overrides

clearAnalysisStatus()

public Discovered.Builder clearAnalysisStatus()

The status of discovery for the resource.

.grafeas.v1beta1.discovery.Discovered.AnalysisStatus analysis_status = 3;

Returns
Type Description
Discovered.Builder

This builder for chaining.

clearAnalysisStatusError()

public Discovered.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 = 4;

Returns
Type Description
Discovered.Builder

clearContinuousAnalysis()

public Discovered.Builder clearContinuousAnalysis()

Whether the resource is continuously analyzed.

.grafeas.v1beta1.discovery.Discovered.ContinuousAnalysis continuous_analysis = 1;

Returns
Type Description
Discovered.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLastAnalysisTime()

public Discovered.Builder clearLastAnalysisTime()

The last time continuous analysis was done for this resource.

.google.protobuf.Timestamp last_analysis_time = 2;

Returns
Type Description
Discovered.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Discovered.Builder clone()
Returns
Type Description
Discovered.Builder
Overrides

getAnalysisStatus()

public Discovered.AnalysisStatus getAnalysisStatus()

The status of discovery for the resource.

.grafeas.v1beta1.discovery.Discovered.AnalysisStatus analysis_status = 3;

Returns
Type Description
Discovered.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 = 4;

Returns
Type Description
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 = 4;

Returns
Type Description
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 = 4;

Returns
Type Description
com.google.rpc.StatusOrBuilder

getAnalysisStatusValue()

public int getAnalysisStatusValue()

The status of discovery for the resource.

.grafeas.v1beta1.discovery.Discovered.AnalysisStatus analysis_status = 3;

Returns
Type Description
int

The enum numeric value on the wire for analysisStatus.

getContinuousAnalysis()

public Discovered.ContinuousAnalysis getContinuousAnalysis()

Whether the resource is continuously analyzed.

.grafeas.v1beta1.discovery.Discovered.ContinuousAnalysis continuous_analysis = 1;

Returns
Type Description
Discovered.ContinuousAnalysis

The continuousAnalysis.

getContinuousAnalysisValue()

public int getContinuousAnalysisValue()

Whether the resource is continuously analyzed.

.grafeas.v1beta1.discovery.Discovered.ContinuousAnalysis continuous_analysis = 1;

Returns
Type Description
int

The enum numeric value on the wire for continuousAnalysis.

getDefaultInstanceForType()

public Discovered getDefaultInstanceForType()
Returns
Type Description
Discovered

getDescriptorForType()

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

getLastAnalysisTime()

public Timestamp getLastAnalysisTime()

The last time continuous analysis was done for this resource.

.google.protobuf.Timestamp last_analysis_time = 2;

Returns
Type Description
Timestamp

The lastAnalysisTime.

getLastAnalysisTimeBuilder()

public Timestamp.Builder getLastAnalysisTimeBuilder()

The last time continuous analysis was done for this resource.

.google.protobuf.Timestamp last_analysis_time = 2;

Returns
Type Description
Builder

getLastAnalysisTimeOrBuilder()

public TimestampOrBuilder getLastAnalysisTimeOrBuilder()

The last time continuous analysis was done for this resource.

.google.protobuf.Timestamp last_analysis_time = 2;

Returns
Type Description
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 = 4;

Returns
Type Description
boolean

Whether the analysisStatusError field is set.

hasLastAnalysisTime()

public boolean hasLastAnalysisTime()

The last time continuous analysis was done for this resource.

.google.protobuf.Timestamp last_analysis_time = 2;

Returns
Type Description
boolean

Whether the lastAnalysisTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAnalysisStatusError(Status value)

public Discovered.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 = 4;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
Discovered.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Discovered other)

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

mergeLastAnalysisTime(Timestamp value)

public Discovered.Builder mergeLastAnalysisTime(Timestamp value)

The last time continuous analysis was done for this resource.

.google.protobuf.Timestamp last_analysis_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
Discovered.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAnalysisStatus(Discovered.AnalysisStatus value)

public Discovered.Builder setAnalysisStatus(Discovered.AnalysisStatus value)

The status of discovery for the resource.

.grafeas.v1beta1.discovery.Discovered.AnalysisStatus analysis_status = 3;

Parameter
Name Description
value Discovered.AnalysisStatus

The analysisStatus to set.

Returns
Type Description
Discovered.Builder

This builder for chaining.

setAnalysisStatusError(Status value)

public Discovered.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 = 4;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
Discovered.Builder

setAnalysisStatusError(Status.Builder builderForValue)

public Discovered.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 = 4;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
Discovered.Builder

setAnalysisStatusValue(int value)

public Discovered.Builder setAnalysisStatusValue(int value)

The status of discovery for the resource.

.grafeas.v1beta1.discovery.Discovered.AnalysisStatus analysis_status = 3;

Parameter
Name Description
value int

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

Returns
Type Description
Discovered.Builder

This builder for chaining.

setContinuousAnalysis(Discovered.ContinuousAnalysis value)

public Discovered.Builder setContinuousAnalysis(Discovered.ContinuousAnalysis value)

Whether the resource is continuously analyzed.

.grafeas.v1beta1.discovery.Discovered.ContinuousAnalysis continuous_analysis = 1;

Parameter
Name Description
value Discovered.ContinuousAnalysis

The continuousAnalysis to set.

Returns
Type Description
Discovered.Builder

This builder for chaining.

setContinuousAnalysisValue(int value)

public Discovered.Builder setContinuousAnalysisValue(int value)

Whether the resource is continuously analyzed.

.grafeas.v1beta1.discovery.Discovered.ContinuousAnalysis continuous_analysis = 1;

Parameter
Name Description
value int

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

Returns
Type Description
Discovered.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLastAnalysisTime(Timestamp value)

public Discovered.Builder setLastAnalysisTime(Timestamp value)

The last time continuous analysis was done for this resource.

.google.protobuf.Timestamp last_analysis_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
Discovered.Builder

setLastAnalysisTime(Timestamp.Builder builderForValue)

public Discovered.Builder setLastAnalysisTime(Timestamp.Builder builderForValue)

The last time continuous analysis was done for this resource.

.google.protobuf.Timestamp last_analysis_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Discovered.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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