Class Image.Builder (2.10.0)

public static final class Image.Builder extends GeneratedMessageV3.Builder<Image.Builder> implements ImageOrBuilder

A representation of an image. Only images up to 30MB in size are supported.

Protobuf type google.cloud.automl.v1beta1.Image

Implements

ImageOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Image build()
Returns
TypeDescription
Image

buildPartial()

public Image buildPartial()
Returns
TypeDescription
Image

clear()

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

clearData()

public Image.Builder clearData()
Returns
TypeDescription
Image.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearImageBytes()

public Image.Builder clearImageBytes()

Image content represented as a stream of bytes. Note: As with all bytes fields, protobuffers use a pure binary representation, whereas JSON representations use base64.

bytes image_bytes = 1;

Returns
TypeDescription
Image.Builder

This builder for chaining.

clearInputConfig()

public Image.Builder clearInputConfig()

An input config specifying the content of the image.

.google.cloud.automl.v1beta1.InputConfig input_config = 6;

Returns
TypeDescription
Image.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Image.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Image.Builder
Overrides

clearThumbnailUri()

public Image.Builder clearThumbnailUri()

Output only. HTTP URI to the thumbnail image.

string thumbnail_uri = 4;

Returns
TypeDescription
Image.Builder

This builder for chaining.

clone()

public Image.Builder clone()
Returns
TypeDescription
Image.Builder
Overrides

getDataCase()

public Image.DataCase getDataCase()
Returns
TypeDescription
Image.DataCase

getDefaultInstanceForType()

public Image getDefaultInstanceForType()
Returns
TypeDescription
Image

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getImageBytes()

public ByteString getImageBytes()

Image content represented as a stream of bytes. Note: As with all bytes fields, protobuffers use a pure binary representation, whereas JSON representations use base64.

bytes image_bytes = 1;

Returns
TypeDescription
ByteString

The imageBytes.

getInputConfig()

public InputConfig getInputConfig()

An input config specifying the content of the image.

.google.cloud.automl.v1beta1.InputConfig input_config = 6;

Returns
TypeDescription
InputConfig

The inputConfig.

getInputConfigBuilder()

public InputConfig.Builder getInputConfigBuilder()

An input config specifying the content of the image.

.google.cloud.automl.v1beta1.InputConfig input_config = 6;

Returns
TypeDescription
InputConfig.Builder

getInputConfigOrBuilder()

public InputConfigOrBuilder getInputConfigOrBuilder()

An input config specifying the content of the image.

.google.cloud.automl.v1beta1.InputConfig input_config = 6;

Returns
TypeDescription
InputConfigOrBuilder

getThumbnailUri()

public String getThumbnailUri()

Output only. HTTP URI to the thumbnail image.

string thumbnail_uri = 4;

Returns
TypeDescription
String

The thumbnailUri.

getThumbnailUriBytes()

public ByteString getThumbnailUriBytes()

Output only. HTTP URI to the thumbnail image.

string thumbnail_uri = 4;

Returns
TypeDescription
ByteString

The bytes for thumbnailUri.

hasImageBytes()

public boolean hasImageBytes()

Image content represented as a stream of bytes. Note: As with all bytes fields, protobuffers use a pure binary representation, whereas JSON representations use base64.

bytes image_bytes = 1;

Returns
TypeDescription
boolean

Whether the imageBytes field is set.

hasInputConfig()

public boolean hasInputConfig()

An input config specifying the content of the image.

.google.cloud.automl.v1beta1.InputConfig input_config = 6;

Returns
TypeDescription
boolean

Whether the inputConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Image other)

public Image.Builder mergeFrom(Image other)
Parameter
NameDescription
otherImage
Returns
TypeDescription
Image.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Image.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Image.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Image.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Image.Builder
Overrides

mergeInputConfig(InputConfig value)

public Image.Builder mergeInputConfig(InputConfig value)

An input config specifying the content of the image.

.google.cloud.automl.v1beta1.InputConfig input_config = 6;

Parameter
NameDescription
valueInputConfig
Returns
TypeDescription
Image.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Image.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Image.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setImageBytes(ByteString value)

public Image.Builder setImageBytes(ByteString value)

Image content represented as a stream of bytes. Note: As with all bytes fields, protobuffers use a pure binary representation, whereas JSON representations use base64.

bytes image_bytes = 1;

Parameter
NameDescription
valueByteString

The imageBytes to set.

Returns
TypeDescription
Image.Builder

This builder for chaining.

setInputConfig(InputConfig value)

public Image.Builder setInputConfig(InputConfig value)

An input config specifying the content of the image.

.google.cloud.automl.v1beta1.InputConfig input_config = 6;

Parameter
NameDescription
valueInputConfig
Returns
TypeDescription
Image.Builder

setInputConfig(InputConfig.Builder builderForValue)

public Image.Builder setInputConfig(InputConfig.Builder builderForValue)

An input config specifying the content of the image.

.google.cloud.automl.v1beta1.InputConfig input_config = 6;

Parameter
NameDescription
builderForValueInputConfig.Builder
Returns
TypeDescription
Image.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Image.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Image.Builder
Overrides

setThumbnailUri(String value)

public Image.Builder setThumbnailUri(String value)

Output only. HTTP URI to the thumbnail image.

string thumbnail_uri = 4;

Parameter
NameDescription
valueString

The thumbnailUri to set.

Returns
TypeDescription
Image.Builder

This builder for chaining.

setThumbnailUriBytes(ByteString value)

public Image.Builder setThumbnailUriBytes(ByteString value)

Output only. HTTP URI to the thumbnail image.

string thumbnail_uri = 4;

Parameter
NameDescription
valueByteString

The bytes for thumbnailUri to set.

Returns
TypeDescription
Image.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Image.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Image.Builder
Overrides