Class ExecutionResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExecutionResult.Builder>
com.google.cloud.workloadmanager.v1.ExecutionResult.Builder
All Implemented Interfaces:
ExecutionResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ExecutionResult

public static final class ExecutionResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExecutionResult.Builder> implements ExecutionResultOrBuilder
 The result of an execution.
 
Protobuf type google.cloud.workloadmanager.v1.ExecutionResult
  • 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<ExecutionResult.Builder>
    • clear

      public ExecutionResult.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<ExecutionResult.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<ExecutionResult.Builder>
    • getDefaultInstanceForType

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

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

      public ExecutionResult buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ExecutionResult.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<ExecutionResult.Builder>
    • mergeFrom

      public ExecutionResult.Builder mergeFrom(ExecutionResult other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ExecutionResult.Builder>
    • mergeFrom

      public ExecutionResult.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<ExecutionResult.Builder>
      Throws:
      IOException
    • getViolationMessage

      public String getViolationMessage()
       The violation message of an execution.
       
      string violation_message = 1;
      Specified by:
      getViolationMessage in interface ExecutionResultOrBuilder
      Returns:
      The violationMessage.
    • getViolationMessageBytes

      public com.google.protobuf.ByteString getViolationMessageBytes()
       The violation message of an execution.
       
      string violation_message = 1;
      Specified by:
      getViolationMessageBytes in interface ExecutionResultOrBuilder
      Returns:
      The bytes for violationMessage.
    • setViolationMessage

      public ExecutionResult.Builder setViolationMessage(String value)
       The violation message of an execution.
       
      string violation_message = 1;
      Parameters:
      value - The violationMessage to set.
      Returns:
      This builder for chaining.
    • clearViolationMessage

      public ExecutionResult.Builder clearViolationMessage()
       The violation message of an execution.
       
      string violation_message = 1;
      Returns:
      This builder for chaining.
    • setViolationMessageBytes

      public ExecutionResult.Builder setViolationMessageBytes(com.google.protobuf.ByteString value)
       The violation message of an execution.
       
      string violation_message = 1;
      Parameters:
      value - The bytes for violationMessage to set.
      Returns:
      This builder for chaining.
    • getSeverity

      public String getSeverity()
       The severity of violation.
       
      string severity = 2;
      Specified by:
      getSeverity in interface ExecutionResultOrBuilder
      Returns:
      The severity.
    • getSeverityBytes

      public com.google.protobuf.ByteString getSeverityBytes()
       The severity of violation.
       
      string severity = 2;
      Specified by:
      getSeverityBytes in interface ExecutionResultOrBuilder
      Returns:
      The bytes for severity.
    • setSeverity

      public ExecutionResult.Builder setSeverity(String value)
       The severity of violation.
       
      string severity = 2;
      Parameters:
      value - The severity to set.
      Returns:
      This builder for chaining.
    • clearSeverity

      public ExecutionResult.Builder clearSeverity()
       The severity of violation.
       
      string severity = 2;
      Returns:
      This builder for chaining.
    • setSeverityBytes

      public ExecutionResult.Builder setSeverityBytes(com.google.protobuf.ByteString value)
       The severity of violation.
       
      string severity = 2;
      Parameters:
      value - The bytes for severity to set.
      Returns:
      This builder for chaining.
    • getRule

      public String getRule()
       The rule that is violated in an evaluation.
       
      string rule = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getRule in interface ExecutionResultOrBuilder
      Returns:
      The rule.
    • getRuleBytes

      public com.google.protobuf.ByteString getRuleBytes()
       The rule that is violated in an evaluation.
       
      string rule = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getRuleBytes in interface ExecutionResultOrBuilder
      Returns:
      The bytes for rule.
    • setRule

      public ExecutionResult.Builder setRule(String value)
       The rule that is violated in an evaluation.
       
      string rule = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The rule to set.
      Returns:
      This builder for chaining.
    • clearRule

      public ExecutionResult.Builder clearRule()
       The rule that is violated in an evaluation.
       
      string rule = 3 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setRuleBytes

      public ExecutionResult.Builder setRuleBytes(com.google.protobuf.ByteString value)
       The rule that is violated in an evaluation.
       
      string rule = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for rule to set.
      Returns:
      This builder for chaining.
    • getDocumentationUrl

      public String getDocumentationUrl()
       The URL for the documentation of the rule.
       
      string documentation_url = 4;
      Specified by:
      getDocumentationUrl in interface ExecutionResultOrBuilder
      Returns:
      The documentationUrl.
    • getDocumentationUrlBytes

      public com.google.protobuf.ByteString getDocumentationUrlBytes()
       The URL for the documentation of the rule.
       
      string documentation_url = 4;
      Specified by:
      getDocumentationUrlBytes in interface ExecutionResultOrBuilder
      Returns:
      The bytes for documentationUrl.
    • setDocumentationUrl

      public ExecutionResult.Builder setDocumentationUrl(String value)
       The URL for the documentation of the rule.
       
      string documentation_url = 4;
      Parameters:
      value - The documentationUrl to set.
      Returns:
      This builder for chaining.
    • clearDocumentationUrl

      public ExecutionResult.Builder clearDocumentationUrl()
       The URL for the documentation of the rule.
       
      string documentation_url = 4;
      Returns:
      This builder for chaining.
    • setDocumentationUrlBytes

      public ExecutionResult.Builder setDocumentationUrlBytes(com.google.protobuf.ByteString value)
       The URL for the documentation of the rule.
       
      string documentation_url = 4;
      Parameters:
      value - The bytes for documentationUrl to set.
      Returns:
      This builder for chaining.
    • hasResource

      public boolean hasResource()
       The resource that violates the rule.
       
      .google.cloud.workloadmanager.v1.Resource resource = 5;
      Specified by:
      hasResource in interface ExecutionResultOrBuilder
      Returns:
      Whether the resource field is set.
    • getResource

      public Resource getResource()
       The resource that violates the rule.
       
      .google.cloud.workloadmanager.v1.Resource resource = 5;
      Specified by:
      getResource in interface ExecutionResultOrBuilder
      Returns:
      The resource.
    • setResource

      public ExecutionResult.Builder setResource(Resource value)
       The resource that violates the rule.
       
      .google.cloud.workloadmanager.v1.Resource resource = 5;
    • setResource

      public ExecutionResult.Builder setResource(Resource.Builder builderForValue)
       The resource that violates the rule.
       
      .google.cloud.workloadmanager.v1.Resource resource = 5;
    • mergeResource

      public ExecutionResult.Builder mergeResource(Resource value)
       The resource that violates the rule.
       
      .google.cloud.workloadmanager.v1.Resource resource = 5;
    • clearResource

      public ExecutionResult.Builder clearResource()
       The resource that violates the rule.
       
      .google.cloud.workloadmanager.v1.Resource resource = 5;
    • getResourceBuilder

      public Resource.Builder getResourceBuilder()
       The resource that violates the rule.
       
      .google.cloud.workloadmanager.v1.Resource resource = 5;
    • getResourceOrBuilder

      public ResourceOrBuilder getResourceOrBuilder()
       The resource that violates the rule.
       
      .google.cloud.workloadmanager.v1.Resource resource = 5;
      Specified by:
      getResourceOrBuilder in interface ExecutionResultOrBuilder
    • hasViolationDetails

      public boolean hasViolationDetails()
       The details of violation in an evaluation result.
       
      .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;
      Specified by:
      hasViolationDetails in interface ExecutionResultOrBuilder
      Returns:
      Whether the violationDetails field is set.
    • getViolationDetails

      public ViolationDetails getViolationDetails()
       The details of violation in an evaluation result.
       
      .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;
      Specified by:
      getViolationDetails in interface ExecutionResultOrBuilder
      Returns:
      The violationDetails.
    • setViolationDetails

      public ExecutionResult.Builder setViolationDetails(ViolationDetails value)
       The details of violation in an evaluation result.
       
      .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;
    • setViolationDetails

      public ExecutionResult.Builder setViolationDetails(ViolationDetails.Builder builderForValue)
       The details of violation in an evaluation result.
       
      .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;
    • mergeViolationDetails

      public ExecutionResult.Builder mergeViolationDetails(ViolationDetails value)
       The details of violation in an evaluation result.
       
      .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;
    • clearViolationDetails

      public ExecutionResult.Builder clearViolationDetails()
       The details of violation in an evaluation result.
       
      .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;
    • getViolationDetailsBuilder

      public ViolationDetails.Builder getViolationDetailsBuilder()
       The details of violation in an evaluation result.
       
      .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;
    • getViolationDetailsOrBuilder

      public ViolationDetailsOrBuilder getViolationDetailsOrBuilder()
       The details of violation in an evaluation result.
       
      .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;
      Specified by:
      getViolationDetailsOrBuilder in interface ExecutionResultOrBuilder
    • getCommandsList

      public List<Command> getCommandsList()
       The commands to remediate the violation.
       
      repeated .google.cloud.workloadmanager.v1.Command commands = 7;
      Specified by:
      getCommandsList in interface ExecutionResultOrBuilder
    • getCommandsCount

      public int getCommandsCount()
       The commands to remediate the violation.
       
      repeated .google.cloud.workloadmanager.v1.Command commands = 7;
      Specified by:
      getCommandsCount in interface ExecutionResultOrBuilder
    • getCommands

      public Command getCommands(int index)
       The commands to remediate the violation.
       
      repeated .google.cloud.workloadmanager.v1.Command commands = 7;
      Specified by:
      getCommands in interface ExecutionResultOrBuilder
    • setCommands

      public ExecutionResult.Builder setCommands(int index, Command value)
       The commands to remediate the violation.
       
      repeated .google.cloud.workloadmanager.v1.Command commands = 7;
    • setCommands

      public ExecutionResult.Builder setCommands(int index, Command.Builder builderForValue)
       The commands to remediate the violation.
       
      repeated .google.cloud.workloadmanager.v1.Command commands = 7;
    • addCommands

      public ExecutionResult.Builder addCommands(Command value)
       The commands to remediate the violation.
       
      repeated .google.cloud.workloadmanager.v1.Command commands = 7;
    • addCommands

      public ExecutionResult.Builder addCommands(int index, Command value)
       The commands to remediate the violation.
       
      repeated .google.cloud.workloadmanager.v1.Command commands = 7;
    • addCommands

      public ExecutionResult.Builder addCommands(Command.Builder builderForValue)
       The commands to remediate the violation.
       
      repeated .google.cloud.workloadmanager.v1.Command commands = 7;
    • addCommands

      public ExecutionResult.Builder addCommands(int index, Command.Builder builderForValue)
       The commands to remediate the violation.
       
      repeated .google.cloud.workloadmanager.v1.Command commands = 7;
    • addAllCommands

      public ExecutionResult.Builder addAllCommands(Iterable<? extends Command> values)
       The commands to remediate the violation.
       
      repeated .google.cloud.workloadmanager.v1.Command commands = 7;
    • clearCommands

      public ExecutionResult.Builder clearCommands()
       The commands to remediate the violation.
       
      repeated .google.cloud.workloadmanager.v1.Command commands = 7;
    • removeCommands

      public ExecutionResult.Builder removeCommands(int index)
       The commands to remediate the violation.
       
      repeated .google.cloud.workloadmanager.v1.Command commands = 7;
    • getCommandsBuilder

      public Command.Builder getCommandsBuilder(int index)
       The commands to remediate the violation.
       
      repeated .google.cloud.workloadmanager.v1.Command commands = 7;
    • getCommandsOrBuilder

      public CommandOrBuilder getCommandsOrBuilder(int index)
       The commands to remediate the violation.
       
      repeated .google.cloud.workloadmanager.v1.Command commands = 7;
      Specified by:
      getCommandsOrBuilder in interface ExecutionResultOrBuilder
    • getCommandsOrBuilderList

      public List<? extends CommandOrBuilder> getCommandsOrBuilderList()
       The commands to remediate the violation.
       
      repeated .google.cloud.workloadmanager.v1.Command commands = 7;
      Specified by:
      getCommandsOrBuilderList in interface ExecutionResultOrBuilder
    • addCommandsBuilder

      public Command.Builder addCommandsBuilder()
       The commands to remediate the violation.
       
      repeated .google.cloud.workloadmanager.v1.Command commands = 7;
    • addCommandsBuilder

      public Command.Builder addCommandsBuilder(int index)
       The commands to remediate the violation.
       
      repeated .google.cloud.workloadmanager.v1.Command commands = 7;
    • getCommandsBuilderList

      public List<Command.Builder> getCommandsBuilderList()
       The commands to remediate the violation.
       
      repeated .google.cloud.workloadmanager.v1.Command commands = 7;
    • getTypeValue

      public int getTypeValue()
       Execution result type of the scanned resource.
       
      .google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8;
      Specified by:
      getTypeValue in interface ExecutionResultOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public ExecutionResult.Builder setTypeValue(int value)
       Execution result type of the scanned resource.
       
      .google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public ExecutionResult.Type getType()
       Execution result type of the scanned resource.
       
      .google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8;
      Specified by:
      getType in interface ExecutionResultOrBuilder
      Returns:
      The type.
    • setType

       Execution result type of the scanned resource.
       
      .google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public ExecutionResult.Builder clearType()
       Execution result type of the scanned resource.
       
      .google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8;
      Returns:
      This builder for chaining.