Class ListBackupPlansResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListBackupPlansResponse.Builder>
com.google.cloud.gkebackup.v1.ListBackupPlansResponse.Builder
All Implemented Interfaces:
ListBackupPlansResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListBackupPlansResponse

public static final class ListBackupPlansResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListBackupPlansResponse.Builder> implements ListBackupPlansResponseOrBuilder
 Response message for ListBackupPlans.
 
Protobuf type google.cloud.gkebackup.v1.ListBackupPlansResponse
  • 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<ListBackupPlansResponse.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<ListBackupPlansResponse.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<ListBackupPlansResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListBackupPlansResponse.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<ListBackupPlansResponse.Builder>
      Throws:
      IOException
    • getBackupPlansList

      public List<BackupPlan> getBackupPlansList()
       The list of BackupPlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
      Specified by:
      getBackupPlansList in interface ListBackupPlansResponseOrBuilder
    • getBackupPlansCount

      public int getBackupPlansCount()
       The list of BackupPlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
      Specified by:
      getBackupPlansCount in interface ListBackupPlansResponseOrBuilder
    • getBackupPlans

      public BackupPlan getBackupPlans(int index)
       The list of BackupPlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
      Specified by:
      getBackupPlans in interface ListBackupPlansResponseOrBuilder
    • setBackupPlans

      public ListBackupPlansResponse.Builder setBackupPlans(int index, BackupPlan value)
       The list of BackupPlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
    • setBackupPlans

      public ListBackupPlansResponse.Builder setBackupPlans(int index, BackupPlan.Builder builderForValue)
       The list of BackupPlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
    • addBackupPlans

      public ListBackupPlansResponse.Builder addBackupPlans(BackupPlan value)
       The list of BackupPlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
    • addBackupPlans

      public ListBackupPlansResponse.Builder addBackupPlans(int index, BackupPlan value)
       The list of BackupPlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
    • addBackupPlans

      public ListBackupPlansResponse.Builder addBackupPlans(BackupPlan.Builder builderForValue)
       The list of BackupPlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
    • addBackupPlans

      public ListBackupPlansResponse.Builder addBackupPlans(int index, BackupPlan.Builder builderForValue)
       The list of BackupPlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
    • addAllBackupPlans

      public ListBackupPlansResponse.Builder addAllBackupPlans(Iterable<? extends BackupPlan> values)
       The list of BackupPlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
    • clearBackupPlans

      public ListBackupPlansResponse.Builder clearBackupPlans()
       The list of BackupPlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
    • removeBackupPlans

      public ListBackupPlansResponse.Builder removeBackupPlans(int index)
       The list of BackupPlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
    • getBackupPlansBuilder

      public BackupPlan.Builder getBackupPlansBuilder(int index)
       The list of BackupPlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
    • getBackupPlansOrBuilder

      public BackupPlanOrBuilder getBackupPlansOrBuilder(int index)
       The list of BackupPlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
      Specified by:
      getBackupPlansOrBuilder in interface ListBackupPlansResponseOrBuilder
    • getBackupPlansOrBuilderList

      public List<? extends BackupPlanOrBuilder> getBackupPlansOrBuilderList()
       The list of BackupPlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
      Specified by:
      getBackupPlansOrBuilderList in interface ListBackupPlansResponseOrBuilder
    • addBackupPlansBuilder

      public BackupPlan.Builder addBackupPlansBuilder()
       The list of BackupPlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
    • addBackupPlansBuilder

      public BackupPlan.Builder addBackupPlansBuilder(int index)
       The list of BackupPlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
    • getBackupPlansBuilderList

      public List<BackupPlan.Builder> getBackupPlansBuilderList()
       The list of BackupPlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token which may be sent as
       [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token]
       in a subsequent `ListBackupPlans` call to retrieve the next page of
       results. If this field is omitted or empty, then there are no more results
       to return.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListBackupPlansResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token which may be sent as
       [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token]
       in a subsequent `ListBackupPlans` call to retrieve the next page of
       results. If this field is omitted or empty, then there are no more results
       to return.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListBackupPlansResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListBackupPlansResponse.Builder setNextPageToken(String value)
       A token which may be sent as
       [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token]
       in a subsequent `ListBackupPlans` call to retrieve the next page of
       results. If this field is omitted or empty, then there are no more results
       to return.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListBackupPlansResponse.Builder clearNextPageToken()
       A token which may be sent as
       [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token]
       in a subsequent `ListBackupPlans` call to retrieve the next page of
       results. If this field is omitted or empty, then there are no more results
       to return.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListBackupPlansResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token which may be sent as
       [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token]
       in a subsequent `ListBackupPlans` call to retrieve the next page of
       results. If this field is omitted or empty, then there are no more results
       to return.
       
      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 ListBackupPlansResponseOrBuilder
      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 ListBackupPlansResponseOrBuilder
      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 ListBackupPlansResponseOrBuilder
      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 ListBackupPlansResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

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

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