Class ProductRecognizerConfig (0.10.0)

public final class ProductRecognizerConfig extends GeneratedMessageV3 implements ProductRecognizerConfigOrBuilder

Message describing ProductRecognizerConfig.

Protobuf type google.cloud.visionai.v1.ProductRecognizerConfig

Static Fields

RECOGNITION_CONFIDENCE_THRESHOLD_FIELD_NUMBER

public static final int RECOGNITION_CONFIDENCE_THRESHOLD_FIELD_NUMBER
Field Value
Type Description
int

RETAIL_ENDPOINT_FIELD_NUMBER

public static final int RETAIL_ENDPOINT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProductRecognizerConfig getDefaultInstance()
Returns
Type Description
ProductRecognizerConfig

getDescriptor()

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

newBuilder()

public static ProductRecognizerConfig.Builder newBuilder()
Returns
Type Description
ProductRecognizerConfig.Builder

newBuilder(ProductRecognizerConfig prototype)

public static ProductRecognizerConfig.Builder newBuilder(ProductRecognizerConfig prototype)
Parameter
Name Description
prototype ProductRecognizerConfig
Returns
Type Description
ProductRecognizerConfig.Builder

parseDelimitedFrom(InputStream input)

public static ProductRecognizerConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProductRecognizerConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductRecognizerConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductRecognizerConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ProductRecognizerConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ProductRecognizerConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ProductRecognizerConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductRecognizerConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ProductRecognizerConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ProductRecognizerConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ProductRecognizerConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductRecognizerConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ProductRecognizerConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ProductRecognizerConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductRecognizerConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductRecognizerConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ProductRecognizerConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProductRecognizerConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductRecognizerConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductRecognizerConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ProductRecognizerConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ProductRecognizerConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ProductRecognizerConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductRecognizerConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ProductRecognizerConfig> parser()
Returns
Type Description
Parser<ProductRecognizerConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ProductRecognizerConfig getDefaultInstanceForType()
Returns
Type Description
ProductRecognizerConfig

getParserForType()

public Parser<ProductRecognizerConfig> getParserForType()
Returns
Type Description
Parser<ProductRecognizerConfig>
Overrides

getRecognitionConfidenceThreshold()

public float getRecognitionConfidenceThreshold()

Confidence threshold to filter detection results. If not set, a system default value will be used.

float recognition_confidence_threshold = 2;

Returns
Type Description
float

The recognitionConfidenceThreshold.

getRetailEndpoint()

public String getRetailEndpoint()

The resource name of retail endpoint to use.

string retail_endpoint = 1;

Returns
Type Description
String

The retailEndpoint.

getRetailEndpointBytes()

public ByteString getRetailEndpointBytes()

The resource name of retail endpoint to use.

string retail_endpoint = 1;

Returns
Type Description
ByteString

The bytes for retailEndpoint.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ProductRecognizerConfig.Builder newBuilderForType()
Returns
Type Description
ProductRecognizerConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ProductRecognizerConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ProductRecognizerConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ProductRecognizerConfig.Builder toBuilder()
Returns
Type Description
ProductRecognizerConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException