Class ApiConfig.File.Builder (2.42.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ApiConfig.File.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ApiConfig.File.Builder
Overrides

build()

public ApiConfig.File build()
Returns
Type Description
ApiConfig.File

buildPartial()

public ApiConfig.File buildPartial()
Returns
Type Description
ApiConfig.File

clear()

public ApiConfig.File.Builder clear()
Returns
Type Description
ApiConfig.File.Builder
Overrides

clearContents()

public ApiConfig.File.Builder clearContents()

The bytes that constitute the file.

bytes contents = 2;

Returns
Type Description
ApiConfig.File.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ApiConfig.File.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ApiConfig.File.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ApiConfig.File.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ApiConfig.File.Builder
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
Type Description
ApiConfig.File.Builder

This builder for chaining.

clone()

public ApiConfig.File.Builder clone()
Returns
Type Description
ApiConfig.File.Builder
Overrides

getContents()

public ByteString getContents()

The bytes that constitute the file.

bytes contents = 2;

Returns
Type Description
ByteString

The contents.

getDefaultInstanceForType()

public ApiConfig.File getDefaultInstanceForType()
Returns
Type Description
ApiConfig.File

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPath()

public String 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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ApiConfig.File other)

public ApiConfig.File.Builder mergeFrom(ApiConfig.File other)
Parameter
Name Description
other ApiConfig.File
Returns
Type Description
ApiConfig.File.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ApiConfig.File.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ApiConfig.File.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ApiConfig.File.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ApiConfig.File.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ApiConfig.File.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ApiConfig.File.Builder
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
Type Description
ApiConfig.File.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ApiConfig.File.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ApiConfig.File.Builder
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
Type Description
ApiConfig.File.Builder

This builder for chaining.

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

This builder for chaining.

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

public ApiConfig.File.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ApiConfig.File.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ApiConfig.File.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ApiConfig.File.Builder
Overrides