Class FileData.Builder (3.45.0)

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

URI based data.

Protobuf type google.cloud.aiplatform.v1beta1.FileData

Implements

FileDataOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public FileData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public FileData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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