Class Violation.Remediation.Builder (0.18.0)

public static final class Violation.Remediation.Builder extends GeneratedMessageV3.Builder<Violation.Remediation.Builder> implements Violation.RemediationOrBuilder

Represents remediation guidance to resolve compliance violation for AssuredWorkload

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllCompliantValues(Iterable<String> values)

public Violation.Remediation.Builder addAllCompliantValues(Iterable<String> values)

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
values Iterable<String>

The compliantValues to add.

Returns
Type Description
Violation.Remediation.Builder

This builder for chaining.

addCompliantValues(String value)

public Violation.Remediation.Builder addCompliantValues(String value)

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
value String

The compliantValues to add.

Returns
Type Description
Violation.Remediation.Builder

This builder for chaining.

addCompliantValuesBytes(ByteString value)

public Violation.Remediation.Builder addCompliantValuesBytes(ByteString value)

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
value ByteString

The bytes of the compliantValues to add.

Returns
Type Description
Violation.Remediation.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Violation.Remediation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Violation.Remediation.Builder
Overrides

build()

public Violation.Remediation build()
Returns
Type Description
Violation.Remediation

buildPartial()

public Violation.Remediation buildPartial()
Returns
Type Description
Violation.Remediation

clear()

public Violation.Remediation.Builder clear()
Returns
Type Description
Violation.Remediation.Builder
Overrides

clearCompliantValues()

public Violation.Remediation.Builder clearCompliantValues()

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
Violation.Remediation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Violation.Remediation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Violation.Remediation.Builder
Overrides

clearInstructions()

public Violation.Remediation.Builder clearInstructions()

Required. Remediation instructions to resolve violations

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

Returns
Type Description
Violation.Remediation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Violation.Remediation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Violation.Remediation.Builder
Overrides

clearRemediationType()

public Violation.Remediation.Builder clearRemediationType()

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

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

Returns
Type Description
Violation.Remediation.Builder

This builder for chaining.

clone()

public Violation.Remediation.Builder clone()
Returns
Type Description
Violation.Remediation.Builder
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the compliantValues.

getDefaultInstanceForType()

public Violation.Remediation getDefaultInstanceForType()
Returns
Type Description
Violation.Remediation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInstructions()

public Violation.Remediation.Instructions getInstructions()

Required. Remediation instructions to resolve violations

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

Returns
Type Description
Violation.Remediation.Instructions

The instructions.

getInstructionsBuilder()

public Violation.Remediation.Instructions.Builder getInstructionsBuilder()

Required. Remediation instructions to resolve violations

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

Returns
Type Description
Violation.Remediation.Instructions.Builder

getInstructionsOrBuilder()

public Violation.Remediation.InstructionsOrBuilder getInstructionsOrBuilder()

Required. Remediation instructions to resolve violations

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

Returns
Type Description
Violation.Remediation.InstructionsOrBuilder

getRemediationType()

public Violation.Remediation.RemediationType getRemediationType()

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

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

Returns
Type Description
Violation.Remediation.RemediationType

The remediationType.

getRemediationTypeValue()

public int getRemediationTypeValue()

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

.google.cloud.cloudcontrolspartner.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.

hasInstructions()

public boolean hasInstructions()

Required. Remediation instructions to resolve violations

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

Returns
Type Description
boolean

Whether the instructions field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Violation.Remediation other)

public Violation.Remediation.Builder mergeFrom(Violation.Remediation other)
Parameter
Name Description
other Violation.Remediation
Returns
Type Description
Violation.Remediation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Violation.Remediation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Violation.Remediation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Violation.Remediation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Violation.Remediation.Builder
Overrides

mergeInstructions(Violation.Remediation.Instructions value)

public Violation.Remediation.Builder mergeInstructions(Violation.Remediation.Instructions value)

Required. Remediation instructions to resolve violations

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

Parameter
Name Description
value Violation.Remediation.Instructions
Returns
Type Description
Violation.Remediation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Violation.Remediation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Violation.Remediation.Builder
Overrides

setCompliantValues(int index, String value)

public Violation.Remediation.Builder setCompliantValues(int index, String value)

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;

Parameters
Name Description
index int

The index to set the value at.

value String

The compliantValues to set.

Returns
Type Description
Violation.Remediation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Violation.Remediation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Violation.Remediation.Builder
Overrides

setInstructions(Violation.Remediation.Instructions value)

public Violation.Remediation.Builder setInstructions(Violation.Remediation.Instructions value)

Required. Remediation instructions to resolve violations

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

Parameter
Name Description
value Violation.Remediation.Instructions
Returns
Type Description
Violation.Remediation.Builder

setInstructions(Violation.Remediation.Instructions.Builder builderForValue)

public Violation.Remediation.Builder setInstructions(Violation.Remediation.Instructions.Builder builderForValue)

Required. Remediation instructions to resolve violations

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

Parameter
Name Description
builderForValue Violation.Remediation.Instructions.Builder
Returns
Type Description
Violation.Remediation.Builder

setRemediationType(Violation.Remediation.RemediationType value)

public Violation.Remediation.Builder setRemediationType(Violation.Remediation.RemediationType value)

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

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

Parameter
Name Description
value Violation.Remediation.RemediationType

The remediationType to set.

Returns
Type Description
Violation.Remediation.Builder

This builder for chaining.

setRemediationTypeValue(int value)

public Violation.Remediation.Builder setRemediationTypeValue(int value)

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

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

Parameter
Name Description
value int

The enum numeric value on the wire for remediationType to set.

Returns
Type Description
Violation.Remediation.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Violation.Remediation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Violation.Remediation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Violation.Remediation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Violation.Remediation.Builder
Overrides