Class FileData.Builder (3.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FileData build()
Returns
TypeDescription
FileData

buildPartial()

public FileData buildPartial()
Returns
TypeDescription
FileData

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFileUri()

public FileData.Builder clearFileUri()

Required. URI.

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

Returns
TypeDescription
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
TypeDescription
FileData.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public FileData getDefaultInstanceForType()
Returns
TypeDescription
FileData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFileUri()

public String getFileUri()

Required. URI.

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

Returns
TypeDescription
String

The fileUri.

getFileUriBytes()

public ByteString getFileUriBytes()

Required. URI.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for mimeType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FileData other)

public FileData.Builder mergeFrom(FileData other)
Parameter
NameDescription
otherFileData
Returns
TypeDescription
FileData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFileUri(String value)

public FileData.Builder setFileUri(String value)

Required. URI.

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

Parameter
NameDescription
valueString

The fileUri to set.

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

The bytes for fileUri to set.

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

The mimeType to set.

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

The bytes for mimeType to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FileData.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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