Class ImagePayload.Builder (0.173.0)

public static final class ImagePayload.Builder extends GeneratedMessageV3.Builder<ImagePayload.Builder> implements ImagePayloadOrBuilder

Container of information about an image.

Protobuf type google.cloud.datalabeling.v1beta1.ImagePayload

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImagePayload.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImagePayload.Builder
Overrides

build()

public ImagePayload build()
Returns
Type Description
ImagePayload

buildPartial()

public ImagePayload buildPartial()
Returns
Type Description
ImagePayload

clear()

public ImagePayload.Builder clear()
Returns
Type Description
ImagePayload.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ImagePayload.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ImagePayload.Builder
Overrides

clearImageThumbnail()

public ImagePayload.Builder clearImageThumbnail()

A byte string of a thumbnail image.

bytes image_thumbnail = 2;

Returns
Type Description
ImagePayload.Builder

This builder for chaining.

clearImageUri()

public ImagePayload.Builder clearImageUri()

Image uri from the user bucket.

string image_uri = 3;

Returns
Type Description
ImagePayload.Builder

This builder for chaining.

clearMimeType()

public ImagePayload.Builder clearMimeType()

Image format.

string mime_type = 1;

Returns
Type Description
ImagePayload.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ImagePayload.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ImagePayload.Builder
Overrides

clearSignedUri()

public ImagePayload.Builder clearSignedUri()

Signed uri of the image file in the service bucket.

string signed_uri = 4;

Returns
Type Description
ImagePayload.Builder

This builder for chaining.

clone()

public ImagePayload.Builder clone()
Returns
Type Description
ImagePayload.Builder
Overrides

getDefaultInstanceForType()

public ImagePayload getDefaultInstanceForType()
Returns
Type Description
ImagePayload

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getImageThumbnail()

public ByteString getImageThumbnail()

A byte string of a thumbnail image.

bytes image_thumbnail = 2;

Returns
Type Description
ByteString

The imageThumbnail.

getImageUri()

public String getImageUri()

Image uri from the user bucket.

string image_uri = 3;

Returns
Type Description
String

The imageUri.

getImageUriBytes()

public ByteString getImageUriBytes()

Image uri from the user bucket.

string image_uri = 3;

Returns
Type Description
ByteString

The bytes for imageUri.

getMimeType()

public String getMimeType()

Image format.

string mime_type = 1;

Returns
Type Description
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

Image format.

string mime_type = 1;

Returns
Type Description
ByteString

The bytes for mimeType.

getSignedUri()

public String getSignedUri()

Signed uri of the image file in the service bucket.

string signed_uri = 4;

Returns
Type Description
String

The signedUri.

getSignedUriBytes()

public ByteString getSignedUriBytes()

Signed uri of the image file in the service bucket.

string signed_uri = 4;

Returns
Type Description
ByteString

The bytes for signedUri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImagePayload other)

public ImagePayload.Builder mergeFrom(ImagePayload other)
Parameter
Name Description
other ImagePayload
Returns
Type Description
ImagePayload.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImagePayload.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImagePayload.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ImagePayload.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ImagePayload.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImagePayload.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImagePayload.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ImagePayload.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImagePayload.Builder
Overrides

setImageThumbnail(ByteString value)

public ImagePayload.Builder setImageThumbnail(ByteString value)

A byte string of a thumbnail image.

bytes image_thumbnail = 2;

Parameter
Name Description
value ByteString

The imageThumbnail to set.

Returns
Type Description
ImagePayload.Builder

This builder for chaining.

setImageUri(String value)

public ImagePayload.Builder setImageUri(String value)

Image uri from the user bucket.

string image_uri = 3;

Parameter
Name Description
value String

The imageUri to set.

Returns
Type Description
ImagePayload.Builder

This builder for chaining.

setImageUriBytes(ByteString value)

public ImagePayload.Builder setImageUriBytes(ByteString value)

Image uri from the user bucket.

string image_uri = 3;

Parameter
Name Description
value ByteString

The bytes for imageUri to set.

Returns
Type Description
ImagePayload.Builder

This builder for chaining.

setMimeType(String value)

public ImagePayload.Builder setMimeType(String value)

Image format.

string mime_type = 1;

Parameter
Name Description
value String

The mimeType to set.

Returns
Type Description
ImagePayload.Builder

This builder for chaining.

setMimeTypeBytes(ByteString value)

public ImagePayload.Builder setMimeTypeBytes(ByteString value)

Image format.

string mime_type = 1;

Parameter
Name Description
value ByteString

The bytes for mimeType to set.

Returns
Type Description
ImagePayload.Builder

This builder for chaining.

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

public ImagePayload.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ImagePayload.Builder
Overrides

setSignedUri(String value)

public ImagePayload.Builder setSignedUri(String value)

Signed uri of the image file in the service bucket.

string signed_uri = 4;

Parameter
Name Description
value String

The signedUri to set.

Returns
Type Description
ImagePayload.Builder

This builder for chaining.

setSignedUriBytes(ByteString value)

public ImagePayload.Builder setSignedUriBytes(ByteString value)

Signed uri of the image file in the service bucket.

string signed_uri = 4;

Parameter
Name Description
value ByteString

The bytes for signedUri to set.

Returns
Type Description
ImagePayload.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ImagePayload.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImagePayload.Builder
Overrides