Class InvalidRule.Builder (0.28.0)

public static final class InvalidRule.Builder extends GeneratedMessageV3.Builder<InvalidRule.Builder> implements InvalidRuleOrBuilder

A triggered rule that failed the validation check(s) after parsing.

Protobuf type google.cloud.contentwarehouse.v1.InvalidRule

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InvalidRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InvalidRule.Builder
Overrides

build()

public InvalidRule build()
Returns
TypeDescription
InvalidRule

buildPartial()

public InvalidRule buildPartial()
Returns
TypeDescription
InvalidRule

clear()

public InvalidRule.Builder clear()
Returns
TypeDescription
InvalidRule.Builder
Overrides

clearError()

public InvalidRule.Builder clearError()

Validation error on a parsed expression.

string error = 2;

Returns
TypeDescription
InvalidRule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public InvalidRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InvalidRule.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public InvalidRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InvalidRule.Builder
Overrides

clearRule()

public InvalidRule.Builder clearRule()

Triggered rule.

.google.cloud.contentwarehouse.v1.Rule rule = 1;

Returns
TypeDescription
InvalidRule.Builder

clone()

public InvalidRule.Builder clone()
Returns
TypeDescription
InvalidRule.Builder
Overrides

getDefaultInstanceForType()

public InvalidRule getDefaultInstanceForType()
Returns
TypeDescription
InvalidRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getError()

public String getError()

Validation error on a parsed expression.

string error = 2;

Returns
TypeDescription
String

The error.

getErrorBytes()

public ByteString getErrorBytes()

Validation error on a parsed expression.

string error = 2;

Returns
TypeDescription
ByteString

The bytes for error.

getRule()

public Rule getRule()

Triggered rule.

.google.cloud.contentwarehouse.v1.Rule rule = 1;

Returns
TypeDescription
Rule

The rule.

getRuleBuilder()

public Rule.Builder getRuleBuilder()

Triggered rule.

.google.cloud.contentwarehouse.v1.Rule rule = 1;

Returns
TypeDescription
Rule.Builder

getRuleOrBuilder()

public RuleOrBuilder getRuleOrBuilder()

Triggered rule.

.google.cloud.contentwarehouse.v1.Rule rule = 1;

Returns
TypeDescription
RuleOrBuilder

hasRule()

public boolean hasRule()

Triggered rule.

.google.cloud.contentwarehouse.v1.Rule rule = 1;

Returns
TypeDescription
boolean

Whether the rule field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InvalidRule other)

public InvalidRule.Builder mergeFrom(InvalidRule other)
Parameter
NameDescription
otherInvalidRule
Returns
TypeDescription
InvalidRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InvalidRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InvalidRule.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InvalidRule.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
InvalidRule.Builder
Overrides

mergeRule(Rule value)

public InvalidRule.Builder mergeRule(Rule value)

Triggered rule.

.google.cloud.contentwarehouse.v1.Rule rule = 1;

Parameter
NameDescription
valueRule
Returns
TypeDescription
InvalidRule.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InvalidRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InvalidRule.Builder
Overrides

setError(String value)

public InvalidRule.Builder setError(String value)

Validation error on a parsed expression.

string error = 2;

Parameter
NameDescription
valueString

The error to set.

Returns
TypeDescription
InvalidRule.Builder

This builder for chaining.

setErrorBytes(ByteString value)

public InvalidRule.Builder setErrorBytes(ByteString value)

Validation error on a parsed expression.

string error = 2;

Parameter
NameDescription
valueByteString

The bytes for error to set.

Returns
TypeDescription
InvalidRule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public InvalidRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InvalidRule.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InvalidRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InvalidRule.Builder
Overrides

setRule(Rule value)

public InvalidRule.Builder setRule(Rule value)

Triggered rule.

.google.cloud.contentwarehouse.v1.Rule rule = 1;

Parameter
NameDescription
valueRule
Returns
TypeDescription
InvalidRule.Builder

setRule(Rule.Builder builderForValue)

public InvalidRule.Builder setRule(Rule.Builder builderForValue)

Triggered rule.

.google.cloud.contentwarehouse.v1.Rule rule = 1;

Parameter
NameDescription
builderForValueRule.Builder
Returns
TypeDescription
InvalidRule.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final InvalidRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InvalidRule.Builder
Overrides