/** * * * <pre> * Required. The end of the time interval. * </pre> * * <code>.google.protobuf.Timestamp end_time = 2;</code> */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { return getEndTime(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } if (endTime_ != null) { output.writeMessage(2, getEndTime()); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasEndTime()) { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().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.monitoring.v3.TimeInterval)) { return super.equals(obj); } com.google.monitoring.v3.TimeInterval other = (com.google.monitoring.v3.TimeInterval) obj; boolean result = true; result = result && (hasEndTime() == other.hasEndTime()); if (hasEndTime()) { result = result && getEndTime().equals(other.getEndTime()); } result = result && (hasStartTime() == other.hasStartTime()); if (hasStartTime()) { result = result && getStartTime().equals(other.getStartTime()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.monitoring.v3.TimeInterval other) { if (other == com.google.monitoring.v3.TimeInterval.getDefaultInstance()) return this; if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <pre> * Required. The end of the time interval. * </pre> * * <code>optional .google.protobuf.Timestamp end_time = 2;</code> */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { return getEndTime(); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } if (endTime_ != null) { output.writeMessage(2, getEndTime()); } }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStartTime()); } if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEndTime()); } memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasEndTime()) { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().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.monitoring.v3.TimeInterval)) { return super.equals(obj); } com.google.monitoring.v3.TimeInterval other = (com.google.monitoring.v3.TimeInterval) obj; boolean result = true; result = result && (hasEndTime() == other.hasEndTime()); if (hasEndTime()) { result = result && getEndTime() .equals(other.getEndTime()); } result = result && (hasStartTime() == other.hasStartTime()); if (hasStartTime()) { result = result && getStartTime() .equals(other.getStartTime()); } return result; }
public Builder mergeFrom(com.google.monitoring.v3.TimeInterval other) { if (other == com.google.monitoring.v3.TimeInterval.getDefaultInstance()) return this; if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } onChanged(); return this; }