|
| 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.containeranalysis.v1alpha1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Aggregated/summary metrics over the entire build lifecycle. |
| 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 Container Analysis API. For a detailed explanation |
| 24 | + * 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 ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Output only. The average CPU utilization ratio across all vCPUs over the duration of the build, |
| 35 | + * expressed as a fraction in the range [0.0, 1.0]. |
| 36 | + * The value may be {@code null}. |
| 37 | + */ |
| 38 | + @com.google.api.client.util.Key |
| 39 | + private java.lang.Float averageCpuUtilization; |
| 40 | + |
| 41 | + /** |
| 42 | + * Output only. The average memory utilization ratio over the duration of the build, expressed as |
| 43 | + * a fraction in the range [0.0, 1.0]. |
| 44 | + * The value may be {@code null}. |
| 45 | + */ |
| 46 | + @com.google.api.client.util.Key |
| 47 | + private java.lang.Float averageMemoryUtilization; |
| 48 | + |
| 49 | + /** |
| 50 | + * Output only. The highest CPU utilization ratio across all vCPUs observed over the duration of |
| 51 | + * the build, expressed as a fraction in the range [0.0, 1.0]. |
| 52 | + * The value may be {@code null}. |
| 53 | + */ |
| 54 | + @com.google.api.client.util.Key |
| 55 | + private java.lang.Float peakCpuUtilization; |
| 56 | + |
| 57 | + /** |
| 58 | + * Output only. The highest memory utilization ratio observed over the duration of the build, |
| 59 | + * expressed as a fraction in the range [0.0, 1.0]. |
| 60 | + * The value may be {@code null}. |
| 61 | + */ |
| 62 | + @com.google.api.client.util.Key |
| 63 | + private java.lang.Float peakMemoryUtilization; |
| 64 | + |
| 65 | + /** |
| 66 | + * Output only. Total CPU execution time consumed across all cores during build execution. |
| 67 | + * The value may be {@code null}. |
| 68 | + */ |
| 69 | + @com.google.api.client.util.Key |
| 70 | + private String totalCpuDuration; |
| 71 | + |
| 72 | + /** |
| 73 | + * Output only. The average CPU utilization ratio across all vCPUs over the duration of the build, |
| 74 | + * expressed as a fraction in the range [0.0, 1.0]. |
| 75 | + * @return value or {@code null} for none |
| 76 | + */ |
| 77 | + public java.lang.Float getAverageCpuUtilization() { |
| 78 | + return averageCpuUtilization; |
| 79 | + } |
| 80 | + |
| 81 | + /** |
| 82 | + * Output only. The average CPU utilization ratio across all vCPUs over the duration of the build, |
| 83 | + * expressed as a fraction in the range [0.0, 1.0]. |
| 84 | + * @param averageCpuUtilization averageCpuUtilization or {@code null} for none |
| 85 | + */ |
| 86 | + public ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage setAverageCpuUtilization(java.lang.Float averageCpuUtilization) { |
| 87 | + this.averageCpuUtilization = averageCpuUtilization; |
| 88 | + return this; |
| 89 | + } |
| 90 | + |
| 91 | + /** |
| 92 | + * Output only. The average memory utilization ratio over the duration of the build, expressed as |
| 93 | + * a fraction in the range [0.0, 1.0]. |
| 94 | + * @return value or {@code null} for none |
| 95 | + */ |
| 96 | + public java.lang.Float getAverageMemoryUtilization() { |
| 97 | + return averageMemoryUtilization; |
| 98 | + } |
| 99 | + |
| 100 | + /** |
| 101 | + * Output only. The average memory utilization ratio over the duration of the build, expressed as |
| 102 | + * a fraction in the range [0.0, 1.0]. |
| 103 | + * @param averageMemoryUtilization averageMemoryUtilization or {@code null} for none |
| 104 | + */ |
| 105 | + public ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage setAverageMemoryUtilization(java.lang.Float averageMemoryUtilization) { |
| 106 | + this.averageMemoryUtilization = averageMemoryUtilization; |
| 107 | + return this; |
| 108 | + } |
| 109 | + |
| 110 | + /** |
| 111 | + * Output only. The highest CPU utilization ratio across all vCPUs observed over the duration of |
| 112 | + * the build, expressed as a fraction in the range [0.0, 1.0]. |
| 113 | + * @return value or {@code null} for none |
| 114 | + */ |
| 115 | + public java.lang.Float getPeakCpuUtilization() { |
| 116 | + return peakCpuUtilization; |
| 117 | + } |
| 118 | + |
| 119 | + /** |
| 120 | + * Output only. The highest CPU utilization ratio across all vCPUs observed over the duration of |
| 121 | + * the build, expressed as a fraction in the range [0.0, 1.0]. |
| 122 | + * @param peakCpuUtilization peakCpuUtilization or {@code null} for none |
| 123 | + */ |
| 124 | + public ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage setPeakCpuUtilization(java.lang.Float peakCpuUtilization) { |
| 125 | + this.peakCpuUtilization = peakCpuUtilization; |
| 126 | + return this; |
| 127 | + } |
| 128 | + |
| 129 | + /** |
| 130 | + * Output only. The highest memory utilization ratio observed over the duration of the build, |
| 131 | + * expressed as a fraction in the range [0.0, 1.0]. |
| 132 | + * @return value or {@code null} for none |
| 133 | + */ |
| 134 | + public java.lang.Float getPeakMemoryUtilization() { |
| 135 | + return peakMemoryUtilization; |
| 136 | + } |
| 137 | + |
| 138 | + /** |
| 139 | + * Output only. The highest memory utilization ratio observed over the duration of the build, |
| 140 | + * expressed as a fraction in the range [0.0, 1.0]. |
| 141 | + * @param peakMemoryUtilization peakMemoryUtilization or {@code null} for none |
| 142 | + */ |
| 143 | + public ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage setPeakMemoryUtilization(java.lang.Float peakMemoryUtilization) { |
| 144 | + this.peakMemoryUtilization = peakMemoryUtilization; |
| 145 | + return this; |
| 146 | + } |
| 147 | + |
| 148 | + /** |
| 149 | + * Output only. Total CPU execution time consumed across all cores during build execution. |
| 150 | + * @return value or {@code null} for none |
| 151 | + */ |
| 152 | + public String getTotalCpuDuration() { |
| 153 | + return totalCpuDuration; |
| 154 | + } |
| 155 | + |
| 156 | + /** |
| 157 | + * Output only. Total CPU execution time consumed across all cores during build execution. |
| 158 | + * @param totalCpuDuration totalCpuDuration or {@code null} for none |
| 159 | + */ |
| 160 | + public ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage setTotalCpuDuration(String totalCpuDuration) { |
| 161 | + this.totalCpuDuration = totalCpuDuration; |
| 162 | + return this; |
| 163 | + } |
| 164 | + |
| 165 | + @Override |
| 166 | + public ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage set(String fieldName, Object value) { |
| 167 | + return (ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage) super.set(fieldName, value); |
| 168 | + } |
| 169 | + |
| 170 | + @Override |
| 171 | + public ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage clone() { |
| 172 | + return (ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage) super.clone(); |
| 173 | + } |
| 174 | + |
| 175 | +} |
0 commit comments