public static final class ImageSource.Builder extends GeneratedMessageV3.Builder<ImageSource.Builder> implements ImageSourceOrBuilder
External image source (Google Cloud Storage image location).Protobuf type
google.cloud.vision.v1p1beta1.ImageSource
Modifier and Type | Method and Description |
---|---|
ImageSource.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
ImageSource |
build() |
ImageSource |
buildPartial() |
ImageSource.Builder |
clear() |
ImageSource.Builder |
clearField(Descriptors.FieldDescriptor field) |
ImageSource.Builder |
clearGcsImageUri()
NOTE: For new code `image_uri` below is preferred.
|
ImageSource.Builder |
clearImageUri()
Image URI which supports:
1) Google Cloud Storage image URI, which must be in the following form:
`gs://bucket_name/object_name` (for details, see
[Google Cloud Storage Request
URIs](https://cloud.google.com/storage/docs/reference-uris)).
|
ImageSource.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
ImageSource.Builder |
clone() |
ImageSource |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getGcsImageUri()
NOTE: For new code `image_uri` below is preferred.
|
ByteString |
getGcsImageUriBytes()
NOTE: For new code `image_uri` below is preferred.
|
java.lang.String |
getImageUri()
Image URI which supports:
1) Google Cloud Storage image URI, which must be in the following form:
`gs://bucket_name/object_name` (for details, see
[Google Cloud Storage Request
URIs](https://cloud.google.com/storage/docs/reference-uris)).
|
ByteString |
getImageUriBytes()
Image URI which supports:
1) Google Cloud Storage image URI, which must be in the following form:
`gs://bucket_name/object_name` (for details, see
[Google Cloud Storage Request
URIs](https://cloud.google.com/storage/docs/reference-uris)).
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ImageSource.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
ImageSource.Builder |
mergeFrom(ImageSource other) |
ImageSource.Builder |
mergeFrom(Message other) |
ImageSource.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
ImageSource.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
ImageSource.Builder |
setGcsImageUri(java.lang.String value)
NOTE: For new code `image_uri` below is preferred.
|
ImageSource.Builder |
setGcsImageUriBytes(ByteString value)
NOTE: For new code `image_uri` below is preferred.
|
ImageSource.Builder |
setImageUri(java.lang.String value)
Image URI which supports:
1) Google Cloud Storage image URI, which must be in the following form:
`gs://bucket_name/object_name` (for details, see
[Google Cloud Storage Request
URIs](https://cloud.google.com/storage/docs/reference-uris)).
|
ImageSource.Builder |
setImageUriBytes(ByteString value)
Image URI which supports:
1) Google Cloud Storage image URI, which must be in the following form:
`gs://bucket_name/object_name` (for details, see
[Google Cloud Storage Request
URIs](https://cloud.google.com/storage/docs/reference-uris)).
|
ImageSource.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
ImageSource.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<ImageSource.Builder>
public ImageSource.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ImageSource.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ImageSource.Builder>
public ImageSource getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ImageSource build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ImageSource buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ImageSource.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ImageSource.Builder>
public ImageSource.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ImageSource.Builder>
public ImageSource.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ImageSource.Builder>
public ImageSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ImageSource.Builder>
public ImageSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ImageSource.Builder>
public ImageSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ImageSource.Builder>
public ImageSource.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ImageSource.Builder>
public ImageSource.Builder mergeFrom(ImageSource other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ImageSource.Builder>
public ImageSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ImageSource.Builder>
java.io.IOException
public java.lang.String getGcsImageUri()
NOTE: For new code `image_uri` below is preferred. Google Cloud Storage image URI, which must be in the following form: `gs://bucket_name/object_name` (for details, see [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris)). NOTE: Cloud Storage object versioning is not supported.
string gcs_image_uri = 1;
getGcsImageUri
in interface ImageSourceOrBuilder
public ByteString getGcsImageUriBytes()
NOTE: For new code `image_uri` below is preferred. Google Cloud Storage image URI, which must be in the following form: `gs://bucket_name/object_name` (for details, see [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris)). NOTE: Cloud Storage object versioning is not supported.
string gcs_image_uri = 1;
getGcsImageUriBytes
in interface ImageSourceOrBuilder
public ImageSource.Builder setGcsImageUri(java.lang.String value)
NOTE: For new code `image_uri` below is preferred. Google Cloud Storage image URI, which must be in the following form: `gs://bucket_name/object_name` (for details, see [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris)). NOTE: Cloud Storage object versioning is not supported.
string gcs_image_uri = 1;
public ImageSource.Builder clearGcsImageUri()
NOTE: For new code `image_uri` below is preferred. Google Cloud Storage image URI, which must be in the following form: `gs://bucket_name/object_name` (for details, see [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris)). NOTE: Cloud Storage object versioning is not supported.
string gcs_image_uri = 1;
public ImageSource.Builder setGcsImageUriBytes(ByteString value)
NOTE: For new code `image_uri` below is preferred. Google Cloud Storage image URI, which must be in the following form: `gs://bucket_name/object_name` (for details, see [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris)). NOTE: Cloud Storage object versioning is not supported.
string gcs_image_uri = 1;
public java.lang.String getImageUri()
Image URI which supports: 1) Google Cloud Storage image URI, which must be in the following form: `gs://bucket_name/object_name` (for details, see [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris)). NOTE: Cloud Storage object versioning is not supported. 2) Publicly accessible image HTTP/HTTPS URL. This is preferred over the legacy `gcs_image_uri` above. When both `gcs_image_uri` and `image_uri` are specified, `image_uri` takes precedence.
string image_uri = 2;
getImageUri
in interface ImageSourceOrBuilder
public ByteString getImageUriBytes()
Image URI which supports: 1) Google Cloud Storage image URI, which must be in the following form: `gs://bucket_name/object_name` (for details, see [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris)). NOTE: Cloud Storage object versioning is not supported. 2) Publicly accessible image HTTP/HTTPS URL. This is preferred over the legacy `gcs_image_uri` above. When both `gcs_image_uri` and `image_uri` are specified, `image_uri` takes precedence.
string image_uri = 2;
getImageUriBytes
in interface ImageSourceOrBuilder
public ImageSource.Builder setImageUri(java.lang.String value)
Image URI which supports: 1) Google Cloud Storage image URI, which must be in the following form: `gs://bucket_name/object_name` (for details, see [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris)). NOTE: Cloud Storage object versioning is not supported. 2) Publicly accessible image HTTP/HTTPS URL. This is preferred over the legacy `gcs_image_uri` above. When both `gcs_image_uri` and `image_uri` are specified, `image_uri` takes precedence.
string image_uri = 2;
public ImageSource.Builder clearImageUri()
Image URI which supports: 1) Google Cloud Storage image URI, which must be in the following form: `gs://bucket_name/object_name` (for details, see [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris)). NOTE: Cloud Storage object versioning is not supported. 2) Publicly accessible image HTTP/HTTPS URL. This is preferred over the legacy `gcs_image_uri` above. When both `gcs_image_uri` and `image_uri` are specified, `image_uri` takes precedence.
string image_uri = 2;
public ImageSource.Builder setImageUriBytes(ByteString value)
Image URI which supports: 1) Google Cloud Storage image URI, which must be in the following form: `gs://bucket_name/object_name` (for details, see [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris)). NOTE: Cloud Storage object versioning is not supported. 2) Publicly accessible image HTTP/HTTPS URL. This is preferred over the legacy `gcs_image_uri` above. 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ImageSource.Builder>
public final ImageSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ImageSource.Builder>