Class ListSitesResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListSitesResponse.Builder>
com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse.Builder
All Implemented Interfaces:
ListSitesResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListSitesResponse

public static final class ListSitesResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListSitesResponse.Builder> implements ListSitesResponseOrBuilder
 A list of sites.
 
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse
  • 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<ListSitesResponse.Builder>
    • clear

      public ListSitesResponse.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<ListSitesResponse.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<ListSitesResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListSitesResponse.Builder mergeFrom(ListSitesResponse other)
    • isInitialized

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

      public ListSitesResponse.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<ListSitesResponse.Builder>
      Throws:
      IOException
    • getSitesList

      public List<Site> getSitesList()
       The list of sites.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;
      Specified by:
      getSitesList in interface ListSitesResponseOrBuilder
    • getSitesCount

      public int getSitesCount()
       The list of sites.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;
      Specified by:
      getSitesCount in interface ListSitesResponseOrBuilder
    • getSites

      public Site getSites(int index)
       The list of sites.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;
      Specified by:
      getSites in interface ListSitesResponseOrBuilder
    • setSites

      public ListSitesResponse.Builder setSites(int index, Site value)
       The list of sites.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;
    • setSites

      public ListSitesResponse.Builder setSites(int index, Site.Builder builderForValue)
       The list of sites.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;
    • addSites

      public ListSitesResponse.Builder addSites(Site value)
       The list of sites.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;
    • addSites

      public ListSitesResponse.Builder addSites(int index, Site value)
       The list of sites.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;
    • addSites

      public ListSitesResponse.Builder addSites(Site.Builder builderForValue)
       The list of sites.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;
    • addSites

      public ListSitesResponse.Builder addSites(int index, Site.Builder builderForValue)
       The list of sites.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;
    • addAllSites

      public ListSitesResponse.Builder addAllSites(Iterable<? extends Site> values)
       The list of sites.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;
    • clearSites

      public ListSitesResponse.Builder clearSites()
       The list of sites.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;
    • removeSites

      public ListSitesResponse.Builder removeSites(int index)
       The list of sites.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;
    • getSitesBuilder

      public Site.Builder getSitesBuilder(int index)
       The list of sites.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;
    • getSitesOrBuilder

      public SiteOrBuilder getSitesOrBuilder(int index)
       The list of sites.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;
      Specified by:
      getSitesOrBuilder in interface ListSitesResponseOrBuilder
    • getSitesOrBuilderList

      public List<? extends SiteOrBuilder> getSitesOrBuilderList()
       The list of sites.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;
      Specified by:
      getSitesOrBuilderList in interface ListSitesResponseOrBuilder
    • addSitesBuilder

      public Site.Builder addSitesBuilder()
       The list of sites.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;
    • addSitesBuilder

      public Site.Builder addSitesBuilder(int index)
       The list of sites.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;
    • getSitesBuilderList

      public List<Site.Builder> getSitesBuilderList()
       The list of sites.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListSitesResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListSitesResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListSitesResponse.Builder setNextPageToken(String value)
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListSitesResponse.Builder clearNextPageToken()
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListSitesResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token identifying a page of results the server should 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. Only used for queries to the wildcard
       location `-`. If non-empty, it indicates that the results are incomplete.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableList in interface ListSitesResponseOrBuilder
      Returns:
      A list containing the unreachable.
    • getUnreachableCount

      public int getUnreachableCount()
       Locations that could not be reached. Only used for queries to the wildcard
       location `-`. If non-empty, it indicates that the results are incomplete.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableCount in interface ListSitesResponseOrBuilder
      Returns:
      The count of unreachable.
    • getUnreachable

      public String getUnreachable(int index)
       Locations that could not be reached. Only used for queries to the wildcard
       location `-`. If non-empty, it indicates that the results are incomplete.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachable in interface ListSitesResponseOrBuilder
      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. Only used for queries to the wildcard
       location `-`. If non-empty, it indicates that the results are incomplete.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableBytes in interface ListSitesResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

      public ListSitesResponse.Builder setUnreachable(int index, String value)
       Locations that could not be reached. Only used for queries to the wildcard
       location `-`. If non-empty, it indicates that the results are incomplete.
       
      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 ListSitesResponse.Builder addUnreachable(String value)
       Locations that could not be reached. Only used for queries to the wildcard
       location `-`. If non-empty, it indicates that the results are incomplete.
       
      repeated string unreachable = 3;
      Parameters:
      value - The unreachable to add.
      Returns:
      This builder for chaining.
    • addAllUnreachable

      public ListSitesResponse.Builder addAllUnreachable(Iterable<String> values)
       Locations that could not be reached. Only used for queries to the wildcard
       location `-`. If non-empty, it indicates that the results are incomplete.
       
      repeated string unreachable = 3;
      Parameters:
      values - The unreachable to add.
      Returns:
      This builder for chaining.
    • clearUnreachable

      public ListSitesResponse.Builder clearUnreachable()
       Locations that could not be reached. Only used for queries to the wildcard
       location `-`. If non-empty, it indicates that the results are incomplete.
       
      repeated string unreachable = 3;
      Returns:
      This builder for chaining.
    • addUnreachableBytes

      public ListSitesResponse.Builder addUnreachableBytes(com.google.protobuf.ByteString value)
       Locations that could not be reached. Only used for queries to the wildcard
       location `-`. If non-empty, it indicates that the results are incomplete.
       
      repeated string unreachable = 3;
      Parameters:
      value - The bytes of the unreachable to add.
      Returns:
      This builder for chaining.