Class ApiConfig.File.Builder (2.76.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 2.76.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  ApiConfig . File . Builder   extends   GeneratedMessageV3 . Builder<ApiConfig . File . Builder >  implements   ApiConfig . FileOrBuilder  
   
   A lightweight description of a file.
 Protobuf type google.cloud.apigateway.v1.ApiConfig.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   ApiConfig . File . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  
  
  Overrides 
  
   
  build() 
  
    
public   ApiConfig . File   build ()  
   
  
   
  buildPartial() 
  
    
public   ApiConfig . File   buildPartial ()  
   
  
   
  clear() 
  
    
public   ApiConfig . File . Builder   clear ()  
   
  
  Overrides 
  
   
  clearContents() 
  
    
public   ApiConfig . File . Builder   clearContents ()  
   
   The bytes that constitute the file.
 bytes contents = 2;
 
  
   
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   ApiConfig . File . Builder   clearField ( Descriptors . FieldDescriptor   field )  
   
  
  
  Overrides 
  
   
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   ApiConfig . File . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
   
  
  
  Overrides 
  
   
  clearPath() 
  
    
public   ApiConfig . File . Builder   clearPath ()  
   
   The file path (full or relative path). This is typically the path of the
 file when it is uploaded.
 string path = 1;
 
  
   
  clone() 
  
    
public   ApiConfig . File . Builder   clone ()  
   
  
  Overrides 
  
   
  getContents() 
  
    
public   ByteString   getContents ()  
   
   The bytes that constitute the file.
 bytes contents = 2;
 
  
   
  getDefaultInstanceForType() 
  
    
public   ApiConfig . File   getDefaultInstanceForType ()  
   
  
   
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
   
  
  Overrides 
  
   
  getPath() 
  
   The file path (full or relative path). This is typically the path of the
 file when it is uploaded.
 string path = 1;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        String  
        The path.
 
       
     
  
   
  getPathBytes() 
  
    
public   ByteString   getPathBytes ()  
   
   The file path (full or relative path). This is typically the path of the
 file when it is uploaded.
 string path = 1;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        ByteString  
        The bytes for path.
 
       
     
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  
  Overrides 
  
   
  mergeFrom(ApiConfig.File other) 
  
    
public   ApiConfig . File . Builder   mergeFrom ( ApiConfig . File   other )  
   
  
  
   
  
  
    
public   ApiConfig . File . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  Overrides 
  
  
   
  mergeFrom(Message other) 
  
    
public   ApiConfig . File . Builder   mergeFrom ( Message   other )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        other 
        Message  
       
     
  
  
  Overrides 
  
   
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   ApiConfig . File . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
   
  
  
  Overrides 
  
   
  setContents(ByteString value) 
  
    
public   ApiConfig . File . Builder   setContents ( ByteString   value )  
   
   The bytes that constitute the file.
 bytes contents = 2;
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        value 
        ByteString The contents to set.
 
       
     
  
  
   
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   ApiConfig . File . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  
  
  Overrides 
  
   
  setPath(String value) 
  
    
public   ApiConfig . File . Builder   setPath ( String   value )  
   
   The file path (full or relative path). This is typically the path of the
 file when it is uploaded.
 string path = 1;
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        value 
        String The path to set.
 
       
     
  
  
   
  setPathBytes(ByteString value) 
  
    
public   ApiConfig . File . Builder   setPathBytes ( ByteString   value )  
   
   The file path (full or relative path). This is typically the path of the
 file when it is uploaded.
 string path = 1;
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        value 
        ByteString The bytes for path to set.
 
       
     
  
  
   
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   ApiConfig . File . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
   
  
  
  Overrides 
  
   
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   ApiConfig . File . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
   
  
  
  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-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]