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
 AssuredWorkload
 
Protobuf type google.cloud.assuredworkloads.v1.Violation.Remediation
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

      public Violation.Remediation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Violation.Remediation.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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.
    • 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 interface Violation.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

       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

      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 interface Violation.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 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.
    • 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 interface Violation.RemediationOrBuilder
      Returns:
      The remediationType.
    • setRemediationType

       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.