Tabnine Logo
ListTablesRequest.getParent
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: googleapis/google-cloud-java

 @Override
 public Map<String, String> extract(ListTablesRequest request) {
  ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
  params.put("parent", String.valueOf(request.getParent()));
  return params.build();
 }
})
origin: googleapis/google-cloud-java

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.bigtable.admin.v2.ListTablesRequest)) {
  return super.equals(obj);
 }
 com.google.bigtable.admin.v2.ListTablesRequest other =
   (com.google.bigtable.admin.v2.ListTablesRequest) obj;
 boolean result = true;
 result = result && getParent().equals(other.getParent());
 result = result && view_ == other.view_;
 result = result && (getPageSize() == other.getPageSize());
 result = result && getPageToken().equals(other.getPageToken());
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}
origin: googleapis/google-cloud-java

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + PARENT_FIELD_NUMBER;
 hash = (53 * hash) + getParent().hashCode();
 hash = (37 * hash) + VIEW_FIELD_NUMBER;
 hash = (53 * hash) + view_;
 hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
 hash = (53 * hash) + getPageSize();
 hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
 hash = (53 * hash) + getPageToken().hashCode();
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: googleapis/google-cloud-java

/**
 *
 *
 * <pre>
 * 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;`.
 * </pre>
 *
 * <code>string parent = 1;</code>
 */
public Builder clearParent() {
 parent_ = getDefaultInstance().getParent();
 onChanged();
 return this;
}
/**
origin: googleapis/google-cloud-java

public Builder mergeFrom(com.google.bigtable.admin.v2.ListTablesRequest other) {
 if (other == com.google.bigtable.admin.v2.ListTablesRequest.getDefaultInstance()) return this;
 if (!other.getParent().isEmpty()) {
  parent_ = other.parent_;
  onChanged();
 }
 if (other.view_ != 0) {
  setViewValue(other.getViewValue());
 }
 if (other.getPageSize() != 0) {
  setPageSize(other.getPageSize());
 }
 if (!other.getPageToken().isEmpty()) {
  pageToken_ = other.pageToken_;
  onChanged();
 }
 this.mergeUnknownFields(other.unknownFields);
 onChanged();
 return this;
}
origin: googleapis/google-cloud-java

@Test
@SuppressWarnings("all")
public void listTablesTest() {
 String nextPageToken = "";
 Table tablesElement = Table.newBuilder().build();
 List<Table> tables = Arrays.asList(tablesElement);
 ListTablesResponse expectedResponse =
   ListTablesResponse.newBuilder()
     .setNextPageToken(nextPageToken)
     .addAllTables(tables)
     .build();
 mockBigtableTableAdmin.addResponse(expectedResponse);
 InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]");
 ListTablesPagedResponse pagedListResponse = client.listTables(parent);
 List<Table> resources = Lists.newArrayList(pagedListResponse.iterateAll());
 Assert.assertEquals(1, resources.size());
 Assert.assertEquals(expectedResponse.getTablesList().get(0), resources.get(0));
 List<GeneratedMessageV3> actualRequests = mockBigtableTableAdmin.getRequests();
 Assert.assertEquals(1, actualRequests.size());
 ListTablesRequest actualRequest = (ListTablesRequest) actualRequests.get(0);
 Assert.assertEquals(parent, InstanceName.parse(actualRequest.getParent()));
 Assert.assertTrue(
   channelProvider.isHeaderSent(
     ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
     GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}
origin: com.google.cloud/google-cloud-bigtable

 @Override
 public Map<String, String> extract(ListTablesRequest request) {
  ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
  params.put("parent", String.valueOf(request.getParent()));
  return params.build();
 }
})
origin: com.google.cloud.bigtable/bigtable-protos

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.bigtable.admin.v2.ListTablesRequest)) {
  return super.equals(obj);
 }
 com.google.bigtable.admin.v2.ListTablesRequest other = (com.google.bigtable.admin.v2.ListTablesRequest) obj;
 boolean result = true;
 result = result && getParent()
   .equals(other.getParent());
 result = result && view_ == other.view_;
 result = result && getPageToken()
   .equals(other.getPageToken());
 return result;
}
origin: com.google.cloud.bigtable/bigtable-protos

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + PARENT_FIELD_NUMBER;
 hash = (53 * hash) + getParent().hashCode();
 hash = (37 * hash) + VIEW_FIELD_NUMBER;
 hash = (53 * hash) + view_;
 hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
 hash = (53 * hash) + getPageToken().hashCode();
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: GoogleCloudPlatform/cloud-bigtable-client

/** {@inheritDoc} */
@Override
public ListenableFuture<ListTablesResponse> listTablesAsync(ListTablesRequest request) {
 return createUnaryListener(request, listTablesRpc, request.getParent()).getAsyncResult();
}
origin: com.google.api.grpc/proto-google-cloud-bigtable-admin-v2

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.bigtable.admin.v2.ListTablesRequest)) {
  return super.equals(obj);
 }
 com.google.bigtable.admin.v2.ListTablesRequest other =
   (com.google.bigtable.admin.v2.ListTablesRequest) obj;
 boolean result = true;
 result = result && getParent().equals(other.getParent());
 result = result && view_ == other.view_;
 result = result && (getPageSize() == other.getPageSize());
 result = result && getPageToken().equals(other.getPageToken());
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}
origin: GoogleCloudPlatform/cloud-bigtable-client

