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
public static final int COMPLIANT_VALUES_FIELD_NUMBER
Field Value
public static final int INSTRUCTIONS_FIELD_NUMBER
Field Value
public static final int REMEDIATION_TYPE_FIELD_NUMBER
Field Value
Static Methods
public static Violation.Remediation getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static Violation.Remediation.Builder newBuilder()
Returns
public static Violation.Remediation.Builder newBuilder(Violation.Remediation prototype)
Parameter
Returns
public static Violation.Remediation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Violation.Remediation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Violation.Remediation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static Violation.Remediation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Violation.Remediation parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static Violation.Remediation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Violation.Remediation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Violation.Remediation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Violation.Remediation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Violation.Remediation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Violation.Remediation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static Violation.Remediation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<Violation.Remediation> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
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
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The compliantValues at the given 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
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the compliantValues at the given index.
|
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
Type | Description |
int | The count of compliantValues.
|
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
public Violation.Remediation getDefaultInstanceForType()
Returns
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
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
public Parser<Violation.Remediation> getParserForType()
Returns
Overrides
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
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
Type | Description |
int | The enum numeric value on the wire for remediationType.
|
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public boolean hasInstructions()
Required. Remediation instructions to resolve violations
.google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the instructions field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Violation.Remediation.Builder newBuilderForType()
Returns
protected Violation.Remediation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public Violation.Remediation.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions