Class Violation.Remediation.Builder (0.1.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
TypeDescription
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
NameDescription
valuesIterable<String>

The compliantValues to add.

Returns
TypeDescription
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
NameDescription
valueString

The compliantValues to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the compliantValues to add.

Returns
TypeDescription
Violation.Remediation.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Violation.Remediation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Violation.Remediation.Builder
Overrides

build()

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

buildPartial()

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

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Violation.Remediation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Violation.Remediation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Violation.Remediation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Violation.Remediation.Builder

This builder for chaining.

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the instructions field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Violation.Remediation other)

public Violation.Remediation.Builder mergeFrom(Violation.Remediation other)
Parameter
NameDescription
otherViolation.Remediation
Returns
TypeDescription
Violation.Remediation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Violation.Remediation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Violation.Remediation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Violation.Remediation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueViolation.Remediation.Instructions
Returns
TypeDescription
Violation.Remediation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Violation.Remediation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The compliantValues to set.

Returns
TypeDescription
Violation.Remediation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Violation.Remediation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueViolation.Remediation.Instructions
Returns
TypeDescription
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
NameDescription
builderForValueViolation.Remediation.Instructions.Builder
Returns
TypeDescription
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
NameDescription
valueViolation.Remediation.RemediationType

The remediationType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Violation.Remediation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Violation.Remediation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Violation.Remediation.Builder
Overrides