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.BuilderaddAllCompliantValues(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.BuilderaddCompliantValues(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.BuilderaddCompliantValuesBytes(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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Violation.Remediationbuild()Violation.RemediationbuildPartial()Violation.Remediation.Builderclear()Violation.Remediation.BuilderclearCompliantValues()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.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Violation.Remediation.BuilderclearInstructions()Required.Violation.Remediation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Violation.Remediation.BuilderclearRemediationType()Output only.Violation.Remediation.Builderclone()StringgetCompliantValues(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.ByteStringgetCompliantValuesBytes(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 valuesintgetCompliantValuesCount()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.ProtocolStringListgetCompliantValuesList()Values that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied valuesViolation.RemediationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Violation.Remediation.InstructionsgetInstructions()Required.Violation.Remediation.Instructions.BuildergetInstructionsBuilder()Required.Violation.Remediation.InstructionsOrBuildergetInstructionsOrBuilder()Required.Violation.Remediation.RemediationTypegetRemediationType()Output only.intgetRemediationTypeValue()Output only.booleanhasInstructions()Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Violation.Remediation.BuildermergeFrom(Violation.Remediation other)Violation.Remediation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Violation.Remediation.BuildermergeFrom(com.google.protobuf.Message other)Violation.Remediation.BuildermergeInstructions(Violation.Remediation.Instructions value)Required.Violation.Remediation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Violation.Remediation.BuildersetCompliantValues(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.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Violation.Remediation.BuildersetInstructions(Violation.Remediation.Instructions value)Required.Violation.Remediation.BuildersetInstructions(Violation.Remediation.Instructions.Builder builderForValue)Required.Violation.Remediation.BuildersetRemediationType(Violation.Remediation.RemediationType value)Output only.Violation.Remediation.BuildersetRemediationTypeValue(int value)Output only.Violation.Remediation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Violation.Remediation.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
clear
public Violation.Remediation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
getDefaultInstanceForType
public Violation.Remediation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Violation.Remediation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Violation.Remediation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Violation.Remediation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
setField
public Violation.Remediation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
clearField
public Violation.Remediation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
clearOneof
public Violation.Remediation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
addRepeatedField
public Violation.Remediation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
mergeFrom
public Violation.Remediation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Violation.Remediation.Builder>
-
mergeFrom
public Violation.Remediation.Builder mergeFrom(Violation.Remediation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasInstructionsin 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:
getInstructionsin 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:
getInstructionsOrBuilderin 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:
getCompliantValuesListin 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:
getCompliantValuesCountin 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:
getCompliantValuesin 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:
getCompliantValuesBytesin 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:
getRemediationTypeValuein 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:
getRemediationTypein 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
mergeUnknownFields
public final Violation.Remediation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
-
-