Class ListBackupChannelsResponse.Builder

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

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

      public ListBackupChannelsResponse 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 ListBackupChannelsResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ListBackupChannelsResponse.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<ListBackupChannelsResponse.Builder>
      Throws:
      IOException
    • getBackupChannelsList

      public List<BackupChannel> getBackupChannelsList()
       The list of BackupChannels matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;
      Specified by:
      getBackupChannelsList in interface ListBackupChannelsResponseOrBuilder
    • getBackupChannelsCount

      public int getBackupChannelsCount()
       The list of BackupChannels matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;
      Specified by:
      getBackupChannelsCount in interface ListBackupChannelsResponseOrBuilder
    • getBackupChannels

      public BackupChannel getBackupChannels(int index)
       The list of BackupChannels matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;
      Specified by:
      getBackupChannels in interface ListBackupChannelsResponseOrBuilder
    • setBackupChannels

      public ListBackupChannelsResponse.Builder setBackupChannels(int index, BackupChannel value)
       The list of BackupChannels matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;
    • setBackupChannels

      public ListBackupChannelsResponse.Builder setBackupChannels(int index, BackupChannel.Builder builderForValue)
       The list of BackupChannels matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;
    • addBackupChannels

      public ListBackupChannelsResponse.Builder addBackupChannels(BackupChannel value)
       The list of BackupChannels matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;
    • addBackupChannels

      public ListBackupChannelsResponse.Builder addBackupChannels(int index, BackupChannel value)
       The list of BackupChannels matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;
    • addBackupChannels

      public ListBackupChannelsResponse.Builder addBackupChannels(BackupChannel.Builder builderForValue)
       The list of BackupChannels matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;
    • addBackupChannels

      public ListBackupChannelsResponse.Builder addBackupChannels(int index, BackupChannel.Builder builderForValue)
       The list of BackupChannels matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;
    • addAllBackupChannels

      public ListBackupChannelsResponse.Builder addAllBackupChannels(Iterable<? extends BackupChannel> values)
       The list of BackupChannels matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;
    • clearBackupChannels

      public ListBackupChannelsResponse.Builder clearBackupChannels()
       The list of BackupChannels matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;
    • removeBackupChannels

      public ListBackupChannelsResponse.Builder removeBackupChannels(int index)
       The list of BackupChannels matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;
    • getBackupChannelsBuilder

      public BackupChannel.Builder getBackupChannelsBuilder(int index)
       The list of BackupChannels matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;
    • getBackupChannelsOrBuilder

      public BackupChannelOrBuilder getBackupChannelsOrBuilder(int index)
       The list of BackupChannels matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;
      Specified by:
      getBackupChannelsOrBuilder in interface ListBackupChannelsResponseOrBuilder
    • getBackupChannelsOrBuilderList

      public List<? extends BackupChannelOrBuilder> getBackupChannelsOrBuilderList()
       The list of BackupChannels matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;
      Specified by:
      getBackupChannelsOrBuilderList in interface ListBackupChannelsResponseOrBuilder
    • addBackupChannelsBuilder

      public BackupChannel.Builder addBackupChannelsBuilder()
       The list of BackupChannels matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;
    • addBackupChannelsBuilder

      public BackupChannel.Builder addBackupChannelsBuilder(int index)
       The list of BackupChannels matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;
    • getBackupChannelsBuilderList

      public List<BackupChannel.Builder> getBackupChannelsBuilderList()
       The list of BackupChannels matching the given criteria.
       
      repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;
    • getNextPageToken

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

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

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

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

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