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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

publicApiConfig.Filebuild()
Returns
Type Description

buildPartial()

publicApiConfig.FilebuildPartial()
Returns
Type Description

clear()

publicApiConfig.File.Builderclear()
Returns
Type Description
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
Returns
Type Description
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicApiConfig.File.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
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
Overrides

getContents()

publicByteStringgetContents()

The bytes that constitute the file.

bytes contents = 2;

Returns
Type Description
ByteString

The contents.

getDefaultInstanceForType()

publicApiConfig.FilegetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
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
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(ApiConfig.File other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicApiConfig.File.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalApiConfig.File.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
value Object
Returns
Type Description
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
index int
value Object
Returns
Type Description
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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