Class NFSVolumeSource.Builder (0.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NFSVolumeSource build()
Returns
TypeDescription
NFSVolumeSource

buildPartial()

public NFSVolumeSource buildPartial()
Returns
TypeDescription
NFSVolumeSource

clear()

public NFSVolumeSource.Builder clear()
Returns
TypeDescription
NFSVolumeSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public NFSVolumeSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NFSVolumeSource.Builder
Overrides

clearPath()

public NFSVolumeSource.Builder clearPath()

Path that is exported by the NFS server.

string path = 2;

Returns
TypeDescription
NFSVolumeSource.Builder

This builder for chaining.

clearReadOnly()

public NFSVolumeSource.Builder clearReadOnly()

If true, mount the NFS volume as read only

bool read_only = 3;

Returns
TypeDescription
NFSVolumeSource.Builder

This builder for chaining.

clearServer()

public NFSVolumeSource.Builder clearServer()

Hostname or IP address of the NFS server

string server = 1;

Returns
TypeDescription
NFSVolumeSource.Builder

This builder for chaining.

clone()

public NFSVolumeSource.Builder clone()
Returns
TypeDescription
NFSVolumeSource.Builder
Overrides

getDefaultInstanceForType()

public NFSVolumeSource getDefaultInstanceForType()
Returns
TypeDescription
NFSVolumeSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPath()

public String getPath()

Path that is exported by the NFS server.

string path = 2;

Returns
TypeDescription
String

The path.

getPathBytes()

public ByteString getPathBytes()

Path that is exported by the NFS server.

string path = 2;

Returns
TypeDescription
ByteString

The bytes for path.

getReadOnly()

public boolean getReadOnly()

If true, mount the NFS volume as read only

bool read_only = 3;

Returns
TypeDescription
boolean

The readOnly.

getServer()

public String getServer()

Hostname or IP address of the NFS server

string server = 1;

Returns
TypeDescription
String

The server.

getServerBytes()

public ByteString getServerBytes()

Hostname or IP address of the NFS server

string server = 1;

Returns
TypeDescription
ByteString

The bytes for server.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NFSVolumeSource other)

public NFSVolumeSource.Builder mergeFrom(NFSVolumeSource other)
Parameter
NameDescription
otherNFSVolumeSource
Returns
TypeDescription
NFSVolumeSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public NFSVolumeSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NFSVolumeSource.Builder
Overrides

setPath(String value)

public NFSVolumeSource.Builder setPath(String value)

Path that is exported by the NFS server.

string path = 2;

Parameter
NameDescription
valueString

The path to set.

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

The bytes for path to set.

Returns
TypeDescription
NFSVolumeSource.Builder

This builder for chaining.

setReadOnly(boolean value)

public NFSVolumeSource.Builder setReadOnly(boolean value)

If true, mount the NFS volume as read only

bool read_only = 3;

Parameter
NameDescription
valueboolean

The readOnly to set.

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

setServer(String value)

public NFSVolumeSource.Builder setServer(String value)

Hostname or IP address of the NFS server

string server = 1;

Parameter
NameDescription
valueString

The server to set.

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

The bytes for server to set.

Returns
TypeDescription
NFSVolumeSource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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