Class ListSharesResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ListSharesResponse.Builder>
-
- com.google.cloud.filestore.v1beta1.ListSharesResponse.Builder
-
- All Implemented Interfaces:
ListSharesResponseOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ListSharesResponse
public static final class ListSharesResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListSharesResponse.Builder> implements ListSharesResponseOrBuilder
ListSharesResponse is the result of ListSharesRequest.
Protobuf typegoogle.cloud.filestore.v1beta1.ListSharesResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListSharesResponse.Builder
addAllShares(Iterable<? extends Share> values)
A list of shares in the project for the specified instance.ListSharesResponse.Builder
addAllUnreachable(Iterable<String> values)
Locations that could not be reached.ListSharesResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListSharesResponse.Builder
addShares(int index, Share value)
A list of shares in the project for the specified instance.ListSharesResponse.Builder
addShares(int index, Share.Builder builderForValue)
A list of shares in the project for the specified instance.ListSharesResponse.Builder
addShares(Share value)
A list of shares in the project for the specified instance.ListSharesResponse.Builder
addShares(Share.Builder builderForValue)
A list of shares in the project for the specified instance.Share.Builder
addSharesBuilder()
A list of shares in the project for the specified instance.Share.Builder
addSharesBuilder(int index)
A list of shares in the project for the specified instance.ListSharesResponse.Builder
addUnreachable(String value)
Locations that could not be reached.ListSharesResponse.Builder
addUnreachableBytes(com.google.protobuf.ByteString value)
Locations that could not be reached.ListSharesResponse
build()
ListSharesResponse
buildPartial()
ListSharesResponse.Builder
clear()
ListSharesResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ListSharesResponse.Builder
clearNextPageToken()
The token you can use to retrieve the next page of results.ListSharesResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ListSharesResponse.Builder
clearShares()
A list of shares in the project for the specified instance.ListSharesResponse.Builder
clearUnreachable()
Locations that could not be reached.ListSharesResponse.Builder
clone()
ListSharesResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getNextPageToken()
The token you can use to retrieve the next page of results.com.google.protobuf.ByteString
getNextPageTokenBytes()
The token you can use to retrieve the next page of results.Share
getShares(int index)
A list of shares in the project for the specified instance.Share.Builder
getSharesBuilder(int index)
A list of shares in the project for the specified instance.List<Share.Builder>
getSharesBuilderList()
A list of shares in the project for the specified instance.int
getSharesCount()
A list of shares in the project for the specified instance.List<Share>
getSharesList()
A list of shares in the project for the specified instance.ShareOrBuilder
getSharesOrBuilder(int index)
A list of shares in the project for the specified instance.List<? extends ShareOrBuilder>
getSharesOrBuilderList()
A list of shares in the project for the specified instance.String
getUnreachable(int index)
Locations that could not be reached.com.google.protobuf.ByteString
getUnreachableBytes(int index)
Locations that could not be reached.int
getUnreachableCount()
Locations that could not be reached.com.google.protobuf.ProtocolStringList
getUnreachableList()
Locations that could not be reached.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ListSharesResponse.Builder
mergeFrom(ListSharesResponse other)
ListSharesResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ListSharesResponse.Builder
mergeFrom(com.google.protobuf.Message other)
ListSharesResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ListSharesResponse.Builder
removeShares(int index)
A list of shares in the project for the specified instance.ListSharesResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListSharesResponse.Builder
setNextPageToken(String value)
The token you can use to retrieve the next page of results.ListSharesResponse.Builder
setNextPageTokenBytes(com.google.protobuf.ByteString value)
The token you can use to retrieve the next page of results.ListSharesResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ListSharesResponse.Builder
setShares(int index, Share value)
A list of shares in the project for the specified instance.ListSharesResponse.Builder
setShares(int index, Share.Builder builderForValue)
A list of shares in the project for the specified instance.ListSharesResponse.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ListSharesResponse.Builder
setUnreachable(int index, String value)
Locations that could not be reached.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSharesResponse.Builder>
-
clear
public ListSharesResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSharesResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSharesResponse.Builder>
-
getDefaultInstanceForType
public ListSharesResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ListSharesResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ListSharesResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ListSharesResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSharesResponse.Builder>
-
setField
public ListSharesResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSharesResponse.Builder>
-
clearField
public ListSharesResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSharesResponse.Builder>
-
clearOneof
public ListSharesResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSharesResponse.Builder>
-
setRepeatedField
public ListSharesResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSharesResponse.Builder>
-
addRepeatedField
public ListSharesResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSharesResponse.Builder>
-
mergeFrom
public ListSharesResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListSharesResponse.Builder>
-
mergeFrom
public ListSharesResponse.Builder mergeFrom(ListSharesResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSharesResponse.Builder>
-
mergeFrom
public ListSharesResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListSharesResponse.Builder>
- Throws:
IOException
-
getSharesList
public List<Share> getSharesList()
A list of shares in the project for the specified instance.
repeated .google.cloud.filestore.v1beta1.Share shares = 1;
- Specified by:
getSharesList
in interfaceListSharesResponseOrBuilder
-
getSharesCount
public int getSharesCount()
A list of shares in the project for the specified instance.
repeated .google.cloud.filestore.v1beta1.Share shares = 1;
- Specified by:
getSharesCount
in interfaceListSharesResponseOrBuilder
-
getShares
public Share getShares(int index)
A list of shares in the project for the specified instance.
repeated .google.cloud.filestore.v1beta1.Share shares = 1;
- Specified by:
getShares
in interfaceListSharesResponseOrBuilder
-
setShares
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;
-
setShares
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;
-
addShares
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;
-
addShares
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;
-
addShares
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;
-
addShares
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;
-
addAllShares
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;
-
clearShares
public ListSharesResponse.Builder clearShares()
A list of shares in the project for the specified instance.
repeated .google.cloud.filestore.v1beta1.Share shares = 1;
-
removeShares
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;
-
getSharesBuilder
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;
-
getSharesOrBuilder
public ShareOrBuilder getSharesOrBuilder(int index)
A list of shares in the project for the specified instance.
repeated .google.cloud.filestore.v1beta1.Share shares = 1;
- Specified by:
getSharesOrBuilder
in interfaceListSharesResponseOrBuilder
-
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;
- Specified by:
getSharesOrBuilderList
in interfaceListSharesResponseOrBuilder
-
addSharesBuilder
public Share.Builder addSharesBuilder()
A list of shares in the project for the specified instance.
repeated .google.cloud.filestore.v1beta1.Share shares = 1;
-
addSharesBuilder
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;
-
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;
-
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;
- Specified by:
getNextPageToken
in interfaceListSharesResponseOrBuilder
- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
public com.google.protobuf.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;
- Specified by:
getNextPageTokenBytes
in interfaceListSharesResponseOrBuilder
- Returns:
- The bytes for nextPageToken.
-
setNextPageToken
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;
- Parameters:
value
- The nextPageToken to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNextPageTokenBytes
public ListSharesResponse.Builder setNextPageTokenBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for nextPageToken to set.- Returns:
- This builder for chaining.
-
getUnreachableList
public com.google.protobuf.ProtocolStringList getUnreachableList()
Locations that could not be reached.
repeated string unreachable = 3;
- Specified by:
getUnreachableList
in interfaceListSharesResponseOrBuilder
- Returns:
- A list containing the unreachable.
-
getUnreachableCount
public int getUnreachableCount()
Locations that could not be reached.
repeated string unreachable = 3;
- Specified by:
getUnreachableCount
in interfaceListSharesResponseOrBuilder
- Returns:
- The count of unreachable.
-
getUnreachable
public String getUnreachable(int index)
Locations that could not be reached.
repeated string unreachable = 3;
- Specified by:
getUnreachable
in interfaceListSharesResponseOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The unreachable at the given index.
-
getUnreachableBytes
public com.google.protobuf.ByteString getUnreachableBytes(int index)
Locations that could not be reached.
repeated string unreachable = 3;
- Specified by:
getUnreachableBytes
in interfaceListSharesResponseOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the unreachable at the given index.
-
setUnreachable
public ListSharesResponse.Builder setUnreachable(int index, String value)
Locations that could not be reached.
repeated string unreachable = 3;
- Parameters:
index
- The index to set the value at.value
- The unreachable to set.- Returns:
- This builder for chaining.
-
addUnreachable
public ListSharesResponse.Builder addUnreachable(String value)
Locations that could not be reached.
repeated string unreachable = 3;
- Parameters:
value
- The unreachable to add.- Returns:
- This builder for chaining.
-
addAllUnreachable
public ListSharesResponse.Builder addAllUnreachable(Iterable<String> values)
Locations that could not be reached.
repeated string unreachable = 3;
- Parameters:
values
- The unreachable to add.- Returns:
- This builder for chaining.
-
clearUnreachable
public ListSharesResponse.Builder clearUnreachable()
Locations that could not be reached.
repeated string unreachable = 3;
- Returns:
- This builder for chaining.
-
addUnreachableBytes
public ListSharesResponse.Builder addUnreachableBytes(com.google.protobuf.ByteString value)
Locations that could not be reached.
repeated string unreachable = 3;
- Parameters:
value
- The bytes of the unreachable to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ListSharesResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSharesResponse.Builder>
-
mergeUnknownFields
public final ListSharesResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSharesResponse.Builder>
-
-