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 Summary
Modifier and TypeMethodDescriptionaddAllCommands(Iterable<? extends Command> values) The commands to remediate the violation.addCommands(int index, Command value) The commands to remediate the violation.addCommands(int index, Command.Builder builderForValue) The commands to remediate the violation.addCommands(Command value) The commands to remediate the violation.addCommands(Command.Builder builderForValue) The commands to remediate the violation.The commands to remediate the violation.addCommandsBuilder(int index) The commands to remediate the violation.build()clear()The commands to remediate the violation.The URL for the documentation of the rule.The resource that violates the rule.The rule that is violated in an evaluation.The severity of violation.Execution result type of the scanned resource.The details of violation in an evaluation result.The violation message of an execution.getCommands(int index) The commands to remediate the violation.getCommandsBuilder(int index) The commands to remediate the violation.The commands to remediate the violation.intThe commands to remediate the violation.The commands to remediate the violation.getCommandsOrBuilder(int index) The commands to remediate the violation.List<? extends CommandOrBuilder>The commands to remediate the violation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe URL for the documentation of the rule.com.google.protobuf.ByteStringThe URL for the documentation of the rule.The resource that violates the rule.The resource that violates the rule.The resource that violates the rule.getRule()The rule that is violated in an evaluation.com.google.protobuf.ByteStringThe rule that is violated in an evaluation.The severity of violation.com.google.protobuf.ByteStringThe severity of violation.getType()Execution result type of the scanned resource.intExecution result type of the scanned resource.The details of violation in an evaluation result.The details of violation in an evaluation result.The details of violation in an evaluation result.The violation message of an execution.com.google.protobuf.ByteStringThe violation message of an execution.booleanThe resource that violates the rule.booleanThe details of violation in an evaluation result.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ExecutionResult other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeResource(Resource value) The resource that violates the rule.The details of violation in an evaluation result.removeCommands(int index) The commands to remediate the violation.setCommands(int index, Command value) The commands to remediate the violation.setCommands(int index, Command.Builder builderForValue) The commands to remediate the violation.setDocumentationUrl(String value) The URL for the documentation of the rule.setDocumentationUrlBytes(com.google.protobuf.ByteString value) The URL for the documentation of the rule.setResource(Resource value) The resource that violates the rule.setResource(Resource.Builder builderForValue) The resource that violates the rule.The rule that is violated in an evaluation.setRuleBytes(com.google.protobuf.ByteString value) The rule that is violated in an evaluation.setSeverity(String value) The severity of violation.setSeverityBytes(com.google.protobuf.ByteString value) The severity of violation.setType(ExecutionResult.Type value) Execution result type of the scanned resource.setTypeValue(int value) Execution result type of the scanned resource.The details of violation in an evaluation result.setViolationDetails(ViolationDetails.Builder builderForValue) The details of violation in an evaluation result.setViolationMessage(String value) The violation message of an execution.setViolationMessageBytes(com.google.protobuf.ByteString value) The violation message of an execution.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<ExecutionResult.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<ExecutionResult.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<ExecutionResult.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<ExecutionResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExecutionResult.Builder>- Throws:
IOException
-
getViolationMessage
The violation message of an execution.
string violation_message = 1;- Specified by:
getViolationMessagein interfaceExecutionResultOrBuilder- Returns:
- The violationMessage.
-
getViolationMessageBytes
public com.google.protobuf.ByteString getViolationMessageBytes()The violation message of an execution.
string violation_message = 1;- Specified by:
getViolationMessageBytesin interfaceExecutionResultOrBuilder- Returns:
- The bytes for violationMessage.
-
setViolationMessage
The violation message of an execution.
string violation_message = 1;- Parameters:
value- The violationMessage to set.- Returns:
- This builder for chaining.
-
clearViolationMessage
The violation message of an execution.
string violation_message = 1;- Returns:
- This builder for chaining.
-
setViolationMessageBytes
The violation message of an execution.
string violation_message = 1;- Parameters:
value- The bytes for violationMessage to set.- Returns:
- This builder for chaining.
-
getSeverity
The severity of violation.
string severity = 2;- Specified by:
getSeverityin interfaceExecutionResultOrBuilder- Returns:
- The severity.
-
getSeverityBytes
public com.google.protobuf.ByteString getSeverityBytes()The severity of violation.
string severity = 2;- Specified by:
getSeverityBytesin interfaceExecutionResultOrBuilder- Returns:
- The bytes for severity.
-
setSeverity
The severity of violation.
string severity = 2;- Parameters:
value- The severity to set.- Returns:
- This builder for chaining.
-
clearSeverity
The severity of violation.
string severity = 2;- Returns:
- This builder for chaining.
-
setSeverityBytes
The severity of violation.
string severity = 2;- Parameters:
value- The bytes for severity to set.- Returns:
- This builder for chaining.
-
getRule
The rule that is violated in an evaluation.
string rule = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getRulein interfaceExecutionResultOrBuilder- 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:
getRuleBytesin interfaceExecutionResultOrBuilder- Returns:
- The bytes for rule.
-
setRule
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
The rule that is violated in an evaluation.
string rule = 3 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setRuleBytes
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
The URL for the documentation of the rule.
string documentation_url = 4;- Specified by:
getDocumentationUrlin interfaceExecutionResultOrBuilder- Returns:
- The documentationUrl.
-
getDocumentationUrlBytes
public com.google.protobuf.ByteString getDocumentationUrlBytes()The URL for the documentation of the rule.
string documentation_url = 4;- Specified by:
getDocumentationUrlBytesin interfaceExecutionResultOrBuilder- Returns:
- The bytes for documentationUrl.
-
setDocumentationUrl
The URL for the documentation of the rule.
string documentation_url = 4;- Parameters:
value- The documentationUrl to set.- Returns:
- This builder for chaining.
-
clearDocumentationUrl
The URL for the documentation of the rule.
string documentation_url = 4;- Returns:
- This builder for chaining.
-
setDocumentationUrlBytes
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:
hasResourcein interfaceExecutionResultOrBuilder- Returns:
- Whether the resource field is set.
-
getResource
The resource that violates the rule.
.google.cloud.workloadmanager.v1.Resource resource = 5;- Specified by:
getResourcein interfaceExecutionResultOrBuilder- Returns:
- The resource.
-
setResource
The resource that violates the rule.
.google.cloud.workloadmanager.v1.Resource resource = 5; -
setResource
The resource that violates the rule.
.google.cloud.workloadmanager.v1.Resource resource = 5; -
mergeResource
The resource that violates the rule.
.google.cloud.workloadmanager.v1.Resource resource = 5; -
clearResource
The resource that violates the rule.
.google.cloud.workloadmanager.v1.Resource resource = 5; -
getResourceBuilder
The resource that violates the rule.
.google.cloud.workloadmanager.v1.Resource resource = 5; -
getResourceOrBuilder
The resource that violates the rule.
.google.cloud.workloadmanager.v1.Resource resource = 5;- Specified by:
getResourceOrBuilderin interfaceExecutionResultOrBuilder
-
hasViolationDetails
public boolean hasViolationDetails()The details of violation in an evaluation result.
.google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;- Specified by:
hasViolationDetailsin interfaceExecutionResultOrBuilder- Returns:
- Whether the violationDetails field is set.
-
getViolationDetails
The details of violation in an evaluation result.
.google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;- Specified by:
getViolationDetailsin interfaceExecutionResultOrBuilder- Returns:
- The violationDetails.
-
setViolationDetails
The details of violation in an evaluation result.
.google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; -
setViolationDetails
The details of violation in an evaluation result.
.google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; -
mergeViolationDetails
The details of violation in an evaluation result.
.google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; -
clearViolationDetails
The details of violation in an evaluation result.
.google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; -
getViolationDetailsBuilder
The details of violation in an evaluation result.
.google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; -
getViolationDetailsOrBuilder
The details of violation in an evaluation result.
.google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;- Specified by:
getViolationDetailsOrBuilderin interfaceExecutionResultOrBuilder
-
getCommandsList
The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;- Specified by:
getCommandsListin interfaceExecutionResultOrBuilder
-
getCommandsCount
public int getCommandsCount()The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;- Specified by:
getCommandsCountin interfaceExecutionResultOrBuilder
-
getCommands
The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;- Specified by:
getCommandsin interfaceExecutionResultOrBuilder
-
setCommands
The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7; -
setCommands
The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7; -
addCommands
The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7; -
addCommands
The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7; -
addCommands
The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7; -
addCommands
The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7; -
addAllCommands
The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7; -
clearCommands
The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7; -
removeCommands
The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7; -
getCommandsBuilder
The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7; -
getCommandsOrBuilder
The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;- Specified by:
getCommandsOrBuilderin interfaceExecutionResultOrBuilder
-
getCommandsOrBuilderList
The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;- Specified by:
getCommandsOrBuilderListin interfaceExecutionResultOrBuilder
-
addCommandsBuilder
The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7; -
addCommandsBuilder
The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7; -
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:
getTypeValuein interfaceExecutionResultOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
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
Execution result type of the scanned resource.
.google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8;- Specified by:
getTypein interfaceExecutionResultOrBuilder- 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
Execution result type of the scanned resource.
.google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8;- Returns:
- This builder for chaining.
-