@SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetNamedBindings(); default: throw new RuntimeException("Invalid map field number: " + number); } }
public int getNamedBindingsCount() { return internalGetNamedBindings().getMap().size(); } /**
/** * * * <pre> * For each non-reserved named binding site in the query string, there must be * a named parameter with that name, but not necessarily the inverse. * Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex * `__.*__`, and must not be `""`. * </pre> * * <code>map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;</code> */ public boolean containsNamedBindings(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetNamedBindings().getMap().containsKey(key); } /** Use {@link #getNamedBindingsMap()} instead. */
/** * * * <pre> * For each non-reserved named binding site in the query string, there must be * a named parameter with that name, but not necessarily the inverse. * Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex * `__.*__`, and must not be `""`. * </pre> * * <code>map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;</code> */ public java.util.Map<java.lang.String, com.google.datastore.v1.GqlQueryParameter> getNamedBindingsMap() { return internalGetNamedBindings().getMap(); } /**
/** * * * <pre> * For each non-reserved named binding site in the query string, there must be * a named parameter with that name, but not necessarily the inverse. * Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex * `__.*__`, and must not be `""`. * </pre> * * <code>map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;</code> */ public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrDefault( java.lang.String key, com.google.datastore.v1.GqlQueryParameter defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.datastore.v1.GqlQueryParameter> map = internalGetNamedBindings().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryStringBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryString_); } if (allowLiterals_ != false) { output.writeBool(2, allowLiterals_); } for (int i = 0; i < positionalBindings_.size(); i++) { output.writeMessage(4, positionalBindings_.get(i)); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetNamedBindings(), NamedBindingsDefaultEntryHolder.defaultEntry, 5); unknownFields.writeTo(output); }
/** * * * <pre> * For each non-reserved named binding site in the query string, there must be * a named parameter with that name, but not necessarily the inverse. * Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex * `__.*__`, and must not be `""`. * </pre> * * <code>map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;</code> */ public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.datastore.v1.GqlQueryParameter> map = internalGetNamedBindings().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); }
@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; }
@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 int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getQueryStringBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queryString_); } if (allowLiterals_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowLiterals_); } for (int i = 0; i < positionalBindings_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, positionalBindings_.get(i)); } for (java.util.Map.Entry<java.lang.String, com.google.datastore.v1.GqlQueryParameter> entry : internalGetNamedBindings().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, com.google.datastore.v1.GqlQueryParameter> namedBindings__ = NamedBindingsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, namedBindings__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetNamedBindings(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetNamedBindings(); default: throw new RuntimeException("Invalid map field number: " + number); } }
public int getNamedBindingsCount() { return internalGetNamedBindings().getMap().size(); } /**
public int getNamedBindingsCount() { return internalGetNamedBindings().getMap().size(); } /**
/** * <pre> * For each non-reserved named binding site in the query string, there must be * a named parameter with that name, but not necessarily the inverse. * Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex * `__.*__`, and must not be `""`. * </pre> * * <code>map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;</code> */ public java.util.Map<java.lang.String, com.google.datastore.v1.GqlQueryParameter> getNamedBindingsMap() { return internalGetNamedBindings().getMap(); } /**
/** * <pre> * For each non-reserved named binding site in the query string, there must be * a named parameter with that name, but not necessarily the inverse. * Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex * `__.*__`, and must not be `""`. * </pre> * * <code>map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;</code> */ public boolean containsNamedBindings( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetNamedBindings().getMap().containsKey(key); } /**
/** * * * <pre> * For each non-reserved named binding site in the query string, there must be * a named parameter with that name, but not necessarily the inverse. * Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex * `__.*__`, and must not be `""`. * </pre> * * <code>map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;</code> */ public boolean containsNamedBindings(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetNamedBindings().getMap().containsKey(key); } /** Use {@link #getNamedBindingsMap()} instead. */
/** * <pre> * For each non-reserved named binding site in the query string, there must be * a named parameter with that name, but not necessarily the inverse. * Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex * `__.*__`, and must not be `""`. * </pre> * * <code>map<string, .google.datastore.v1.GqlQueryParameter> named_bindings = 5;</code> */ public com.google.datastore.v1.GqlQueryParameter getNamedBindingsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.datastore.v1.GqlQueryParameter> map = internalGetNamedBindings().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryStringBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryString_); } if (allowLiterals_ != false) { output.writeBool(2, allowLiterals_); } for (int i = 0; i < positionalBindings_.size(); i++) { output.writeMessage(4, positionalBindings_.get(i)); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetNamedBindings(), NamedBindingsDefaultEntryHolder.defaultEntry, 5); unknownFields.writeTo(output); }
@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; }