Class ImagePayload.Builder (0.132.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImagePayload build()
Returns
TypeDescription
ImagePayload

buildPartial()

public ImagePayload buildPartial()
Returns
TypeDescription
ImagePayload

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearImageThumbnail()

public ImagePayload.Builder clearImageThumbnail()

A byte string of a thumbnail image.

bytes image_thumbnail = 2;

Returns
TypeDescription
ImagePayload.Builder

This builder for chaining.

clearImageUri()

public ImagePayload.Builder clearImageUri()

Image uri from the user bucket.

string image_uri = 3;

Returns
TypeDescription
ImagePayload.Builder

This builder for chaining.

clearMimeType()

public ImagePayload.Builder clearMimeType()

Image format.

string mime_type = 1;

Returns
TypeDescription
ImagePayload.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSignedUri()

public ImagePayload.Builder clearSignedUri()

Signed uri of the image file in the service bucket.

string signed_uri = 4;

Returns
TypeDescription
ImagePayload.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ImagePayload getDefaultInstanceForType()
Returns
TypeDescription
ImagePayload

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getImageThumbnail()

public ByteString getImageThumbnail()

A byte string of a thumbnail image.

bytes image_thumbnail = 2;

Returns
TypeDescription
ByteString

The imageThumbnail.

getImageUri()

public String getImageUri()

Image uri from the user bucket.

string image_uri = 3;

Returns
TypeDescription
String

The imageUri.

getImageUriBytes()

public ByteString getImageUriBytes()

Image uri from the user bucket.

string image_uri = 3;

Returns
TypeDescription
ByteString

The bytes for imageUri.

getMimeType()

public String getMimeType()

Image format.

string mime_type = 1;

Returns
TypeDescription
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

Image format.

string mime_type = 1;

Returns
TypeDescription
ByteString

The bytes for mimeType.

getSignedUri()

public String getSignedUri()

Signed uri of the image file in the service bucket.

string signed_uri = 4;

Returns
TypeDescription
String

The signedUri.

getSignedUriBytes()

public ByteString getSignedUriBytes()

Signed uri of the image file in the service bucket.

string signed_uri = 4;

Returns
TypeDescription
ByteString

The bytes for signedUri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImagePayload other)

public ImagePayload.Builder mergeFrom(ImagePayload other)
Parameter
NameDescription
otherImagePayload
Returns
TypeDescription
ImagePayload.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setImageThumbnail(ByteString value)

public ImagePayload.Builder setImageThumbnail(ByteString value)

A byte string of a thumbnail image.

bytes image_thumbnail = 2;

Parameter
NameDescription
valueByteString

The imageThumbnail to set.

Returns
TypeDescription
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
NameDescription
valueString

The imageUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for imageUri to set.

Returns
TypeDescription
ImagePayload.Builder

This builder for chaining.

setMimeType(String value)

public ImagePayload.Builder setMimeType(String value)

Image format.

string mime_type = 1;

Parameter
NameDescription
valueString

The mimeType to set.

Returns
TypeDescription
ImagePayload.Builder

This builder for chaining.

setMimeTypeBytes(ByteString value)

public ImagePayload.Builder setMimeTypeBytes(ByteString value)

Image format.

string mime_type = 1;

Parameter
NameDescription
valueByteString

The bytes for mimeType to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The signedUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for signedUri to set.

Returns
TypeDescription
ImagePayload.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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