Class Violation.Remediation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<Violation.Remediation.Builder>
implements Violation.RemediationOrBuilder
Represents remediation guidance to resolve compliance violation for AssuredWorkloadProtobuf type
google.cloud.assuredworkloads.v1.Violation.Remediation-
Method Summary
Modifier and TypeMethodDescriptionaddAllCompliantValues(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 valuesaddCompliantValues(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 valuesaddCompliantValuesBytes(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 valuesbuild()clear()Values that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied valuesRequired.Output only.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.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 valuesintValues 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.ProtocolStringListValues that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied valuesstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.Required.Required.Output only.intOutput only.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Violation.Remediation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.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 valuesRequired.setInstructions(Violation.Remediation.Instructions.Builder builderForValue) Required.Output only.setRemediationTypeValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.Builder<Violation.Remediation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Violation.Remediation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
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
Required. Remediation instructions to resolve violations
.google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED]; -
clearInstructions
Required. Remediation instructions to resolve violations
.google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED]; -
getInstructionsBuilder
Required. Remediation instructions to resolve violations
.google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED]; -
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
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
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
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
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
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
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
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
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
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.
-