Class NfsExport.Builder (0.65.0)

public static final class NfsExport.Builder extends GeneratedMessage.Builder<NfsExport.Builder> implements NfsExportOrBuilder

NFS export.

Protobuf type google.cloud.migrationcenter.v1.NfsExport

Implements

NfsExportOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllHosts(Iterable<String> values)

public NfsExport.Builder addAllHosts(Iterable<String> values)

The hosts or networks to which the export is being shared.

repeated string hosts = 2;

Parameter
Name Description
values Iterable<String>

The hosts to add.

Returns
Type Description
NfsExport.Builder

This builder for chaining.

addHosts(String value)

public NfsExport.Builder addHosts(String value)

The hosts or networks to which the export is being shared.

repeated string hosts = 2;

Parameter
Name Description
value String

The hosts to add.

Returns
Type Description
NfsExport.Builder

This builder for chaining.

addHostsBytes(ByteString value)

public NfsExport.Builder addHostsBytes(ByteString value)

The hosts or networks to which the export is being shared.

repeated string hosts = 2;

Parameter
Name Description
value ByteString

The bytes of the hosts to add.

Returns
Type Description
NfsExport.Builder

This builder for chaining.

build()

public NfsExport build()
Returns
Type Description
NfsExport

buildPartial()

public NfsExport buildPartial()
Returns
Type Description
NfsExport

clear()

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

clearExportDirectory()

public NfsExport.Builder clearExportDirectory()

The directory being exported.

string export_directory = 1;

Returns
Type Description
NfsExport.Builder

This builder for chaining.

clearHosts()

public NfsExport.Builder clearHosts()

The hosts or networks to which the export is being shared.

repeated string hosts = 2;

Returns
Type Description
NfsExport.Builder

This builder for chaining.

getDefaultInstanceForType()

public NfsExport getDefaultInstanceForType()
Returns
Type Description
NfsExport

getDescriptorForType()

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

getExportDirectory()

public String getExportDirectory()

The directory being exported.

string export_directory = 1;

Returns
Type Description
String

The exportDirectory.

getExportDirectoryBytes()

public ByteString getExportDirectoryBytes()

The directory being exported.

string export_directory = 1;

Returns
Type Description
ByteString

The bytes for exportDirectory.

getHosts(int index)

public String getHosts(int index)

The hosts or networks to which the export is being shared.

repeated string hosts = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The hosts at the given index.

getHostsBytes(int index)

public ByteString getHostsBytes(int index)

The hosts or networks to which the export is being shared.

repeated string hosts = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the hosts at the given index.

getHostsCount()

public int getHostsCount()

The hosts or networks to which the export is being shared.

repeated string hosts = 2;

Returns
Type Description
int

The count of hosts.

getHostsList()

public ProtocolStringList getHostsList()

The hosts or networks to which the export is being shared.

repeated string hosts = 2;

Returns
Type Description
ProtocolStringList

A list containing the hosts.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NfsExport other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setExportDirectory(String value)

public NfsExport.Builder setExportDirectory(String value)

The directory being exported.

string export_directory = 1;

Parameter
Name Description
value String

The exportDirectory to set.

Returns
Type Description
NfsExport.Builder

This builder for chaining.

setExportDirectoryBytes(ByteString value)

public NfsExport.Builder setExportDirectoryBytes(ByteString value)

The directory being exported.

string export_directory = 1;

Parameter
Name Description
value ByteString

The bytes for exportDirectory to set.

Returns
Type Description
NfsExport.Builder

This builder for chaining.

setHosts(int index, String value)

public NfsExport.Builder setHosts(int index, String value)

The hosts or networks to which the export is being shared.

repeated string hosts = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The hosts to set.

Returns
Type Description
NfsExport.Builder

This builder for chaining.