public final class KeyValuePairHint extends GeneratedMessageV3 implements KeyValuePairHintOrBuilder
User-provided hint for key value pair.
Protobuf type google.cloud.documentai.v1beta2.KeyValuePairHint
Fields
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER
Field Value
VALUE_TYPES_FIELD_NUMBER
public static final int VALUE_TYPES_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstance()
public static KeyValuePairHint getDefaultInstance()
Returns
getDefaultInstanceForType()
public KeyValuePairHint getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getKey()
The key text for the hint.
string key = 1;
Returns
getKeyBytes()
public ByteString getKeyBytes()
The key text for the hint.
string key = 1;
Returns
getParserForType()
public Parser<KeyValuePairHint> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getValueTypes(int index)
public String getValueTypes(int index)
Type of the value. This is case-insensitive, and could be one of:
ADDRESS, LOCATION, ORGANIZATION, PERSON, PHONE_NUMBER,
ID, NUMBER, EMAIL, PRICE, TERMS, DATE, NAME. Types not in this list will
be ignored.
repeated string value_types = 2;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The valueTypes at the given index.
|
getValueTypesBytes(int index)
public ByteString getValueTypesBytes(int index)
Type of the value. This is case-insensitive, and could be one of:
ADDRESS, LOCATION, ORGANIZATION, PERSON, PHONE_NUMBER,
ID, NUMBER, EMAIL, PRICE, TERMS, DATE, NAME. Types not in this list will
be ignored.
repeated string value_types = 2;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the valueTypes at the given index.
|
getValueTypesCount()
public int getValueTypesCount()
Type of the value. This is case-insensitive, and could be one of:
ADDRESS, LOCATION, ORGANIZATION, PERSON, PHONE_NUMBER,
ID, NUMBER, EMAIL, PRICE, TERMS, DATE, NAME. Types not in this list will
be ignored.
repeated string value_types = 2;
Returns
Type | Description |
int | The count of valueTypes.
|
getValueTypesList()
public ProtocolStringList getValueTypesList()
Type of the value. This is case-insensitive, and could be one of:
ADDRESS, LOCATION, ORGANIZATION, PERSON, PHONE_NUMBER,
ID, NUMBER, EMAIL, PRICE, TERMS, DATE, NAME. Types not in this list will
be ignored.
repeated string value_types = 2;
Returns
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static KeyValuePairHint.Builder newBuilder()
Returns
newBuilder(KeyValuePairHint prototype)
public static KeyValuePairHint.Builder newBuilder(KeyValuePairHint prototype)
Parameter
Returns
newBuilderForType()
public KeyValuePairHint.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected KeyValuePairHint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static KeyValuePairHint parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static KeyValuePairHint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static KeyValuePairHint parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static KeyValuePairHint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static KeyValuePairHint parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static KeyValuePairHint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static KeyValuePairHint parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static KeyValuePairHint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static KeyValuePairHint parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static KeyValuePairHint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static KeyValuePairHint parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static KeyValuePairHint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<KeyValuePairHint> parser()
Returns
toBuilder()
public KeyValuePairHint.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions