Class ListSharesResponse.Builder (1.37.0)

public static final class ListSharesResponse.Builder extends GeneratedMessageV3.Builder<ListSharesResponse.Builder> implements ListSharesResponseOrBuilder

ListSharesResponse is the result of ListSharesRequest.

Protobuf type google.cloud.filestore.v1beta1.ListSharesResponse

Static Methods

getDescriptor()

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

Methods

addAllShares(Iterable<? extends Share> values)

public ListSharesResponse.Builder addAllShares(Iterable<? extends Share> values)

A list of shares in the project for the specified instance.

repeated .google.cloud.filestore.v1beta1.Share shares = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.filestore.v1beta1.Share>
Returns
TypeDescription
ListSharesResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListSharesResponse.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
ListSharesResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addShares(Share value)

public ListSharesResponse.Builder addShares(Share value)

A list of shares in the project for the specified instance.

repeated .google.cloud.filestore.v1beta1.Share shares = 1;

Parameter
NameDescription
valueShare
Returns
TypeDescription
ListSharesResponse.Builder

addShares(Share.Builder builderForValue)

public ListSharesResponse.Builder addShares(Share.Builder builderForValue)

A list of shares in the project for the specified instance.

repeated .google.cloud.filestore.v1beta1.Share shares = 1;

Parameter
NameDescription
builderForValueShare.Builder
Returns
TypeDescription
ListSharesResponse.Builder

addShares(int index, Share value)

public ListSharesResponse.Builder addShares(int index, Share value)

A list of shares in the project for the specified instance.

repeated .google.cloud.filestore.v1beta1.Share shares = 1;

Parameters
NameDescription
indexint
valueShare
Returns
TypeDescription
ListSharesResponse.Builder

addShares(int index, Share.Builder builderForValue)

public ListSharesResponse.Builder addShares(int index, Share.Builder builderForValue)

A list of shares in the project for the specified instance.

repeated .google.cloud.filestore.v1beta1.Share shares = 1;

Parameters
NameDescription
indexint
builderForValueShare.Builder
Returns
TypeDescription
ListSharesResponse.Builder

addSharesBuilder()

public Share.Builder addSharesBuilder()

A list of shares in the project for the specified instance.

repeated .google.cloud.filestore.v1beta1.Share shares = 1;

Returns
TypeDescription
Share.Builder

addSharesBuilder(int index)

public Share.Builder addSharesBuilder(int index)

A list of shares in the project for the specified instance.

repeated .google.cloud.filestore.v1beta1.Share shares = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Share.Builder

addUnreachable(String value)

public ListSharesResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListSharesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListSharesResponse.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
ListSharesResponse.Builder

This builder for chaining.

build()

public ListSharesResponse build()
Returns
TypeDescription
ListSharesResponse

buildPartial()

public ListSharesResponse buildPartial()
Returns
TypeDescription
ListSharesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListSharesResponse.Builder clearNextPageToken()

The token you can use to retrieve the next page of results. Not returned if there are no more results in the list.

string next_page_token = 2;

Returns
TypeDescription
ListSharesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearShares()

public ListSharesResponse.Builder clearShares()

A list of shares in the project for the specified instance.

repeated .google.cloud.filestore.v1beta1.Share shares = 1;

Returns
TypeDescription
ListSharesResponse.Builder

clearUnreachable()

public ListSharesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListSharesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListSharesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListSharesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

The token you can use to retrieve the next page of results. Not returned if there are no more results in the list.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The token you can use to retrieve the next page of results. Not returned if there are no more results in the list.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getShares(int index)

public Share getShares(int index)

A list of shares in the project for the specified instance.

repeated .google.cloud.filestore.v1beta1.Share shares = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Share

getSharesBuilder(int index)

public Share.Builder getSharesBuilder(int index)

A list of shares in the project for the specified instance.

repeated .google.cloud.filestore.v1beta1.Share shares = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Share.Builder

getSharesBuilderList()

public List<Share.Builder> getSharesBuilderList()

A list of shares in the project for the specified instance.

repeated .google.cloud.filestore.v1beta1.Share shares = 1;

Returns
TypeDescription
List<Builder>

getSharesCount()

public int getSharesCount()

A list of shares in the project for the specified instance.

repeated .google.cloud.filestore.v1beta1.Share shares = 1;

Returns
TypeDescription
int

getSharesList()

public List<Share> getSharesList()

A list of shares in the project for the specified instance.

repeated .google.cloud.filestore.v1beta1.Share shares = 1;

Returns
TypeDescription
List<Share>

getSharesOrBuilder(int index)

public ShareOrBuilder getSharesOrBuilder(int index)

A list of shares in the project for the specified instance.

repeated .google.cloud.filestore.v1beta1.Share shares = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ShareOrBuilder

getSharesOrBuilderList()

public List<? extends ShareOrBuilder> getSharesOrBuilderList()

A list of shares in the project for the specified instance.

repeated .google.cloud.filestore.v1beta1.Share shares = 1;

Returns
TypeDescription
List<? extends com.google.cloud.filestore.v1beta1.ShareOrBuilder>

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(ListSharesResponse other)

public ListSharesResponse.Builder mergeFrom(ListSharesResponse other)
Parameter
NameDescription
otherListSharesResponse
Returns
TypeDescription
ListSharesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeShares(int index)

public ListSharesResponse.Builder removeShares(int index)

A list of shares in the project for the specified instance.

repeated .google.cloud.filestore.v1beta1.Share shares = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListSharesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListSharesResponse.Builder setNextPageToken(String value)

The token you can use to retrieve the next page of results. Not returned if there are no more results in the list.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListSharesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListSharesResponse.Builder setNextPageTokenBytes(ByteString value)

The token you can use to retrieve the next page of results. Not returned if there are no more results in the list.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListSharesResponse.Builder

This builder for chaining.

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

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

setShares(int index, Share value)

public ListSharesResponse.Builder setShares(int index, Share value)

A list of shares in the project for the specified instance.

repeated .google.cloud.filestore.v1beta1.Share shares = 1;

Parameters
NameDescription
indexint
valueShare
Returns
TypeDescription
ListSharesResponse.Builder

setShares(int index, Share.Builder builderForValue)

public ListSharesResponse.Builder setShares(int index, Share.Builder builderForValue)

A list of shares in the project for the specified instance.

repeated .google.cloud.filestore.v1beta1.Share shares = 1;

Parameters
NameDescription
indexint
builderForValueShare.Builder
Returns
TypeDescription
ListSharesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListSharesResponse.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
ListSharesResponse.Builder

This builder for chaining.