Class Compliance (2.51.0)

public final class Compliance extends GeneratedMessageV3 implements ComplianceOrBuilder

Contains compliance information about a security standard indicating unmet recommendations.

Protobuf type google.cloud.securitycenter.v2.Compliance

Implements

ComplianceOrBuilder

Static Fields

IDS_FIELD_NUMBER

public static final int IDS_FIELD_NUMBER
Field Value
Type Description
int

STANDARD_FIELD_NUMBER

public static final int STANDARD_FIELD_NUMBER
Field Value
Type Description
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Compliance getDefaultInstance()
Returns
Type Description
Compliance

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Compliance.Builder newBuilder()
Returns
Type Description
Compliance.Builder

newBuilder(Compliance prototype)

public static Compliance.Builder newBuilder(Compliance prototype)
Parameter
Name Description
prototype Compliance
Returns
Type Description
Compliance.Builder

parseDelimitedFrom(InputStream input)

public static Compliance parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Compliance
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Compliance parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Compliance
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Compliance parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Compliance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Compliance parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Compliance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Compliance parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Compliance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Compliance parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Compliance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Compliance parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Compliance
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Compliance parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Compliance
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Compliance parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Compliance
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Compliance parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Compliance
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Compliance parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Compliance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Compliance parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Compliance
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Compliance> parser()
Returns
Type Description
Parser<Compliance>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Compliance getDefaultInstanceForType()
Returns
Type Description
Compliance

getIds(int index)

public String getIds(int index)

Policies within the standard or benchmark, for example, A.12.4.1

repeated string ids = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ids at the given index.

getIdsBytes(int index)

public ByteString getIdsBytes(int index)

Policies within the standard or benchmark, for example, A.12.4.1

repeated string ids = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ids at the given index.

getIdsCount()

public int getIdsCount()

Policies within the standard or benchmark, for example, A.12.4.1

repeated string ids = 3;

Returns
Type Description
int

The count of ids.

getIdsList()

public ProtocolStringList getIdsList()

Policies within the standard or benchmark, for example, A.12.4.1

repeated string ids = 3;

Returns
Type Description
ProtocolStringList

A list containing the ids.

getParserForType()

public Parser<Compliance> getParserForType()
Returns
Type Description
Parser<Compliance>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStandard()

public String getStandard()

Industry-wide compliance standards or benchmarks, such as CIS, PCI, and OWASP.

string standard = 1;

Returns
Type Description
String

The standard.

getStandardBytes()

public ByteString getStandardBytes()

Industry-wide compliance standards or benchmarks, such as CIS, PCI, and OWASP.

string standard = 1;

Returns
Type Description
ByteString

The bytes for standard.

getVersion()

public String getVersion()

Version of the standard or benchmark, for example, 1.1

string version = 2;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Version of the standard or benchmark, for example, 1.1

string version = 2;

Returns
Type Description
ByteString

The bytes for version.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Compliance.Builder newBuilderForType()
Returns
Type Description
Compliance.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Compliance.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Compliance.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Compliance.Builder toBuilder()
Returns
Type Description
Compliance.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException