Class ListSharesResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<ListSharesResponse.Builder> implements ListSharesResponseOrBuilder
 ListSharesResponse is the result of ListSharesRequest.
 
Protobuf type google.cloud.filestore.v1beta1.ListSharesResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ListSharesResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ListSharesResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ListSharesResponse.Builder>
    • getDefaultInstanceForType

      public ListSharesResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ListSharesResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ListSharesResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ListSharesResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListSharesResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ListSharesResponse.Builder>
    • mergeFrom

      public ListSharesResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface ListSharesResponseOrBuilder
    • 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 interface ListSharesResponseOrBuilder
    • 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 interface ListSharesResponseOrBuilder
    • 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 interface ListSharesResponseOrBuilder
    • 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 interface ListSharesResponseOrBuilder
    • 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 interface ListSharesResponseOrBuilder
      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 interface ListSharesResponseOrBuilder
      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()
       Unordered list. Locations that could not be reached.
       
      repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];
      Specified by:
      getUnreachableList in interface ListSharesResponseOrBuilder
      Returns:
      A list containing the unreachable.
    • getUnreachableCount

      public int getUnreachableCount()
       Unordered list. Locations that could not be reached.
       
      repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];
      Specified by:
      getUnreachableCount in interface ListSharesResponseOrBuilder
      Returns:
      The count of unreachable.
    • getUnreachable

      public String getUnreachable(int index)
       Unordered list. Locations that could not be reached.
       
      repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];
      Specified by:
      getUnreachable in interface ListSharesResponseOrBuilder
      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)
       Unordered list. Locations that could not be reached.
       
      repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];
      Specified by:
      getUnreachableBytes in interface ListSharesResponseOrBuilder
      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)
       Unordered list. Locations that could not be reached.
       
      repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];
      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)
       Unordered list. Locations that could not be reached.
       
      repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];
      Parameters:
      value - The unreachable to add.
      Returns:
      This builder for chaining.
    • addAllUnreachable

      public ListSharesResponse.Builder addAllUnreachable(Iterable<String> values)
       Unordered list. Locations that could not be reached.
       
      repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];
      Parameters:
      values - The unreachable to add.
      Returns:
      This builder for chaining.
    • clearUnreachable

      public ListSharesResponse.Builder clearUnreachable()
       Unordered list. Locations that could not be reached.
       
      repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];
      Returns:
      This builder for chaining.
    • addUnreachableBytes

      public ListSharesResponse.Builder addUnreachableBytes(com.google.protobuf.ByteString value)
       Unordered list. Locations that could not be reached.
       
      repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];
      Parameters:
      value - The bytes of the unreachable to add.
      Returns:
      This builder for chaining.