Class ComplianceOccurrence.Builder (2.52.0)

public static final class ComplianceOccurrence.Builder extends GeneratedMessageV3.Builder<ComplianceOccurrence.Builder> implements ComplianceOccurrenceOrBuilder

An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason.

Protobuf type grafeas.v1.ComplianceOccurrence

Static Methods

getDescriptor()

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

Methods

addAllNonCompliantFiles(Iterable<? extends NonCompliantFile> values)

public ComplianceOccurrence.Builder addAllNonCompliantFiles(Iterable<? extends NonCompliantFile> values)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameter
Name Description
values Iterable<? extends io.grafeas.v1.NonCompliantFile>
Returns
Type Description
ComplianceOccurrence.Builder

addNonCompliantFiles(int index, NonCompliantFile value)

public ComplianceOccurrence.Builder addNonCompliantFiles(int index, NonCompliantFile value)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameters
Name Description
index int
value NonCompliantFile
Returns
Type Description
ComplianceOccurrence.Builder

addNonCompliantFiles(int index, NonCompliantFile.Builder builderForValue)

public ComplianceOccurrence.Builder addNonCompliantFiles(int index, NonCompliantFile.Builder builderForValue)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameters
Name Description
index int
builderForValue NonCompliantFile.Builder
Returns
Type Description
ComplianceOccurrence.Builder

addNonCompliantFiles(NonCompliantFile value)

public ComplianceOccurrence.Builder addNonCompliantFiles(NonCompliantFile value)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameter
Name Description
value NonCompliantFile
Returns
Type Description
ComplianceOccurrence.Builder

addNonCompliantFiles(NonCompliantFile.Builder builderForValue)

public ComplianceOccurrence.Builder addNonCompliantFiles(NonCompliantFile.Builder builderForValue)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameter
Name Description
builderForValue NonCompliantFile.Builder
Returns
Type Description
ComplianceOccurrence.Builder

addNonCompliantFilesBuilder()

public NonCompliantFile.Builder addNonCompliantFilesBuilder()

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Returns
Type Description
NonCompliantFile.Builder

addNonCompliantFilesBuilder(int index)

public NonCompliantFile.Builder addNonCompliantFilesBuilder(int index)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameter
Name Description
index int
Returns
Type Description
NonCompliantFile.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ComplianceOccurrence build()
Returns
Type Description
ComplianceOccurrence

buildPartial()

public ComplianceOccurrence buildPartial()
Returns
Type Description
ComplianceOccurrence

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNonComplianceReason()

public ComplianceOccurrence.Builder clearNonComplianceReason()

string non_compliance_reason = 3;

Returns
Type Description
ComplianceOccurrence.Builder

This builder for chaining.

clearNonCompliantFiles()

public ComplianceOccurrence.Builder clearNonCompliantFiles()

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Returns
Type Description
ComplianceOccurrence.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVersion()

public ComplianceOccurrence.Builder clearVersion()

The OS and config version the benchmark was run on.

.grafeas.v1.ComplianceVersion version = 4;

Returns
Type Description
ComplianceOccurrence.Builder

clone()

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

getDefaultInstanceForType()

public ComplianceOccurrence getDefaultInstanceForType()
Returns
Type Description
ComplianceOccurrence

getDescriptorForType()

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

getNonComplianceReason()

public String getNonComplianceReason()

string non_compliance_reason = 3;

Returns
Type Description
String

The nonComplianceReason.

getNonComplianceReasonBytes()

public ByteString getNonComplianceReasonBytes()

string non_compliance_reason = 3;

Returns
Type Description
ByteString

The bytes for nonComplianceReason.

getNonCompliantFiles(int index)

public NonCompliantFile getNonCompliantFiles(int index)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameter
Name Description
index int
Returns
Type Description
NonCompliantFile

getNonCompliantFilesBuilder(int index)

public NonCompliantFile.Builder getNonCompliantFilesBuilder(int index)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameter
Name Description
index int
Returns
Type Description
NonCompliantFile.Builder

getNonCompliantFilesBuilderList()

public List<NonCompliantFile.Builder> getNonCompliantFilesBuilderList()

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Returns
Type Description
List<Builder>

