Send feedback
Class ComplianceVersion.Builder (2.2.3) Stay organized with collections
Save and categorize content based on your preferences.
Version 2.2.3 keyboard_arrow_down
public
static
final
class
ComplianceVersion
.
Builder
extends
GeneratedMessageV3
.
Builder<ComplianceVersion
.
Builder
>
implements
ComplianceVersionOrBuilder
Describes the CIS benchmark version that is applicable to a given OS and
os version.
Protobuf type grafeas.v1.ComplianceVersion
Static Methods
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public
ComplianceVersion
.
Builder
addRepeatedField
(
Descriptors
.
FieldDescriptor
field
,
Object
value
)
Parameters
Returns
Overrides
build()
public
ComplianceVersion
build
()
Returns
buildPartial()
public
ComplianceVersion
buildPartial
()
Returns
clear()
public
ComplianceVersion
.
Builder
clear
()
Returns
Overrides
clearCpeUri()
public
ComplianceVersion
.
Builder
clearCpeUri
()
Returns
clearField(Descriptors.FieldDescriptor field)
public
ComplianceVersion
.
Builder
clearField
(
Descriptors
.
FieldDescriptor
field
)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public
ComplianceVersion
.
Builder
clearOneof
(
Descriptors
.
OneofDescriptor
oneof
)
Parameter
Returns
Overrides
clearVersion()
public
ComplianceVersion
.
Builder
clearVersion
()
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
clone()
public
ComplianceVersion
.
Builder
clone
()
Returns
Overrides
getCpeUri()
public
String
getCpeUri
()
Returns
getCpeUriBytes()
public
ByteString
getCpeUriBytes
()
Returns
getDefaultInstanceForType()
public
ComplianceVersion
getDefaultInstanceForType
()
Returns
getDescriptorForType()
public
Descriptors
.
Descriptor
getDescriptorForType
()
Returns
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
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
internalGetFieldAccessorTable()
protected
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
Returns
Overrides
isInitialized()
public
final
boolean
isInitialized
()
Returns
Overrides
public
ComplianceVersion
.
Builder
mergeFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public
ComplianceVersion
.
Builder
mergeFrom
(
Message
other
)
Parameter
Returns
Overrides
mergeFrom(ComplianceVersion other)
public
ComplianceVersion
.
Builder
mergeFrom
(
ComplianceVersion
other
)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public
final
ComplianceVersion
.
Builder
mergeUnknownFields
(
UnknownFieldSet
unknownFields
)
Parameter
Returns
Overrides
setCpeUri(String value)
public
ComplianceVersion
.
Builder
setCpeUri
(
String
value
)
Parameter
Returns
setCpeUriBytes(ByteString value)
public
ComplianceVersion
.
Builder
setCpeUriBytes
(
ByteString
value
)
Parameter Name
Description
value
ByteString
The bytes for cpeUri to set.
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public
ComplianceVersion
.
Builder
setField
(
Descriptors
.
FieldDescriptor
field
,
Object
value
)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public
ComplianceVersion
.
Builder
setRepeatedField
(
Descriptors
.
FieldDescriptor
field
,
int
index
,
Object
value
)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public
final
ComplianceVersion
.
Builder
setUnknownFields
(
UnknownFieldSet
unknownFields
)
Parameter
Returns
Overrides
setVersion(String value)
public
ComplianceVersion
.
Builder
setVersion
(
String
value
)
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;
Parameter Name
Description
value
String
The version to set.
Returns
setVersionBytes(ByteString value)
public
ComplianceVersion
.
Builder
setVersionBytes
(
ByteString
value
)
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;
Parameter Name
Description
value
ByteString
The bytes for version to set.
Returns
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,[]]