Class CloudAIDocumentOption.Builder (0.28.0)

public static final class CloudAIDocumentOption.Builder extends GeneratedMessageV3.Builder<CloudAIDocumentOption.Builder> implements CloudAIDocumentOptionOrBuilder

Request Option for processing Cloud AI Document in CW Document.

Protobuf type google.cloud.contentwarehouse.v1.CloudAIDocumentOption

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloudAIDocumentOption build()
Returns
TypeDescription
CloudAIDocumentOption

buildPartial()

public CloudAIDocumentOption buildPartial()
Returns
TypeDescription
CloudAIDocumentOption

clear()

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

clearCustomizedEntitiesPropertiesConversions()

public CloudAIDocumentOption.Builder clearCustomizedEntitiesPropertiesConversions()
Returns
TypeDescription
CloudAIDocumentOption.Builder

clearEnableEntitiesConversions()

public CloudAIDocumentOption.Builder clearEnableEntitiesConversions()

Whether to convert all the entities to properties.

bool enable_entities_conversions = 1;

Returns
TypeDescription
CloudAIDocumentOption.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

containsCustomizedEntitiesPropertiesConversions(String key)

public boolean containsCustomizedEntitiesPropertiesConversions(String key)

If set, only selected entities will be converted to properties.

map<string, string> customized_entities_properties_conversions = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCustomizedEntitiesPropertiesConversions() (deprecated)

public Map<String,String> getCustomizedEntitiesPropertiesConversions()
Returns
TypeDescription
Map<String,String>

getCustomizedEntitiesPropertiesConversionsCount()

public int getCustomizedEntitiesPropertiesConversionsCount()

If set, only selected entities will be converted to properties.

map<string, string> customized_entities_properties_conversions = 2;

Returns
TypeDescription
int

getCustomizedEntitiesPropertiesConversionsMap()

public Map<String,String> getCustomizedEntitiesPropertiesConversionsMap()

If set, only selected entities will be converted to properties.

map<string, string> customized_entities_properties_conversions = 2;

Returns
TypeDescription
Map<String,String>

getCustomizedEntitiesPropertiesConversionsOrDefault(String key, String defaultValue)

public String getCustomizedEntitiesPropertiesConversionsOrDefault(String key, String defaultValue)

If set, only selected entities will be converted to properties.

map<string, string> customized_entities_properties_conversions = 2;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getCustomizedEntitiesPropertiesConversionsOrThrow(String key)

public String getCustomizedEntitiesPropertiesConversionsOrThrow(String key)

If set, only selected entities will be converted to properties.

map<string, string> customized_entities_properties_conversions = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getDefaultInstanceForType()

public CloudAIDocumentOption getDefaultInstanceForType()
Returns
TypeDescription
CloudAIDocumentOption

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnableEntitiesConversions()

public boolean getEnableEntitiesConversions()

Whether to convert all the entities to properties.

bool enable_entities_conversions = 1;

Returns
TypeDescription
boolean

The enableEntitiesConversions.

getMutableCustomizedEntitiesPropertiesConversions() (deprecated)

public Map<String,String> getMutableCustomizedEntitiesPropertiesConversions()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CloudAIDocumentOption other)

public CloudAIDocumentOption.Builder mergeFrom(CloudAIDocumentOption other)
Parameter
NameDescription
otherCloudAIDocumentOption
Returns
TypeDescription
CloudAIDocumentOption.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllCustomizedEntitiesPropertiesConversions(Map<String,String> values)

public CloudAIDocumentOption.Builder putAllCustomizedEntitiesPropertiesConversions(Map<String,String> values)

If set, only selected entities will be converted to properties.

map<string, string> customized_entities_properties_conversions = 2;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
CloudAIDocumentOption.Builder

putCustomizedEntitiesPropertiesConversions(String key, String value)

public CloudAIDocumentOption.Builder putCustomizedEntitiesPropertiesConversions(String key, String value)

If set, only selected entities will be converted to properties.

map<string, string> customized_entities_properties_conversions = 2;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
CloudAIDocumentOption.Builder

removeCustomizedEntitiesPropertiesConversions(String key)

public CloudAIDocumentOption.Builder removeCustomizedEntitiesPropertiesConversions(String key)

If set, only selected entities will be converted to properties.

map<string, string> customized_entities_properties_conversions = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
CloudAIDocumentOption.Builder

setEnableEntitiesConversions(boolean value)

public CloudAIDocumentOption.Builder setEnableEntitiesConversions(boolean value)

Whether to convert all the entities to properties.

bool enable_entities_conversions = 1;

Parameter
NameDescription
valueboolean

The enableEntitiesConversions to set.

Returns
TypeDescription
CloudAIDocumentOption.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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