Class ImageSource.Builder (2.1.4)

public static final class ImageSource.Builder extends GeneratedMessageV3.Builder<ImageSource.Builder> implements ImageSourceOrBuilder

External image source (Google Cloud Storage or web URL image location).

Protobuf type google.cloud.vision.v1.ImageSource

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImageSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImageSource.Builder
Overrides

build()

public ImageSource build()
Returns
TypeDescription
ImageSource

buildPartial()

public ImageSource buildPartial()
Returns
TypeDescription
ImageSource

clear()

public ImageSource.Builder clear()
Returns
TypeDescription
ImageSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ImageSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImageSource.Builder
Overrides

clearGcsImageUri()

public ImageSource.Builder clearGcsImageUri()

Use image_uri instead. The Google Cloud Storage URI of the form gs://bucket_name/object_name. Object versioning is not supported. See Google Cloud Storage Request URIs for more info.

string gcs_image_uri = 1;

Returns
TypeDescription
ImageSource.Builder

This builder for chaining.

clearImageUri()

public ImageSource.Builder clearImageUri()

The URI of the source image. Can be either:

  1. A Google Cloud Storage URI of the form gs://bucket_name/object_name. Object versioning is not supported. See Google