Class TagParsingConfig.EntityParsingConfig (0.10.0)

public static final class TagParsingConfig.EntityParsingConfig extends GeneratedMessageV3 implements TagParsingConfig.EntityParsingConfigOrBuilder

Configuration for parsing a tag entity class.

Protobuf type google.cloud.visionai.v1.TagParsingConfig.EntityParsingConfig

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > TagParsingConfig.EntityParsingConfig

Static Fields

ENTITY_CLASS_FIELD_NUMBER

public static final int ENTITY_CLASS_FIELD_NUMBER
Field Value
Type Description
int

ENTITY_MATCHING_STRATEGY_FIELD_NUMBER

public static final int ENTITY_MATCHING_STRATEGY_FIELD_NUMBER
Field Value
Type Description
int

REGEX_FIELD_NUMBER

public static final int REGEX_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TagParsingConfig.EntityParsingConfig getDefaultInstance()
Returns
Type Description
TagParsingConfig.EntityParsingConfig

getDescriptor()

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

newBuilder()

public static TagParsingConfig.EntityParsingConfig.Builder newBuilder()
Returns
Type Description
TagParsingConfig.EntityParsingConfig.Builder

newBuilder(TagParsingConfig.EntityParsingConfig prototype)

public static TagParsingConfig.EntityParsingConfig.Builder newBuilder(TagParsingConfig.EntityParsingConfig prototype)
Parameter
Name Description
prototype TagParsingConfig.EntityParsingConfig
Returns
Type Description
TagParsingConfig.EntityParsingConfig.Builder

parseDelimitedFrom(InputStream input)

public static TagParsingConfig.EntityParsingConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TagParsingConfig.EntityParsingConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TagParsingConfig.EntityParsingConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TagParsingConfig.EntityParsingConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TagParsingConfig.EntityParsingConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TagParsingConfig.EntityParsingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TagParsingConfig.EntityParsingConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TagParsingConfig.EntityParsingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TagParsingConfig.EntityParsingConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TagParsingConfig.EntityParsingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TagParsingConfig.EntityParsingConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TagParsingConfig.EntityParsingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TagParsingConfig.EntityParsingConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TagParsingConfig.EntityParsingConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TagParsingConfig.EntityParsingConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TagParsingConfig.EntityParsingConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TagParsingConfig.EntityParsingConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TagParsingConfig.EntityParsingConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TagParsingConfig.EntityParsingConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TagParsingConfig.EntityParsingConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TagParsingConfig.EntityParsingConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TagParsingConfig.EntityParsingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TagParsingConfig.EntityParsingConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TagParsingConfig.EntityParsingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TagParsingConfig.EntityParsingConfig> parser()
Returns
Type Description
Parser<EntityParsingConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public TagParsingConfig.EntityParsingConfig getDefaultInstanceForType()
Returns
Type Description
TagParsingConfig.EntityParsingConfig

getEntityClass()

public String getEntityClass()

Required. The tag entity class name. This should match the class name produced by the tag entity detection model.

string entity_class = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The entityClass.

getEntityClassBytes()

public ByteString getEntityClassBytes()

Required. The tag entity class name. This should match the class name produced by the tag entity detection model.

string entity_class = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for entityClass.

getEntityMatchingStrategy()

public TagParsingConfig.EntityParsingConfig.EntityMatchingStrategy getEntityMatchingStrategy()

Optional. Entity matching strategy.

.google.cloud.visionai.v1.TagParsingConfig.EntityParsingConfig.EntityMatchingStrategy entity_matching_strategy = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TagParsingConfig.EntityParsingConfig.EntityMatchingStrategy

The entityMatchingStrategy.

getEntityMatchingStrategyValue()

public int getEntityMatchingStrategyValue()

Optional. Entity matching strategy.

.google.cloud.visionai.v1.TagParsingConfig.EntityParsingConfig.EntityMatchingStrategy entity_matching_strategy = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for entityMatchingStrategy.

getParserForType()

public Parser<TagParsingConfig.EntityParsingConfig> getParserForType()
Returns
Type Description
Parser<EntityParsingConfig>
Overrides

getRegex()

public String getRegex()

Optional. An regular expression hint.

string regex = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The regex.

getRegexBytes()

public ByteString getRegexBytes()

Optional. An regular expression hint.

string regex = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for regex.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TagParsingConfig.EntityParsingConfig.Builder newBuilderForType()
Returns
Type Description
TagParsingConfig.EntityParsingConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TagParsingConfig.EntityParsingConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TagParsingConfig.EntityParsingConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public TagParsingConfig.EntityParsingConfig.Builder toBuilder()
Returns
Type Description
TagParsingConfig.EntityParsingConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException