@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + PRODUCER_FIELD_NUMBER; hash = (53 * hash) + getProducer().hashCode(); hash = (37 * hash) + FIRST_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFirst()); hash = (37 * hash) + LAST_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLast()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * * * <pre> * Optional. An arbitrary producer identifier. The combination of * `id` and `producer` must be globally unique. Examples for `producer`: * `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`. * </pre> * * <code>string producer = 2;</code> */ public Builder clearProducer() { producer_ = getDefaultInstance().getProducer(); onChanged(); return this; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.logging.v2.LogEntryOperation)) { return super.equals(obj); } com.google.logging.v2.LogEntryOperation other = (com.google.logging.v2.LogEntryOperation) obj; boolean result = true; result = result && getId().equals(other.getId()); result = result && getProducer().equals(other.getProducer()); result = result && (getFirst() == other.getFirst()); result = result && (getLast() == other.getLast()); result = result && unknownFields.equals(other.unknownFields); return result; }
static Operation fromPb(LogEntryOperation operationPb) { return newBuilder(operationPb.getId(), operationPb.getProducer()) .setFirst(operationPb.getFirst()) .setLast(operationPb.getLast()) .build(); } }
public Builder mergeFrom(com.google.logging.v2.LogEntryOperation other) { if (other == com.google.logging.v2.LogEntryOperation.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getProducer().isEmpty()) { producer_ = other.producer_; onChanged(); } if (other.getFirst() != false) { setFirst(other.getFirst()); } if (other.getLast() != false) { setLast(other.getLast()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
static Operation fromPb(LogEntryOperation operationPb) { return newBuilder(operationPb.getId(), operationPb.getProducer()) .setFirst(operationPb.getFirst()) .setLast(operationPb.getLast()) .build(); } }