public static final class TagParsingConfig.EntityParsingConfig.Builder extends GeneratedMessageV3.Builder<TagParsingConfig.EntityParsingConfig.Builder> implements TagParsingConfig.EntityParsingConfigOrBuilder
Configuration for parsing a tag entity class.
Protobuf type google.cloud.visionai.v1.TagParsingConfig.EntityParsingConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TagParsingConfig.EntityParsingConfig.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TagParsingConfig.EntityParsingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |
build()
public TagParsingConfig.EntityParsingConfig build()
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig |
buildPartial()
public TagParsingConfig.EntityParsingConfig buildPartial()
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig |
clear()
public TagParsingConfig.EntityParsingConfig.Builder clear()
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |
clearEntityClass()
public TagParsingConfig.EntityParsingConfig.Builder clearEntityClass()
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 |
TagParsingConfig.EntityParsingConfig.Builder |
This builder for chaining. |
clearEntityMatchingStrategy()
public TagParsingConfig.EntityParsingConfig.Builder clearEntityMatchingStrategy()
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.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public TagParsingConfig.EntityParsingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public TagParsingConfig.EntityParsingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |
clearRegex()
public TagParsingConfig.EntityParsingConfig.Builder clearRegex()
Optional. An regular expression hint.
string regex = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |
This builder for chaining. |
clone()
public TagParsingConfig.EntityParsingConfig.Builder clone()
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |
getDefaultInstanceForType()
public TagParsingConfig.EntityParsingConfig getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(TagParsingConfig.EntityParsingConfig other)
public TagParsingConfig.EntityParsingConfig.Builder mergeFrom(TagParsingConfig.EntityParsingConfig other)
Parameter | |
---|---|
Name | Description |
other |
TagParsingConfig.EntityParsingConfig |
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TagParsingConfig.EntityParsingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public TagParsingConfig.EntityParsingConfig.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TagParsingConfig.EntityParsingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |
setEntityClass(String value)
public TagParsingConfig.EntityParsingConfig.Builder setEntityClass(String value)
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];
Parameter | |
---|---|
Name | Description |
value |
String The entityClass to set. |
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |
This builder for chaining. |
setEntityClassBytes(ByteString value)
public TagParsingConfig.EntityParsingConfig.Builder setEntityClassBytes(ByteString value)
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];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for entityClass to set. |
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |
This builder for chaining. |
setEntityMatchingStrategy(TagParsingConfig.EntityParsingConfig.EntityMatchingStrategy value)
public TagParsingConfig.EntityParsingConfig.Builder setEntityMatchingStrategy(TagParsingConfig.EntityParsingConfig.EntityMatchingStrategy value)
Optional. Entity matching strategy.
.google.cloud.visionai.v1.TagParsingConfig.EntityParsingConfig.EntityMatchingStrategy entity_matching_strategy = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
TagParsingConfig.EntityParsingConfig.EntityMatchingStrategy The entityMatchingStrategy to set. |
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |
This builder for chaining. |
setEntityMatchingStrategyValue(int value)
public TagParsingConfig.EntityParsingConfig.Builder setEntityMatchingStrategyValue(int value)
Optional. Entity matching strategy.
.google.cloud.visionai.v1.TagParsingConfig.EntityParsingConfig.EntityMatchingStrategy entity_matching_strategy = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for entityMatchingStrategy to set. |
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public TagParsingConfig.EntityParsingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |
setRegex(String value)
public TagParsingConfig.EntityParsingConfig.Builder setRegex(String value)
Optional. An regular expression hint.
string regex = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The regex to set. |
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |
This builder for chaining. |
setRegexBytes(ByteString value)
public TagParsingConfig.EntityParsingConfig.Builder setRegexBytes(ByteString value)
Optional. An regular expression hint.
string regex = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for regex to set. |
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TagParsingConfig.EntityParsingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final TagParsingConfig.EntityParsingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TagParsingConfig.EntityParsingConfig.Builder |