Codota Logo
ListTablesRequest.newBuilder
Code IndexAdd Codota to your IDE (free)

How to use
newBuilder
method
in
com.google.bigtable.admin.v2.ListTablesRequest

Best Java code snippets using com.google.bigtable.admin.v2.ListTablesRequest.newBuilder (Showing top 17 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: googleapis/google-cloud-java

@java.lang.Override
public Builder newBuilderForType() {
 return newBuilder();
}
origin: googleapis/google-cloud-java

@Override
public ListTablesRequest injectToken(ListTablesRequest payload, String token) {
 return ListTablesRequest.newBuilder(payload).setPageToken(token).build();
}
origin: googleapis/google-cloud-java

/**
 * Lists all tables served from a specified instance.
 *
 * <p>Sample code:
 *
 * <pre><code>
 * try (BaseBigtableTableAdminClient baseBigtableTableAdminClient = BaseBigtableTableAdminClient.create()) {
 *   InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]");
 *   for (Table element : baseBigtableTableAdminClient.listTables(parent.toString()).iterateAll()) {
 *     // doThingsWith(element);
 *   }
 * }
 * </code></pre>
 *
 * @param parent The unique name of the instance for which tables should be listed. Values are of
 *     the form `projects/&lt;project&gt;/instances/&lt;instance&gt;`.
 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
 */
public final ListTablesPagedResponse listTables(String parent) {
 ListTablesRequest request = ListTablesRequest.newBuilder().setParent(parent).build();
 return listTables(request);
}
origin: googleapis/google-cloud-java

/**
 * Lists all tables served from a specified instance.
 *
 * <p>Sample code:
 *
 * <pre><code>
 * try (BaseBigtableTableAdminClient baseBigtableTableAdminClient = BaseBigtableTableAdminClient.create()) {
 *   InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]");
 *   for (Table element : baseBigtableTableAdminClient.listTables(parent).iterateAll()) {
 *     // doThingsWith(element);
 *   }
 * }
 * </code></pre>
 *
 * @param parent The unique name of the instance for which tables should be listed. Values are of
 *     the form `projects/&lt;project&gt;/instances/&lt;instance&gt;`.
 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
 */
public final ListTablesPagedResponse listTables(InstanceName parent) {
 ListTablesRequest request =
   ListTablesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
 return listTables(request);
}
origin: googleapis/google-cloud-java

public ApiFuture<List<String>> listTablesAsync() {
 ListTablesRequest request =
   ListTablesRequest.newBuilder()
     .setParent(NameUtil.formatInstanceName(projectId, instanceId))
     .build();
origin: googleapis/google-cloud-java

com.google.bigtable.admin.v2.ListTablesRequest.newBuilder()
  .setParent(INSTANCE_NAME)
  .build();
origin: com.google.api.grpc/proto-google-cloud-bigtable-admin-v2

@java.lang.Override
public Builder newBuilderForType() {
 return newBuilder();
}
origin: com.google.cloud.bigtable/bigtable-protos

public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
origin: com.google.cloud/google-cloud-bigtable

@Override
public ListTablesRequest injectToken(ListTablesRequest payload, String token) {
 return ListTablesRequest.newBuilder(payload).setPageToken(token).build();
}
origin: com.google.cloud.bigtable/bigtable-hbase

/**
 * Request a list of Tables for the cluster.  The {@link Table}s in the response will only
 * contain fully qualified Bigtable table names, and not column family information.
 */
private ListTablesResponse requestTableList() throws IOException {
 try {
  ListTablesRequest.Builder builder = ListTablesRequest.newBuilder();
  builder.setParent(bigtableInstanceName.toString());
  return bigtableTableAdminClient.listTables(builder.build());
 } catch (Throwable throwable) {
  throw new IOException("Failed to listTables", throwable);
 }
}
origin: GoogleCloudPlatform/cloud-bigtable-client

/** {@inheritDoc} */
@Override
public ListenableFuture<List<String>> listTablesAsync() {
 ListTablesRequest request = ListTablesRequest.newBuilder()
   .setParent(instanceName.toString())
   .build();
 ListenableFuture<ListTablesResponse> response = adminClient.listTablesAsync(request);
 return Futures.transform(response, new Function<ListTablesResponse, List<String>>() {
  @Override
  public List<String> apply(ListTablesResponse input) {
   ImmutableList.Builder<String> tableIdsBuilder = ImmutableList.builder();
   for(com.google.bigtable.admin.v2.Table tableProto : input.getTablesList()){
    tableIdsBuilder.add(instanceName.toTableId(tableProto.getName()));
   }
   return tableIdsBuilder.build();
  }
 }, MoreExecutors.directExecutor());
}
origin: GoogleCloudPlatform/cloud-bigtable-client

/** {@inheritDoc} */
@Override
public List<String> listTables() {
 ListTablesRequest requestProto = ListTablesRequest.newBuilder()
   .setParent(instanceName.toString())
   .build();
 ListTablesResponse response = adminClient.listTables(requestProto);
 ImmutableList.Builder<String> tableIdsBuilder = ImmutableList.builder();
 for(com.google.bigtable.admin.v2.Table tableProto : response.getTablesList()){
  tableIdsBuilder.add(instanceName.toTableId(tableProto.getName()));
 }
 return tableIdsBuilder.build();
}
origin: GoogleCloudPlatform/cloud-bigtable-client

private CompletableFuture<List<Table>> requestTableList() {
 ListTablesRequest  request = ListTablesRequest.newBuilder().setParent(bigtableInstanceName.toString()).build();
 return bigtableTableAdminClient.listTablesAsync(request)
   .thenApply(r -> r.getTablesList());
}
origin: com.google.cloud.bigtable/bigtable-hbase-2.x

private CompletableFuture<List<Table>> requestTableList() {
 ListTablesRequest  request = ListTablesRequest.newBuilder().setParent(bigtableInstanceName.toString()).build();
 return bigtableTableAdminClient.listTablesAsync(request)
   .thenApply(r -> r.getTablesList());
}
origin: com.google.cloud/google-cloud-bigtable

/**
 * Lists all tables served from a specified instance.
 *
 * <p>Sample code:
 *
 * <pre><code>
 * try (BaseBigtableTableAdminClient baseBigtableTableAdminClient = BaseBigtableTableAdminClient.create()) {
 *   InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]");
 *   for (Table element : baseBigtableTableAdminClient.listTables(parent.toString()).iterateAll()) {
 *     // doThingsWith(element);
 *   }
 * }
 * </code></pre>
 *
 * @param parent The unique name of the instance for which tables should be listed. Values are of
 *     the form `projects/&lt;project&gt;/instances/&lt;instance&gt;`.
 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
 */
public final ListTablesPagedResponse listTables(String parent) {
 ListTablesRequest request = ListTablesRequest.newBuilder().setParent(parent).build();
 return listTables(request);
}
origin: com.google.cloud/google-cloud-bigtable

/**
 * Lists all tables served from a specified instance.
 *
 * <p>Sample code:
 *
 * <pre><code>
 * try (BaseBigtableTableAdminClient baseBigtableTableAdminClient = BaseBigtableTableAdminClient.create()) {
 *   InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]");
 *   for (Table element : baseBigtableTableAdminClient.listTables(parent).iterateAll()) {
 *     // doThingsWith(element);
 *   }
 * }
 * </code></pre>
 *
 * @param parent The unique name of the instance for which tables should be listed. Values are of
 *     the form `projects/&lt;project&gt;/instances/&lt;instance&gt;`.
 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
 */
public final ListTablesPagedResponse listTables(InstanceName parent) {
 ListTablesRequest request =
   ListTablesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
 return listTables(request);
}
origin: com.google.cloud/google-cloud-bigtable

public ApiFuture<List<String>> listTablesAsync() {
 ListTablesRequest request =
   ListTablesRequest.newBuilder()
     .setParent(NameUtil.formatInstanceName(projectId, instanceId))
     .build();
com.google.bigtable.admin.v2ListTablesRequestnewBuilder

Popular methods of ListTablesRequest

  • getParent
    The unique name of the instance for which tables should be listed. Values are of the form project
  • getDefaultInstance
  • <init>
  • getDescriptor
  • getPageToken
    The value of `next_page_token` returned by a previous call. string page_token = 3;
  • getPageTokenBytes
    The value of `next_page_token` returned by a previous call. string page_token = 3;
  • getParentBytes
    The unique name of the instance for which tables should be listed. Values are of the form project
  • getViewValue
    The view to be applied to the returned tables' fields. Defaults to NAME_ONLY if unspecified (no o
  • isInitialized
  • makeExtensionsImmutable
  • toBuilder
  • getPageSize
    Maximum number of results per page. CURRENTLY UNIMPLEMENTED AND IGNORED. int32 page_size = 4;
  • toBuilder,
  • getPageSize,
  • parseUnknownFieldProto3

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now