Class Violation.Remediation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
- com.google.cloud.assuredworkloads.v1.Violation.Remediation.Builder
-
- All Implemented Interfaces:
Violation.RemediationOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Violation.Remediation
public static final class Violation.Remediation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder> implements Violation.RemediationOrBuilder
Represents remediation guidance to resolve compliance violation for AssuredWorkload
Protobuf typegoogle.cloud.assuredworkloads.v1.Violation.Remediation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 valuesViolation.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 valuesViolation.Remediation.Builder
addCompliantValuesBytes(com.google.protobuf.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 valuesViolation.Remediation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Violation.Remediation
build()
Violation.Remediation
buildPartial()
Violation.Remediation.Builder
clear()
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 valuesViolation.Remediation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Violation.Remediation.Builder
clearInstructions()
Required.Violation.Remediation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Violation.Remediation.Builder
clearRemediationType()
Output only.Violation.Remediation.Builder
clone()
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 valuescom.google.protobuf.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 valuesint
getCompliantValuesCount()
Values that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied valuescom.google.protobuf.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 valuesViolation.Remediation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Violation.Remediation.Instructions
getInstructions()
Required.Violation.Remediation.Instructions.Builder
getInstructionsBuilder()
Required.Violation.Remediation.InstructionsOrBuilder
getInstructionsOrBuilder()
Required.Violation.Remediation.RemediationType
getRemediationType()
Output only.int
getRemediationTypeValue()
Output only.boolean
hasInstructions()
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Violation.Remediation.Builder
mergeFrom(Violation.Remediation other)
Violation.Remediation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Violation.Remediation.Builder
mergeFrom(com.google.protobuf.Message other)
Violation.Remediation.Builder
mergeInstructions(Violation.Remediation.Instructions value)
Required.Violation.Remediation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
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 valuesViolation.Remediation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Violation.Remediation.Builder
setInstructions(Violation.Remediation.Instructions value)
Required.Violation.Remediation.Builder
setInstructions(Violation.Remediation.Instructions.Builder builderForValue)
Required.Violation.Remediation.Builder
setRemediationType(Violation.Remediation.RemediationType value)
Output only.Violation.Remediation.Builder
setRemediationTypeValue(int value)
Output only.Violation.Remediation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Violation.Remediation.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
clear
public Violation.Remediation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
getDefaultInstanceForType
public Violation.Remediation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Violation.Remediation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Violation.Remediation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Violation.Remediation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
setField
public Violation.Remediation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
clearField
public Violation.Remediation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
clearOneof
public Violation.Remediation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
setRepeatedField
public Violation.Remediation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
addRepeatedField
public Violation.Remediation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
mergeFrom
public Violation.Remediation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Violation.Remediation.Builder>
-
mergeFrom
public Violation.Remediation.Builder mergeFrom(Violation.Remediation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
mergeFrom
public Violation.Remediation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Violation.Remediation.Builder>
- Throws:
IOException
-
hasInstructions
public boolean hasInstructions()
Required. Remediation instructions to resolve violations
.google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
hasInstructions
in interfaceViolation.RemediationOrBuilder
- Returns:
- Whether the instructions field is set.
-
getInstructions
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];
- Specified by:
getInstructions
in interfaceViolation.RemediationOrBuilder
- Returns:
- The instructions.
-
setInstructions
public Violation.Remediation.Builder setInstructions(Violation.Remediation.Instructions value)
Required. Remediation instructions to resolve violations
.google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED];
-
setInstructions
public Violation.Remediation.Builder setInstructions(Violation.Remediation.Instructions.Builder builderForValue)
Required. Remediation instructions to resolve violations
.google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED];
-
mergeInstructions
public Violation.Remediation.Builder mergeInstructions(Violation.Remediation.Instructions value)
Required. Remediation instructions to resolve violations
.google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED];
-
clearInstructions
public Violation.Remediation.Builder clearInstructions()
Required. Remediation instructions to resolve violations
.google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED];
-
getInstructionsBuilder
public Violation.Remediation.Instructions.Builder getInstructionsBuilder()
Required. Remediation instructions to resolve violations
.google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED];
-
getInstructionsOrBuilder
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];
- Specified by:
getInstructionsOrBuilder
in interfaceViolation.RemediationOrBuilder
-
getCompliantValuesList
public com.google.protobuf.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;
- Specified by:
getCompliantValuesList
in interfaceViolation.RemediationOrBuilder
- Returns:
- A list containing the compliantValues.
-
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;
- Specified by:
getCompliantValuesCount
in interfaceViolation.RemediationOrBuilder
- Returns:
- The count of compliantValues.
-
getCompliantValues
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;
- Specified by:
getCompliantValues
in interfaceViolation.RemediationOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The compliantValues at the given index.
-
getCompliantValuesBytes
public com.google.protobuf.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;
- Specified by:
getCompliantValuesBytes
in interfaceViolation.RemediationOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the compliantValues at the given index.
-
setCompliantValues
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:
index
- The index to set the value at.value
- The compliantValues to set.- Returns:
- This builder for chaining.
-
addCompliantValues
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;
- Parameters:
value
- The compliantValues to add.- Returns:
- This builder for chaining.
-
addAllCompliantValues
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;
- Parameters:
values
- The compliantValues to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addCompliantValuesBytes
public Violation.Remediation.Builder addCompliantValuesBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes of the compliantValues to add.- Returns:
- This builder for chaining.
-
getRemediationTypeValue
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];
- Specified by:
getRemediationTypeValue
in interfaceViolation.RemediationOrBuilder
- Returns:
- The enum numeric value on the wire for remediationType.
-
setRemediationTypeValue
public Violation.Remediation.Builder setRemediationTypeValue(int value)
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];
- Parameters:
value
- The enum numeric value on the wire for remediationType to set.- Returns:
- This builder for chaining.
-
getRemediationType
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];
- Specified by:
getRemediationType
in interfaceViolation.RemediationOrBuilder
- Returns:
- The remediationType.
-
setRemediationType
public Violation.Remediation.Builder setRemediationType(Violation.Remediation.RemediationType value)
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];
- Parameters:
value
- The remediationType to set.- Returns:
- This builder for chaining.
-
clearRemediationType
public Violation.Remediation.Builder clearRemediationType()
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:
- This builder for chaining.
-
setUnknownFields
public final Violation.Remediation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
mergeUnknownFields
public final Violation.Remediation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
-