Send feedback
Class AssistantContent.File.Builder (0.66.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class AssistantContent . File . Builder extends GeneratedMessageV3 . Builder<AssistantContent . File . Builder > implements AssistantContent . FileOrBuilder
A file, e.g., an audio summary.
Protobuf type google.cloud.discoveryengine.v1.AssistantContent.File
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()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AssistantContent . File . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public AssistantContent . File build ()
buildPartial()
public AssistantContent . File buildPartial ()
clear()
public AssistantContent . File . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public AssistantContent . File . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearFileId()
public AssistantContent . File . Builder clearFileId ()
Required. The file ID.
string file_id = 2 [(.google.api.field_behavior) = REQUIRED];
clearMimeType()
public AssistantContent . File . Builder clearMimeType ()
Required. The media type (MIME type) of the file.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
public AssistantContent . File . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public AssistantContent . File . Builder clone ()
Overrides
getDefaultInstanceForType()
public AssistantContent . File getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getFileId()
public String getFileId ()
Required. The file ID.
string file_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The fileId.
getFileIdBytes()
public ByteString getFileIdBytes ()
Required. The file ID.
string file_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for fileId.
getMimeType()
public String getMimeType ()
Required. The media type (MIME type) of the file.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The mimeType.
getMimeTypeBytes()
public ByteString getMimeTypeBytes ()
Required. The media type (MIME type) of the file.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for mimeType.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(AssistantContent.File other)
public AssistantContent . File . Builder mergeFrom ( AssistantContent . File other )
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AssistantContent . File . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public AssistantContent . File . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AssistantContent . File . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public AssistantContent . File . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setFileId(String value)
public AssistantContent . File . Builder setFileId ( String value )
Required. The file ID.
string file_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
String
The fileId to set.
setFileIdBytes(ByteString value)
public AssistantContent . File . Builder setFileIdBytes ( ByteString value )
Required. The file ID.
string file_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
ByteString
The bytes for fileId to set.
setMimeType(String value)
public AssistantContent . File . Builder setMimeType ( String value )
Required. The media type (MIME type) of the file.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
String
The mimeType to set.
setMimeTypeBytes(ByteString value)
public AssistantContent . File . Builder setMimeTypeBytes ( ByteString value )
Required. The media type (MIME type) of the file.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
ByteString
The bytes for mimeType to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AssistantContent . File . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AssistantContent . File . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
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-08-03 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-03 UTC."],[],[]]