|
| 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.aiplatform.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * The aggregation result for a single metric. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Vertex AI API. For a detailed explanation see: |
| 24 | + * <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> |
| 25 | + * </p> |
| 26 | + * |
| 27 | + * @author Google, Inc. |
| 28 | + */ |
| 29 | +@SuppressWarnings("javadoc") |
| 30 | +public final class GoogleCloudAiplatformV1AggregationResult extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Aggregation metric. |
| 34 | + * The value may be {@code null}. |
| 35 | + */ |
| 36 | + @com.google.api.client.util.Key |
| 37 | + private java.lang.String aggregationMetric; |
| 38 | + |
| 39 | + /** |
| 40 | + * Results for bleu metric. |
| 41 | + * The value may be {@code null}. |
| 42 | + */ |
| 43 | + @com.google.api.client.util.Key |
| 44 | + private GoogleCloudAiplatformV1BleuMetricValue bleuMetricValue; |
| 45 | + |
| 46 | + /** |
| 47 | + * Result for code execution metric. |
| 48 | + * The value may be {@code null}. |
| 49 | + */ |
| 50 | + @com.google.api.client.util.Key |
| 51 | + private GoogleCloudAiplatformV1CustomCodeExecutionResult customCodeExecutionResult; |
| 52 | + |
| 53 | + /** |
| 54 | + * Results for exact match metric. |
| 55 | + * The value may be {@code null}. |
| 56 | + */ |
| 57 | + @com.google.api.client.util.Key |
| 58 | + private GoogleCloudAiplatformV1ExactMatchMetricValue exactMatchMetricValue; |
| 59 | + |
| 60 | + /** |
| 61 | + * Result for pairwise metric. |
| 62 | + * The value may be {@code null}. |
| 63 | + */ |
| 64 | + @com.google.api.client.util.Key |
| 65 | + private GoogleCloudAiplatformV1PairwiseMetricResult pairwiseMetricResult; |
| 66 | + |
| 67 | + /** |
| 68 | + * Result for pointwise metric. |
| 69 | + * The value may be {@code null}. |
| 70 | + */ |
| 71 | + @com.google.api.client.util.Key |
| 72 | + private GoogleCloudAiplatformV1PointwiseMetricResult pointwiseMetricResult; |
| 73 | + |
| 74 | + /** |
| 75 | + * Results for rouge metric. |
| 76 | + * The value may be {@code null}. |
| 77 | + */ |
| 78 | + @com.google.api.client.util.Key |
| 79 | + private GoogleCloudAiplatformV1RougeMetricValue rougeMetricValue; |
| 80 | + |
| 81 | + /** |
| 82 | + * Aggregation metric. |
| 83 | + * @return value or {@code null} for none |
| 84 | + */ |
| 85 | + public java.lang.String getAggregationMetric() { |
| 86 | + return aggregationMetric; |
| 87 | + } |
| 88 | + |
| 89 | + /** |
| 90 | + * Aggregation metric. |
| 91 | + * @param aggregationMetric aggregationMetric or {@code null} for none |
| 92 | + */ |
| 93 | + public GoogleCloudAiplatformV1AggregationResult setAggregationMetric(java.lang.String aggregationMetric) { |
| 94 | + this.aggregationMetric = aggregationMetric; |
| 95 | + return this; |
| 96 | + } |
| 97 | + |
| 98 | + /** |
| 99 | + * Results for bleu metric. |
| 100 | + * @return value or {@code null} for none |
| 101 | + */ |
| 102 | + public GoogleCloudAiplatformV1BleuMetricValue getBleuMetricValue() { |
| 103 | + return bleuMetricValue; |
| 104 | + } |
| 105 | + |
| 106 | + /** |
| 107 | + * Results for bleu metric. |
| 108 | + * @param bleuMetricValue bleuMetricValue or {@code null} for none |
| 109 | + */ |
| 110 | + public GoogleCloudAiplatformV1AggregationResult setBleuMetricValue(GoogleCloudAiplatformV1BleuMetricValue bleuMetricValue) { |
| 111 | + this.bleuMetricValue = bleuMetricValue; |
| 112 | + return this; |
| 113 | + } |
| 114 | + |
| 115 | + /** |
| 116 | + * Result for code execution metric. |
| 117 | + * @return value or {@code null} for none |
| 118 | + */ |
| 119 | + public GoogleCloudAiplatformV1CustomCodeExecutionResult getCustomCodeExecutionResult() { |
| 120 | + return customCodeExecutionResult; |
| 121 | + } |
| 122 | + |
| 123 | + /** |
| 124 | + * Result for code execution metric. |
| 125 | + * @param customCodeExecutionResult customCodeExecutionResult or {@code null} for none |
| 126 | + */ |
| 127 | + public GoogleCloudAiplatformV1AggregationResult setCustomCodeExecutionResult(GoogleCloudAiplatformV1CustomCodeExecutionResult customCodeExecutionResult) { |
| 128 | + this.customCodeExecutionResult = customCodeExecutionResult; |
| 129 | + return this; |
| 130 | + } |
| 131 | + |
| 132 | + /** |
| 133 | + * Results for exact match metric. |
| 134 | + * @return value or {@code null} for none |
| 135 | + */ |
| 136 | + public GoogleCloudAiplatformV1ExactMatchMetricValue getExactMatchMetricValue() { |
| 137 | + return exactMatchMetricValue; |
| 138 | + } |
| 139 | + |
| 140 | + /** |
| 141 | + * Results for exact match metric. |
| 142 | + * @param exactMatchMetricValue exactMatchMetricValue or {@code null} for none |
| 143 | + */ |
| 144 | + public GoogleCloudAiplatformV1AggregationResult setExactMatchMetricValue(GoogleCloudAiplatformV1ExactMatchMetricValue exactMatchMetricValue) { |
| 145 | + this.exactMatchMetricValue = exactMatchMetricValue; |
| 146 | + return this; |
| 147 | + } |
| 148 | + |
| 149 | + /** |
| 150 | + * Result for pairwise metric. |
| 151 | + * @return value or {@code null} for none |
| 152 | + */ |
| 153 | + public GoogleCloudAiplatformV1PairwiseMetricResult getPairwiseMetricResult() { |
| 154 | + return pairwiseMetricResult; |
| 155 | + } |
| 156 | + |
| 157 | + /** |
| 158 | + * Result for pairwise metric. |
| 159 | + * @param pairwiseMetricResult pairwiseMetricResult or {@code null} for none |
| 160 | + */ |
| 161 | + public GoogleCloudAiplatformV1AggregationResult setPairwiseMetricResult(GoogleCloudAiplatformV1PairwiseMetricResult pairwiseMetricResult) { |
| 162 | + this.pairwiseMetricResult = pairwiseMetricResult; |
| 163 | + return this; |
| 164 | + } |
| 165 | + |
| 166 | + /** |
| 167 | + * Result for pointwise metric. |
| 168 | + * @return value or {@code null} for none |
| 169 | + */ |
| 170 | + public GoogleCloudAiplatformV1PointwiseMetricResult getPointwiseMetricResult() { |
| 171 | + return pointwiseMetricResult; |
| 172 | + } |
| 173 | + |
| 174 | + /** |
| 175 | + * Result for pointwise metric. |
| 176 | + * @param pointwiseMetricResult pointwiseMetricResult or {@code null} for none |
| 177 | + */ |
| 178 | + public GoogleCloudAiplatformV1AggregationResult setPointwiseMetricResult(GoogleCloudAiplatformV1PointwiseMetricResult pointwiseMetricResult) { |
| 179 | + this.pointwiseMetricResult = pointwiseMetricResult; |
| 180 | + return this; |
| 181 | + } |
| 182 | + |
| 183 | + /** |
| 184 | + * Results for rouge metric. |
| 185 | + * @return value or {@code null} for none |
| 186 | + */ |
| 187 | + public GoogleCloudAiplatformV1RougeMetricValue getRougeMetricValue() { |
| 188 | + return rougeMetricValue; |
| 189 | + } |
| 190 | + |
| 191 | + /** |
| 192 | + * Results for rouge metric. |
| 193 | + * @param rougeMetricValue rougeMetricValue or {@code null} for none |
| 194 | + */ |
| 195 | + public GoogleCloudAiplatformV1AggregationResult setRougeMetricValue(GoogleCloudAiplatformV1RougeMetricValue rougeMetricValue) { |
| 196 | + this.rougeMetricValue = rougeMetricValue; |
| 197 | + return this; |
| 198 | + } |
| 199 | + |
| 200 | + @Override |
| 201 | + public GoogleCloudAiplatformV1AggregationResult set(String fieldName, Object value) { |
| 202 | + return (GoogleCloudAiplatformV1AggregationResult) super.set(fieldName, value); |
| 203 | + } |
| 204 | + |
| 205 | + @Override |
| 206 | + public GoogleCloudAiplatformV1AggregationResult clone() { |
| 207 | + return (GoogleCloudAiplatformV1AggregationResult) super.clone(); |
| 208 | + } |
| 209 | + |
| 210 | +} |
0 commit comments