Class ApiConfig.File.Builder (2.27.0)

publicstaticfinalclass ApiConfig.File.BuilderextendsGeneratedMessageV3.Builder<ApiConfig.File.Builder>implementsApiConfig.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.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)

publicApiConfig.File.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ApiConfig.File.Builder
Overrides

build()

publicApiConfig.Filebuild()
Returns
Type Description
ApiConfig.File

buildPartial()

publicApiConfig.FilebuildPartial()
Returns
Type Description
ApiConfig.File

clear()

publicApiConfig.File.Builderclear()
Returns
Type Description
ApiConfig.File.Builder
Overrides

clearContents()

publicApiConfig.File.BuilderclearContents()

The bytes that constitute the file.

bytes contents = 2;

Returns
Type Description
ApiConfig.File.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicApiConfig.File.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ApiConfig.File.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicApiConfig.File.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ApiConfig.File.Builder
Overrides

clearPath()

publicApiConfig.File.BuilderclearPath()

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
ApiConfig.File.Builder

This builder for chaining.

clone()

publicApiConfig.File.Builderclone()
Returns
Type Description
ApiConfig.File.Builder
Overrides

getContents()

publicByteStringgetContents()

The bytes that constitute the file.

bytes contents = 2;

Returns
Type Description
ByteString

The contents.

getDefaultInstanceForType()

publicApiConfig.FilegetDefaultInstanceForType()
Returns
Type Description
ApiConfig.File

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPath()

publicStringgetPath()

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

publicByteStringgetPathBytes()

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

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ApiConfig.File other)

publicApiConfig.File.BuildermergeFrom(ApiConfig.Fileother)
Parameter
Name Description
other ApiConfig.File
Returns
Type Description
ApiConfig.File.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

publicApiConfig.File.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
ApiConfig.File.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalApiConfig.File.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ApiConfig.File.Builder
Overrides

setContents(ByteString value)

publicApiConfig.File.BuildersetContents(ByteStringvalue)

The bytes that constitute the file.

bytes contents = 2;

Parameter
Name Description
value ByteString

The contents to set.

Returns
Type Description
ApiConfig.File.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicApiConfig.File.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ApiConfig.File.Builder
Overrides

setPath(String value)

publicApiConfig.File.BuildersetPath(Stringvalue)

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
Type Description
ApiConfig.File.Builder

This builder for chaining.

setPathBytes(ByteString value)

publicApiConfig.File.BuildersetPathBytes(ByteStringvalue)

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
Type Description
ApiConfig.File.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

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

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalApiConfig.File.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ApiConfig.File.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.