Class ComplianceOccurrence.Builder (2.18.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
TypeDescription
Descriptor

Methods

addAllNonCompliantFiles(Iterable<? extends NonCompliantFile> values)

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

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameter
NameDescription
valuesIterable<? extends io.grafeas.v1.NonCompliantFile>
Returns
TypeDescription
ComplianceOccurrence.Builder

addNonCompliantFiles(int index, NonCompliantFile value)

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

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameters
NameDescription
indexint
valueNonCompliantFile
Returns
TypeDescription
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
NameDescription
indexint
builderForValueNonCompliantFile.Builder
Returns
TypeDescription
ComplianceOccurrence.Builder

addNonCompliantFiles(NonCompliantFile value)

public ComplianceOccurrence.Builder addNonCompliantFiles(NonCompliantFile value)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameter
NameDescription
valueNonCompliantFile
Returns
TypeDescription
ComplianceOccurrence.Builder

addNonCompliantFiles(NonCompliantFile.Builder builderForValue)

public ComplianceOccurrence.Builder addNonCompliantFiles(NonCompliantFile.Builder builderForValue)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameter
NameDescription
builderForValueNonCompliantFile.Builder
Returns
TypeDescription
ComplianceOccurrence.Builder

addNonCompliantFilesBuilder()

public NonCompliantFile.Builder addNonCompliantFilesBuilder()

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Returns
TypeDescription
NonCompliantFile.Builder

addNonCompliantFilesBuilder(int index)

public NonCompliantFile.Builder addNonCompliantFilesBuilder(int index)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
NonCompliantFile.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ComplianceOccurrence build()
Returns
TypeDescription
ComplianceOccurrence

buildPartial()

public ComplianceOccurrence buildPartial()
Returns
TypeDescription
ComplianceOccurrence

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNonComplianceReason()

public ComplianceOccurrence.Builder clearNonComplianceReason()

string non_compliance_reason = 3;

Returns
TypeDescription
ComplianceOccurrence.Builder

This builder for chaining.

clearNonCompliantFiles()

public ComplianceOccurrence.Builder clearNonCompliantFiles()

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Returns
TypeDescription
ComplianceOccurrence.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ComplianceOccurrence getDefaultInstanceForType()
Returns
TypeDescription
ComplianceOccurrence

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNonComplianceReason()

public String getNonComplianceReason()

string non_compliance_reason = 3;

Returns
TypeDescription
String

The nonComplianceReason.

getNonComplianceReasonBytes()

public ByteString getNonComplianceReasonBytes()

string non_compliance_reason = 3;

Returns
TypeDescription
ByteString

The bytes for nonComplianceReason.

getNonCompliantFiles(int index)

public NonCompliantFile getNonCompliantFiles(int index)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
NonCompliantFile

getNonCompliantFilesBuilder(int index)

public NonCompliantFile.Builder getNonCompliantFilesBuilder(int index)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
NonCompliantFile.Builder

getNonCompliantFilesBuilderList()

public List<NonCompliantFile.Builder> getNonCompliantFilesBuilderList()

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Returns
TypeDescription
List<Builder>

getNonCompliantFilesCount()

public int getNonCompliantFilesCount()

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Returns
TypeDescription
int

getNonCompliantFilesList()

public List<NonCompliantFile> getNonCompliantFilesList()

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Returns
TypeDescription
List<NonCompliantFile>

getNonCompliantFilesOrBuilder(int index)

public NonCompliantFileOrBuilder getNonCompliantFilesOrBuilder(int index)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
NonCompliantFileOrBuilder

getNonCompliantFilesOrBuilderList()

public List<? extends NonCompliantFileOrBuilder> getNonCompliantFilesOrBuilderList()

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Returns
TypeDescription
List<? extends io.grafeas.v1.NonCompliantFileOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ComplianceOccurrence other)

public ComplianceOccurrence.Builder mergeFrom(ComplianceOccurrence other)
Parameter
NameDescription
otherComplianceOccurrence
Returns
TypeDescription
ComplianceOccurrence.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNonCompliantFiles(int index)

public ComplianceOccurrence.Builder removeNonCompliantFiles(int index)

repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
ComplianceOccurrence.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNonComplianceReason(String value)

public ComplianceOccurrence.Builder setNonComplianceReason(String value)

string non_compliance_reason = 3;

Parameter
NameDescription
valueString

The nonComplianceReason to set.

Returns
TypeDescription
ComplianceOccurrence.Builder

This builder for chaining.

setNonComplianceReasonBytes(ByteString value)

public ComplianceOccurrence.Builder setNonComplianceReasonBytes(ByteString value)

string non_compliance_reason = 3;

Parameter
NameDescription
valueByteString

The bytes for nonComplianceReason to set.

Returns
TypeDescription
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
NameDescription
indexint
valueNonCompliantFile
Returns
TypeDescription
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
NameDescription
indexint
builderForValueNonCompliantFile.Builder
Returns
TypeDescription
ComplianceOccurrence.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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