Class Policy.ComplianceStandard (0.4.0)

public static final class Policy.ComplianceStandard extends GeneratedMessageV3 implements Policy.ComplianceStandardOrBuilder

Mapping for a Policy to standard and control.

Protobuf type google.cloud.securityposture.v1.Policy.ComplianceStandard

Static Fields

CONTROL_FIELD_NUMBER

public static final int CONTROL_FIELD_NUMBER
Field Value
TypeDescription
int

STANDARD_FIELD_NUMBER

public static final int STANDARD_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Policy.ComplianceStandard getDefaultInstance()
Returns
TypeDescription
Policy.ComplianceStandard

getDescriptor()

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

newBuilder()

public static Policy.ComplianceStandard.Builder newBuilder()
Returns
TypeDescription
Policy.ComplianceStandard.Builder

newBuilder(Policy.ComplianceStandard prototype)

public static Policy.ComplianceStandard.Builder newBuilder(Policy.ComplianceStandard prototype)
Parameter
NameDescription
prototypePolicy.ComplianceStandard
Returns
TypeDescription
Policy.ComplianceStandard.Builder

parseDelimitedFrom(InputStream input)

public static Policy.ComplianceStandard parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Policy.ComplianceStandard
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Policy.ComplianceStandard parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Policy.ComplianceStandard
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Policy.ComplianceStandard parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Policy.ComplianceStandard
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Policy.ComplianceStandard parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Policy.ComplianceStandard
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Policy.ComplianceStandard parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Policy.ComplianceStandard
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Policy.ComplianceStandard> parser()
Returns
TypeDescription
Parser<ComplianceStandard>

Methods

equals(Object obj)

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

getControl()

public String getControl()

Optional. Control mapping provided by user for this Policy. e.g.: 1.5.

string control = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The control.

getControlBytes()

public ByteString getControlBytes()

Optional. Control mapping provided by user for this Policy. e.g.: 1.5.

string control = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for control.

getDefaultInstanceForType()

public Policy.ComplianceStandard getDefaultInstanceForType()
Returns
TypeDescription
Policy.ComplianceStandard

getParserForType()

public Parser<Policy.ComplianceStandard> getParserForType()
Returns
TypeDescription
Parser<ComplianceStandard>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStandard()

public String getStandard()

Optional. The compliance standard that the Policy maps to, e.g.: CIS-2.0.

string standard = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The standard.

getStandardBytes()

public ByteString getStandardBytes()

Optional. The compliance standard that the Policy maps to, e.g.: CIS-2.0.

string standard = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for standard.

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 Policy.ComplianceStandard.Builder newBuilderForType()
Returns
TypeDescription
Policy.ComplianceStandard.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Policy.ComplianceStandard.Builder toBuilder()
Returns
TypeDescription
Policy.ComplianceStandard.Builder

writeTo(CodedOutputStream output)

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