Class ListTcpRoutesResponse.Builder

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

public static final class ListTcpRoutesResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListTcpRoutesResponse.Builder> implements ListTcpRoutesResponseOrBuilder
 Response returned by the ListTcpRoutes method.
 
Protobuf type google.cloud.networkservices.v1.ListTcpRoutesResponse
  • 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<ListTcpRoutesResponse.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<ListTcpRoutesResponse.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<ListTcpRoutesResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListTcpRoutesResponse.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<ListTcpRoutesResponse.Builder>
      Throws:
      IOException
    • getTcpRoutesList

      public List<TcpRoute> getTcpRoutesList()
       List of TcpRoute resources.
       
      repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;
      Specified by:
      getTcpRoutesList in interface ListTcpRoutesResponseOrBuilder
    • getTcpRoutesCount

      public int getTcpRoutesCount()
       List of TcpRoute resources.
       
      repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;
      Specified by:
      getTcpRoutesCount in interface ListTcpRoutesResponseOrBuilder
    • getTcpRoutes

      public TcpRoute getTcpRoutes(int index)
       List of TcpRoute resources.
       
      repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;
      Specified by:
      getTcpRoutes in interface ListTcpRoutesResponseOrBuilder
    • setTcpRoutes

      public ListTcpRoutesResponse.Builder setTcpRoutes(int index, TcpRoute value)
       List of TcpRoute resources.
       
      repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;
    • setTcpRoutes

      public ListTcpRoutesResponse.Builder setTcpRoutes(int index, TcpRoute.Builder builderForValue)
       List of TcpRoute resources.
       
      repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;
    • addTcpRoutes

      public ListTcpRoutesResponse.Builder addTcpRoutes(TcpRoute value)
       List of TcpRoute resources.
       
      repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;
    • addTcpRoutes

      public ListTcpRoutesResponse.Builder addTcpRoutes(int index, TcpRoute value)
       List of TcpRoute resources.
       
      repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;
    • addTcpRoutes

      public ListTcpRoutesResponse.Builder addTcpRoutes(TcpRoute.Builder builderForValue)
       List of TcpRoute resources.
       
      repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;
    • addTcpRoutes

      public ListTcpRoutesResponse.Builder addTcpRoutes(int index, TcpRoute.Builder builderForValue)
       List of TcpRoute resources.
       
      repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;
    • addAllTcpRoutes

      public ListTcpRoutesResponse.Builder addAllTcpRoutes(Iterable<? extends TcpRoute> values)
       List of TcpRoute resources.
       
      repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;
    • clearTcpRoutes

      public ListTcpRoutesResponse.Builder clearTcpRoutes()
       List of TcpRoute resources.
       
      repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;
    • removeTcpRoutes

      public ListTcpRoutesResponse.Builder removeTcpRoutes(int index)
       List of TcpRoute resources.
       
      repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;
    • getTcpRoutesBuilder

      public TcpRoute.Builder getTcpRoutesBuilder(int index)
       List of TcpRoute resources.
       
      repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;
    • getTcpRoutesOrBuilder

      public TcpRouteOrBuilder getTcpRoutesOrBuilder(int index)
       List of TcpRoute resources.
       
      repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;
      Specified by:
      getTcpRoutesOrBuilder in interface ListTcpRoutesResponseOrBuilder
    • getTcpRoutesOrBuilderList

      public List<? extends TcpRouteOrBuilder> getTcpRoutesOrBuilderList()
       List of TcpRoute resources.
       
      repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;
      Specified by:
      getTcpRoutesOrBuilderList in interface ListTcpRoutesResponseOrBuilder
    • addTcpRoutesBuilder

      public TcpRoute.Builder addTcpRoutesBuilder()
       List of TcpRoute resources.
       
      repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;
    • addTcpRoutesBuilder

      public TcpRoute.Builder addTcpRoutesBuilder(int index)
       List of TcpRoute resources.
       
      repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;
    • getTcpRoutesBuilderList

      public List<TcpRoute.Builder> getTcpRoutesBuilderList()
       List of TcpRoute resources.
       
      repeated .google.cloud.networkservices.v1.TcpRoute tcp_routes = 1;
    • getNextPageToken

      public String getNextPageToken()
       If there might be more results than those appearing in this response, then
       `next_page_token` is included. To get the next set of results, call this
       method again using the value of `next_page_token` as `page_token`.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListTcpRoutesResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       If there might be more results than those appearing in this response, then
       `next_page_token` is included. To get the next set of results, call this
       method again using the value of `next_page_token` as `page_token`.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListTcpRoutesResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListTcpRoutesResponse.Builder setNextPageToken(String value)
       If there might be more results than those appearing in this response, then
       `next_page_token` is included. To get the next set of results, call this
       method again using the value of `next_page_token` as `page_token`.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListTcpRoutesResponse.Builder clearNextPageToken()
       If there might be more results than those appearing in this response, then
       `next_page_token` is included. To get the next set of results, call this
       method again using the value of `next_page_token` as `page_token`.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListTcpRoutesResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       If there might be more results than those appearing in this response, then
       `next_page_token` is included. To get the next set of results, call this
       method again using the value of `next_page_token` as `page_token`.
       
      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()
       Unreachable resources. Populated when the request opts into
       [return_partial_success][google.cloud.networkservices.v1.ListTcpRoutesRequest.return_partial_success]
       and reading across collections e.g. when attempting to list all resources
       across all supported locations.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableList in interface ListTcpRoutesResponseOrBuilder
      Returns:
      A list containing the unreachable.
    • getUnreachableCount

      public int getUnreachableCount()
       Unreachable resources. Populated when the request opts into
       [return_partial_success][google.cloud.networkservices.v1.ListTcpRoutesRequest.return_partial_success]
       and reading across collections e.g. when attempting to list all resources
       across all supported locations.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableCount in interface ListTcpRoutesResponseOrBuilder
      Returns:
      The count of unreachable.
    • getUnreachable

      public String getUnreachable(int index)
       Unreachable resources. Populated when the request opts into
       [return_partial_success][google.cloud.networkservices.v1.ListTcpRoutesRequest.return_partial_success]
       and reading across collections e.g. when attempting to list all resources
       across all supported locations.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachable in interface ListTcpRoutesResponseOrBuilder
      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)
       Unreachable resources. Populated when the request opts into
       [return_partial_success][google.cloud.networkservices.v1.ListTcpRoutesRequest.return_partial_success]
       and reading across collections e.g. when attempting to list all resources
       across all supported locations.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableBytes in interface ListTcpRoutesResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

      public ListTcpRoutesResponse.Builder setUnreachable(int index, String value)
       Unreachable resources. Populated when the request opts into
       [return_partial_success][google.cloud.networkservices.v1.ListTcpRoutesRequest.return_partial_success]
       and reading across collections e.g. when attempting to list all resources
       across all supported locations.
       
      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 ListTcpRoutesResponse.Builder addUnreachable(String value)
       Unreachable resources. Populated when the request opts into
       [return_partial_success][google.cloud.networkservices.v1.ListTcpRoutesRequest.return_partial_success]
       and reading across collections e.g. when attempting to list all resources
       across all supported locations.
       
      repeated string unreachable = 3;
      Parameters:
      value - The unreachable to add.
      Returns:
      This builder for chaining.
    • addAllUnreachable

      public ListTcpRoutesResponse.Builder addAllUnreachable(Iterable<String> values)
       Unreachable resources. Populated when the request opts into
       [return_partial_success][google.cloud.networkservices.v1.ListTcpRoutesRequest.return_partial_success]
       and reading across collections e.g. when attempting to list all resources
       across all supported locations.
       
      repeated string unreachable = 3;
      Parameters:
      values - The unreachable to add.
      Returns:
      This builder for chaining.
    • clearUnreachable

      public ListTcpRoutesResponse.Builder clearUnreachable()
       Unreachable resources. Populated when the request opts into
       [return_partial_success][google.cloud.networkservices.v1.ListTcpRoutesRequest.return_partial_success]
       and reading across collections e.g. when attempting to list all resources
       across all supported locations.
       
      repeated string unreachable = 3;
      Returns:
      This builder for chaining.
    • addUnreachableBytes

      public ListTcpRoutesResponse.Builder addUnreachableBytes(com.google.protobuf.ByteString value)
       Unreachable resources. Populated when the request opts into
       [return_partial_success][google.cloud.networkservices.v1.ListTcpRoutesRequest.return_partial_success]
       and reading across collections e.g. when attempting to list all resources
       across all supported locations.
       
      repeated string unreachable = 3;
      Parameters:
      value - The bytes of the unreachable to add.
      Returns:
      This builder for chaining.