Class NFSVolumeSource.Builder (0.54.0)

public static final class NFSVolumeSource.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NFSVolumeSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NFSVolumeSource.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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.

setUnknownFields(UnknownFieldSet unknownFields)

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