/** * * * <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 setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; 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 setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } orderBy_ = value; onChanged(); return this; } /**
/** * * * <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 setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * * * <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 Builder setAggregation(com.google.monitoring.v3.Aggregation.Builder builderForValue) { if (aggregationBuilder_ == null) { aggregation_ = builderForValue.build(); onChanged(); } else { aggregationBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <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 Builder setInterval(com.google.monitoring.v3.TimeInterval.Builder builderForValue) { if (intervalBuilder_ == null) { interval_ = builderForValue.build(); onChanged(); } else { intervalBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <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 Builder clearAggregation() { if (aggregationBuilder_ == null) { aggregation_ = null; onChanged(); } else { aggregation_ = null; aggregationBuilder_ = null; } 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 setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; onChanged(); return this; }
/** * * * <pre> * A positive number that is the maximum number of results to return. If * `page_size` is empty or more than 100,000 results, the effective * `page_size` is 100,000 results. If `view` is set to `FULL`, this is the * maximum number of `Points` returned. If `view` is set to `HEADERS`, this is * the maximum number of `TimeSeries` returned. * </pre> * * <code>int32 page_size = 8;</code> */ public Builder setPageSize(int value) { pageSize_ = value; 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 setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; 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>string filter = 2;</code> */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /**
/** * * * <pre> * A positive number that is the maximum number of results to return. If * `page_size` is empty or more than 100,000 results, the effective * `page_size` is 100,000 results. If `view` is set to `FULL`, this is the * maximum number of `Points` returned. If `view` is set to `HEADERS`, this is * the maximum number of `TimeSeries` returned. * </pre> * * <code>int32 page_size = 8;</code> */ public Builder clearPageSize() { pageSize_ = 0; onChanged(); return this; }
/** * * * <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 setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; 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; } /**
/** * * * <pre> * Specifies which information is returned about the time series. * </pre> * * <code>.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7;</code> */ public Builder setView(com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView value) { if (value == null) { throw new NullPointerException(); } view_ = value.getNumber(); 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; } /**
/** * * * <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.TimeInterval.Builder getIntervalBuilder() { onChanged(); return getIntervalFieldBuilder().getBuilder(); } /**
/** * * * <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.Aggregation.Builder getAggregationBuilder() { onChanged(); return getAggregationFieldBuilder().getBuilder(); } /**
/** * * * <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> * Specifies which information is returned about the time series. * </pre> * * <code>.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7;</code> */ public Builder setViewValue(int value) { view_ = value; onChanged(); return this; } /**
/** * * * <pre> * Specifies which information is returned about the time series. * </pre> * * <code>.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView view = 7;</code> */ public Builder clearView() { view_ = 0; onChanged(); return this; }