Class Violation.Remediation (2.7.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
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
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 2024-10-04 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-10-04 UTC."}
[[["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 2024-10-04 UTC."]]