Class DataSchemaDetails.Builder (0.1.0)

public static final class DataSchemaDetails.Builder extends GeneratedMessageV3.Builder<DataSchemaDetails.Builder> implements DataSchemaDetailsOrBuilder

Data schema details indicates the data type and the data struct corresponding to the key of user specified annotation.

Protobuf type google.cloud.visionai.v1.DataSchemaDetails

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DataSchemaDetails build()
Returns
Type Description
DataSchemaDetails

buildPartial()

public DataSchemaDetails buildPartial()
Returns
Type Description
DataSchemaDetails

clear()

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

clearCustomizedStructConfig()

public DataSchemaDetails.Builder clearCustomizedStructConfig()

Config for CustomizedStruct data type.

.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9;

Returns
Type Description
DataSchemaDetails.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGranularity()

public DataSchemaDetails.Builder clearGranularity()

The granularity associated with this DataSchema.

optional .google.cloud.visionai.v1.DataSchemaDetails.Granularity granularity = 5;

Returns
Type Description
DataSchemaDetails.Builder

This builder for chaining.

clearListConfig()

public DataSchemaDetails.Builder clearListConfig()

Config for List data type.

.google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8;

Returns
Type Description
DataSchemaDetails.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProtoAnyConfig()

public DataSchemaDetails.Builder clearProtoAnyConfig()

Config for protobuf any type.

.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6;

Returns
Type Description
DataSchemaDetails.Builder

clearSearchStrategy()

public DataSchemaDetails.Builder clearSearchStrategy()

The search strategy to be applied on the key above.

.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7;

Returns
Type Description
DataSchemaDetails.Builder

clearType()

public DataSchemaDetails.Builder clearType()

Type of the annotation.

optional .google.cloud.visionai.v1.DataSchemaDetails.DataType type = 1;

Returns
Type Description
DataSchemaDetails.Builder

This builder for chaining.

clone()

public DataSchemaDetails.Builder clone()
Returns
Type Description
DataSchemaDetails.Builder
Overrides

getCustomizedStructConfig()

public DataSchemaDetails.CustomizedStructConfig getCustomizedStructConfig()

Config for CustomizedStruct data type.

.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9;

Returns
Type Description
DataSchemaDetails.CustomizedStructConfig

The customizedStructConfig.

getCustomizedStructConfigBuilder()

public DataSchemaDetails.CustomizedStructConfig.Builder getCustomizedStructConfigBuilder()

Config for CustomizedStruct data type.

.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9;

Returns
Type Description
DataSchemaDetails.CustomizedStructConfig.Builder

getCustomizedStructConfigOrBuilder()

public DataSchemaDetails.CustomizedStructConfigOrBuilder getCustomizedStructConfigOrBuilder()

Config for CustomizedStruct data type.

.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9;

Returns
Type Description
DataSchemaDetails.CustomizedStructConfigOrBuilder

getDefaultInstanceForType()

public DataSchemaDetails getDefaultInstanceForType()
Returns
Type Description
DataSchemaDetails

getDescriptorForType()

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

getGranularity()

public DataSchemaDetails.Granularity getGranularity()

The granularity associated with this DataSchema.

optional .google.cloud.visionai.v1.DataSchemaDetails.Granularity granularity = 5;

Returns
Type Description
DataSchemaDetails.Granularity

The granularity.

getGranularityValue()

public int getGranularityValue()

The granularity associated with this DataSchema.

optional .google.cloud.visionai.v1.DataSchemaDetails.Granularity granularity = 5;

Returns
Type Description
int

The enum numeric value on the wire for granularity.

getListConfig()

public DataSchemaDetails.ListConfig getListConfig()

Config for List data type.

.google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8;

Returns
Type Description
DataSchemaDetails.ListConfig

The listConfig.

getListConfigBuilder()

public DataSchemaDetails.ListConfig.Builder getListConfigBuilder()

Config for List data type.

.google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8;

Returns
Type Description
DataSchemaDetails.ListConfig.Builder

getListConfigOrBuilder()

public DataSchemaDetails.ListConfigOrBuilder getListConfigOrBuilder()

Config for List data type.

.google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8;

Returns
Type Description
DataSchemaDetails.ListConfigOrBuilder

getProtoAnyConfig()

public DataSchemaDetails.ProtoAnyConfig getProtoAnyConfig()

Config for protobuf any type.

.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6;

Returns
Type Description
DataSchemaDetails.ProtoAnyConfig

The protoAnyConfig.

getProtoAnyConfigBuilder()

