Class NfsExport.Builder (0.35.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public NfsExport.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NfsExport.Builder
Overrides

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NfsExport.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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