Class ExecutionResult

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.workloadmanager.v1.ExecutionResult
All Implemented Interfaces:
ExecutionResultOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ExecutionResult extends com.google.protobuf.GeneratedMessage implements ExecutionResultOrBuilder
 The result of an execution.
 
Protobuf type google.cloud.workloadmanager.v1.ExecutionResult
See Also:
  • Field Details

    • VIOLATION_MESSAGE_FIELD_NUMBER

      public static final int VIOLATION_MESSAGE_FIELD_NUMBER
      See Also:
    • SEVERITY_FIELD_NUMBER

      public static final int SEVERITY_FIELD_NUMBER
      See Also:
    • RULE_FIELD_NUMBER

      public static final int RULE_FIELD_NUMBER
      See Also:
    • DOCUMENTATION_URL_FIELD_NUMBER

      public static final int DOCUMENTATION_URL_FIELD_NUMBER
      See Also:
    • RESOURCE_FIELD_NUMBER

      public static final int RESOURCE_FIELD_NUMBER
      See Also:
    • VIOLATION_DETAILS_FIELD_NUMBER

      public static final int VIOLATION_DETAILS_FIELD_NUMBER
      See Also:
    • COMMANDS_FIELD_NUMBER

      public static final int COMMANDS_FIELD_NUMBER
      See Also:
    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • 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
    • 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
    • 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
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ExecutionResult parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExecutionResult parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExecutionResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExecutionResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExecutionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExecutionResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExecutionResult parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ExecutionResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ExecutionResult parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ExecutionResult parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ExecutionResult parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ExecutionResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static ExecutionResult.Builder newBuilder()
    • newBuilder

      public static ExecutionResult.Builder newBuilder(ExecutionResult prototype)
    • toBuilder

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

      protected ExecutionResult.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ExecutionResult getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ExecutionResult> parser()
    • getParserForType

      public com.google.protobuf.Parser<ExecutionResult> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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