Class Discovered.Builder (2.32.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Discovered build()
Returns
TypeDescription
Discovered

buildPartial()

public Discovered buildPartial()
Returns
TypeDescription
Discovered

clear()

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

clearAnalysisStatus()

public Discovered.Builder clearAnalysisStatus()

The status of discovery for the resource.

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

Returns
TypeDescription
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
TypeDescription
Discovered.Builder

clearContinuousAnalysis()

public Discovered.Builder clearContinuousAnalysis()

Whether the resource is continuously analyzed.

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

Returns
TypeDescription
Discovered.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAnalysisStatus()

public Discovered.AnalysisStatus getAnalysisStatus()

The status of discovery for the resource.

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

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

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 = 4;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getAnalysisStatusValue()

public int getAnalysisStatusValue()

The status of discovery for the resource.

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

Returns
TypeDescription
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
TypeDescription
Discovered.ContinuousAnalysis

The continuousAnalysis.

getContinuousAnalysisValue()

public int getContinuousAnalysisValue()

Whether the resource is continuously analyzed.

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

Returns
TypeDescription
int

The enum numeric value on the wire for continuousAnalysis.

getDefaultInstanceForType()

public Discovered getDefaultInstanceForType()
Returns
TypeDescription
Discovered

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLastAnalysisTime()

public Timestamp getLastAnalysisTime()

The last time continuous analysis was done for this resource.

.google.protobuf.Timestamp last_analysis_time = 2;

Returns
TypeDescription
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
TypeDescription
Builder

getLastAnalysisTimeOrBuilder()

public TimestampOrBuilder getLastAnalysisTimeOrBuilder()

The last time continuous analysis was done for this resource.

.google.protobuf.Timestamp last_analysis_time = 2;

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 = 4;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the lastAnalysisTime 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 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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
Discovered.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Discovered other)

public Discovered.Builder mergeFrom(Discovered other)
Parameter
NameDescription
otherDiscovered
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Discovered.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Discovered.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDiscovered.AnalysisStatus

The analysisStatus to set.

Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueDiscovered.ContinuousAnalysis

The continuousAnalysis to set.

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

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

Returns
TypeDescription
Discovered.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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