Class ComplianceNote.CisBenchmark.Builder (2.21.0)

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

A compliance check that is a CIS benchmark.

Protobuf type grafeas.v1.ComplianceNote.CisBenchmark

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ComplianceNote.CisBenchmark build()
Returns
TypeDescription
ComplianceNote.CisBenchmark

buildPartial()

public ComplianceNote.CisBenchmark buildPartial()
Returns
TypeDescription
ComplianceNote.CisBenchmark

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProfileLevel()

public ComplianceNote.CisBenchmark.Builder clearProfileLevel()

int32 profile_level = 1;

Returns
TypeDescription
ComplianceNote.CisBenchmark.Builder

This builder for chaining.

clearSeverity()

public ComplianceNote.CisBenchmark.Builder clearSeverity()

.grafeas.v1.Severity severity = 2;

Returns
TypeDescription
ComplianceNote.CisBenchmark.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ComplianceNote.CisBenchmark getDefaultInstanceForType()
Returns
TypeDescription
ComplianceNote.CisBenchmark

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProfileLevel()

public int getProfileLevel()

int32 profile_level = 1;

Returns
TypeDescription
int

The profileLevel.

getSeverity()

public Severity getSeverity()

.grafeas.v1.Severity severity = 2;

Returns
TypeDescription
Severity

The severity.

getSeverityValue()

public int getSeverityValue()

.grafeas.v1.Severity severity = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for severity.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ComplianceNote.CisBenchmark other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setProfileLevel(int value)

public ComplianceNote.CisBenchmark.Builder setProfileLevel(int value)

int32 profile_level = 1;

Parameter
NameDescription
valueint

The profileLevel to set.

Returns
TypeDescription
ComplianceNote.CisBenchmark.Builder

This builder for chaining.

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

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

setSeverity(Severity value)

public ComplianceNote.CisBenchmark.Builder setSeverity(Severity value)

.grafeas.v1.Severity severity = 2;

Parameter
NameDescription
valueSeverity

The severity to set.

Returns
TypeDescription
ComplianceNote.CisBenchmark.Builder

This builder for chaining.

setSeverityValue(int value)

public ComplianceNote.CisBenchmark.Builder setSeverityValue(int value)

.grafeas.v1.Severity severity = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
ComplianceNote.CisBenchmark.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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