/** * * * <pre> * The time interval for which results should be returned. Only time series * that contain data points in the specified interval are included * in the response. * </pre> * * <code>.google.monitoring.v3.TimeInterval interval = 4;</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 (!getFilterBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } if (interval_ != null) { output.writeMessage(4, getInterval()); } if (aggregation_ != null) { output.writeMessage(5, getAggregation()); } if (!getOrderByBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, orderBy_); } if (view_ != com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.FULL.getNumber()) { output.writeEnum(7, view_); } if (pageSize_ != 0) { output.writeInt32(8, pageSize_); } if (!getPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pageToken_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, name_); } unknownFields.writeTo(output); }
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInterval());
if (hasInterval()) { hash = (37 * hash) + INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getInterval().hashCode();
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.monitoring.v3.ListTimeSeriesRequest)) { return super.equals(obj); } com.google.monitoring.v3.ListTimeSeriesRequest other = (com.google.monitoring.v3.ListTimeSeriesRequest) obj; boolean result = true; result = result && getName().equals(other.getName()); result = result && getFilter().equals(other.getFilter()); result = result && (hasInterval() == other.hasInterval()); if (hasInterval()) { result = result && getInterval().equals(other.getInterval()); } result = result && (hasAggregation() == other.hasAggregation()); if (hasAggregation()) { result = result && getAggregation().equals(other.getAggregation()); } result = result && getOrderBy().equals(other.getOrderBy()); result = result && view_ == other.view_; result = result && (getPageSize() == other.getPageSize()); result = result && getPageToken().equals(other.getPageToken()); result = result && unknownFields.equals(other.unknownFields); return result; }
mergeInterval(other.getInterval());
Assert.assertEquals(interval, actualRequest.getInterval()); Assert.assertEquals(view, actualRequest.getView()); Assert.assertTrue(
/** * <pre> * The time interval for which results should be returned. Only time series * that contain data points in the specified interval are included * in the response. * </pre> * * <code>optional .google.monitoring.v3.TimeInterval interval = 4;</code> */ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() { return getInterval(); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getFilterBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } if (interval_ != null) { output.writeMessage(4, getInterval()); } if (aggregation_ != null) { output.writeMessage(5, getAggregation()); } if (!getOrderByBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, orderBy_); } if (view_ != com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView.FULL.getNumber()) { output.writeEnum(7, view_); } if (pageSize_ != 0) { output.writeInt32(8, pageSize_); } if (!getPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pageToken_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, name_); } }
.computeMessageSize(4, getInterval());
if (hasInterval()) { hash = (37 * hash) + INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getInterval().hashCode();
result = result && (hasInterval() == other.hasInterval()); if (hasInterval()) { result = result && getInterval() .equals(other.getInterval());
mergeInterval(other.getInterval());