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.ImageSourcegetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<ImageSource.Builder>public ImageSource.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<ImageSource.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<ImageSource.Builder>public ImageSource getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic ImageSource build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic ImageSource buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic ImageSource.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<ImageSource.Builder>public ImageSource.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<ImageSource.Builder>public ImageSource.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<ImageSource.Builder>public ImageSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<ImageSource.Builder>public ImageSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<ImageSource.Builder>public ImageSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<ImageSource.Builder>public ImageSource.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<ImageSource.Builder>public ImageSource.Builder mergeFrom(ImageSource other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<ImageSource.Builder>public ImageSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<ImageSource.Builder>java.io.IOExceptionpublic java.lang.String getGcsImageUri()
**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](https://cloud.google.com/storage/docs/reference-uris) for more info.
string gcs_image_uri = 1;getGcsImageUri in interface ImageSourceOrBuilderpublic ByteString getGcsImageUriBytes()
**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](https://cloud.google.com/storage/docs/reference-uris) for more info.
string gcs_image_uri = 1;getGcsImageUriBytes in interface ImageSourceOrBuilderpublic ImageSource.Builder setGcsImageUri(java.lang.String value)
**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](https://cloud.google.com/storage/docs/reference-uris) for more info.
string gcs_image_uri = 1;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](https://cloud.google.com/storage/docs/reference-uris) for more info.
string gcs_image_uri = 1;public ImageSource.Builder setGcsImageUriBytes(ByteString value)
**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](https://cloud.google.com/storage/docs/reference-uris) for more info.
string gcs_image_uri = 1;public java.lang.String getImageUri()
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 Cloud Storage Request
URIs](https://cloud.google.com/storage/docs/reference-uris) for more
info.
2. A publicly-accessible image HTTP/HTTPS URL. When fetching images from
HTTP/HTTPS URLs, Google cannot guarantee that the request will be
completed. Your request may fail if the specified host denies the
request (e.g. due to request throttling or DOS prevention), or if Google
throttles requests to the site for abuse prevention. You should not
depend on externally-hosted images for production applications.
When both `gcs_image_uri` and `image_uri` are specified, `image_uri` takes
precedence.
string image_uri = 2;getImageUri in interface ImageSourceOrBuilderpublic ByteString getImageUriBytes()
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 Cloud Storage Request
URIs](https://cloud.google.com/storage/docs/reference-uris) for more
info.
2. A publicly-accessible image HTTP/HTTPS URL. When fetching images from
HTTP/HTTPS URLs, Google cannot guarantee that the request will be
completed. Your request may fail if the specified host denies the
request (e.g. due to request throttling or DOS prevention), or if Google
throttles requests to the site for abuse prevention. You should not
depend on externally-hosted images for production applications.
When both `gcs_image_uri` and `image_uri` are specified, `image_uri` takes
precedence.
string image_uri = 2;getImageUriBytes in interface ImageSourceOrBuilderpublic ImageSource.Builder setImageUri(java.lang.String value)
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 Cloud Storage Request
URIs](https://cloud.google.com/storage/docs/reference-uris) for more
info.
2. A publicly-accessible image HTTP/HTTPS URL. When fetching images from
HTTP/HTTPS URLs, Google cannot guarantee that the request will be
completed. Your request may fail if the specified host denies the
request (e.g. due to request throttling or DOS prevention), or if Google
throttles requests to the site for abuse prevention. You should not
depend on externally-hosted images for production applications.
When both `gcs_image_uri` and `image_uri` are specified, `image_uri` takes
precedence.
string image_uri = 2;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 Cloud Storage Request
URIs](https://cloud.google.com/storage/docs/reference-uris) for more
info.
2. A publicly-accessible image HTTP/HTTPS URL. When fetching images from
HTTP/HTTPS URLs, Google cannot guarantee that the request will be
completed. Your request may fail if the specified host denies the
request (e.g. due to request throttling or DOS prevention), or if Google
throttles requests to the site for abuse prevention. You should not
depend on externally-hosted images for production applications.
When both `gcs_image_uri` and `image_uri` are specified, `image_uri` takes
precedence.
string image_uri = 2;public ImageSource.Builder setImageUriBytes(ByteString value)
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 Cloud Storage Request
URIs](https://cloud.google.com/storage/docs/reference-uris) for more
info.
2. A publicly-accessible image HTTP/HTTPS URL. When fetching images from
HTTP/HTTPS URLs, Google cannot guarantee that the request will be
completed. Your request may fail if the specified host denies the
request (e.g. due to request throttling or DOS prevention), or if Google
throttles requests to the site for abuse prevention. You should not
depend on externally-hosted images for production applications.
When both `gcs_image_uri` and `image_uri` are specified, `image_uri` takes
precedence.
string image_uri = 2;public final ImageSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<ImageSource.Builder>public final ImageSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<ImageSource.Builder>