Class NFSVolumeSource.Builder (0.83.0)

public static final class NFSVolumeSource.Builder extends GeneratedMessage.Builder<NFSVolumeSource.Builder> implements NFSVolumeSourceOrBuilder

Represents an NFS mount.

Protobuf type google.cloud.run.v2.NFSVolumeSource

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public NFSVolumeSource build()
Returns
Type Description
NFSVolumeSource

buildPartial()

public NFSVolumeSource buildPartial()
Returns
Type Description
NFSVolumeSource

clear()

public NFSVolumeSource.Builder clear()
Returns
Type Description
NFSVolumeSource.Builder
Overrides

clearPath()

public NFSVolumeSource.Builder clearPath()

Path that is exported by the NFS server.

string path = 2;

Returns
Type Description
NFSVolumeSource.Builder

This builder for chaining.

clearReadOnly()

public NFSVolumeSource.Builder clearReadOnly()

If true, the volume will be mounted as read only for all mounts.

bool read_only = 3;

Returns
Type Description
NFSVolumeSource.Builder

This builder for chaining.

clearServer()

public NFSVolumeSource.Builder clearServer()

Hostname or IP address of the NFS server

string server = 1;

Returns
Type Description
NFSVolumeSource.Builder

This builder for chaining.

getDefaultInstanceForType()

public NFSVolumeSource getDefaultInstanceForType()
Returns
Type Description
NFSVolumeSource

getDescriptorForType()

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

getPath()

public String getPath()

Path that is exported by the NFS server.

string path = 2;

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

Path that is exported by the NFS server.

string path = 2;

Returns
Type Description
ByteString

The bytes for path.

getReadOnly()

public boolean getReadOnly()

If true, the volume will be mounted as read only for all mounts.

bool read_only = 3;

Returns
Type Description
boolean

The readOnly.

getServer()

public String getServer()

Hostname or IP address of the NFS server

string server = 1;

Returns
Type Description
String

The server.

getServerBytes()

public ByteString getServerBytes()

Hostname or IP address of the NFS server

string server = 1;

Returns
Type Description
ByteString

The bytes for server.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NFSVolumeSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPath(String value)

public NFSVolumeSource.Builder setPath(String value)

Path that is exported by the NFS server.

string path = 2;

Parameter
Name Description
value String

The path to set.

Returns
Type Description
NFSVolumeSource.Builder

This builder for chaining.

setPathBytes(ByteString value)

public NFSVolumeSource.Builder setPathBytes(ByteString value)

Path that is exported by the NFS server.

string path = 2;

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
NFSVolumeSource.Builder

This builder for chaining.

setReadOnly(boolean value)

public NFSVolumeSource.Builder setReadOnly(boolean value)

If true, the volume will be mounted as read only for all mounts.

bool read_only = 3;

Parameter
Name Description
value boolean

The readOnly to set.

Returns
Type Description
NFSVolumeSource.Builder

This builder for chaining.

setServer(String value)

public NFSVolumeSource.Builder setServer(String value)

Hostname or IP address of the NFS server

string server = 1;

Parameter
Name Description
value String

The server to set.

Returns
Type Description
NFSVolumeSource.Builder

This builder for chaining.

setServerBytes(ByteString value)

public NFSVolumeSource.Builder setServerBytes(ByteString value)

Hostname or IP address of the NFS server

string server = 1;

Parameter
Name Description
value ByteString

The bytes for server to set.

Returns
Type Description
NFSVolumeSource.Builder

This builder for chaining.