/** * * * <pre> * The options for this lookup request. * </pre> * * <code>.google.datastore.v1.ReadOptions read_options = 1;</code> */ public com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder() { return getReadOptions(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (readOptions_ != null) { output.writeMessage(1, getReadOptions()); } for (int i = 0; i < keys_.size(); i++) { output.writeMessage(3, keys_.get(i)); } if (!getProjectIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, projectId_); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (readOptions_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadOptions()); } for (int i = 0; i < keys_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, keys_.get(i)); } if (!getProjectIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.datastore.v1.LookupRequest)) { return super.equals(obj); } com.google.datastore.v1.LookupRequest other = (com.google.datastore.v1.LookupRequest) obj; boolean result = true; result = result && getProjectId().equals(other.getProjectId()); result = result && (hasReadOptions() == other.hasReadOptions()); if (hasReadOptions()) { result = result && getReadOptions().equals(other.getReadOptions()); } result = result && getKeysList().equals(other.getKeysList()); 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) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getProjectId().hashCode(); if (hasReadOptions()) { hash = (37 * hash) + READ_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getReadOptions().hashCode(); } if (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
mergeReadOptions(other.getReadOptions());
/** * <pre> * The options for this lookup request. * </pre> * * <code>optional .google.datastore.v1.ReadOptions read_options = 1;</code> */ public com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder() { return getReadOptions(); }
/** * * * <pre> * The options for this lookup request. * </pre> * * <code>.google.datastore.v1.ReadOptions read_options = 1;</code> */ public com.google.datastore.v1.ReadOptionsOrBuilder getReadOptionsOrBuilder() { return getReadOptions(); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (readOptions_ != null) { output.writeMessage(1, getReadOptions()); } for (int i = 0; i < keys_.size(); i++) { output.writeMessage(3, keys_.get(i)); } if (!getProjectIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, projectId_); } }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (readOptions_ != null) { output.writeMessage(1, getReadOptions()); } for (int i = 0; i < keys_.size(); i++) { output.writeMessage(3, keys_.get(i)); } if (!getProjectIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, projectId_); } unknownFields.writeTo(output); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (readOptions_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getReadOptions()); } for (int i = 0; i < keys_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, keys_.get(i)); } if (!getProjectIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_); } memoizedSize = size; return size; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (readOptions_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadOptions()); } for (int i = 0; i < keys_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, keys_.get(i)); } if (!getProjectIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, projectId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.datastore.v1.LookupRequest)) { return super.equals(obj); } com.google.datastore.v1.LookupRequest other = (com.google.datastore.v1.LookupRequest) obj; boolean result = true; result = result && getProjectId().equals(other.getProjectId()); result = result && (hasReadOptions() == other.hasReadOptions()); if (hasReadOptions()) { result = result && getReadOptions().equals(other.getReadOptions()); } result = result && getKeysList().equals(other.getKeysList()); 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) + getDescriptorForType().hashCode(); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getProjectId().hashCode(); if (hasReadOptions()) { hash = (37 * hash) + READ_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getReadOptions().hashCode(); } if (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().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.LookupRequest)) { return super.equals(obj); } com.google.datastore.v1.LookupRequest other = (com.google.datastore.v1.LookupRequest) obj; boolean result = true; result = result && getProjectId() .equals(other.getProjectId()); result = result && (hasReadOptions() == other.hasReadOptions()); if (hasReadOptions()) { result = result && getReadOptions() .equals(other.getReadOptions()); } result = result && getKeysList() .equals(other.getKeysList()); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getProjectId().hashCode(); if (hasReadOptions()) { hash = (37 * hash) + READ_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getReadOptions().hashCode(); } if (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
mergeReadOptions(other.getReadOptions());
mergeReadOptions(other.getReadOptions());