com.google.datastore.v1.Query.getKindCount()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(139)

本文整理了Java中com.google.datastore.v1.Query.getKindCount方法的一些代码示例,展示了Query.getKindCount的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getKindCount方法的具体详情如下:
包路径:com.google.datastore.v1.Query
类名称:Query
方法名:getKindCount

Query.getKindCount介绍

[英]```
The kinds to query (if empty, returns entities of all kinds).
Currently at most 1 kind may be specified.

`repeated .google.datastore.v1.KindExpression kind = 3;`
[中]```
The kinds to query (if empty, returns entities of all kinds). 
Currently at most 1 kind may be specified.

repeated .google.datastore.v1.KindExpression kind = 3;

代码示例

代码示例来源:origin: googleapis/google-cloud-java

hash = (53 * hash) + getProjectionList().hashCode();
if (getKindCount() > 0) {
 hash = (37 * hash) + KIND_FIELD_NUMBER;
 hash = (53 * hash) + getKindList().hashCode();

代码示例来源:origin: googleapis/google-cloud-java

B mergeFrom(com.google.datastore.v1.Query queryPb) {
 if (queryPb.getKindCount() > 0) {
  setKind(queryPb.getKind(0).getName());

代码示例来源:origin: com.google.cloud.datastore/datastore-v1-proto-client

/**
 * Verifies that the given query can be properly scattered.
 *
 * @param query the query to verify
 * @throws IllegalArgumentException if the query is invalid.
 */
private void validateQuery(Query query) throws IllegalArgumentException {
 if (query.getKindCount() != 1) {
  throw new IllegalArgumentException("Query must have exactly one kind.");
 }
 if (query.getOrderCount() != 0) {
  throw new IllegalArgumentException("Query cannot have any sort orders.");
 }
 if (query.hasFilter()) {
  validateFilter(query.getFilter());
 }
}

代码示例来源:origin: GoogleCloudPlatform/google-cloud-datastore

/**
 * Verifies that the given query can be properly scattered.
 *
 * @param query the query to verify
 * @throws IllegalArgumentException if the query is invalid.
 */
private void validateQuery(Query query) throws IllegalArgumentException {
 if (query.getKindCount() != 1) {
  throw new IllegalArgumentException("Query must have exactly one kind.");
 }
 if (query.getOrderCount() != 0) {
  throw new IllegalArgumentException("Query cannot have any sort orders.");
 }
 if (query.hasFilter()) {
  validateFilter(query.getFilter());
 }
}

代码示例来源:origin: com.google.cloud.datastore/datastore-v1-protos

hash = (53 * hash) + getProjectionList().hashCode();
if (getKindCount() > 0) {
 hash = (37 * hash) + KIND_FIELD_NUMBER;
 hash = (53 * hash) + getKindList().hashCode();

代码示例来源:origin: com.google.api.grpc/proto-google-cloud-datastore-v1

hash = (53 * hash) + getProjectionList().hashCode();
if (getKindCount() > 0) {
 hash = (37 * hash) + KIND_FIELD_NUMBER;
 hash = (53 * hash) + getKindList().hashCode();

代码示例来源:origin: com.google.cloud/google-cloud-datastore

B mergeFrom(com.google.datastore.v1.Query queryPb) {
 if (queryPb.getKindCount() > 0) {
  setKind(queryPb.getKind(0).getName());

相关文章