Class RuleExecutionError.Builder (0.32.0)

public static final class RuleExecutionError.Builder extends GeneratedMessage.Builder<RuleExecutionError.Builder> implements RuleExecutionErrorOrBuilder

The RuleExecutionError resource represents an error generated from running/deploying a rule.

Protobuf type google.cloud.chronicle.v1.RuleExecutionError

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public RuleExecutionError build()
Returns
Type Description
RuleExecutionError

buildPartial()

public RuleExecutionError buildPartial()
Returns
Type Description
RuleExecutionError

clear()

public RuleExecutionError.Builder clear()
Returns
Type Description
RuleExecutionError.Builder
Overrides

clearCuratedRule()

public RuleExecutionError.Builder clearCuratedRule()

Output only. The resource name of the curated rule that generated the rule execution error.

string curated_rule = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
RuleExecutionError.Builder

This builder for chaining.

clearError()

public RuleExecutionError.Builder clearError()

Output only. The error status corresponding with the rule execution error.

.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RuleExecutionError.Builder

clearName()

public RuleExecutionError.Builder clearName()

Output only. The resource name of the rule execution error. Format: projects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RuleExecutionError.Builder

This builder for chaining.

clearRule()

public RuleExecutionError.Builder clearRule()

Output only. The resource name of the rule that generated the rule execution error.

string rule = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
RuleExecutionError.Builder

This builder for chaining.

clearSource()

public RuleExecutionError.Builder clearSource()
Returns
Type Description
RuleExecutionError.Builder

clearTimeRange()

public RuleExecutionError.Builder clearTimeRange()

Output only. The event time range that the rule execution error corresponds with.

.google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RuleExecutionError.Builder

getCuratedRule()

public String getCuratedRule()

Output only. The resource name of the curated rule that generated the rule execution error.

string curated_rule = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The curatedRule.

getCuratedRuleBytes()

public ByteString getCuratedRuleBytes()

Output only. The resource name of the curated rule that generated the rule execution error.

string curated_rule = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for curatedRule.

getDefaultInstanceForType()

public RuleExecutionError getDefaultInstanceForType()
Returns
Type Description
RuleExecutionError

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getError()

public Status getError()

Output only. The error status corresponding with the rule execution error.

.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

Output only. The error status corresponding with the rule execution error.

.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Output only. The error status corresponding with the rule execution error.

.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.StatusOrBuilder

getName()

public String getName()

Output only. The resource name of the rule execution error. Format: projects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of the rule execution error. Format: projects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getRule()

public String getRule()

Output only. The resource name of the rule that generated the rule execution error.

string rule = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The rule.

getRuleBytes()

public ByteString getRuleBytes()

Output only. The resource name of the rule that generated the rule execution error.

string rule = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for rule.

getSourceCase()

public RuleExecutionError.SourceCase getSourceCase()
Returns
Type Description
RuleExecutionError.SourceCase

getTimeRange()

public Interval getTimeRange()

Output only. The event time range that the rule execution error corresponds with.

.google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Interval

The timeRange.

getTimeRangeBuilder()

public Interval.Builder getTimeRangeBuilder()

Output only. The event time range that the rule execution error corresponds with.

.google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Interval.Builder

getTimeRangeOrBuilder()

public IntervalOrBuilder getTimeRangeOrBuilder()

Output only. The event time range that the rule execution error corresponds with.

.google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.IntervalOrBuilder

hasCuratedRule()

public boolean hasCuratedRule()

Output only. The resource name of the curated rule that generated the rule execution error.

string curated_rule = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the curatedRule field is set.

hasError()

public boolean hasError()

Output only. The error status corresponding with the rule execution error.

.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the error field is set.

hasRule()

public boolean hasRule()

Output only. The resource name of the rule that generated the rule execution error.

string rule = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the rule field is set.

hasTimeRange()

public boolean hasTimeRange()

Output only. The event time range that the rule execution error corresponds with.

.google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the timeRange field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeError(Status value)

public RuleExecutionError.Builder mergeError(Status value)

Output only. The error status corresponding with the rule execution error.

.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
RuleExecutionError.Builder

mergeFrom(RuleExecutionError other)

public RuleExecutionError.Builder mergeFrom(RuleExecutionError other)
Parameter
Name Description
other RuleExecutionError
Returns
Type Description
RuleExecutionError.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RuleExecutionError.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RuleExecutionError.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RuleExecutionError.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RuleExecutionError.Builder
Overrides

mergeTimeRange(Interval value)

public RuleExecutionError.Builder mergeTimeRange(Interval value)

Output only. The event time range that the rule execution error corresponds with.

.google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.type.Interval
Returns
Type Description
RuleExecutionError.Builder

setCuratedRule(String value)

public RuleExecutionError.Builder setCuratedRule(String value)

Output only. The resource name of the curated rule that generated the rule execution error.

string curated_rule = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The curatedRule to set.

Returns
Type Description
RuleExecutionError.Builder

This builder for chaining.

setCuratedRuleBytes(ByteString value)

public RuleExecutionError.Builder setCuratedRuleBytes(ByteString value)

Output only. The resource name of the curated rule that generated the rule execution error.

string curated_rule = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for curatedRule to set.

Returns
Type Description
RuleExecutionError.Builder

This builder for chaining.

setError(Status value)

public RuleExecutionError.Builder setError(Status value)

Output only. The error status corresponding with the rule execution error.

.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
RuleExecutionError.Builder

setError(Status.Builder builderForValue)

public RuleExecutionError.Builder setError(Status.Builder builderForValue)

Output only. The error status corresponding with the rule execution error.

.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
RuleExecutionError.Builder

setName(String value)

public RuleExecutionError.Builder setName(String value)

Output only. The resource name of the rule execution error. Format: projects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RuleExecutionError.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RuleExecutionError.Builder setNameBytes(ByteString value)

Output only. The resource name of the rule execution error. Format: projects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RuleExecutionError.Builder

This builder for chaining.

setRule(String value)

public RuleExecutionError.Builder setRule(String value)

Output only. The resource name of the rule that generated the rule execution error.

string rule = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The rule to set.

Returns
Type Description
RuleExecutionError.Builder

This builder for chaining.

setRuleBytes(ByteString value)

public RuleExecutionError.Builder setRuleBytes(ByteString value)

Output only. The resource name of the rule that generated the rule execution error.

string rule = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for rule to set.

Returns
Type Description
RuleExecutionError.Builder

This builder for chaining.

setTimeRange(Interval value)

public RuleExecutionError.Builder setTimeRange(Interval value)

Output only. The event time range that the rule execution error corresponds with.

.google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.type.Interval
Returns
Type Description
RuleExecutionError.Builder

setTimeRange(Interval.Builder builderForValue)

public RuleExecutionError.Builder setTimeRange(Interval.Builder builderForValue)

Output only. The event time range that the rule execution error corresponds with.

.google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue com.google.type.Interval.Builder
Returns
Type Description
RuleExecutionError.Builder