getNonCompliantFilesCount()

public int getNonCompliantFilesCount()

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Returns
Type Description
int

getNonCompliantFilesList()

public List<NonCompliantFile> getNonCompliantFilesList()

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Returns
Type Description
List<NonCompliantFile>

getNonCompliantFilesOrBuilder(int index)

public NonCompliantFileOrBuilder getNonCompliantFilesOrBuilder(int index)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameter
Name Description
index int
Returns
Type Description
NonCompliantFileOrBuilder

getNonCompliantFilesOrBuilderList()

public List<? extends NonCompliantFileOrBuilder> getNonCompliantFilesOrBuilderList()

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Returns
Type Description
List<? extends io.grafeas.v1.NonCompliantFileOrBuilder>

getVersion()

public ComplianceVersion getVersion()

The OS and config version the benchmark was run on.

.grafeas.v1.ComplianceVersion version = 4;

Returns
Type Description
ComplianceVersion

The version.

getVersionBuilder()

public ComplianceVersion.Builder getVersionBuilder()

The OS and config version the benchmark was run on.

.grafeas.v1.ComplianceVersion version = 4;

Returns
Type Description
ComplianceVersion.Builder

getVersionOrBuilder()

public ComplianceVersionOrBuilder getVersionOrBuilder()

The OS and config version the benchmark was run on.

.grafeas.v1.ComplianceVersion version = 4;

Returns
Type Description
ComplianceVersionOrBuilder

hasVersion()

public boolean hasVersion()

The OS and config version the benchmark was run on.

.grafeas.v1.ComplianceVersion version = 4;

Returns
Type Description
boolean

Whether the version 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 ComplianceOccurrence.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComplianceOccurrence.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(ComplianceOccurrence other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVersion(ComplianceVersion value)

public ComplianceOccurrence.Builder mergeVersion(ComplianceVersion value)

The OS and config version the benchmark was run on.

.grafeas.v1.ComplianceVersion version = 4;

Parameter
Name Description
value ComplianceVersion
Returns
Type Description
ComplianceOccurrence.Builder

removeNonCompliantFiles(int index)

public ComplianceOccurrence.Builder removeNonCompliantFiles(int index)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameter
Name Description
index int
Returns
Type Description
ComplianceOccurrence.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNonComplianceReason(String value)

public ComplianceOccurrence.Builder setNonComplianceReason(String value)

string non_compliance_reason = 3;

Parameter
Name Description
value String

The nonComplianceReason to set.

Returns
Type Description
ComplianceOccurrence.Builder

This builder for chaining.

setNonComplianceReasonBytes(ByteString value)

public ComplianceOccurrence.Builder setNonComplianceReasonBytes(ByteString value)

string non_compliance_reason = 3;

Parameter
Name Description
value ByteString

The bytes for nonComplianceReason to set.

Returns
Type Description
ComplianceOccurrence.Builder

This builder for chaining.

setNonCompliantFiles(int index, NonCompliantFile value)

public ComplianceOccurrence.Builder setNonCompliantFiles(int index, NonCompliantFile value)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameters
Name Description
index int
value NonCompliantFile
Returns
Type Description
ComplianceOccurrence.Builder

setNonCompliantFiles(int index, NonCompliantFile.Builder builderForValue)

public ComplianceOccurrence.Builder setNonCompliantFiles(int index, NonCompliantFile.Builder builderForValue)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameters
Name Description
index int
builderForValue NonCompliantFile.Builder
Returns
Type Description
ComplianceOccurrence.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(ComplianceVersion value)

public ComplianceOccurrence.Builder setVersion(ComplianceVersion value)

The OS and config version the benchmark was run on.

.grafeas.v1.ComplianceVersion version = 4;

Parameter
Name Description
value ComplianceVersion
Returns
Type Description
ComplianceOccurrence.Builder

setVersion(ComplianceVersion.Builder builderForValue)

public ComplianceOccurrence.Builder setVersion(ComplianceVersion.Builder builderForValue)

The OS and config version the benchmark was run on.

.grafeas.v1.ComplianceVersion version = 4;

Parameter
Name Description
builderForValue ComplianceVersion.Builder
Returns
Type Description
ComplianceOccurrence.Builder