Class ListConnectionsResponse.Builder

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

public static final class ListConnectionsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListConnectionsResponse.Builder> implements ListConnectionsResponseOrBuilder
 Message for response to listing Connections
 
Protobuf type google.cloud.developerconnect.v1.ListConnectionsResponse
  • 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<ListConnectionsResponse.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<ListConnectionsResponse.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<ListConnectionsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListConnectionsResponse.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<ListConnectionsResponse.Builder>
      Throws:
      IOException
    • getConnectionsList

      public List<Connection> getConnectionsList()
       The list of Connection
       
      repeated .google.cloud.developerconnect.v1.Connection connections = 1;
      Specified by:
      getConnectionsList in interface ListConnectionsResponseOrBuilder
    • getConnectionsCount

      public int getConnectionsCount()
       The list of Connection
       
      repeated .google.cloud.developerconnect.v1.Connection connections = 1;
      Specified by:
      getConnectionsCount in interface ListConnectionsResponseOrBuilder
    • getConnections

      public Connection getConnections(int index)
       The list of Connection
       
      repeated .google.cloud.developerconnect.v1.Connection connections = 1;
      Specified by:
      getConnections in interface ListConnectionsResponseOrBuilder
    • setConnections

      public ListConnectionsResponse.Builder setConnections(int index, Connection value)
       The list of Connection
       
      repeated .google.cloud.developerconnect.v1.Connection connections = 1;
    • setConnections

      public ListConnectionsResponse.Builder setConnections(int index, Connection.Builder builderForValue)
       The list of Connection
       
      repeated .google.cloud.developerconnect.v1.Connection connections = 1;
    • addConnections

      public ListConnectionsResponse.Builder addConnections(Connection value)
       The list of Connection
       
      repeated .google.cloud.developerconnect.v1.Connection connections = 1;
    • addConnections

      public ListConnectionsResponse.Builder addConnections(int index, Connection value)
       The list of Connection
       
      repeated .google.cloud.developerconnect.v1.Connection connections = 1;
    • addConnections

      public ListConnectionsResponse.Builder addConnections(Connection.Builder builderForValue)
       The list of Connection
       
      repeated .google.cloud.developerconnect.v1.Connection connections = 1;
    • addConnections

      public ListConnectionsResponse.Builder addConnections(int index, Connection.Builder builderForValue)
       The list of Connection
       
      repeated .google.cloud.developerconnect.v1.Connection connections = 1;
    • addAllConnections

      public ListConnectionsResponse.Builder addAllConnections(Iterable<? extends Connection> values)
       The list of Connection
       
      repeated .google.cloud.developerconnect.v1.Connection connections = 1;
    • clearConnections

      public ListConnectionsResponse.Builder clearConnections()
       The list of Connection
       
      repeated .google.cloud.developerconnect.v1.Connection connections = 1;
    • removeConnections

      public ListConnectionsResponse.Builder removeConnections(int index)
       The list of Connection
       
      repeated .google.cloud.developerconnect.v1.Connection connections = 1;
    • getConnectionsBuilder

      public Connection.Builder getConnectionsBuilder(int index)
       The list of Connection
       
      repeated .google.cloud.developerconnect.v1.Connection connections = 1;
    • getConnectionsOrBuilder

      public ConnectionOrBuilder getConnectionsOrBuilder(int index)
       The list of Connection
       
      repeated .google.cloud.developerconnect.v1.Connection connections = 1;
      Specified by:
      getConnectionsOrBuilder in interface ListConnectionsResponseOrBuilder
    • getConnectionsOrBuilderList

      public List<? extends ConnectionOrBuilder> getConnectionsOrBuilderList()
       The list of Connection
       
      repeated .google.cloud.developerconnect.v1.Connection connections = 1;
      Specified by:
      getConnectionsOrBuilderList in interface ListConnectionsResponseOrBuilder
    • addConnectionsBuilder

      public Connection.Builder addConnectionsBuilder()
       The list of Connection
       
      repeated .google.cloud.developerconnect.v1.Connection connections = 1;
    • addConnectionsBuilder

      public Connection.Builder addConnectionsBuilder(int index)
       The list of Connection
       
      repeated .google.cloud.developerconnect.v1.Connection connections = 1;
    • getConnectionsBuilderList

      public List<Connection.Builder> getConnectionsBuilderList()
       The list of Connection
       
      repeated .google.cloud.developerconnect.v1.Connection connections = 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 ListConnectionsResponseOrBuilder
      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 ListConnectionsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListConnectionsResponse.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 ListConnectionsResponse.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 ListConnectionsResponse.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.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableList in interface ListConnectionsResponseOrBuilder
      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 ListConnectionsResponseOrBuilder
      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 ListConnectionsResponseOrBuilder
      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 ListConnectionsResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

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

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