Class FileData.Builder (3.84.0)

public static final class FileData.Builder extends GeneratedMessage.Builder<FileData.Builder> implements FileDataOrBuilder

URI based data.

Protobuf type google.cloud.aiplatform.v1.FileData

Implements

FileDataOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public FileData build()
Returns
Type Description
FileData

buildPartial()

public FileData buildPartial()
Returns
Type Description
FileData

clear()

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

clearFileUri()

public FileData.Builder clearFileUri()

Required. URI.

string file_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FileData.Builder

This builder for chaining.

clearMimeType()

public FileData.Builder clearMimeType()

Required. The IANA standard MIME type of the source data.

string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FileData.Builder

This builder for chaining.

getDefaultInstanceForType()

public FileData getDefaultInstanceForType()
Returns
Type Description
FileData

getDescriptorForType()

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

getFileUri()

public String getFileUri()

Required. URI.

string file_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The fileUri.

getFileUriBytes()

public ByteString getFileUriBytes()

Required. URI.

string file_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for fileUri.

getMimeType()

public String getMimeType()

Required. The IANA standard MIME type of the source data.

string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

Required. The IANA standard MIME type of the source data.

string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for mimeType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FileData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setFileUri(String value)

public FileData.Builder setFileUri(String value)

Required. URI.

string file_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The fileUri to set.

Returns
Type Description
FileData.Builder

This builder for chaining.

setFileUriBytes(ByteString value)

public FileData.Builder setFileUriBytes(ByteString value)

Required. URI.

string file_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for fileUri to set.

Returns
Type Description
FileData.Builder

This builder for chaining.

setMimeType(String value)

public FileData.Builder setMimeType(String value)

Required. The IANA standard MIME type of the source data.

string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The mimeType to set.

Returns
Type Description
FileData.Builder

This builder for chaining.

setMimeTypeBytes(ByteString value)

public FileData.Builder setMimeTypeBytes(ByteString value)

Required. The IANA standard MIME type of the source data.

string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for mimeType to set.

Returns
Type Description
FileData.Builder

This builder for chaining.