/** * * * <pre> * The time interval to which the data point applies. For `GAUGE` metrics, * only the end time of the interval is used. For `DELTA` metrics, the start * and end time should specify a non-zero interval, with subsequent points * specifying contiguous and non-overlapping intervals. For `CUMULATIVE` * metrics, the start and end time should specify a non-zero interval, with * subsequent points specifying the same start time and increasing end times, * until an event resets the cumulative value to zero and sets a new start * time for the following points. * </pre> * * <code>.google.monitoring.v3.TimeInterval interval = 1;</code> */ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() { return getInterval(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (interval_ != null) { output.writeMessage(1, getInterval()); } if (value_ != null) { output.writeMessage(2, getValue()); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (interval_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInterval()); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); } 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 (hasInterval()) { hash = (37 * hash) + INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getInterval().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().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.Point)) { return super.equals(obj); } com.google.monitoring.v3.Point other = (com.google.monitoring.v3.Point) obj; boolean result = true; result = result && (hasInterval() == other.hasInterval()); if (hasInterval()) { result = result && getInterval().equals(other.getInterval()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue().equals(other.getValue()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.monitoring.v3.Point other) { if (other == com.google.monitoring.v3.Point.getDefaultInstance()) return this; if (other.hasInterval()) { mergeInterval(other.getInterval()); } if (other.hasValue()) { mergeValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <pre> * The time interval to which the data point applies. For GAUGE metrics, only * the end time of the interval is used. For DELTA metrics, the start and end * time should specify a non-zero interval, with subsequent points specifying * contiguous and non-overlapping intervals. For CUMULATIVE metrics, the * start and end time should specify a non-zero interval, with subsequent * points specifying the same start time and increasing end times, until an * event resets the cumulative value to zero and sets a new start time for the * following points. * </pre> * * <code>optional .google.monitoring.v3.TimeInterval interval = 1;</code> */ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() { return getInterval(); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (interval_ != null) { output.writeMessage(1, getInterval()); } if (value_ != null) { output.writeMessage(2, getValue()); } }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (interval_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterval()); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValue()); } memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasInterval()) { hash = (37 * hash) + INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getInterval().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().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.Point)) { return super.equals(obj); } com.google.monitoring.v3.Point other = (com.google.monitoring.v3.Point) obj; boolean result = true; result = result && (hasInterval() == other.hasInterval()); if (hasInterval()) { result = result && getInterval() .equals(other.getInterval()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } return result; }
public Builder mergeFrom(com.google.monitoring.v3.Point other) { if (other == com.google.monitoring.v3.Point.getDefaultInstance()) return this; if (other.hasInterval()) { mergeInterval(other.getInterval()); } if (other.hasValue()) { mergeValue(other.getValue()); } onChanged(); return this; }