Class ListNfsSharesResponse.Builder (0.36.0)

public static final class ListNfsSharesResponse.Builder extends GeneratedMessageV3.Builder<ListNfsSharesResponse.Builder> implements ListNfsSharesResponseOrBuilder

Response message containing the list of NFS shares.

Protobuf type google.cloud.baremetalsolution.v2.ListNfsSharesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllNfsShares(Iterable<? extends NfsShare> values)

public ListNfsSharesResponse.Builder addAllNfsShares(Iterable<? extends NfsShare> values)

The list of NFS shares.

repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.baremetalsolution.v2.NfsShare>
Returns
TypeDescription
ListNfsSharesResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListNfsSharesResponse.Builder addAllUnreachable(Iterable<String> values)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
ListNfsSharesResponse.Builder

This builder for chaining.

addNfsShares(NfsShare value)

public ListNfsSharesResponse.Builder addNfsShares(NfsShare value)

The list of NFS shares.

repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1;

Parameter
NameDescription
valueNfsShare
Returns
TypeDescription
ListNfsSharesResponse.Builder

addNfsShares(NfsShare.Builder builderForValue)

public ListNfsSharesResponse.Builder addNfsShares(NfsShare.Builder builderForValue)

The list of NFS shares.

repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1;

Parameter
NameDescription
builderForValueNfsShare.Builder
Returns
TypeDescription
ListNfsSharesResponse.Builder

addNfsShares(int index, NfsShare value)

public ListNfsSharesResponse.Builder addNfsShares(int index, NfsShare value)

The list of NFS shares.

repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1;

Parameters
NameDescription
indexint
valueNfsShare
Returns
TypeDescription
ListNfsSharesResponse.Builder

addNfsShares(int index, NfsShare.Builder builderForValue)

public ListNfsSharesResponse.Builder addNfsShares(int index, NfsShare.Builder builderForValue)

The list of NFS shares.

repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1;

Parameters
NameDescription
indexint
builderForValueNfsShare.Builder
Returns
TypeDescription
ListNfsSharesResponse.Builder

addNfsSharesBuilder()

public NfsShare.Builder addNfsSharesBuilder()

The list of NFS shares.

repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1;

Returns
TypeDescription
NfsShare.Builder

addNfsSharesBuilder(int index)

public NfsShare.Builder addNfsSharesBuilder(int index)

The list of NFS shares.

repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NfsShare.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListNfsSharesResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListNfsSharesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListNfsSharesResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListNfsSharesResponse.Builder

This builder for chaining.

build()

public ListNfsSharesResponse build()
Returns
TypeDescription
ListNfsSharesResponse

buildPartial()

public ListNfsSharesResponse buildPartial()
Returns
TypeDescription
ListNfsSharesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListNfsSharesResponse.Builder clearNextPageToken()

A token identifying a page of results from the server.

string next_page_token = 2;

Returns
TypeDescription
ListNfsSharesResponse.Builder

This builder for chaining.

clearNfsShares()

public ListNfsSharesResponse.Builder clearNfsShares()

The list of NFS shares.

repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1;

Returns
TypeDescription
ListNfsSharesResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListNfsSharesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListNfsSharesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListNfsSharesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListNfsSharesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token identifying a page of results from the server.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results from the server.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getNfsShares(int index)

public NfsShare getNfsShares(int index)

The list of NFS shares.

repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NfsShare

getNfsSharesBuilder(int index)

public NfsShare.Builder getNfsSharesBuilder(int index)

The list of NFS shares.

repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NfsShare.Builder

getNfsSharesBuilderList()

public List<NfsShare.Builder> getNfsSharesBuilderList()

The list of NFS shares.

repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1;

Returns
TypeDescription
List<Builder>

getNfsSharesCount()

public int getNfsSharesCount()

The list of NFS shares.

repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1;

Returns
TypeDescription
int

getNfsSharesList()

public List<NfsShare> getNfsSharesList()

The list of NFS shares.

repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1;

Returns
TypeDescription
List<NfsShare>

getNfsSharesOrBuilder(int index)

public NfsShareOrBuilder getNfsSharesOrBuilder(int index)

The list of NFS shares.

repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NfsShareOrBuilder

getNfsSharesOrBuilderList()

public List<? extends NfsShareOrBuilder> getNfsSharesOrBuilderList()

The list of NFS shares.

repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1;

Returns
TypeDescription
List<? extends com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListNfsSharesResponse other)

public ListNfsSharesResponse.Builder mergeFrom(ListNfsSharesResponse other)
Parameter
NameDescription
otherListNfsSharesResponse
Returns
TypeDescription
ListNfsSharesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNfsShares(int index)

public ListNfsSharesResponse.Builder removeNfsShares(int index)

The list of NFS shares.

repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListNfsSharesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListNfsSharesResponse.Builder setNextPageToken(String value)

A token identifying a page of results from the server.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListNfsSharesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListNfsSharesResponse.Builder setNextPageTokenBytes(ByteString value)

A token identifying a page of results from the server.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListNfsSharesResponse.Builder

This builder for chaining.

setNfsShares(int index, NfsShare value)

public ListNfsSharesResponse.Builder setNfsShares(int index, NfsShare value)

The list of NFS shares.

repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1;

Parameters
NameDescription
indexint
valueNfsShare
Returns
TypeDescription
ListNfsSharesResponse.Builder

setNfsShares(int index, NfsShare.Builder builderForValue)

public ListNfsSharesResponse.Builder setNfsShares(int index, NfsShare.Builder builderForValue)

The list of NFS shares.

repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1;

Parameters
NameDescription
indexint
builderForValueNfsShare.Builder
Returns
TypeDescription
ListNfsSharesResponse.Builder

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

public ListNfsSharesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListNfsSharesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListNfsSharesResponse.Builder setUnreachable(int index, String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListNfsSharesResponse.Builder

This builder for chaining.