|
| 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.run.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * A list of WorkerPool resources. |
| 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 Cloud Run Admin 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 ListWorkerPoolsResponse extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * The API version for this call; returns "run.googleapis.com/v1". |
| 34 | + * The value may be {@code null}. |
| 35 | + */ |
| 36 | + @com.google.api.client.util.Key |
| 37 | + private java.lang.String apiVersion; |
| 38 | + |
| 39 | + /** |
| 40 | + * List of WorkerPools. |
| 41 | + * The value may be {@code null}. |
| 42 | + */ |
| 43 | + @com.google.api.client.util.Key |
| 44 | + private java.util.List<WorkerPool> items; |
| 45 | + |
| 46 | + /** |
| 47 | + * The kind of this resource; returns "WorkerPoolList". |
| 48 | + * The value may be {@code null}. |
| 49 | + */ |
| 50 | + @com.google.api.client.util.Key |
| 51 | + private java.lang.String kind; |
| 52 | + |
| 53 | + /** |
| 54 | + * Metadata associated with this WorkerPool list. |
| 55 | + * The value may be {@code null}. |
| 56 | + */ |
| 57 | + @com.google.api.client.util.Key |
| 58 | + private ListMeta metadata; |
| 59 | + |
| 60 | + /** |
| 61 | + * For calls against the global endpoint, returns the list of Cloud locations that could not be |
| 62 | + * reached. For regional calls, this field is not used. |
| 63 | + * The value may be {@code null}. |
| 64 | + */ |
| 65 | + @com.google.api.client.util.Key |
| 66 | + private java.util.List<java.lang.String> unreachable; |
| 67 | + |
| 68 | + /** |
| 69 | + * The API version for this call; returns "run.googleapis.com/v1". |
| 70 | + * @return value or {@code null} for none |
| 71 | + */ |
| 72 | + public java.lang.String getApiVersion() { |
| 73 | + return apiVersion; |
| 74 | + } |
| 75 | + |
| 76 | + /** |
| 77 | + * The API version for this call; returns "run.googleapis.com/v1". |
| 78 | + * @param apiVersion apiVersion or {@code null} for none |
| 79 | + */ |
| 80 | + public ListWorkerPoolsResponse setApiVersion(java.lang.String apiVersion) { |
| 81 | + this.apiVersion = apiVersion; |
| 82 | + return this; |
| 83 | + } |
| 84 | + |
| 85 | + /** |
| 86 | + * List of WorkerPools. |
| 87 | + * @return value or {@code null} for none |
| 88 | + */ |
| 89 | + public java.util.List<WorkerPool> getItems() { |
| 90 | + return items; |
| 91 | + } |
| 92 | + |
| 93 | + /** |
| 94 | + * List of WorkerPools. |
| 95 | + * @param items items or {@code null} for none |
| 96 | + */ |
| 97 | + public ListWorkerPoolsResponse setItems(java.util.List<WorkerPool> items) { |
| 98 | + this.items = items; |
| 99 | + return this; |
| 100 | + } |
| 101 | + |
| 102 | + /** |
| 103 | + * The kind of this resource; returns "WorkerPoolList". |
| 104 | + * @return value or {@code null} for none |
| 105 | + */ |
| 106 | + public java.lang.String getKind() { |
| 107 | + return kind; |
| 108 | + } |
| 109 | + |
| 110 | + /** |
| 111 | + * The kind of this resource; returns "WorkerPoolList". |
| 112 | + * @param kind kind or {@code null} for none |
| 113 | + */ |
| 114 | + public ListWorkerPoolsResponse setKind(java.lang.String kind) { |
| 115 | + this.kind = kind; |
| 116 | + return this; |
| 117 | + } |
| 118 | + |
| 119 | + /** |
| 120 | + * Metadata associated with this WorkerPool list. |
| 121 | + * @return value or {@code null} for none |
| 122 | + */ |
| 123 | + public ListMeta getMetadata() { |
| 124 | + return metadata; |
| 125 | + } |
| 126 | + |
| 127 | + /** |
| 128 | + * Metadata associated with this WorkerPool list. |
| 129 | + * @param metadata metadata or {@code null} for none |
| 130 | + */ |
| 131 | + public ListWorkerPoolsResponse setMetadata(ListMeta metadata) { |
| 132 | + this.metadata = metadata; |
| 133 | + return this; |
| 134 | + } |
| 135 | + |
| 136 | + /** |
| 137 | + * For calls against the global endpoint, returns the list of Cloud locations that could not be |
| 138 | + * reached. For regional calls, this field is not used. |
| 139 | + * @return value or {@code null} for none |
| 140 | + */ |
| 141 | + public java.util.List<java.lang.String> getUnreachable() { |
| 142 | + return unreachable; |
| 143 | + } |
| 144 | + |
| 145 | + /** |
| 146 | + * For calls against the global endpoint, returns the list of Cloud locations that could not be |
| 147 | + * reached. For regional calls, this field is not used. |
| 148 | + * @param unreachable unreachable or {@code null} for none |
| 149 | + */ |
| 150 | + public ListWorkerPoolsResponse setUnreachable(java.util.List<java.lang.String> unreachable) { |
| 151 | + this.unreachable = unreachable; |
| 152 | + return this; |
| 153 | + } |
| 154 | + |
| 155 | + @Override |
| 156 | + public ListWorkerPoolsResponse set(String fieldName, Object value) { |
| 157 | + return (ListWorkerPoolsResponse) super.set(fieldName, value); |
| 158 | + } |
| 159 | + |
| 160 | + @Override |
| 161 | + public ListWorkerPoolsResponse clone() { |
| 162 | + return (ListWorkerPoolsResponse) super.clone(); |
| 163 | + } |
| 164 | + |
| 165 | +} |
0 commit comments