public DataSchemaDetails.ProtoAnyConfig.Builder getProtoAnyConfigBuilder()

Config for protobuf any type.

.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6;

Returns
Type Description
DataSchemaDetails.ProtoAnyConfig.Builder

getProtoAnyConfigOrBuilder()

public DataSchemaDetails.ProtoAnyConfigOrBuilder getProtoAnyConfigOrBuilder()

Config for protobuf any type.

.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6;

Returns
Type Description
DataSchemaDetails.ProtoAnyConfigOrBuilder

getSearchStrategy()

public DataSchemaDetails.SearchStrategy getSearchStrategy()

The search strategy to be applied on the key above.

.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7;

Returns
Type Description
DataSchemaDetails.SearchStrategy

The searchStrategy.

getSearchStrategyBuilder()

public DataSchemaDetails.SearchStrategy.Builder getSearchStrategyBuilder()

The search strategy to be applied on the key above.

.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7;

Returns
Type Description
DataSchemaDetails.SearchStrategy.Builder

getSearchStrategyOrBuilder()

public DataSchemaDetails.SearchStrategyOrBuilder getSearchStrategyOrBuilder()

The search strategy to be applied on the key above.

.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7;

Returns
Type Description
DataSchemaDetails.SearchStrategyOrBuilder

getType()

public DataSchemaDetails.DataType getType()

Type of the annotation.

optional .google.cloud.visionai.v1.DataSchemaDetails.DataType type = 1;

Returns
Type Description
DataSchemaDetails.DataType

The type.

getTypeValue()

public int getTypeValue()

Type of the annotation.

optional .google.cloud.visionai.v1.DataSchemaDetails.DataType type = 1;

Returns
Type Description
int

The enum numeric value on the wire for type.

hasCustomizedStructConfig()

public boolean hasCustomizedStructConfig()

Config for CustomizedStruct data type.

.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9;

Returns
Type Description
boolean

Whether the customizedStructConfig field is set.

hasGranularity()

public boolean hasGranularity()

The granularity associated with this DataSchema.

optional .google.cloud.visionai.v1.DataSchemaDetails.Granularity granularity = 5;

Returns
Type Description
boolean

Whether the granularity field is set.

hasListConfig()

public boolean hasListConfig()

Config for List data type.

.google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8;

Returns
Type Description
boolean

Whether the listConfig field is set.

hasProtoAnyConfig()

public boolean hasProtoAnyConfig()

Config for protobuf any type.

.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6;

Returns
Type Description
boolean

Whether the protoAnyConfig field is set.

hasSearchStrategy()

public boolean hasSearchStrategy()

The search strategy to be applied on the key above.

.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7;

Returns
Type Description
boolean

Whether the searchStrategy field is set.

hasType()

public boolean hasType()

Type of the annotation.

optional .google.cloud.visionai.v1.DataSchemaDetails.DataType type = 1;

Returns
Type Description
boolean

Whether the type field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCustomizedStructConfig(DataSchemaDetails.CustomizedStructConfig value)

public DataSchemaDetails.Builder mergeCustomizedStructConfig(DataSchemaDetails.CustomizedStructConfig value)

Config for CustomizedStruct data type.

.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9;

Parameter
Name Description
value DataSchemaDetails.CustomizedStructConfig
Returns
Type Description
DataSchemaDetails.Builder

