Class ListRestorePlansResponse.Builder

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

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

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

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

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

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

      public ListRestorePlansResponse.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<ListRestorePlansResponse.Builder>
      Throws:
      IOException
    • getRestorePlansList

      public List<RestorePlan> getRestorePlansList()
       The list of RestorePlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
      Specified by:
      getRestorePlansList in interface ListRestorePlansResponseOrBuilder
    • getRestorePlansCount

      public int getRestorePlansCount()
       The list of RestorePlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
      Specified by:
      getRestorePlansCount in interface ListRestorePlansResponseOrBuilder
    • getRestorePlans

      public RestorePlan getRestorePlans(int index)
       The list of RestorePlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
      Specified by:
      getRestorePlans in interface ListRestorePlansResponseOrBuilder
    • setRestorePlans

      public ListRestorePlansResponse.Builder setRestorePlans(int index, RestorePlan value)
       The list of RestorePlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
    • setRestorePlans

      public ListRestorePlansResponse.Builder setRestorePlans(int index, RestorePlan.Builder builderForValue)
       The list of RestorePlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
    • addRestorePlans

      public ListRestorePlansResponse.Builder addRestorePlans(RestorePlan value)
       The list of RestorePlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
    • addRestorePlans

      public ListRestorePlansResponse.Builder addRestorePlans(int index, RestorePlan value)
       The list of RestorePlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
    • addRestorePlans

      public ListRestorePlansResponse.Builder addRestorePlans(RestorePlan.Builder builderForValue)
       The list of RestorePlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
    • addRestorePlans

      public ListRestorePlansResponse.Builder addRestorePlans(int index, RestorePlan.Builder builderForValue)
       The list of RestorePlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
    • addAllRestorePlans

      public ListRestorePlansResponse.Builder addAllRestorePlans(Iterable<? extends RestorePlan> values)
       The list of RestorePlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
    • clearRestorePlans

      public ListRestorePlansResponse.Builder clearRestorePlans()
       The list of RestorePlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
    • removeRestorePlans

      public ListRestorePlansResponse.Builder removeRestorePlans(int index)
       The list of RestorePlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
    • getRestorePlansBuilder

      public RestorePlan.Builder getRestorePlansBuilder(int index)
       The list of RestorePlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
    • getRestorePlansOrBuilder

      public RestorePlanOrBuilder getRestorePlansOrBuilder(int index)
       The list of RestorePlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
      Specified by:
      getRestorePlansOrBuilder in interface ListRestorePlansResponseOrBuilder
    • getRestorePlansOrBuilderList

      public List<? extends RestorePlanOrBuilder> getRestorePlansOrBuilderList()
       The list of RestorePlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
      Specified by:
      getRestorePlansOrBuilderList in interface ListRestorePlansResponseOrBuilder
    • addRestorePlansBuilder

      public RestorePlan.Builder addRestorePlansBuilder()
       The list of RestorePlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
    • addRestorePlansBuilder

      public RestorePlan.Builder addRestorePlansBuilder(int index)
       The list of RestorePlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
    • getRestorePlansBuilderList

      public List<RestorePlan.Builder> getRestorePlansBuilderList()
       The list of RestorePlans matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token which may be sent as
       [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token]
       in a subsequent `ListRestorePlans` 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 ListRestorePlansResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token which may be sent as
       [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token]
       in a subsequent `ListRestorePlans` 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 ListRestorePlansResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListRestorePlansResponse.Builder setNextPageToken(String value)
       A token which may be sent as
       [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token]
       in a subsequent `ListRestorePlans` 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 ListRestorePlansResponse.Builder clearNextPageToken()
       A token which may be sent as
       [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token]
       in a subsequent `ListRestorePlans` 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 ListRestorePlansResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token which may be sent as
       [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token]
       in a subsequent `ListRestorePlans` 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 ListRestorePlansResponseOrBuilder
      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 ListRestorePlansResponseOrBuilder
      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 ListRestorePlansResponseOrBuilder
      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 ListRestorePlansResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

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

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