@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
public Builder mergeFrom(com.google.monitoring.v3.ListTimeSeriesRequest other) { if (other == com.google.monitoring.v3.ListTimeSeriesRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); if (!other.getFilter().isEmpty()) { filter_ = other.filter_; onChanged(); if (other.hasInterval()) { mergeInterval(other.getInterval()); if (other.hasAggregation()) { mergeAggregation(other.getAggregation()); if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; onChanged(); setViewValue(other.getViewValue()); if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged();
@java.lang.Override public com.google.monitoring.v3.ListTimeSeriesRequest buildPartial() { com.google.monitoring.v3.ListTimeSeriesRequest result = new com.google.monitoring.v3.ListTimeSeriesRequest(this); result.name_ = name_; result.filter_ = filter_; if (intervalBuilder_ == null) { result.interval_ = interval_; } else { result.interval_ = intervalBuilder_.build(); } if (aggregationBuilder_ == null) { result.aggregation_ = aggregation_; } else { result.aggregation_ = aggregationBuilder_.build(); } result.orderBy_ = orderBy_; result.view_ = view_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; onBuilt(); return result; }
@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; }
/** * * * <pre> * The project on which to execute the request. The format is * "projects/{project_id_or_number}". * </pre> * * <code>string name = 10;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * Unsupported: must be left blank. The points in each time series are * returned in reverse time order. * </pre> * * <code>string order_by = 6;</code> */ public Builder clearOrderBy() { orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /**
@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); }
ListTimeSeriesRequest actualRequest = (ListTimeSeriesRequest) actualRequests.get(0); Assert.assertEquals(name, ProjectName.parse(actualRequest.getName())); Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertEquals(interval, actualRequest.getInterval()); Assert.assertEquals(view, actualRequest.getView()); Assert.assertTrue( channelProvider.isHeaderSent(
/** * * * <pre> * A [monitoring filter](/monitoring/api/v3/filters) that specifies which time * series should be returned. The filter must specify a single metric type, * and can additionally specify metric labels and other information. For * example: * metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND * metric.label.instance_name = "my-instance-name" * </pre> * * <code>string filter = 2;</code> */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /**
/** * * * <pre> * If this field is not empty then it must contain the `nextPageToken` value * returned by a previous call to this method. Using this field causes the * method to return additional results from the previous method call. * </pre> * * <code>string page_token = 9;</code> */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /**
@java.lang.Override public com.google.monitoring.v3.ListTimeSeriesRequest getDefaultInstanceForType() { return com.google.monitoring.v3.ListTimeSeriesRequest.getDefaultInstance(); }
@Override public Integer extractPageSize(ListTimeSeriesRequest payload) { return payload.getPageSize(); }
/** * * * <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(); }
/** * * * <pre> * By default, the raw time series data is returned. * Use this field to combine multiple time series for different * views of the data. * </pre> * * <code>.google.monitoring.v3.Aggregation aggregation = 5;</code> */ public com.google.monitoring.v3.AggregationOrBuilder getAggregationOrBuilder() { return getAggregation(); }
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.monitoring.v3.ListTimeSeriesRequest.getDescriptor().getEnumTypes().get(0); }
if (!getFilterBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInterval()); size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAggregation()); if (!getOrderByBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, orderBy_); size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pageToken_); if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, name_);
/** * <pre> * The project on which to execute the request. The format is * "projects/{project_id_or_number}". * </pre> * * <code>optional string name = 10;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * <pre> * A [monitoring filter](/monitoring/api/v3/filters) that specifies which time * series should be returned. The filter must specify a single metric type, * and can additionally specify metric labels and other information. For * example: * metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND * metric.label.instance_name = "my-instance-name" * </pre> * * <code>optional string filter = 2;</code> */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /**
/** * <pre> * Specifies the order in which the points of the time series should * be returned. By default, results are not ordered. Currently, * this field must be left blank. * </pre> * * <code>optional string order_by = 6;</code> */ public Builder clearOrderBy() { orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /**
/** * <pre> * If this field is not empty then it must contain the `nextPageToken` value * returned by a previous call to this method. Using this field causes the * method to return additional results from the previous method call. * </pre> * * <code>optional string page_token = 9;</code> */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /**