Class 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 type google.cloud.assuredworkloads.v1.Violation.Remediation
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
      • clear

        public Violation.Remediation.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
      • getDefaultInstanceForType

        public Violation.Remediation getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Violation.Remediation build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Violation.Remediation buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Violation.Remediation.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
      • clearField

        public Violation.Remediation.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
      • clearOneof

        public Violation.Remediation.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface Violation.RemediationOrBuilder
        Returns:
        Whether the instructions field is set.
      • 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];
      • 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 interface Violation.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 interface Violation.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 interface Violation.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 interface Violation.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 interface Violation.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.
      • 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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>
      • mergeUnknownFields

        public final Violation.Remediation.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Violation.Remediation.Builder>