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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
public static final int COMPLIANT_VALUES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int INSTRUCTIONS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int REMEDIATION_TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static Violation.Remediation getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static Violation.Remediation.Builder newBuilder()
public static Violation.Remediation.Builder newBuilder(Violation.Remediation prototype)
public static Violation.Remediation parseDelimitedFrom(InputStream input)
public static Violation.Remediation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Violation.Remediation parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static Violation.Remediation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Violation.Remediation parseFrom(ByteString data)
public static Violation.Remediation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Violation.Remediation parseFrom(CodedInputStream input)
public static Violation.Remediation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Violation.Remediation parseFrom(InputStream input)
public static Violation.Remediation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Violation.Remediation parseFrom(ByteBuffer data)
public static Violation.Remediation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<Violation.Remediation> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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;
public Violation.Remediation getDefaultInstanceForType()
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];
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];
public Parser<Violation.Remediation> getParserForType()
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];
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 |
---|
Type | Description |
int | |
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 |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Violation.Remediation.Builder newBuilderForType()
protected Violation.Remediation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public Violation.Remediation.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides