@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.datastore.v1.GqlQueryParameter)) { return super.equals(obj); } com.google.datastore.v1.GqlQueryParameter other = (com.google.datastore.v1.GqlQueryParameter) obj; boolean result = true; result = result && getParameterTypeCase().equals(other.getParameterTypeCase()); if (!result) return false; switch (parameterTypeCase_) { case 2: result = result && getValue().equals(other.getValue()); break; case 3: result = result && getCursor().equals(other.getCursor()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@java.lang.Override public com.google.datastore.v1.GqlQueryParameter buildPartial() { com.google.datastore.v1.GqlQueryParameter result = new com.google.datastore.v1.GqlQueryParameter(this); if (parameterTypeCase_ == 2) { if (valueBuilder_ == null) { result.parameterType_ = parameterType_; } else { result.parameterType_ = valueBuilder_.build(); } } if (parameterTypeCase_ == 3) { result.parameterType_ = parameterType_; } result.parameterTypeCase_ = parameterTypeCase_; onBuilt(); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (parameterTypeCase_) { case 2: hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); break; case 3: hash = (37 * hash) + CURSOR_FIELD_NUMBER; hash = (53 * hash) + getCursor().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.datastore.v1.GqlQueryParameter other) { if (other == com.google.datastore.v1.GqlQueryParameter.getDefaultInstance()) return this; switch (other.getParameterTypeCase()) { case VALUE: { mergeValue(other.getValue()); break; } case CURSOR: { setCursor(other.getCursor()); break; } case PARAMETERTYPE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); switch (parameterTypeCase_) { case 2: hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); break; case 3: hash = (37 * hash) + CURSOR_FIELD_NUMBER; hash = (53 * hash) + getCursor().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public com.google.datastore.v1.GqlQueryParameter getDefaultInstanceForType() { return com.google.datastore.v1.GqlQueryParameter.getDefaultInstance(); }
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); }
if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
@java.lang.Override public com.google.datastore.v1.GqlQueryParameter build() { com.google.datastore.v1.GqlQueryParameter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
com.google.datastore.v1.GqlQueryParameter.parser(), extensionRegistry)); break;
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
public Builder mergeFrom(com.google.datastore.v1.GqlQueryParameter other) { if (other == com.google.datastore.v1.GqlQueryParameter.getDefaultInstance()) return this; switch (other.getParameterTypeCase()) { case VALUE: { mergeValue(other.getValue()); break; } case CURSOR: { setCursor(other.getCursor()); break; } case PARAMETERTYPE_NOT_SET: { break; } } onChanged(); return this; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (parameterTypeCase_) { case 2: hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); break; case 3: hash = (37 * hash) + CURSOR_FIELD_NUMBER; hash = (53 * hash) + getCursor().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * * * <pre> * Numbered binding site @1 references the first numbered parameter, * effectively using 1-based indexing, rather than the usual 0. * For each binding site numbered i in `query_string`, there must be an i-th * numbered parameter. The inverse must also be true. * </pre> * * <code>repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4;</code> */ public com.google.datastore.v1.GqlQueryParameter.Builder addPositionalBindingsBuilder() { return getPositionalBindingsFieldBuilder() .addBuilder(com.google.datastore.v1.GqlQueryParameter.getDefaultInstance()); } /**
public static Builder newBuilder(com.google.datastore.v1.GqlQueryParameter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); }
if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
@java.lang.Override public com.google.datastore.v1.GqlQueryParameter build() { com.google.datastore.v1.GqlQueryParameter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
input.readMessage(com.google.datastore.v1.GqlQueryParameter.parser(), extensionRegistry)); break;
static Binding fromPb(com.google.datastore.v1.GqlQueryParameter argPb) { switch (argPb.getParameterTypeCase()) { case CURSOR: return new Binding(new Cursor(argPb.getCursor())); case VALUE: return new Binding(Value.fromPb(argPb.getValue())); default: throw new AssertionError("Unexpected enum value " + argPb.getParameterTypeCase()); } } }