@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@java.lang.Override public com.google.datastore.v1.GqlQuery buildPartial() { com.google.datastore.v1.GqlQuery result = new com.google.datastore.v1.GqlQuery(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.queryString_ = queryString_; result.allowLiterals_ = allowLiterals_; result.namedBindings_ = internalGetNamedBindings(); result.namedBindings_.makeImmutable(); if (positionalBindingsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { positionalBindings_ = java.util.Collections.unmodifiableList(positionalBindings_); bitField0_ = (bitField0_ & ~0x00000008); } result.positionalBindings_ = positionalBindings_; } else { result.positionalBindings_ = positionalBindingsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + QUERY_STRING_FIELD_NUMBER; hash = (53 * hash) + getQueryString().hashCode(); hash = (37 * hash) + ALLOW_LITERALS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowLiterals()); if (!internalGetNamedBindings().getMap().isEmpty()) { hash = (37 * hash) + NAMED_BINDINGS_FIELD_NUMBER; hash = (53 * hash) + internalGetNamedBindings().hashCode(); } if (getPositionalBindingsCount() > 0) { hash = (37 * hash) + POSITIONAL_BINDINGS_FIELD_NUMBER; hash = (53 * hash) + getPositionalBindingsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.datastore.v1.GqlQuery)) { return super.equals(obj); } com.google.datastore.v1.GqlQuery other = (com.google.datastore.v1.GqlQuery) obj; boolean result = true; result = result && getQueryString().equals(other.getQueryString()); result = result && (getAllowLiterals() == other.getAllowLiterals()); result = result && internalGetNamedBindings().equals(other.internalGetNamedBindings()); result = result && getPositionalBindingsList().equals(other.getPositionalBindingsList()); result = result && unknownFields.equals(other.unknownFields); return result; }
/** * * * <pre> * A string of the format described * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). * </pre> * * <code>string query_string = 1;</code> */ public Builder clearQueryString() { queryString_ = getDefaultInstance().getQueryString(); onChanged(); return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + QUERY_STRING_FIELD_NUMBER; hash = (53 * hash) + getQueryString().hashCode(); hash = (37 * hash) + ALLOW_LITERALS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAllowLiterals()); if (!internalGetNamedBindings().getMap().isEmpty()) { hash = (37 * hash) + NAMED_BINDINGS_FIELD_NUMBER; hash = (53 * hash) + internalGetNamedBindings().hashCode(); } if (getPositionalBindingsCount() > 0) { hash = (37 * hash) + POSITIONAL_BINDINGS_FIELD_NUMBER; hash = (53 * hash) + getPositionalBindingsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
if (gqlQueryBuilder_ == null) { if (queryTypeCase_ == 7 && queryType_ != com.google.datastore.v1.GqlQuery.getDefaultInstance()) { queryType_ = com.google.datastore.v1.GqlQuery.newBuilder( (com.google.datastore.v1.GqlQuery) queryType_) .mergeFrom(value)
public Builder mergeFrom(com.google.datastore.v1.GqlQuery other) { if (other == com.google.datastore.v1.GqlQuery.getDefaultInstance()) return this; if (!other.getQueryString().isEmpty()) { queryString_ = other.queryString_; onChanged(); if (other.getAllowLiterals() != false) { setAllowLiterals(other.getAllowLiterals());
@java.lang.Override public com.google.datastore.v1.GqlQuery getDefaultInstanceForType() { return com.google.datastore.v1.GqlQuery.getDefaultInstance(); }
/** Use {@link #getNamedBindingsMap()} instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, com.google.datastore.v1.GqlQueryParameter> getNamedBindings() { return getNamedBindingsMap(); } /**
break; case 7: result = result && getGqlQuery().equals(other.getGqlQuery()); break; case 0:
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.datastore.v1.GqlQuery)) { return super.equals(obj); } com.google.datastore.v1.GqlQuery other = (com.google.datastore.v1.GqlQuery) obj; boolean result = true; result = result && getQueryString().equals(other.getQueryString()); result = result && (getAllowLiterals() == other.getAllowLiterals()); result = result && internalGetNamedBindings().equals(other.internalGetNamedBindings()); result = result && getPositionalBindingsList().equals(other.getPositionalBindingsList()); result = result && unknownFields.equals(other.unknownFields); return result; }
/** * <pre> * The GQL query to run. * </pre> * * <code>optional .google.datastore.v1.GqlQuery gql_query = 7;</code> */ public Builder mergeGqlQuery(com.google.datastore.v1.GqlQuery value) { if (gqlQueryBuilder_ == null) { if (queryTypeCase_ == 7 && queryType_ != com.google.datastore.v1.GqlQuery.getDefaultInstance()) { queryType_ = com.google.datastore.v1.GqlQuery.newBuilder((com.google.datastore.v1.GqlQuery) queryType_) .mergeFrom(value).buildPartial(); } else { queryType_ = value; } onChanged(); } else { if (queryTypeCase_ == 7) { gqlQueryBuilder_.mergeFrom(value); } gqlQueryBuilder_.setMessage(value); } queryTypeCase_ = 7; return this; } /**
public Builder mergeFrom(com.google.datastore.v1.GqlQuery other) { if (other == com.google.datastore.v1.GqlQuery.getDefaultInstance()) return this; if (!other.getQueryString().isEmpty()) { queryString_ = other.queryString_; onChanged(); if (other.getAllowLiterals() != false) { setAllowLiterals(other.getAllowLiterals());
/** * * * <pre> * The GQL query to run. * </pre> * * <code>.google.datastore.v1.GqlQuery gql_query = 7;</code> */ public com.google.datastore.v1.GqlQueryOrBuilder getGqlQueryOrBuilder() { if (queryTypeCase_ == 7) { return (com.google.datastore.v1.GqlQuery) queryType_; } return com.google.datastore.v1.GqlQuery.getDefaultInstance(); }
/** * <pre> * A string of the format described * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). * </pre> * * <code>optional string query_string = 1;</code> */ public Builder clearQueryString() { queryString_ = getDefaultInstance().getQueryString(); onChanged(); return this; } /**
/** * Use {@link #getNamedBindingsMap()} instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, com.google.datastore.v1.GqlQueryParameter> getNamedBindings() { return getNamedBindingsMap(); } /**
break; case 7: result = result && getGqlQuery().equals(other.getGqlQuery()); break; case 0:
com.google.datastore.v1.GqlQuery toPb() { com.google.datastore.v1.GqlQuery.Builder queryPb = com.google.datastore.v1.GqlQuery.newBuilder(); queryPb.setQueryString(queryString); queryPb.setAllowLiterals(allowLiteral); for (Map.Entry<String, Binding> entry : namedBindings.entrySet()) { queryPb.putNamedBindings(entry.getKey(), entry.getValue().toPb()); } for (Binding argument : positionalBindings) { queryPb.addPositionalBindings(argument.toPb()); } return queryPb.build(); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + QUERY_STRING_FIELD_NUMBER; hash = (53 * hash) + getQueryString().hashCode(); hash = (37 * hash) + ALLOW_LITERALS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowLiterals()); if (!internalGetNamedBindings().getMap().isEmpty()) { hash = (37 * hash) + NAMED_BINDINGS_FIELD_NUMBER; hash = (53 * hash) + internalGetNamedBindings().hashCode(); } if (getPositionalBindingsCount() > 0) { hash = (37 * hash) + POSITIONAL_BINDINGS_FIELD_NUMBER; hash = (53 * hash) + getPositionalBindingsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }