Class ComplianceNote.Builder (2.23.0)

public static final class ComplianceNote.Builder extends GeneratedMessageV3.Builder<ComplianceNote.Builder> implements ComplianceNoteOrBuilder

Protobuf type grafeas.v1.ComplianceNote

Static Methods

getDescriptor()

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

Methods

addAllVersion(Iterable<? extends ComplianceVersion> values)

public ComplianceNote.Builder addAllVersion(Iterable<? extends ComplianceVersion> values)

The OS and config versions the benchmark applies to.

repeated .grafeas.v1.ComplianceVersion version = 3;

Parameter
NameDescription
valuesIterable<? extends io.grafeas.v1.ComplianceVersion>
Returns
TypeDescription
ComplianceNote.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVersion(int index, ComplianceVersion value)

public ComplianceNote.Builder addVersion(int index, ComplianceVersion value)

The OS and config versions the benchmark applies to.

repeated .grafeas.v1.ComplianceVersion version = 3;

Parameters
NameDescription
indexint
valueComplianceVersion
Returns
TypeDescription
ComplianceNote.Builder

addVersion(int index, ComplianceVersion.Builder builderForValue)

public ComplianceNote.Builder addVersion(int index, ComplianceVersion.Builder builderForValue)

The OS and config versions the benchmark applies to.

repeated .grafeas.v1.ComplianceVersion version = 3;

Parameters
NameDescription
indexint
builderForValueComplianceVersion.Builder
Returns
TypeDescription
ComplianceNote.Builder

addVersion(ComplianceVersion value)

public ComplianceNote.Builder addVersion(ComplianceVersion value)

The OS and config versions the benchmark applies to.

repeated .grafeas.v1.ComplianceVersion version = 3;

Parameter
NameDescription
valueComplianceVersion
Returns
TypeDescription
ComplianceNote.Builder

addVersion(ComplianceVersion.Builder builderForValue)

public ComplianceNote.Builder addVersion(ComplianceVersion.Builder builderForValue)

The OS and config versions the benchmark applies to.

repeated .grafeas.v1.ComplianceVersion version = 3;

Parameter
NameDescription
builderForValueComplianceVersion.Builder
Returns
TypeDescription
ComplianceNote.Builder

addVersionBuilder()

public ComplianceVersion.Builder addVersionBuilder()

The OS and config versions the benchmark applies to.

repeated .grafeas.v1.ComplianceVersion version = 3;

Returns
TypeDescription
ComplianceVersion.Builder

addVersionBuilder(int index)

public ComplianceVersion.Builder addVersionBuilder(int index)

The OS and config versions the benchmark applies to.

repeated .grafeas.v1.ComplianceVersion version = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ComplianceVersion.Builder

build()

public ComplianceNote build()
Returns
TypeDescription
ComplianceNote

buildPartial()

public ComplianceNote buildPartial()
Returns
TypeDescription
ComplianceNote

clear()

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

clearCisBenchmark()

public ComplianceNote.Builder clearCisBenchmark()

.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;

Returns
TypeDescription
ComplianceNote.Builder

clearComplianceType()

public ComplianceNote.Builder clearComplianceType()
Returns
TypeDescription
ComplianceNote.Builder

clearDescription()

public ComplianceNote.Builder clearDescription()

A description about this compliance check.

string description = 2;

Returns
TypeDescription
ComplianceNote.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRationale()

public ComplianceNote.Builder clearRationale()

A rationale for the existence of this compliance check.

string rationale = 4;

Returns
TypeDescription
ComplianceNote.Builder

This builder for chaining.

clearRemediation()

public ComplianceNote.Builder clearRemediation()

A description of remediation steps if the compliance check fails.

string remediation = 5;

Returns
TypeDescription
ComplianceNote.Builder

This builder for chaining.

clearScanInstructions()

public ComplianceNote.Builder clearScanInstructions()

Serialized scan instructions with a predefined format.

bytes scan_instructions = 7;

Returns
TypeDescription
ComplianceNote.Builder

This builder for chaining.

clearTitle()

public ComplianceNote.Builder clearTitle()

The title that identifies this compliance check.

string title = 1;

Returns
TypeDescription
ComplianceNote.Builder

This builder for chaining.

clearVersion()

public ComplianceNote.Builder clearVersion()

