Class ListBackupCollectionsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListBackupCollectionsResponse.Builder>
com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse.Builder
All Implemented Interfaces:
ListBackupCollectionsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListBackupCollectionsResponse

public static final class ListBackupCollectionsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListBackupCollectionsResponse.Builder> implements ListBackupCollectionsResponseOrBuilder
 Response for [ListBackupCollections].
 
Protobuf type google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse
  • 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<ListBackupCollectionsResponse.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<ListBackupCollectionsResponse.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<ListBackupCollectionsResponse.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public ListBackupCollectionsResponse.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<ListBackupCollectionsResponse.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<ListBackupCollectionsResponse.Builder>
    • mergeFrom

      public ListBackupCollectionsResponse.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<ListBackupCollectionsResponse.Builder>
      Throws:
      IOException
    • getBackupCollectionsList

      public List<BackupCollection> getBackupCollectionsList()
       A list of backupCollections in the project.
      
       If the `location_id` in the parent field of the request is "-", all regions
       available to the project are queried, and the results aggregated.
       If in such an aggregated query a location is unavailable, a placeholder
       backupCollection entry is included in the response with the `name` field
       set to a value of the form
       `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
       `status` field set to ERROR and `status_message` field set to "location not
       available for ListBackupCollections".
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1;
      Specified by:
      getBackupCollectionsList in interface ListBackupCollectionsResponseOrBuilder
    • getBackupCollectionsCount

      public int getBackupCollectionsCount()
       A list of backupCollections in the project.
      
       If the `location_id` in the parent field of the request is "-", all regions
       available to the project are queried, and the results aggregated.
       If in such an aggregated query a location is unavailable, a placeholder
       backupCollection entry is included in the response with the `name` field
       set to a value of the form
       `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
       `status` field set to ERROR and `status_message` field set to "location not
       available for ListBackupCollections".
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1;
      Specified by:
      getBackupCollectionsCount in interface ListBackupCollectionsResponseOrBuilder
    • getBackupCollections

      public BackupCollection getBackupCollections(int index)
       A list of backupCollections in the project.
      
       If the `location_id` in the parent field of the request is "-", all regions
       available to the project are queried, and the results aggregated.
       If in such an aggregated query a location is unavailable, a placeholder
       backupCollection entry is included in the response with the `name` field
       set to a value of the form
       `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
       `status` field set to ERROR and `status_message` field set to "location not
       available for ListBackupCollections".
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1;
      Specified by:
      getBackupCollections in interface ListBackupCollectionsResponseOrBuilder
    • setBackupCollections

      public ListBackupCollectionsResponse.Builder setBackupCollections(int index, BackupCollection value)
       A list of backupCollections in the project.
      
       If the `location_id` in the parent field of the request is "-", all regions
       available to the project are queried, and the results aggregated.
       If in such an aggregated query a location is unavailable, a placeholder
       backupCollection entry is included in the response with the `name` field
       set to a value of the form
       `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
       `status` field set to ERROR and `status_message` field set to "location not
       available for ListBackupCollections".
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1;
    • setBackupCollections

      public ListBackupCollectionsResponse.Builder setBackupCollections(int index, BackupCollection.Builder builderForValue)
       A list of backupCollections in the project.
      
       If the `location_id` in the parent field of the request is "-", all regions
       available to the project are queried, and the results aggregated.
       If in such an aggregated query a location is unavailable, a placeholder
       backupCollection entry is included in the response with the `name` field
       set to a value of the form
       `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
       `status` field set to ERROR and `status_message` field set to "location not
       available for ListBackupCollections".
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1;
    • addBackupCollections

      public ListBackupCollectionsResponse.Builder addBackupCollections(BackupCollection value)
       A list of backupCollections in the project.
      
       If the `location_id` in the parent field of the request is "-", all regions
       available to the project are queried, and the results aggregated.
       If in such an aggregated query a location is unavailable, a placeholder
       backupCollection entry is included in the response with the `name` field
       set to a value of the form
       `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
       `status` field set to ERROR and `status_message` field set to "location not
       available for ListBackupCollections".
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1;
    • addBackupCollections

      public ListBackupCollectionsResponse.Builder addBackupCollections(int index, BackupCollection value)
       A list of backupCollections in the project.
      
       If the `location_id` in the parent field of the request is "-", all regions
       available to the project are queried, and the results aggregated.
       If in such an aggregated query a location is unavailable, a placeholder
       backupCollection entry is included in the response with the `name` field
       set to a value of the form
       `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
       `status` field set to ERROR and `status_message` field set to "location not
       available for ListBackupCollections".
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1;
    • addBackupCollections

      public ListBackupCollectionsResponse.Builder addBackupCollections(BackupCollection.Builder builderForValue)
       A list of backupCollections in the project.
      
       If the `location_id` in the parent field of the request is "-", all regions
       available to the project are queried, and the results aggregated.
       If in such an aggregated query a location is unavailable, a placeholder
       backupCollection entry is included in the response with the `name` field
       set to a value of the form
       `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
       `status` field set to ERROR and `status_message` field set to "location not
       available for ListBackupCollections".
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1;
    • addBackupCollections

      public ListBackupCollectionsResponse.Builder addBackupCollections(int index, BackupCollection.Builder builderForValue)
       A list of backupCollections in the project.
      
       If the `location_id` in the parent field of the request is "-", all regions
       available to the project are queried, and the results aggregated.
       If in such an aggregated query a location is unavailable, a placeholder
       backupCollection entry is included in the response with the `name` field
       set to a value of the form
       `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
       `status` field set to ERROR and `status_message` field set to "location not
       available for ListBackupCollections".
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1;
    • addAllBackupCollections

      public ListBackupCollectionsResponse.Builder addAllBackupCollections(Iterable<? extends BackupCollection> values)
       A list of backupCollections in the project.
      
       If the `location_id` in the parent field of the request is "-", all regions
       available to the project are queried, and the results aggregated.
       If in such an aggregated query a location is unavailable, a placeholder
       backupCollection entry is included in the response with the `name` field
       set to a value of the form
       `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
       `status` field set to ERROR and `status_message` field set to "location not
       available for ListBackupCollections".
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1;
    • clearBackupCollections

      public ListBackupCollectionsResponse.Builder clearBackupCollections()
       A list of backupCollections in the project.
      
       If the `location_id` in the parent field of the request is "-", all regions
       available to the project are queried, and the results aggregated.
       If in such an aggregated query a location is unavailable, a placeholder
       backupCollection entry is included in the response with the `name` field
       set to a value of the form
       `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
       `status` field set to ERROR and `status_message` field set to "location not
       available for ListBackupCollections".
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1;
    • removeBackupCollections

      public ListBackupCollectionsResponse.Builder removeBackupCollections(int index)
       A list of backupCollections in the project.
      
       If the `location_id` in the parent field of the request is "-", all regions
       available to the project are queried, and the results aggregated.
       If in such an aggregated query a location is unavailable, a placeholder
       backupCollection entry is included in the response with the `name` field
       set to a value of the form
       `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
       `status` field set to ERROR and `status_message` field set to "location not
       available for ListBackupCollections".
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1;
    • getBackupCollectionsBuilder

      public BackupCollection.Builder getBackupCollectionsBuilder(int index)
       A list of backupCollections in the project.
      
       If the `location_id` in the parent field of the request is "-", all regions
       available to the project are queried, and the results aggregated.
       If in such an aggregated query a location is unavailable, a placeholder
       backupCollection entry is included in the response with the `name` field
       set to a value of the form
       `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
       `status` field set to ERROR and `status_message` field set to "location not
       available for ListBackupCollections".
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1;
    • getBackupCollectionsOrBuilder

      public BackupCollectionOrBuilder getBackupCollectionsOrBuilder(int index)
       A list of backupCollections in the project.
      
       If the `location_id` in the parent field of the request is "-", all regions
       available to the project are queried, and the results aggregated.
       If in such an aggregated query a location is unavailable, a placeholder
       backupCollection entry is included in the response with the `name` field
       set to a value of the form
       `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
       `status` field set to ERROR and `status_message` field set to "location not
       available for ListBackupCollections".
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1;
      Specified by:
      getBackupCollectionsOrBuilder in interface ListBackupCollectionsResponseOrBuilder
    • getBackupCollectionsOrBuilderList

      public List<? extends BackupCollectionOrBuilder> getBackupCollectionsOrBuilderList()
       A list of backupCollections in the project.
      
       If the `location_id` in the parent field of the request is "-", all regions
       available to the project are queried, and the results aggregated.
       If in such an aggregated query a location is unavailable, a placeholder
       backupCollection entry is included in the response with the `name` field
       set to a value of the form
       `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
       `status` field set to ERROR and `status_message` field set to "location not
       available for ListBackupCollections".
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1;
      Specified by:
      getBackupCollectionsOrBuilderList in interface ListBackupCollectionsResponseOrBuilder
    • addBackupCollectionsBuilder

      public BackupCollection.Builder addBackupCollectionsBuilder()
       A list of backupCollections in the project.
      
       If the `location_id` in the parent field of the request is "-", all regions
       available to the project are queried, and the results aggregated.
       If in such an aggregated query a location is unavailable, a placeholder
       backupCollection entry is included in the response with the `name` field
       set to a value of the form
       `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
       `status` field set to ERROR and `status_message` field set to "location not
       available for ListBackupCollections".
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1;
    • addBackupCollectionsBuilder

      public BackupCollection.Builder addBackupCollectionsBuilder(int index)
       A list of backupCollections in the project.
      
       If the `location_id` in the parent field of the request is "-", all regions
       available to the project are queried, and the results aggregated.
       If in such an aggregated query a location is unavailable, a placeholder
       backupCollection entry is included in the response with the `name` field
       set to a value of the form
       `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
       `status` field set to ERROR and `status_message` field set to "location not
       available for ListBackupCollections".
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1;
    • getBackupCollectionsBuilderList

      public List<BackupCollection.Builder> getBackupCollectionsBuilderList()
       A list of backupCollections in the project.
      
       If the `location_id` in the parent field of the request is "-", all regions
       available to the project are queried, and the results aggregated.
       If in such an aggregated query a location is unavailable, a placeholder
       backupCollection entry is included in the response with the `name` field
       set to a value of the form
       `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
       `status` field set to ERROR and `status_message` field set to "location not
       available for ListBackupCollections".
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1;
    • getNextPageToken

      public String getNextPageToken()
       Token to retrieve the next page of results, or empty if there are no more
       results in the list.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListBackupCollectionsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       Token to retrieve the next page of results, or empty if there are no more
       results in the list.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListBackupCollectionsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListBackupCollectionsResponse.Builder setNextPageToken(String value)
       Token to retrieve the next page of results, or empty 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 ListBackupCollectionsResponse.Builder clearNextPageToken()
       Token to retrieve the next page of results, or empty if there are no more
       results in the list.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListBackupCollectionsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       Token to retrieve the next page of results, or empty 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 interface ListBackupCollectionsResponseOrBuilder
      Returns:
      A list containing the unreachable.
    • getUnreachableCount

      public int getUnreachableCount()
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableCount in interface ListBackupCollectionsResponseOrBuilder
      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 interface ListBackupCollectionsResponseOrBuilder
      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 interface ListBackupCollectionsResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

      public ListBackupCollectionsResponse.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 ListBackupCollectionsResponse.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 ListBackupCollectionsResponse.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 ListBackupCollectionsResponse.Builder clearUnreachable()
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Returns:
      This builder for chaining.
    • addUnreachableBytes

      public ListBackupCollectionsResponse.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.