/** {@inheritDoc} */
@Override
public ListTablesResponse listTables(ListTablesRequest request) {
 return createUnaryListener(request, listTablesRpc, request.getParent()).getBlockingResult();
}
origin: com.google.api.grpc/proto-google-cloud-bigtable-admin-v2

/**
 *
 *
 * <pre>
 * 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;`.
 * </pre>
 *
 * <code>string parent = 1;</code>
 */
public Builder clearParent() {
 parent_ = getDefaultInstance().getParent();
 onChanged();
 return this;
}
/**
origin: com.google.cloud.bigtable/bigtable-protos

/**
 * <pre>
 * 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;
 * </pre>
 *
 * <code>string parent = 1;</code>
 */
public Builder clearParent() {
 
 parent_ = getDefaultInstance().getParent();
 onChanged();
 return this;
}
/**
origin: com.google.api.grpc/proto-google-cloud-bigtable-admin-v2

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + PARENT_FIELD_NUMBER;
 hash = (53 * hash) + getParent().hashCode();
 hash = (37 * hash) + VIEW_FIELD_NUMBER;
 hash = (53 * hash) + view_;
 hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
 hash = (53 * hash) + getPageSize();
 hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
 hash = (53 * hash) + getPageToken().hashCode();
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: com.google.cloud.bigtable/bigtable-protos

public Builder mergeFrom(com.google.bigtable.admin.v2.ListTablesRequest other) {
 if (other == com.google.bigtable.admin.v2.ListTablesRequest.getDefaultInstance()) return this;
 if (!other.getParent().isEmpty()) {
  parent_ = other.parent_;
  onChanged();
 }
 if (other.view_ != 0) {
  setViewValue(other.getViewValue());
 }
 if (!other.getPageToken().isEmpty()) {
  pageToken_ = other.pageToken_;
  onChanged();
 }
 onChanged();
 return this;
}
origin: com.google.api.grpc/proto-google-cloud-bigtable-admin-v2

public Builder mergeFrom(com.google.bigtable.admin.v2.ListTablesRequest other) {
 if (other == com.google.bigtable.admin.v2.ListTablesRequest.getDefaultInstance()) return this;
 if (!other.getParent().isEmpty()) {
  parent_ = other.parent_;
  onChanged();
 }
 if (other.view_ != 0) {
  setViewValue(other.getViewValue());
 }
 if (other.getPageSize() != 0) {
  setPageSize(other.getPageSize());
 }
 if (!other.getPageToken().isEmpty()) {
  pageToken_ = other.pageToken_;
  onChanged();
 }
 this.mergeUnknownFields(other.unknownFields);
 onChanged();
 return this;
}
com.google.bigtable.admin.v2ListTablesRequestgetParent

Javadoc

 
The unique name of the instance for which tables should be listed. 
Values are of the form `projects/<project>/instances/<instance>`. 
string parent = 1;

Popular methods of ListTablesRequest

  • newBuilder
  • 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

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JTable (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Runner (org.openjdk.jmh.runner)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now