Class Violation.Remediation (2.10.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class Violation.Remediation extends GeneratedMessageV3 implements Violation.RemediationOrBuilder

Represents remediation guidance to resolve compliance violation for AssuredWorkload

Protobuf type google.cloud.assuredworkloads.v1.Violation.Remediation

Static Fields

COMPLIANT_VALUES_FIELD_NUMBER

public static final int COMPLIANT_VALUES_FIELD_NUMBER
Field Value
TypeDescription
int

INSTRUCTIONS_FIELD_NUMBER

public static final int INSTRUCTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

REMEDIATION_TYPE_FIELD_NUMBER

public static final int REMEDIATION_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Violation.Remediation getDefaultInstance()
Returns
TypeDescription
Violation.Remediation

getDescriptor()

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

newBuilder()

public static Violation.Remediation.Builder newBuilder()
Returns
TypeDescription
Violation.Remediation.Builder

newBuilder(Violation.Remediation prototype)

public static Violation.Remediation.Builder newBuilder(Violation.Remediation prototype)
Parameter
NameDescription
prototypeViolation.Remediation
Returns
TypeDescription
Violation.Remediation.Builder

parseDelimitedFrom(InputStream input)

public static Violation.Remediation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Violation.Remediation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Violation.Remediation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Violation.Remediation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Violation.Remediation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Violation.Remediation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Violation.Remediation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Violation.Remediation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Violation.Remediation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Violation.Remediation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Violation.Remediation> parser()
Returns
TypeDescription
Parser<Remediation>

Methods

equals(Object obj)

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

getCompliantValues(int index)

public String getCompliantValues(int index)

Values that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied values

repeated string compliant_values = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The compliantValues at the given index.

getCompliantValuesBytes(int index)

public ByteString getCompliantValuesBytes(int index)

Values that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied values

repeated string compliant_values = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the compliantValues at the given index.

getCompliantValuesCount()

public int getCompliantValuesCount()

Values that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied values

repeated string compliant_values = 2;

Returns
TypeDescription
int

The count of compliantValues.

getCompliantValuesList()

public ProtocolStringList getCompliantValuesList()

Values that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied values

repeated string compliant_values = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the compliantValues.

getDefaultInstanceForType()

public Violation.Remediation getDefaultInstanceForType()
Returns
TypeDescription
Violation.Remediation

getInstructions()

public Violation.Remediation.Instructions getInstructions()

Required. Remediation instructions to resolve violations

.google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Violation.Remediation.Instructions

The instructions.

getInstructionsOrBuilder()

public Violation.Remediation.InstructionsOrBuilder getInstructionsOrBuilder()

Required. Remediation instructions to resolve violations

.google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Violation.Remediation.InstructionsOrBuilder

getParserForType()

public Parser<Violation.Remediation> getParserForType()
Returns
TypeDescription
Parser<Remediation>
Overrides

getRemediationType()

public Violation.Remediation.RemediationType getRemediationType()

Output only. Reemediation type based on the type of org policy values violated

.google.cloud.assuredworkloads.v1.Violation.Remediation.RemediationType remediation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Violation.Remediation.RemediationType

The remediationType.

getRemediationTypeValue()

public int getRemediationTypeValue()

Output only. Reemediation type based on the type of org policy values violated

.google.cloud.assuredworkloads.v1.Violation.Remediation.RemediationType remediation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for remediationType.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasInstructions()

public boolean hasInstructions()

Required. Remediation instructions to resolve violations

.google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the instructions field is set.

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 Violation.Remediation.Builder newBuilderForType()
Returns
TypeDescription
Violation.Remediation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Violation.Remediation.Builder toBuilder()
Returns
TypeDescription
Violation.Remediation.Builder

writeTo(CodedOutputStream output)

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