- 3.51.0 (latest)
- 3.50.0
- 3.49.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.3
- 2.1.4
- 2.0.29
public static final class ProductSearchResults.ProductInfo.Builder extends GeneratedMessageV3.Builder<ProductSearchResults.ProductInfo.Builder> implements ProductSearchResults.ProductInfoOrBuilder
Information about a product.
Protobuf type google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ProductSearchResults.ProductInfo.BuilderImplements
ProductSearchResults.ProductInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProductSearchResults.ProductInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ProductSearchResults.ProductInfo.Builder |
build()
public ProductSearchResults.ProductInfo build()
Type | Description |
ProductSearchResults.ProductInfo |
buildPartial()
public ProductSearchResults.ProductInfo buildPartial()
Type | Description |
ProductSearchResults.ProductInfo |
clear()
public ProductSearchResults.ProductInfo.Builder clear()
Type | Description |
ProductSearchResults.ProductInfo.Builder |
clearField(Descriptors.FieldDescriptor field)
public ProductSearchResults.ProductInfo.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ProductSearchResults.ProductInfo.Builder |
clearImageUri()
public ProductSearchResults.ProductInfo.Builder clearImageUri()
The URI of the image which matched the query image.
This field is returned only if view
is set to FULL
in
the request.
string image_uri = 2;
Type | Description |
ProductSearchResults.ProductInfo.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ProductSearchResults.ProductInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ProductSearchResults.ProductInfo.Builder |
clearProductId()
public ProductSearchResults.ProductInfo.Builder clearProductId()
Product ID.
string product_id = 1;
Type | Description |
ProductSearchResults.ProductInfo.Builder | This builder for chaining. |
clearScore()
public ProductSearchResults.ProductInfo.Builder clearScore()
A confidence level on the match, ranging from 0 (no confidence) to
1 (full confidence).
This field is returned only if view
is set to FULL
in
the request.
float score = 3;
Type | Description |
ProductSearchResults.ProductInfo.Builder | This builder for chaining. |
clone()
public ProductSearchResults.ProductInfo.Builder clone()
Type | Description |
ProductSearchResults.ProductInfo.Builder |
getDefaultInstanceForType()
public ProductSearchResults.ProductInfo getDefaultInstanceForType()
Type | Description |
ProductSearchResults.ProductInfo |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getImageUri()
public String getImageUri()
The URI of the image which matched the query image.
This field is returned only if view
is set to FULL
in
the request.
string image_uri = 2;
Type | Description |
String | The imageUri. |
getImageUriBytes()
public ByteString getImageUriBytes()
The URI of the image which matched the query image.
This field is returned only if view
is set to FULL
in
the request.
string image_uri = 2;
Type | Description |
ByteString | The bytes for imageUri. |
getProductId()
public String getProductId()
Product ID.
string product_id = 1;
Type | Description |
String | The productId. |
getProductIdBytes()
public ByteString getProductIdBytes()
Product ID.
string product_id = 1;
Type | Description |
ByteString | The bytes for productId. |
getScore()
public float getScore()
A confidence level on the match, ranging from 0 (no confidence) to
1 (full confidence).
This field is returned only if view
is set to FULL
in
the request.
float score = 3;
Type | Description |
float | The score. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(ProductSearchResults.ProductInfo other)
public ProductSearchResults.ProductInfo.Builder mergeFrom(ProductSearchResults.ProductInfo other)
Name | Description |
other | ProductSearchResults.ProductInfo |
Type | Description |
ProductSearchResults.ProductInfo.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ProductSearchResults.ProductInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ProductSearchResults.ProductInfo.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ProductSearchResults.ProductInfo.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ProductSearchResults.ProductInfo.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProductSearchResults.ProductInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ProductSearchResults.ProductInfo.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ProductSearchResults.ProductInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ProductSearchResults.ProductInfo.Builder |
setImageUri(String value)
public ProductSearchResults.ProductInfo.Builder setImageUri(String value)
The URI of the image which matched the query image.
This field is returned only if view
is set to FULL
in
the request.
string image_uri = 2;
Name | Description |
value | String The imageUri to set. |
Type | Description |
ProductSearchResults.ProductInfo.Builder | This builder for chaining. |
setImageUriBytes(ByteString value)
public ProductSearchResults.ProductInfo.Builder setImageUriBytes(ByteString value)
The URI of the image which matched the query image.
This field is returned only if view
is set to FULL
in
the request.
string image_uri = 2;
Name | Description |
value | ByteString The bytes for imageUri to set. |
Type | Description |
ProductSearchResults.ProductInfo.Builder | This builder for chaining. |
setProductId(String value)
public ProductSearchResults.ProductInfo.Builder setProductId(String value)
Product ID.
string product_id = 1;
Name | Description |
value | String The productId to set. |
Type | Description |
ProductSearchResults.ProductInfo.Builder | This builder for chaining. |
setProductIdBytes(ByteString value)
public ProductSearchResults.ProductInfo.Builder setProductIdBytes(ByteString value)
Product ID.
string product_id = 1;
Name | Description |
value | ByteString The bytes for productId to set. |
Type | Description |
ProductSearchResults.ProductInfo.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProductSearchResults.ProductInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ProductSearchResults.ProductInfo.Builder |
setScore(float value)
public ProductSearchResults.ProductInfo.Builder setScore(float value)
A confidence level on the match, ranging from 0 (no confidence) to
1 (full confidence).
This field is returned only if view
is set to FULL
in
the request.
float score = 3;
Name | Description |
value | float The score to set. |
Type | Description |
ProductSearchResults.ProductInfo.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ProductSearchResults.ProductInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ProductSearchResults.ProductInfo.Builder |