|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.monitoring.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * The data represented by the treemap. Needs to include the data itself, plus rules on how to |
| 21 | + * organize it hierarchically. |
| 22 | + * |
| 23 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 24 | + * transmitted over HTTP when working with the Cloud Monitoring API. For a detailed explanation see: |
| 25 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 26 | + * </p> |
| 27 | + * |
| 28 | + * @author Google, Inc. |
| 29 | + */ |
| 30 | +@SuppressWarnings("javadoc") |
| 31 | +public final class TreemapDataSet extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to |
| 35 | + * slice the data. For example, you can break down the data by region. |
| 36 | + * The value may be {@code null}. |
| 37 | + */ |
| 38 | + @com.google.api.client.util.Key |
| 39 | + private java.util.List<Breakdown> breakdowns; |
| 40 | + |
| 41 | + static { |
| 42 | + // hack to force ProGuard to consider Breakdown used, since otherwise it would be stripped out |
| 43 | + // see https://github.com/google/google-api-java-client/issues/543 |
| 44 | + com.google.api.client.util.Data.nullOf(Breakdown.class); |
| 45 | + } |
| 46 | + |
| 47 | + /** |
| 48 | + * Optional. A collection of measures. A measure is a measured value of a property in your data. |
| 49 | + * For example, rainfall in inches, number of units sold, revenue gained, etc. |
| 50 | + * The value may be {@code null}. |
| 51 | + */ |
| 52 | + @com.google.api.client.util.Key |
| 53 | + private java.util.List<Measure> measures; |
| 54 | + |
| 55 | + static { |
| 56 | + // hack to force ProGuard to consider Measure used, since otherwise it would be stripped out |
| 57 | + // see https://github.com/google/google-api-java-client/issues/543 |
| 58 | + com.google.api.client.util.Data.nullOf(Measure.class); |
| 59 | + } |
| 60 | + |
| 61 | + /** |
| 62 | + * Required. The query that fetches the relevant data. See |
| 63 | + * google.monitoring.dashboard.v1.TimeSeriesQuery |
| 64 | + * The value may be {@code null}. |
| 65 | + */ |
| 66 | + @com.google.api.client.util.Key |
| 67 | + private TimeSeriesQuery timeSeriesQuery; |
| 68 | + |
| 69 | + /** |
| 70 | + * Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to |
| 71 | + * slice the data. For example, you can break down the data by region. |
| 72 | + * @return value or {@code null} for none |
| 73 | + */ |
| 74 | + public java.util.List<Breakdown> getBreakdowns() { |
| 75 | + return breakdowns; |
| 76 | + } |
| 77 | + |
| 78 | + /** |
| 79 | + * Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to |
| 80 | + * slice the data. For example, you can break down the data by region. |
| 81 | + * @param breakdowns breakdowns or {@code null} for none |
| 82 | + */ |
| 83 | + public TreemapDataSet setBreakdowns(java.util.List<Breakdown> breakdowns) { |
| 84 | + this.breakdowns = breakdowns; |
| 85 | + return this; |
| 86 | + } |
| 87 | + |
| 88 | + /** |
| 89 | + * Optional. A collection of measures. A measure is a measured value of a property in your data. |
| 90 | + * For example, rainfall in inches, number of units sold, revenue gained, etc. |
| 91 | + * @return value or {@code null} for none |
| 92 | + */ |
| 93 | + public java.util.List<Measure> getMeasures() { |
| 94 | + return measures; |
| 95 | + } |
| 96 | + |
| 97 | + /** |
| 98 | + * Optional. A collection of measures. A measure is a measured value of a property in your data. |
| 99 | + * For example, rainfall in inches, number of units sold, revenue gained, etc. |
| 100 | + * @param measures measures or {@code null} for none |
| 101 | + */ |
| 102 | + public TreemapDataSet setMeasures(java.util.List<Measure> measures) { |
| 103 | + this.measures = measures; |
| 104 | + return this; |
| 105 | + } |
| 106 | + |
| 107 | + /** |
| 108 | + * Required. The query that fetches the relevant data. See |
| 109 | + * google.monitoring.dashboard.v1.TimeSeriesQuery |
| 110 | + * @return value or {@code null} for none |
| 111 | + */ |
| 112 | + public TimeSeriesQuery getTimeSeriesQuery() { |
| 113 | + return timeSeriesQuery; |
| 114 | + } |
| 115 | + |
| 116 | + /** |
| 117 | + * Required. The query that fetches the relevant data. See |
| 118 | + * google.monitoring.dashboard.v1.TimeSeriesQuery |
| 119 | + * @param timeSeriesQuery timeSeriesQuery or {@code null} for none |
| 120 | + */ |
| 121 | + public TreemapDataSet setTimeSeriesQuery(TimeSeriesQuery timeSeriesQuery) { |
| 122 | + this.timeSeriesQuery = timeSeriesQuery; |
| 123 | + return this; |
| 124 | + } |
| 125 | + |
| 126 | + @Override |
| 127 | + public TreemapDataSet set(String fieldName, Object value) { |
| 128 | + return (TreemapDataSet) super.set(fieldName, value); |
| 129 | + } |
| 130 | + |
| 131 | + @Override |
| 132 | + public TreemapDataSet clone() { |
| 133 | + return (TreemapDataSet) super.clone(); |
| 134 | + } |
| 135 | + |
| 136 | +} |
0 commit comments