Class InvalidRule (0.19.0)

public final class InvalidRule extends GeneratedMessageV3 implements InvalidRuleOrBuilder

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

Protobuf type google.cloud.contentwarehouse.v1.InvalidRule

Static Fields

ERROR_FIELD_NUMBER

public static final int ERROR_FIELD_NUMBER
Field Value
TypeDescription
int

RULE_FIELD_NUMBER

public static final int RULE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static InvalidRule getDefaultInstance()
Returns
TypeDescription
InvalidRule

getDescriptor()

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

newBuilder()

public static InvalidRule.Builder newBuilder()
Returns
TypeDescription
InvalidRule.Builder

newBuilder(InvalidRule prototype)

public static InvalidRule.Builder newBuilder(InvalidRule prototype)
Parameter
NameDescription
prototypeInvalidRule
Returns
TypeDescription
InvalidRule.Builder

parseDelimitedFrom(InputStream input)

public static InvalidRule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
InvalidRule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InvalidRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InvalidRule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static InvalidRule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
InvalidRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InvalidRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InvalidRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InvalidRule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
InvalidRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InvalidRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InvalidRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InvalidRule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
InvalidRule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InvalidRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InvalidRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static InvalidRule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
InvalidRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InvalidRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InvalidRule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static InvalidRule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
InvalidRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InvalidRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InvalidRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<InvalidRule> parser()
Returns
TypeDescription
Parser<InvalidRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public InvalidRule getDefaultInstanceForType()
Returns
TypeDescription
InvalidRule

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.

getParserForType()

public Parser<InvalidRule> getParserForType()
Returns
TypeDescription
Parser<InvalidRule>
Overrides

getRule()

public Rule getRule()

Triggered rule.

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

Returns
TypeDescription
Rule

The rule.

getRuleOrBuilder()

public RuleOrBuilder getRuleOrBuilder()

Triggered rule.

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

Returns
TypeDescription
RuleOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasRule()

public boolean hasRule()

Triggered rule.

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

Returns
TypeDescription
boolean

Whether the rule field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public InvalidRule.Builder newBuilderForType()
Returns
TypeDescription
InvalidRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected InvalidRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
InvalidRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public InvalidRule.Builder toBuilder()
Returns
TypeDescription
InvalidRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException