Class ListHubsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListHubsResponse.Builder>
com.google.cloud.networkconnectivity.v1beta.ListHubsResponse.Builder
All Implemented Interfaces:
ListHubsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListHubsResponse

public static final class ListHubsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListHubsResponse.Builder> implements ListHubsResponseOrBuilder
 Response for
 [HubService.ListHubs][google.cloud.networkconnectivity.v1beta.HubService.ListHubs]
 method.
 
Protobuf type google.cloud.networkconnectivity.v1beta.ListHubsResponse
  • 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<ListHubsResponse.Builder>
    • clear

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

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

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

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

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

      public ListHubsResponse.Builder mergeFrom(ListHubsResponse other)
    • isInitialized

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

      public ListHubsResponse.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<ListHubsResponse.Builder>
      Throws:
      IOException
    • getHubsList

      public List<Hub> getHubsList()
       The requested hubs.
       
      repeated .google.cloud.networkconnectivity.v1beta.Hub hubs = 1;
      Specified by:
      getHubsList in interface ListHubsResponseOrBuilder
    • getHubsCount

      public int getHubsCount()
       The requested hubs.
       
      repeated .google.cloud.networkconnectivity.v1beta.Hub hubs = 1;
      Specified by:
      getHubsCount in interface ListHubsResponseOrBuilder
    • getHubs

      public Hub getHubs(int index)
       The requested hubs.
       
      repeated .google.cloud.networkconnectivity.v1beta.Hub hubs = 1;
      Specified by:
      getHubs in interface ListHubsResponseOrBuilder
    • setHubs

      public ListHubsResponse.Builder setHubs(int index, Hub value)
       The requested hubs.
       
      repeated .google.cloud.networkconnectivity.v1beta.Hub hubs = 1;
    • setHubs

      public ListHubsResponse.Builder setHubs(int index, Hub.Builder builderForValue)
       The requested hubs.
       
      repeated .google.cloud.networkconnectivity.v1beta.Hub hubs = 1;
    • addHubs

      public ListHubsResponse.Builder addHubs(Hub value)
       The requested hubs.
       
      repeated .google.cloud.networkconnectivity.v1beta.Hub hubs = 1;
    • addHubs

      public ListHubsResponse.Builder addHubs(int index, Hub value)
       The requested hubs.
       
      repeated .google.cloud.networkconnectivity.v1beta.Hub hubs = 1;
    • addHubs

      public ListHubsResponse.Builder addHubs(Hub.Builder builderForValue)
       The requested hubs.
       
      repeated .google.cloud.networkconnectivity.v1beta.Hub hubs = 1;
    • addHubs

      public ListHubsResponse.Builder addHubs(int index, Hub.Builder builderForValue)
       The requested hubs.
       
      repeated .google.cloud.networkconnectivity.v1beta.Hub hubs = 1;
    • addAllHubs

      public ListHubsResponse.Builder addAllHubs(Iterable<? extends Hub> values)
       The requested hubs.
       
      repeated .google.cloud.networkconnectivity.v1beta.Hub hubs = 1;
    • clearHubs

      public ListHubsResponse.Builder clearHubs()
       The requested hubs.
       
      repeated .google.cloud.networkconnectivity.v1beta.Hub hubs = 1;
    • removeHubs

      public ListHubsResponse.Builder removeHubs(int index)
       The requested hubs.
       
      repeated .google.cloud.networkconnectivity.v1beta.Hub hubs = 1;
    • getHubsBuilder

      public Hub.Builder getHubsBuilder(int index)
       The requested hubs.
       
      repeated .google.cloud.networkconnectivity.v1beta.Hub hubs = 1;
    • getHubsOrBuilder

      public HubOrBuilder getHubsOrBuilder(int index)
       The requested hubs.
       
      repeated .google.cloud.networkconnectivity.v1beta.Hub hubs = 1;
      Specified by:
      getHubsOrBuilder in interface ListHubsResponseOrBuilder
    • getHubsOrBuilderList

      public List<? extends HubOrBuilder> getHubsOrBuilderList()
       The requested hubs.
       
      repeated .google.cloud.networkconnectivity.v1beta.Hub hubs = 1;
      Specified by:
      getHubsOrBuilderList in interface ListHubsResponseOrBuilder
    • addHubsBuilder

      public Hub.Builder addHubsBuilder()
       The requested hubs.
       
      repeated .google.cloud.networkconnectivity.v1beta.Hub hubs = 1;
    • addHubsBuilder

      public Hub.Builder addHubsBuilder(int index)
       The requested hubs.
       
      repeated .google.cloud.networkconnectivity.v1beta.Hub hubs = 1;
    • getHubsBuilderList

      public List<Hub.Builder> getHubsBuilderList()
       The requested hubs.
       
      repeated .google.cloud.networkconnectivity.v1beta.Hub hubs = 1;
    • getNextPageToken

      public String getNextPageToken()
       The token for the next page of the response. To see more results,
       use this value as the page_token for your next request. If this value
       is empty, there are no more results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListHubsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       The token for the next page of the response. To see more results,
       use this value as the page_token for your next request. If this value
       is empty, there are no more results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListHubsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListHubsResponse.Builder setNextPageToken(String value)
       The token for the next page of the response. To see more results,
       use this value as the page_token for your next request. If this value
       is empty, there are no more results.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListHubsResponse.Builder clearNextPageToken()
       The token for the next page of the response. To see more results,
       use this value as the page_token for your next request. If this value
       is empty, there are no more results.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListHubsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       The token for the next page of the response. To see more results,
       use this value as the page_token for your next request. If this value
       is empty, there are no more results.
       
      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 ListHubsResponseOrBuilder
      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 ListHubsResponseOrBuilder
      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 ListHubsResponseOrBuilder
      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 ListHubsResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

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

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