Class ApiConfig.File.Builder (2.16.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ApiConfig.File.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ApiConfig.File.Builder
Overrides

build()

public ApiConfig.File build()
Returns
TypeDescription
ApiConfig.File

buildPartial()

public ApiConfig.File buildPartial()
Returns
TypeDescription
ApiConfig.File

clear()

public ApiConfig.File.Builder clear()
Returns
TypeDescription
ApiConfig.File.Builder
Overrides

clearContents()

public ApiConfig.File.Builder clearContents()

The bytes that constitute the file.

bytes contents = 2;

Returns
TypeDescription
ApiConfig.File.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ApiConfig.File.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ApiConfig.File.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ApiConfig.File.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ApiConfig.File.Builder

This builder for chaining.

clone()

public ApiConfig.File.Builder clone()
Returns
TypeDescription
ApiConfig.File.Builder
Overrides

getContents()

public ByteString getContents()

The bytes that constitute the file.

bytes contents = 2;

Returns
TypeDescription
ByteString

The contents.

getDefaultInstanceForType()

public ApiConfig.File getDefaultInstanceForType()
Returns
TypeDescription
ApiConfig.File

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for path.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ApiConfig.File other)

public ApiConfig.File.Builder mergeFrom(ApiConfig.File other)
Parameter
NameDescription
otherApiConfig.File
Returns
TypeDescription
ApiConfig.File.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ApiConfig.File.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ApiConfig.File.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ApiConfig.File.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ApiConfig.File.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ApiConfig.File.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ApiConfig.File.Builder
Overrides

setContents(ByteString value)

public ApiConfig.File.Builder setContents(ByteString value)

The bytes that constitute the file.

bytes contents = 2;

Parameter
NameDescription
valueByteString

The contents to set.

Returns
TypeDescription
ApiConfig.File.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ApiConfig.File.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The path to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for path to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ApiConfig.File.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ApiConfig.File.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ApiConfig.File.Builder
Overrides