mergeFrom(DataSchemaDetails other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeListConfig(DataSchemaDetails.ListConfig value)

public DataSchemaDetails.Builder mergeListConfig(DataSchemaDetails.ListConfig value)

Config for List data type.

.google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8;

Parameter
Name Description
value DataSchemaDetails.ListConfig
Returns
Type Description
DataSchemaDetails.Builder

mergeProtoAnyConfig(DataSchemaDetails.ProtoAnyConfig value)

public DataSchemaDetails.Builder mergeProtoAnyConfig(DataSchemaDetails.ProtoAnyConfig value)

Config for protobuf any type.

.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6;

Parameter
Name Description
value DataSchemaDetails.ProtoAnyConfig
Returns
Type Description
DataSchemaDetails.Builder

mergeSearchStrategy(DataSchemaDetails.SearchStrategy value)

public DataSchemaDetails.Builder mergeSearchStrategy(DataSchemaDetails.SearchStrategy value)

The search strategy to be applied on the key above.

.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7;

Parameter
Name Description
value DataSchemaDetails.SearchStrategy
Returns
Type Description
DataSchemaDetails.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataSchemaDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataSchemaDetails.Builder
Overrides

setCustomizedStructConfig(DataSchemaDetails.CustomizedStructConfig value)

public DataSchemaDetails.Builder setCustomizedStructConfig(DataSchemaDetails.CustomizedStructConfig value)

Config for CustomizedStruct data type.

.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9;

Parameter
Name Description
value DataSchemaDetails.CustomizedStructConfig
Returns
Type Description
DataSchemaDetails.Builder

setCustomizedStructConfig(DataSchemaDetails.CustomizedStructConfig.Builder builderForValue)

public DataSchemaDetails.Builder setCustomizedStructConfig(DataSchemaDetails.CustomizedStructConfig.Builder builderForValue)

Config for CustomizedStruct data type.

.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9;

Parameter
Name Description
builderForValue DataSchemaDetails.CustomizedStructConfig.Builder
Returns
Type Description
DataSchemaDetails.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGranularity(DataSchemaDetails.Granularity value)

public DataSchemaDetails.Builder setGranularity(DataSchemaDetails.Granularity value)

The granularity associated with this DataSchema.

optional .google.cloud.visionai.v1.DataSchemaDetails.Granularity granularity = 5;

Parameter
Name Description
value DataSchemaDetails.Granularity

The granularity to set.

Returns
Type Description
DataSchemaDetails.Builder

This builder for chaining.

setGranularityValue(int value)

public DataSchemaDetails.Builder setGranularityValue(int value)

The granularity associated with this DataSchema.

optional .google.cloud.visionai.v1.DataSchemaDetails.Granularity granularity = 5;

Parameter
Name Description
value int

The enum numeric value on the wire for granularity to set.

Returns
Type Description
DataSchemaDetails.Builder

This builder for chaining.

setListConfig(DataSchemaDetails.ListConfig value)

public DataSchemaDetails.Builder setListConfig(DataSchemaDetails.ListConfig value)

Config for List data type.

.google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8;

Parameter
Name Description
value DataSchemaDetails.ListConfig
Returns
Type Description
DataSchemaDetails.Builder

setListConfig(DataSchemaDetails.ListConfig.Builder builderForValue)

public DataSchemaDetails.Builder setListConfig(DataSchemaDetails.ListConfig.Builder builderForValue)

Config for List data type.

.google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8;

Parameter
Name Description
builderForValue DataSchemaDetails.ListConfig.Builder
Returns
Type Description
DataSchemaDetails.Builder

setProtoAnyConfig(DataSchemaDetails.ProtoAnyConfig value)

public DataSchemaDetails.Builder setProtoAnyConfig(DataSchemaDetails.ProtoAnyConfig value)

Config for protobuf any type.

.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6;

Parameter
Name Description
value DataSchemaDetails.ProtoAnyConfig
Returns
Type Description
DataSchemaDetails.Builder

setProtoAnyConfig(DataSchemaDetails.ProtoAnyConfig.Builder builderForValue)

public DataSchemaDetails.Builder setProtoAnyConfig(DataSchemaDetails.ProtoAnyConfig.Builder builderForValue)

Config for protobuf any type.

.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6;

Parameter
Name Description
builderForValue DataSchemaDetails.ProtoAnyConfig.Builder
Returns
Type Description
DataSchemaDetails.Builder

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

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

setSearchStrategy(DataSchemaDetails.SearchStrategy value)

public DataSchemaDetails.Builder setSearchStrategy(DataSchemaDetails.SearchStrategy value)

The search strategy to be applied on the key above.

.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7;

Parameter
Name Description
value DataSchemaDetails.SearchStrategy
Returns
Type Description
DataSchemaDetails.Builder

setSearchStrategy(DataSchemaDetails.SearchStrategy.Builder builderForValue)

public DataSchemaDetails.Builder setSearchStrategy(DataSchemaDetails.SearchStrategy.Builder builderForValue)

The search strategy to be applied on the key above.

.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7;

Parameter
Name Description
builderForValue DataSchemaDetails.SearchStrategy.Builder
Returns
Type Description
DataSchemaDetails.Builder

setType(DataSchemaDetails.DataType value)

public DataSchemaDetails.Builder setType(DataSchemaDetails.DataType value)

Type of the annotation.

optional .google.cloud.visionai.v1.DataSchemaDetails.DataType type = 1;

Parameter
Name Description
value DataSchemaDetails.DataType

The type to set.

Returns
Type Description
DataSchemaDetails.Builder

This builder for chaining.

setTypeValue(int value)

public DataSchemaDetails.Builder setTypeValue(int value)

Type of the annotation.

optional .google.cloud.visionai.v1.DataSchemaDetails.DataType type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
DataSchemaDetails.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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