The OS and config versions the benchmark applies to.

repeated .grafeas.v1.ComplianceVersion version = 3;

Returns
TypeDescription
ComplianceNote.Builder

clone()

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

getCisBenchmark()

public ComplianceNote.CisBenchmark getCisBenchmark()

.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;

Returns
TypeDescription
ComplianceNote.CisBenchmark

The cisBenchmark.

getCisBenchmarkBuilder()

public ComplianceNote.CisBenchmark.Builder getCisBenchmarkBuilder()

.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;

Returns
TypeDescription
ComplianceNote.CisBenchmark.Builder

getCisBenchmarkOrBuilder()

public ComplianceNote.CisBenchmarkOrBuilder getCisBenchmarkOrBuilder()

.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;

Returns
TypeDescription
ComplianceNote.CisBenchmarkOrBuilder

getComplianceTypeCase()

public ComplianceNote.ComplianceTypeCase getComplianceTypeCase()
Returns
TypeDescription
ComplianceNote.ComplianceTypeCase

getDefaultInstanceForType()

public ComplianceNote getDefaultInstanceForType()
Returns
TypeDescription
ComplianceNote

getDescription()

public String getDescription()

A description about this compliance check.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A description about this compliance check.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRationale()

public String getRationale()

A rationale for the existence of this compliance check.

string rationale = 4;

Returns
TypeDescription
String

The rationale.

getRationaleBytes()

public ByteString getRationaleBytes()

A rationale for the existence of this compliance check.

string rationale = 4;

Returns
TypeDescription
ByteString

The bytes for rationale.

getRemediation()

public String getRemediation()

A description of remediation steps if the compliance check fails.

string remediation = 5;

Returns
TypeDescription
String

The remediation.

getRemediationBytes()

public ByteString getRemediationBytes()

A description of remediation steps if the compliance check fails.

string remediation = 5;

Returns
TypeDescription
ByteString

The bytes for remediation.

getScanInstructions()

public ByteString getScanInstructions()

Serialized scan instructions with a predefined format.

bytes scan_instructions = 7;

Returns
TypeDescription
ByteString

The scanInstructions.

getTitle()

public String getTitle()

The title that identifies this compliance check.

string title = 1;

Returns
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

The title that identifies this compliance check.

string title = 1;

Returns
TypeDescription
ByteString

The bytes for title.

getVersion(int index)

public ComplianceVersion getVersion(int index)

The OS and config versions the benchmark applies to.

repeated .grafeas.v1.ComplianceVersion version = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ComplianceVersion

getVersionBuilder(int index)

public ComplianceVersion.Builder getVersionBuilder(int index)

The OS and config versions the benchmark applies to.

repeated .grafeas.v1.ComplianceVersion version = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ComplianceVersion.Builder

getVersionBuilderList()

public List<ComplianceVersion.Builder> getVersionBuilderList()

The OS and config versions the benchmark applies to.

repeated .grafeas.v1.ComplianceVersion version = 3;

Returns
TypeDescription
List<Builder>

getVersionCount()

public int getVersionCount()

The OS and config versions the benchmark applies to.

repeated .grafeas.v1.ComplianceVersion version = 3;

Returns
TypeDescription
int

getVersionList()

public List<ComplianceVersion> getVersionList()

The OS and config versions the benchmark applies to.

repeated .grafeas.v1.ComplianceVersion version = 3;

Returns
TypeDescription
List<ComplianceVersion>

getVersionOrBuilder(int index)

public ComplianceVersionOrBuilder getVersionOrBuilder(int index)

The OS and config versions the benchmark applies to.

repeated .grafeas.v1.ComplianceVersion version = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ComplianceVersionOrBuilder

getVersionOrBuilderList()

public List<? extends ComplianceVersionOrBuilder> getVersionOrBuilderList()

The OS and config versions the benchmark applies to.

repeated .grafeas.v1.ComplianceVersion version = 3;

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

hasCisBenchmark()

public boolean hasCisBenchmark()

.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;

Returns
TypeDescription
boolean

Whether the cisBenchmark field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCisBenchmark(ComplianceNote.CisBenchmark value)

public ComplianceNote.Builder mergeCisBenchmark(ComplianceNote.CisBenchmark value)

.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;

