Send feedback
Class ApiConfig.File.Builder (2.3.4)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.3.4 keyboard_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
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ApiConfig . File . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public ApiConfig . File build ()
Returns
buildPartial()
public ApiConfig . File buildPartial ()
Returns
clear()
public ApiConfig . File . Builder clear ()
Returns
Overrides
clearContents()
public ApiConfig . File . Builder clearContents ()
The bytes that constitute the file.
bytes contents = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public ApiConfig . File . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ApiConfig . File . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
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;
Returns
clone()
public ApiConfig . File . Builder clone ()
Returns
Overrides
getContents()
public ByteString getContents ()
The bytes that constitute the file.
bytes contents = 2;
Returns
getDefaultInstanceForType()
public ApiConfig . File getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(ApiConfig.File other)
public ApiConfig . File . Builder mergeFrom ( ApiConfig . File other )
Parameter
Returns
public ApiConfig . File . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ApiConfig . File . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ApiConfig . File . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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.
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ApiConfig . File . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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.
Returns
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.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ApiConfig . File . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ApiConfig . File . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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-01-27 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-01-27 UTC."],[],[]]