Send feedback
  
   
 
  
    
      Class FileInputSource.Builder (2.76.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  FileInputSource . Builder   extends   GeneratedMessageV3 . Builder<FileInputSource . Builder >  implements   FileInputSourceOrBuilder  
   An inlined file.
 Protobuf type google.cloud.translation.v3.FileInputSource
    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
   
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  
    
public   FileInputSource . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  
    
public   FileInputSource   build ()  
  
  
    
public   FileInputSource   buildPartial ()  
  
  
    
public   FileInputSource . Builder   clear ()  
  
  Overrides 
  
  clearContent() 
  
    
public   FileInputSource . Builder   clearContent ()  
   Required. The file's byte contents.
 bytes content = 2 [(.google.api.field_behavior) = REQUIRED];
    
public   FileInputSource . Builder   clearDisplayName ()  
   Required. The file's display name.
 string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
    
public   FileInputSource . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  
    
public   FileInputSource . Builder   clearMimeType ()  
   Required. The file's mime type.
 string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
    
public   FileInputSource . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  
    
public   FileInputSource . Builder   clone ()  
  
  Overrides 
  
  getContent() 
  
    
public   ByteString   getContent ()  
   Required. The file's byte contents.
 bytes content = 2 [(.google.api.field_behavior) = REQUIRED];
    
public   FileInputSource   getDefaultInstanceForType ()  
  
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  
    
public   String   getDisplayName ()  
   Required. The file's display name.
 string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
    
      
        Returns  
      
        Type Description  
      
        String The displayName.
 
     
  
  
    
public   ByteString   getDisplayNameBytes ()  
   Required. The file's display name.
 string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for displayName.
 
     
  
  
    
public   String   getMimeType ()  
   Required. The file's mime type.
 string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        Returns  
      
        Type Description  
      
        String The mimeType.
 
     
  
  
    
public   ByteString   getMimeTypeBytes ()  
   Required. The file's mime type.
 string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for mimeType.
 
     
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
    
public   FileInputSource . Builder   mergeFrom ( FileInputSource   other )  
  
  
  
    
public   FileInputSource . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  
    
public   FileInputSource . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  
    
public   final   FileInputSource . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setContent(ByteString value) 
  
    
public   FileInputSource . Builder   setContent ( ByteString   value )  
   Required. The file's byte contents.
 bytes content = 2 [(.google.api.field_behavior) = REQUIRED];
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The content to set.
 
     
  
  
  
    
public   FileInputSource . Builder   setDisplayName ( String   value )  
   Required. The file's display name.
 string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
    
      
        Parameter  
      
        Name Description  
      
        valueString The displayName to set.
 
     
  
  
  
    
public   FileInputSource . Builder   setDisplayNameBytes ( ByteString   value )  
   Required. The file's display name.
 string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for displayName to set.
 
     
  
  
  
    
public   FileInputSource . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  
    
public   FileInputSource . Builder   setMimeType ( String   value )  
   Required. The file's mime type.
 string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        Parameter  
      
        Name Description  
      
        valueString The mimeType to set.
 
     
  
  
  
    
public   FileInputSource . Builder   setMimeTypeBytes ( ByteString   value )  
   Required. The file's mime type.
 string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for mimeType to set.
 
     
  
  
  
    
public   FileInputSource . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  
    
public   final   FileInputSource . 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-10-11 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-10-11 UTC."],[],[]]