Class FileData.Builder (0.8.0)

publicstaticfinalclass FileData.BuilderextendsGeneratedMessageV3.Builder<FileData.Builder>implementsFileDataOrBuilder

URI based data.

Protobuf type google.cloud.vertexai.v1.FileData

Implements

FileDataOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicFileData.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FileData.Builder
Overrides

build()

publicFileDatabuild()
Returns
Type Description
FileData

buildPartial()

publicFileDatabuildPartial()
Returns
Type Description
FileData

clear()

publicFileData.Builderclear()
Returns
Type Description
FileData.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicFileData.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FileData.Builder
Overrides

clearFileUri()

publicFileData.BuilderclearFileUri()

Required. URI.

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

Returns
Type Description
FileData.Builder

This builder for chaining.

clearMimeType()

publicFileData.BuilderclearMimeType()

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)

publicFileData.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FileData.Builder
Overrides

clone()

publicFileData.Builderclone()
Returns
Type Description
FileData.Builder
Overrides

getDefaultInstanceForType()

publicFileDatagetDefaultInstanceForType()
Returns
Type Description
FileData

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFileUri()

publicStringgetFileUri()

Required. URI.

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

Returns
Type Description
String

The fileUri.

getFileUriBytes()

publicByteStringgetFileUriBytes()

Required. URI.

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

Returns
Type Description
ByteString

The bytes for fileUri.

getMimeType()

publicStringgetMimeType()

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()

publicByteStringgetMimeTypeBytes()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FileData other)

publicFileData.BuildermergeFrom(FileDataother)
Parameter
Name Description
other FileData
Returns
Type Description
FileData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicFileData.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileData.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicFileData.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
FileData.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalFileData.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FileData.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicFileData.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FileData.Builder
Overrides

setFileUri(String value)

publicFileData.BuildersetFileUri(Stringvalue)

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)

publicFileData.BuildersetFileUriBytes(ByteStringvalue)

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)

publicFileData.BuildersetMimeType(Stringvalue)

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)

publicFileData.BuildersetMimeTypeBytes(ByteStringvalue)

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)

publicFileData.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FileData.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalFileData.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FileData.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.