Class ComplianceNote.CisBenchmark.Builder (2.2.3)

See more code actions.
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 Overrides

build()

public ComplianceNote.CisBenchmark build()
Returns

buildPartial()

public ComplianceNote.CisBenchmark buildPartial()
Returns

clear()

public ComplianceNote.CisBenchmark.Builder clear()
Returns Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ComplianceNote.CisBenchmark.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns 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 Overrides

getDefaultInstanceForType()

public ComplianceNote.CisBenchmark getDefaultInstanceForType()
Returns

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 Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeFrom(ComplianceNote.CisBenchmark other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ComplianceNote.CisBenchmark.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns 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 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 Overrides