Class CloudAIDocumentOption.Builder (0.49.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CloudAIDocumentOption.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CloudAIDocumentOption.Builder
Overrides

build()

public CloudAIDocumentOption build()
Returns
Type Description
CloudAIDocumentOption

buildPartial()

public CloudAIDocumentOption buildPartial()
Returns
Type Description
CloudAIDocumentOption

clear()

public CloudAIDocumentOption.Builder clear()
Returns
Type Description
CloudAIDocumentOption.Builder
Overrides

clearCustomizedEntitiesPropertiesConversions()

public CloudAIDocumentOption.Builder clearCustomizedEntitiesPropertiesConversions()
Returns
Type Description
CloudAIDocumentOption.Builder

clearEnableEntitiesConversions()

public CloudAIDocumentOption.Builder clearEnableEntitiesConversions()

Whether to convert all the entities to properties.

bool enable_entities_conversions = 1;

Returns
Type Description
CloudAIDocumentOption.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CloudAIDocumentOption.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CloudAIDocumentOption.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CloudAIDocumentOption.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CloudAIDocumentOption.Builder
Overrides

clone()

public CloudAIDocumentOption.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getCustomizedEntitiesPropertiesConversions() (deprecated)

public Map<String,String> getCustomizedEntitiesPropertiesConversions()
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getDefaultInstanceForType()

public CloudAIDocumentOption getDefaultInstanceForType()
Returns
Type Description
CloudAIDocumentOption

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnableEntitiesConversions()

public boolean getEnableEntitiesConversions()

Whether to convert all the entities to properties.

bool enable_entities_conversions = 1;

Returns
Type Description
boolean

The enableEntitiesConversions.

getMutableCustomizedEntitiesPropertiesConversions() (deprecated)

public Map<String,String> getMutableCustomizedEntitiesPropertiesConversions()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CloudAIDocumentOption other)

public CloudAIDocumentOption.Builder mergeFrom(CloudAIDocumentOption other)
Parameter
Name Description
other CloudAIDocumentOption
Returns
Type Description
CloudAIDocumentOption.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CloudAIDocumentOption.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudAIDocumentOption.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CloudAIDocumentOption.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CloudAIDocumentOption.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudAIDocumentOption.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Name Description
value boolean

The enableEntitiesConversions to set.

Returns
Type Description
CloudAIDocumentOption.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CloudAIDocumentOption.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CloudAIDocumentOption.Builder
Overrides

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

public CloudAIDocumentOption.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CloudAIDocumentOption.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CloudAIDocumentOption.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CloudAIDocumentOption.Builder
Overrides