Parameter
NameDescription
valueComplianceNote.CisBenchmark
Returns
TypeDescription
ComplianceNote.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ComplianceNote other)

public ComplianceNote.Builder mergeFrom(ComplianceNote other)
Parameter
NameDescription
otherComplianceNote
Returns
TypeDescription
ComplianceNote.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeVersion(int index)

public ComplianceNote.Builder removeVersion(int index)

The OS and config versions the benchmark applies to.

repeated .grafeas.v1.ComplianceVersion version = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ComplianceNote.Builder

setCisBenchmark(ComplianceNote.CisBenchmark value)

public ComplianceNote.Builder setCisBenchmark(ComplianceNote.CisBenchmark value)

.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;

Parameter
NameDescription
valueComplianceNote.CisBenchmark
Returns
TypeDescription
ComplianceNote.Builder

setCisBenchmark(ComplianceNote.CisBenchmark.Builder builderForValue)

public ComplianceNote.Builder setCisBenchmark(ComplianceNote.CisBenchmark.Builder builderForValue)

.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;

Parameter
NameDescription
builderForValueComplianceNote.CisBenchmark.Builder
Returns
TypeDescription
ComplianceNote.Builder

setDescription(String value)

public ComplianceNote.Builder setDescription(String value)

A description about this compliance check.

string description = 2;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
ComplianceNote.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ComplianceNote.Builder setDescriptionBytes(ByteString value)

A description about this compliance check.

string description = 2;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
ComplianceNote.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setRationale(String value)

public ComplianceNote.Builder setRationale(String value)

A rationale for the existence of this compliance check.

string rationale = 4;

Parameter
NameDescription
valueString

The rationale to set.

Returns
TypeDescription
ComplianceNote.Builder

This builder for chaining.

setRationaleBytes(ByteString value)

public ComplianceNote.Builder setRationaleBytes(ByteString value)

A rationale for the existence of this compliance check.

string rationale = 4;

Parameter
NameDescription
valueByteString

The bytes for rationale to set.

Returns
TypeDescription
ComplianceNote.Builder

This builder for chaining.

setRemediation(String value)

public ComplianceNote.Builder setRemediation(String value)

A description of remediation steps if the compliance check fails.

string remediation = 5;

Parameter
NameDescription
valueString

The remediation to set.

Returns
TypeDescription
ComplianceNote.Builder

This builder for chaining.

setRemediationBytes(ByteString value)

public ComplianceNote.Builder setRemediationBytes(ByteString value)

A description of remediation steps if the compliance check fails.

string remediation = 5;

Parameter
NameDescription
valueByteString

The bytes for remediation to set.

Returns
TypeDescription
ComplianceNote.Builder

This builder for chaining.

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

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

setScanInstructions(ByteString value)

public ComplianceNote.Builder setScanInstructions(ByteString value)

Serialized scan instructions with a predefined format.

bytes scan_instructions = 7;

Parameter
NameDescription
valueByteString

The scanInstructions to set.

Returns
TypeDescription
ComplianceNote.Builder

This builder for chaining.

setTitle(String value)

public ComplianceNote.Builder setTitle(String value)

The title that identifies this compliance check.

string title = 1;

Parameter
NameDescription
valueString

The title to set.

Returns
TypeDescription
ComplianceNote.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public ComplianceNote.Builder setTitleBytes(ByteString value)

The title that identifies this compliance check.

string title = 1;

Parameter
NameDescription
valueByteString

The bytes for title to set.

Returns
TypeDescription
ComplianceNote.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(int index, ComplianceVersion value)

public ComplianceNote.Builder setVersion(int index, ComplianceVersion value)

The OS and config versions the benchmark applies to.

repeated .grafeas.v1.ComplianceVersion version = 3;

Parameters
NameDescription
indexint
valueComplianceVersion
Returns
TypeDescription
ComplianceNote.Builder

setVersion(int index, ComplianceVersion.Builder builderForValue)

public ComplianceNote.Builder setVersion(int index, ComplianceVersion.Builder builderForValue)

The OS and config versions the benchmark applies to.

repeated .grafeas.v1.ComplianceVersion version = 3;

Parameters
NameDescription
indexint
builderForValueComplianceVersion.Builder
Returns
TypeDescription
ComplianceNote.Builder