Class ListHubSpokesResponse.Builder

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

public static final class ListHubSpokesResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListHubSpokesResponse.Builder> implements ListHubSpokesResponseOrBuilder
 The response for
 [HubService.ListHubSpokes][google.cloud.networkconnectivity.v1beta.HubService.ListHubSpokes].
 
Protobuf type google.cloud.networkconnectivity.v1beta.ListHubSpokesResponse
  • 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<ListHubSpokesResponse.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<ListHubSpokesResponse.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<ListHubSpokesResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListHubSpokesResponse.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<ListHubSpokesResponse.Builder>
      Throws:
      IOException
    • getSpokesList

      public List<Spoke> getSpokesList()
       The requested spokes.
       The spoke fields can be partially populated based on the `view` field in
       the request message.
       
      repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;
      Specified by:
      getSpokesList in interface ListHubSpokesResponseOrBuilder
    • getSpokesCount

      public int getSpokesCount()
       The requested spokes.
       The spoke fields can be partially populated based on the `view` field in
       the request message.
       
      repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;
      Specified by:
      getSpokesCount in interface ListHubSpokesResponseOrBuilder
    • getSpokes

      public Spoke getSpokes(int index)
       The requested spokes.
       The spoke fields can be partially populated based on the `view` field in
       the request message.
       
      repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;
      Specified by:
      getSpokes in interface ListHubSpokesResponseOrBuilder
    • setSpokes

      public ListHubSpokesResponse.Builder setSpokes(int index, Spoke value)
       The requested spokes.
       The spoke fields can be partially populated based on the `view` field in
       the request message.
       
      repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;
    • setSpokes

      public ListHubSpokesResponse.Builder setSpokes(int index, Spoke.Builder builderForValue)
       The requested spokes.
       The spoke fields can be partially populated based on the `view` field in
       the request message.
       
      repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;
    • addSpokes

      public ListHubSpokesResponse.Builder addSpokes(Spoke value)
       The requested spokes.
       The spoke fields can be partially populated based on the `view` field in
       the request message.
       
      repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;
    • addSpokes

      public ListHubSpokesResponse.Builder addSpokes(int index, Spoke value)
       The requested spokes.
       The spoke fields can be partially populated based on the `view` field in
       the request message.
       
      repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;
    • addSpokes

      public ListHubSpokesResponse.Builder addSpokes(Spoke.Builder builderForValue)
       The requested spokes.
       The spoke fields can be partially populated based on the `view` field in
       the request message.
       
      repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;
    • addSpokes

      public ListHubSpokesResponse.Builder addSpokes(int index, Spoke.Builder builderForValue)
       The requested spokes.
       The spoke fields can be partially populated based on the `view` field in
       the request message.
       
      repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;
    • addAllSpokes

      public ListHubSpokesResponse.Builder addAllSpokes(Iterable<? extends Spoke> values)
       The requested spokes.
       The spoke fields can be partially populated based on the `view` field in
       the request message.
       
      repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;
    • clearSpokes

      public ListHubSpokesResponse.Builder clearSpokes()
       The requested spokes.
       The spoke fields can be partially populated based on the `view` field in
       the request message.
       
      repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;
    • removeSpokes

      public ListHubSpokesResponse.Builder removeSpokes(int index)
       The requested spokes.
       The spoke fields can be partially populated based on the `view` field in
       the request message.
       
      repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;
    • getSpokesBuilder

      public Spoke.Builder getSpokesBuilder(int index)
       The requested spokes.
       The spoke fields can be partially populated based on the `view` field in
       the request message.
       
      repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;
    • getSpokesOrBuilder

      public SpokeOrBuilder getSpokesOrBuilder(int index)
       The requested spokes.
       The spoke fields can be partially populated based on the `view` field in
       the request message.
       
      repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;
      Specified by:
      getSpokesOrBuilder in interface ListHubSpokesResponseOrBuilder
    • getSpokesOrBuilderList

      public List<? extends SpokeOrBuilder> getSpokesOrBuilderList()
       The requested spokes.
       The spoke fields can be partially populated based on the `view` field in
       the request message.
       
      repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;
      Specified by:
      getSpokesOrBuilderList in interface ListHubSpokesResponseOrBuilder
    • addSpokesBuilder

      public Spoke.Builder addSpokesBuilder()
       The requested spokes.
       The spoke fields can be partially populated based on the `view` field in
       the request message.
       
      repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;
    • addSpokesBuilder

      public Spoke.Builder addSpokesBuilder(int index)
       The requested spokes.
       The spoke fields can be partially populated based on the `view` field in
       the request message.
       
      repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 1;
    • getSpokesBuilderList

      public List<Spoke.Builder> getSpokesBuilderList()
       The requested spokes.
       The spoke fields can be partially populated based on the `view` field in
       the request message.
       
      repeated .google.cloud.networkconnectivity.v1beta.Spoke spokes = 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 ListHubSpokesResponseOrBuilder
      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 ListHubSpokesResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListHubSpokesResponse.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 ListHubSpokesResponse.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 ListHubSpokesResponse.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 ListHubSpokesResponseOrBuilder
      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 ListHubSpokesResponseOrBuilder
      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 ListHubSpokesResponseOrBuilder
      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 ListHubSpokesResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

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

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