public static final class ProductRecognizerConfig.Builder extends GeneratedMessage.Builder<ProductRecognizerConfig.Builder> implements ProductRecognizerConfigOrBuilderMessage describing ProductRecognizerConfig.
Protobuf type google.cloud.visionai.v1.ProductRecognizerConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ProductRecognizerConfig.BuilderImplements
ProductRecognizerConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ProductRecognizerConfig build()| Returns | |
|---|---|
| Type | Description |
ProductRecognizerConfig |
|
buildPartial()
public ProductRecognizerConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
ProductRecognizerConfig |
|
clear()
public ProductRecognizerConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
ProductRecognizerConfig.Builder |
|
clearRecognitionConfidenceThreshold()
public ProductRecognizerConfig.Builder clearRecognitionConfidenceThreshold()Confidence threshold to filter detection results. If not set, a system default value will be used.
float recognition_confidence_threshold = 2;
| Returns | |
|---|---|
| Type | Description |
ProductRecognizerConfig.Builder |
This builder for chaining. |
clearRetailEndpoint()
public ProductRecognizerConfig.Builder clearRetailEndpoint()The resource name of retail endpoint to use.
string retail_endpoint = 1;
| Returns | |
|---|---|
| Type | Description |
ProductRecognizerConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ProductRecognizerConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ProductRecognizerConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ProductRecognizerConfig other)
public ProductRecognizerConfig.Builder mergeFrom(ProductRecognizerConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
ProductRecognizerConfig |
| Returns | |
|---|---|
| Type | Description |
ProductRecognizerConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ProductRecognizerConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductRecognizerConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ProductRecognizerConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ProductRecognizerConfig.Builder |
|
setRecognitionConfidenceThreshold(float value)
public ProductRecognizerConfig.Builder setRecognitionConfidenceThreshold(float value)Confidence threshold to filter detection results. If not set, a system default value will be used.
float recognition_confidence_threshold = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
floatThe recognitionConfidenceThreshold to set. |
| Returns | |
|---|---|
| Type | Description |
ProductRecognizerConfig.Builder |
This builder for chaining. |
setRetailEndpoint(String value)
public ProductRecognizerConfig.Builder setRetailEndpoint(String value)The resource name of retail endpoint to use.
string retail_endpoint = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe retailEndpoint to set. |
| Returns | |
|---|---|
| Type | Description |
ProductRecognizerConfig.Builder |
This builder for chaining. |
setRetailEndpointBytes(ByteString value)
public ProductRecognizerConfig.Builder setRetailEndpointBytes(ByteString value)The resource name of retail endpoint to use.
string retail_endpoint = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for retailEndpoint to set. |
| Returns | |
|---|---|
| Type | Description |
ProductRecognizerConfig.Builder |
This builder for chaining. |