@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.logging.v2.CreateSinkRequest)) { return super.equals(obj); } com.google.logging.v2.CreateSinkRequest other = (com.google.logging.v2.CreateSinkRequest) obj; boolean result = true; result = result && getParent().equals(other.getParent()); result = result && (hasSink() == other.hasSink()); if (hasSink()) { result = result && getSink().equals(other.getSink()); } result = result && (getUniqueWriterIdentity() == other.getUniqueWriterIdentity()); 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) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); if (hasSink()) { hash = (37 * hash) + SINK_FIELD_NUMBER; hash = (53 * hash) + getSink().hashCode(); } hash = (37 * hash) + UNIQUE_WRITER_IDENTITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUniqueWriterIdentity()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.logging.v2.CreateSinkRequest other) { if (other == com.google.logging.v2.CreateSinkRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } if (other.hasSink()) { mergeSink(other.getSink()); } if (other.getUniqueWriterIdentity() != false) { setUniqueWriterIdentity(other.getUniqueWriterIdentity()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }