Class ComplianceVersion (2.30.0)

public final class ComplianceVersion extends GeneratedMessageV3 implements ComplianceVersionOrBuilder

Describes the CIS benchmark version that is applicable to a given OS and os version.

Protobuf type grafeas.v1.ComplianceVersion

Static Fields

BENCHMARK_DOCUMENT_FIELD_NUMBER

public static final int BENCHMARK_DOCUMENT_FIELD_NUMBER
Field Value
TypeDescription
int

CPE_URI_FIELD_NUMBER

public static final int CPE_URI_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ComplianceVersion getDefaultInstance()
Returns
TypeDescription
ComplianceVersion

getDescriptor()

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

newBuilder()

public static ComplianceVersion.Builder newBuilder()
Returns
TypeDescription
ComplianceVersion.Builder

newBuilder(ComplianceVersion prototype)

public static ComplianceVersion.Builder newBuilder(ComplianceVersion prototype)
Parameter
NameDescription
prototypeComplianceVersion
Returns
TypeDescription
ComplianceVersion.Builder

parseDelimitedFrom(InputStream input)

public static ComplianceVersion parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ComplianceVersion
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ComplianceVersion parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComplianceVersion
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ComplianceVersion parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ComplianceVersion
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ComplianceVersion parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComplianceVersion
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ComplianceVersion parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ComplianceVersion
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ComplianceVersion parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComplianceVersion
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ComplianceVersion parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ComplianceVersion
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ComplianceVersion parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComplianceVersion
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ComplianceVersion parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ComplianceVersion
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ComplianceVersion parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComplianceVersion
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ComplianceVersion parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ComplianceVersion
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ComplianceVersion parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComplianceVersion
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ComplianceVersion> parser()
Returns
TypeDescription
Parser<ComplianceVersion>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBenchmarkDocument()

public String getBenchmarkDocument()

The name of the document that defines this benchmark, e.g. "CIS Container-Optimized OS".

string benchmark_document = 3;

Returns
TypeDescription
String

The benchmarkDocument.

getBenchmarkDocumentBytes()

public ByteString getBenchmarkDocumentBytes()

The name of the document that defines this benchmark, e.g. "CIS Container-Optimized OS".

string benchmark_document = 3;

Returns
TypeDescription
ByteString

The bytes for benchmarkDocument.

getCpeUri()

public String getCpeUri()

The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.

string cpe_uri = 1;

Returns
TypeDescription
String

The cpeUri.

getCpeUriBytes()

public ByteString getCpeUriBytes()

The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.

string cpe_uri = 1;

Returns
TypeDescription
ByteString

The bytes for cpeUri.

getDefaultInstanceForType()

public ComplianceVersion getDefaultInstanceForType()
Returns
TypeDescription
ComplianceVersion

getParserForType()

public Parser<ComplianceVersion> getParserForType()
Returns
TypeDescription
Parser<ComplianceVersion>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getVersion()

public String getVersion()

The version of the benchmark. This is set to the version of the OS-specific CIS document the benchmark is defined in.

string version = 2;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The version of the benchmark. This is set to the version of the OS-specific CIS document the benchmark is defined in.

string version = 2;

Returns
TypeDescription
ByteString

The bytes for version.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ComplianceVersion.Builder newBuilderForType()
Returns
TypeDescription
ComplianceVersion.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ComplianceVersion.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ComplianceVersion.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ComplianceVersion.Builder toBuilder()
Returns
TypeDescription
ComplianceVersion.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException