Class ListDestinationsResponse.Builder

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

public static final class ListDestinationsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListDestinationsResponse.Builder> implements ListDestinationsResponseOrBuilder
 Response message to list `Destination` resources.
 
Protobuf type google.cloud.networkconnectivity.v1beta.ListDestinationsResponse
  • 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<ListDestinationsResponse.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<ListDestinationsResponse.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<ListDestinationsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListDestinationsResponse.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<ListDestinationsResponse.Builder>
      Throws:
      IOException
    • getDestinationsList

      public List<Destination> getDestinationsList()
       The list of `Destination` resources to be listed.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination destinations = 1;
      Specified by:
      getDestinationsList in interface ListDestinationsResponseOrBuilder
    • getDestinationsCount

      public int getDestinationsCount()
       The list of `Destination` resources to be listed.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination destinations = 1;
      Specified by:
      getDestinationsCount in interface ListDestinationsResponseOrBuilder
    • getDestinations

      public Destination getDestinations(int index)
       The list of `Destination` resources to be listed.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination destinations = 1;
      Specified by:
      getDestinations in interface ListDestinationsResponseOrBuilder
    • setDestinations

      public ListDestinationsResponse.Builder setDestinations(int index, Destination value)
       The list of `Destination` resources to be listed.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination destinations = 1;
    • setDestinations

      public ListDestinationsResponse.Builder setDestinations(int index, Destination.Builder builderForValue)
       The list of `Destination` resources to be listed.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination destinations = 1;
    • addDestinations

      public ListDestinationsResponse.Builder addDestinations(Destination value)
       The list of `Destination` resources to be listed.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination destinations = 1;
    • addDestinations

      public ListDestinationsResponse.Builder addDestinations(int index, Destination value)
       The list of `Destination` resources to be listed.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination destinations = 1;
    • addDestinations

      public ListDestinationsResponse.Builder addDestinations(Destination.Builder builderForValue)
       The list of `Destination` resources to be listed.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination destinations = 1;
    • addDestinations

      public ListDestinationsResponse.Builder addDestinations(int index, Destination.Builder builderForValue)
       The list of `Destination` resources to be listed.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination destinations = 1;
    • addAllDestinations

      public ListDestinationsResponse.Builder addAllDestinations(Iterable<? extends Destination> values)
       The list of `Destination` resources to be listed.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination destinations = 1;
    • clearDestinations

      public ListDestinationsResponse.Builder clearDestinations()
       The list of `Destination` resources to be listed.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination destinations = 1;
    • removeDestinations

      public ListDestinationsResponse.Builder removeDestinations(int index)
       The list of `Destination` resources to be listed.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination destinations = 1;
    • getDestinationsBuilder

      public Destination.Builder getDestinationsBuilder(int index)
       The list of `Destination` resources to be listed.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination destinations = 1;
    • getDestinationsOrBuilder

      public DestinationOrBuilder getDestinationsOrBuilder(int index)
       The list of `Destination` resources to be listed.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination destinations = 1;
      Specified by:
      getDestinationsOrBuilder in interface ListDestinationsResponseOrBuilder
    • getDestinationsOrBuilderList

      public List<? extends DestinationOrBuilder> getDestinationsOrBuilderList()
       The list of `Destination` resources to be listed.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination destinations = 1;
      Specified by:
      getDestinationsOrBuilderList in interface ListDestinationsResponseOrBuilder
    • addDestinationsBuilder

      public Destination.Builder addDestinationsBuilder()
       The list of `Destination` resources to be listed.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination destinations = 1;
    • addDestinationsBuilder

      public Destination.Builder addDestinationsBuilder(int index)
       The list of `Destination` resources to be listed.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination destinations = 1;
    • getDestinationsBuilderList

      public List<Destination.Builder> getDestinationsBuilderList()
       The list of `Destination` resources to be listed.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination destinations = 1;
    • getNextPageToken

      public String getNextPageToken()
       The next page token.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListDestinationsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       The next page token.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListDestinationsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListDestinationsResponse.Builder setNextPageToken(String value)
       The next page token.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListDestinationsResponse.Builder clearNextPageToken()
       The next page token.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListDestinationsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       The next 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()
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableList in interface ListDestinationsResponseOrBuilder
      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 ListDestinationsResponseOrBuilder
      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 ListDestinationsResponseOrBuilder
      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 ListDestinationsResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

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

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