Class NfsExport.Builder (0.17.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
TypeDescription
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
NameDescription
valuesIterable<String>

The hosts to add.

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

The hosts to add.

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

The bytes of the hosts to add.

Returns
TypeDescription
NfsExport.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NfsExport build()
Returns
TypeDescription
NfsExport

buildPartial()

public NfsExport buildPartial()
Returns
TypeDescription
NfsExport

clear()

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

clearExportDirectory()

public NfsExport.Builder clearExportDirectory()

The directory being exported.

string export_directory = 1;

Returns
TypeDescription
NfsExport.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHosts()

public NfsExport.Builder clearHosts()

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

repeated string hosts = 2;

Returns
TypeDescription
NfsExport.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public NfsExport getDefaultInstanceForType()
Returns
TypeDescription
NfsExport

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExportDirectory()

public String getExportDirectory()

The directory being exported.

string export_directory = 1;

Returns
TypeDescription
String

The exportDirectory.

getExportDirectoryBytes()

public ByteString getExportDirectoryBytes()

The directory being exported.

string export_directory = 1;

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the hosts.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NfsExport other)

public NfsExport.Builder mergeFrom(NfsExport other)
Parameter
NameDescription
otherNfsExport
Returns
TypeDescription
NfsExport.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExportDirectory(String value)

public NfsExport.Builder setExportDirectory(String value)

The directory being exported.

string export_directory = 1;

Parameter
NameDescription
valueString

The exportDirectory to set.

Returns
TypeDescription
NfsExport.Builder

This builder for chaining.

setExportDirectoryBytes(ByteString value)

public NfsExport.Builder setExportDirectoryBytes(ByteString value)

The directory being exported.

string export_directory = 1;

Parameter
NameDescription
valueByteString

The bytes for exportDirectory to set.

Returns
TypeDescription
NfsExport.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NfsExport.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The hosts to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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