Class SearchConnectionsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchConnectionsResponse.Builder>
com.google.privacy.dlp.v2.SearchConnectionsResponse.Builder
All Implemented Interfaces:
SearchConnectionsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SearchConnectionsResponse

public static final class SearchConnectionsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchConnectionsResponse.Builder> implements SearchConnectionsResponseOrBuilder
 Response message for SearchConnections.
 
Protobuf type google.privacy.dlp.v2.SearchConnectionsResponse
  • 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<SearchConnectionsResponse.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<SearchConnectionsResponse.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<SearchConnectionsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public List<Connection> getConnectionsList()
       List of connections that match the search query. Note that only a subset
       of the fields will be populated, and only "name" is guaranteed to be set.
       For full details of a Connection, call GetConnection with the name.
       
      repeated .google.privacy.dlp.v2.Connection connections = 1;
      Specified by:
      getConnectionsList in interface SearchConnectionsResponseOrBuilder
    • getConnectionsCount

      public int getConnectionsCount()
       List of connections that match the search query. Note that only a subset
       of the fields will be populated, and only "name" is guaranteed to be set.
       For full details of a Connection, call GetConnection with the name.
       
      repeated .google.privacy.dlp.v2.Connection connections = 1;
      Specified by:
      getConnectionsCount in interface SearchConnectionsResponseOrBuilder
    • getConnections

      public Connection getConnections(int index)
       List of connections that match the search query. Note that only a subset
       of the fields will be populated, and only "name" is guaranteed to be set.
       For full details of a Connection, call GetConnection with the name.
       
      repeated .google.privacy.dlp.v2.Connection connections = 1;
      Specified by:
      getConnections in interface SearchConnectionsResponseOrBuilder
    • setConnections

      public SearchConnectionsResponse.Builder setConnections(int index, Connection value)
       List of connections that match the search query. Note that only a subset
       of the fields will be populated, and only "name" is guaranteed to be set.
       For full details of a Connection, call GetConnection with the name.
       
      repeated .google.privacy.dlp.v2.Connection connections = 1;
    • setConnections

      public SearchConnectionsResponse.Builder setConnections(int index, Connection.Builder builderForValue)
       List of connections that match the search query. Note that only a subset
       of the fields will be populated, and only "name" is guaranteed to be set.
       For full details of a Connection, call GetConnection with the name.
       
      repeated .google.privacy.dlp.v2.Connection connections = 1;
    • addConnections

      public SearchConnectionsResponse.Builder addConnections(Connection value)
       List of connections that match the search query. Note that only a subset
       of the fields will be populated, and only "name" is guaranteed to be set.
       For full details of a Connection, call GetConnection with the name.
       
      repeated .google.privacy.dlp.v2.Connection connections = 1;
    • addConnections

      public SearchConnectionsResponse.Builder addConnections(int index, Connection value)
       List of connections that match the search query. Note that only a subset
       of the fields will be populated, and only "name" is guaranteed to be set.
       For full details of a Connection, call GetConnection with the name.
       
      repeated .google.privacy.dlp.v2.Connection connections = 1;
    • addConnections

      public SearchConnectionsResponse.Builder addConnections(Connection.Builder builderForValue)
       List of connections that match the search query. Note that only a subset
       of the fields will be populated, and only "name" is guaranteed to be set.
       For full details of a Connection, call GetConnection with the name.
       
      repeated .google.privacy.dlp.v2.Connection connections = 1;
    • addConnections

      public SearchConnectionsResponse.Builder addConnections(int index, Connection.Builder builderForValue)
       List of connections that match the search query. Note that only a subset
       of the fields will be populated, and only "name" is guaranteed to be set.
       For full details of a Connection, call GetConnection with the name.
       
      repeated .google.privacy.dlp.v2.Connection connections = 1;
    • addAllConnections

      public SearchConnectionsResponse.Builder addAllConnections(Iterable<? extends Connection> values)
       List of connections that match the search query. Note that only a subset
       of the fields will be populated, and only "name" is guaranteed to be set.
       For full details of a Connection, call GetConnection with the name.
       
      repeated .google.privacy.dlp.v2.Connection connections = 1;
    • clearConnections

      public SearchConnectionsResponse.Builder clearConnections()
       List of connections that match the search query. Note that only a subset
       of the fields will be populated, and only "name" is guaranteed to be set.
       For full details of a Connection, call GetConnection with the name.
       
      repeated .google.privacy.dlp.v2.Connection connections = 1;
    • removeConnections

      public SearchConnectionsResponse.Builder removeConnections(int index)
       List of connections that match the search query. Note that only a subset
       of the fields will be populated, and only "name" is guaranteed to be set.
       For full details of a Connection, call GetConnection with the name.
       
      repeated .google.privacy.dlp.v2.Connection connections = 1;
    • getConnectionsBuilder

      public Connection.Builder getConnectionsBuilder(int index)
       List of connections that match the search query. Note that only a subset
       of the fields will be populated, and only "name" is guaranteed to be set.
       For full details of a Connection, call GetConnection with the name.
       
      repeated .google.privacy.dlp.v2.Connection connections = 1;
    • getConnectionsOrBuilder

      public ConnectionOrBuilder getConnectionsOrBuilder(int index)
       List of connections that match the search query. Note that only a subset
       of the fields will be populated, and only "name" is guaranteed to be set.
       For full details of a Connection, call GetConnection with the name.
       
      repeated .google.privacy.dlp.v2.Connection connections = 1;
      Specified by:
      getConnectionsOrBuilder in interface SearchConnectionsResponseOrBuilder
    • getConnectionsOrBuilderList

      public List<? extends ConnectionOrBuilder> getConnectionsOrBuilderList()
       List of connections that match the search query. Note that only a subset
       of the fields will be populated, and only "name" is guaranteed to be set.
       For full details of a Connection, call GetConnection with the name.
       
      repeated .google.privacy.dlp.v2.Connection connections = 1;
      Specified by:
      getConnectionsOrBuilderList in interface SearchConnectionsResponseOrBuilder
    • addConnectionsBuilder

      public Connection.Builder addConnectionsBuilder()
       List of connections that match the search query. Note that only a subset
       of the fields will be populated, and only "name" is guaranteed to be set.
       For full details of a Connection, call GetConnection with the name.
       
      repeated .google.privacy.dlp.v2.Connection connections = 1;
    • addConnectionsBuilder

      public Connection.Builder addConnectionsBuilder(int index)
       List of connections that match the search query. Note that only a subset
       of the fields will be populated, and only "name" is guaranteed to be set.
       For full details of a Connection, call GetConnection with the name.
       
      repeated .google.privacy.dlp.v2.Connection connections = 1;
    • getConnectionsBuilderList

      public List<Connection.Builder> getConnectionsBuilderList()
       List of connections that match the search query. Note that only a subset
       of the fields will be populated, and only "name" is guaranteed to be set.
       For full details of a Connection, call GetConnection with the name.
       
      repeated .google.privacy.dlp.v2.Connection connections = 1;
    • getNextPageToken

      public String getNextPageToken()
       Token to retrieve the next page of results. An empty value means there are
       no more results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface SearchConnectionsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       Token to retrieve the next page of results. An empty value means there are
       no more results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface SearchConnectionsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public SearchConnectionsResponse.Builder setNextPageToken(String value)
       Token to retrieve the next page of results. An empty value means there are
       no more results.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public SearchConnectionsResponse.Builder clearNextPageToken()
       Token to retrieve the next page of results. An empty value means there are
       no more results.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public SearchConnectionsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       Token to retrieve the next page of results. An empty value means there are
       no more results.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.