public static final class ExecutionResult.Builder extends GeneratedMessage.Builder<ExecutionResult.Builder> implements ExecutionResultOrBuilderThe result of an execution.
Protobuf type google.cloud.workloadmanager.v1.ExecutionResult
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ExecutionResult.BuilderImplements
ExecutionResultOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllCommands(Iterable<? extends Command> values)
public ExecutionResult.Builder addAllCommands(Iterable<? extends Command> values)The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.workloadmanager.v1.Command> |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
addCommands(Command value)
public ExecutionResult.Builder addCommands(Command value)The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
Command |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
addCommands(Command.Builder builderForValue)
public ExecutionResult.Builder addCommands(Command.Builder builderForValue)The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Command.Builder |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
addCommands(int index, Command value)
public ExecutionResult.Builder addCommands(int index, Command value)The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Command |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
addCommands(int index, Command.Builder builderForValue)
public ExecutionResult.Builder addCommands(int index, Command.Builder builderForValue)The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Command.Builder |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
addCommandsBuilder()
public Command.Builder addCommandsBuilder()The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;
| Returns | |
|---|---|
| Type | Description |
Command.Builder |
|
addCommandsBuilder(int index)
public Command.Builder addCommandsBuilder(int index)The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Command.Builder |
|
build()
public ExecutionResult build()| Returns | |
|---|---|
| Type | Description |
ExecutionResult |
|
buildPartial()
public ExecutionResult buildPartial()| Returns | |
|---|---|
| Type | Description |
ExecutionResult |
|
clear()
public ExecutionResult.Builder clear()| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
clearCommands()
public ExecutionResult.Builder clearCommands()The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
clearDocumentationUrl()
public ExecutionResult.Builder clearDocumentationUrl()The URL for the documentation of the rule.
string documentation_url = 4;
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
This builder for chaining. |
clearResource()
public ExecutionResult.Builder clearResource()The resource that violates the rule.
.google.cloud.workloadmanager.v1.Resource resource = 5;
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
clearRule()
public ExecutionResult.Builder clearRule()The rule that is violated in an evaluation.
string rule = 3 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
This builder for chaining. |
clearSeverity()
public ExecutionResult.Builder clearSeverity()The severity of violation.
string severity = 2;
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
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 | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
This builder for chaining. |
clearViolationDetails()
public ExecutionResult.Builder clearViolationDetails()The details of violation in an evaluation result.
.google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
clearViolationMessage()
public ExecutionResult.Builder clearViolationMessage()The violation message of an execution.
string violation_message = 1;
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
This builder for chaining. |
getCommands(int index)
public Command getCommands(int index)The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Command |
|
getCommandsBuilder(int index)
public Command.Builder getCommandsBuilder(int index)The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Command.Builder |
|
getCommandsBuilderList()
public List<Command.Builder> getCommandsBuilderList()The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getCommandsCount()
public int getCommandsCount()The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;
| Returns | |
|---|---|
| Type | Description |
int |
|
getCommandsList()
public List<Command> getCommandsList()The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;
| Returns | |
|---|---|
| Type | Description |
List<Command> |
|
getCommandsOrBuilder(int index)
public CommandOrBuilder getCommandsOrBuilder(int index)The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CommandOrBuilder |
|
getCommandsOrBuilderList()
public List<? extends CommandOrBuilder> getCommandsOrBuilderList()The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.workloadmanager.v1.CommandOrBuilder> |
|
getDefaultInstanceForType()
public ExecutionResult getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ExecutionResult |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDocumentationUrl()
public String getDocumentationUrl()The URL for the documentation of the rule.
string documentation_url = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The documentationUrl. |
getDocumentationUrlBytes()
public ByteString getDocumentationUrlBytes()The URL for the documentation of the rule.
string documentation_url = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for documentationUrl. |
getResource()
public Resource getResource()The resource that violates the rule.
.google.cloud.workloadmanager.v1.Resource resource = 5;
| Returns | |
|---|---|
| Type | Description |
Resource |
The resource. |
getResourceBuilder()
public Resource.Builder getResourceBuilder()The resource that violates the rule.
.google.cloud.workloadmanager.v1.Resource resource = 5;
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
getResourceOrBuilder()
public ResourceOrBuilder getResourceOrBuilder()The resource that violates the rule.
.google.cloud.workloadmanager.v1.Resource resource = 5;
| Returns | |
|---|---|
| Type | Description |
ResourceOrBuilder |
|
getRule()
public String getRule()The rule that is violated in an evaluation.
string rule = 3 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The rule. |
getRuleBytes()
public ByteString getRuleBytes()The rule that is violated in an evaluation.
string rule = 3 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for rule. |
getSeverity()
public String getSeverity()The severity of violation.
string severity = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The severity. |
getSeverityBytes()
public ByteString getSeverityBytes()The severity of violation.
string severity = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for severity. |
getType()
public ExecutionResult.Type getType()Execution result type of the scanned resource.
.google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8;
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Type |
The type. |
getTypeValue()
public int getTypeValue()Execution result type of the scanned resource.
.google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
getViolationDetails()
public ViolationDetails getViolationDetails()The details of violation in an evaluation result.
.google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;
| Returns | |
|---|---|
| Type | Description |
ViolationDetails |
The violationDetails. |
getViolationDetailsBuilder()
public ViolationDetails.Builder getViolationDetailsBuilder()The details of violation in an evaluation result.
.google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;
| Returns | |
|---|---|
| Type | Description |
ViolationDetails.Builder |
|
getViolationDetailsOrBuilder()
public ViolationDetailsOrBuilder getViolationDetailsOrBuilder()The details of violation in an evaluation result.
.google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;
| Returns | |
|---|---|
| Type | Description |
ViolationDetailsOrBuilder |
|
getViolationMessage()
public String getViolationMessage()The violation message of an execution.
string violation_message = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The violationMessage. |
getViolationMessageBytes()
public ByteString getViolationMessageBytes()The violation message of an execution.
string violation_message = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for violationMessage. |
hasResource()
public boolean hasResource()The resource that violates the rule.
.google.cloud.workloadmanager.v1.Resource resource = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the resource field is set. |
hasViolationDetails()
public boolean hasViolationDetails()The details of violation in an evaluation result.
.google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the violationDetails field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ExecutionResult other)
public ExecutionResult.Builder mergeFrom(ExecutionResult other)| Parameter | |
|---|---|
| Name | Description |
other |
ExecutionResult |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ExecutionResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ExecutionResult.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
mergeResource(Resource value)
public ExecutionResult.Builder mergeResource(Resource value)The resource that violates the rule.
.google.cloud.workloadmanager.v1.Resource resource = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Resource |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
mergeViolationDetails(ViolationDetails value)
public ExecutionResult.Builder mergeViolationDetails(ViolationDetails value)The details of violation in an evaluation result.
.google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ViolationDetails |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
removeCommands(int index)
public ExecutionResult.Builder removeCommands(int index)The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
setCommands(int index, Command value)
public ExecutionResult.Builder setCommands(int index, Command value)The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Command |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
setCommands(int index, Command.Builder builderForValue)
public ExecutionResult.Builder setCommands(int index, Command.Builder builderForValue)The commands to remediate the violation.
repeated .google.cloud.workloadmanager.v1.Command commands = 7;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Command.Builder |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
setDocumentationUrl(String value)
public ExecutionResult.Builder setDocumentationUrl(String value)The URL for the documentation of the rule.
string documentation_url = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe documentationUrl to set. |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
This builder for chaining. |
setDocumentationUrlBytes(ByteString value)
public ExecutionResult.Builder setDocumentationUrlBytes(ByteString value)The URL for the documentation of the rule.
string documentation_url = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for documentationUrl to set. |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
This builder for chaining. |
setResource(Resource value)
public ExecutionResult.Builder setResource(Resource value)The resource that violates the rule.
.google.cloud.workloadmanager.v1.Resource resource = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Resource |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
setResource(Resource.Builder builderForValue)
public ExecutionResult.Builder setResource(Resource.Builder builderForValue)The resource that violates the rule.
.google.cloud.workloadmanager.v1.Resource resource = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Resource.Builder |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
setRule(String value)
public ExecutionResult.Builder setRule(String value)The rule that is violated in an evaluation.
string rule = 3 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe rule to set. |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
This builder for chaining. |
setRuleBytes(ByteString value)
public ExecutionResult.Builder setRuleBytes(ByteString value)The rule that is violated in an evaluation.
string rule = 3 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for rule to set. |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
This builder for chaining. |
setSeverity(String value)
public ExecutionResult.Builder setSeverity(String value)The severity of violation.
string severity = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe severity to set. |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
This builder for chaining. |
setSeverityBytes(ByteString value)
public ExecutionResult.Builder setSeverityBytes(ByteString value)The severity of violation.
string severity = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for severity to set. |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
This builder for chaining. |
setType(ExecutionResult.Type value)
public ExecutionResult.Builder setType(ExecutionResult.Type value)Execution result type of the scanned resource.
.google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
ExecutionResult.TypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
This builder for chaining. |
setTypeValue(int value)
public ExecutionResult.Builder setTypeValue(int value)Execution result type of the scanned resource.
.google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
This builder for chaining. |
setViolationDetails(ViolationDetails value)
public ExecutionResult.Builder setViolationDetails(ViolationDetails value)The details of violation in an evaluation result.
.google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ViolationDetails |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
setViolationDetails(ViolationDetails.Builder builderForValue)
public ExecutionResult.Builder setViolationDetails(ViolationDetails.Builder builderForValue)The details of violation in an evaluation result.
.google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ViolationDetails.Builder |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
|
setViolationMessage(String value)
public ExecutionResult.Builder setViolationMessage(String value)The violation message of an execution.
string violation_message = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe violationMessage to set. |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
This builder for chaining. |
setViolationMessageBytes(ByteString value)
public ExecutionResult.Builder setViolationMessageBytes(ByteString value)The violation message of an execution.
string violation_message = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for violationMessage to set. |
| Returns | |
|---|---|
| Type | Description |
ExecutionResult.Builder |
This builder for chaining. |