|
| 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.discoveryengine.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Metadata that describes a custom tuned model. |
| 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 Discovery Engine 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 GoogleCloudDiscoveryengineV1alphaCustomTuningModel extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Timestamp the Model was created at. |
| 34 | + * The value may be {@code null}. |
| 35 | + */ |
| 36 | + @com.google.api.client.util.Key |
| 37 | + private String createTime; |
| 38 | + |
| 39 | + /** |
| 40 | + * The display name of the model. |
| 41 | + * The value may be {@code null}. |
| 42 | + */ |
| 43 | + @com.google.api.client.util.Key |
| 44 | + private java.lang.String displayName; |
| 45 | + |
| 46 | + /** |
| 47 | + * The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). |
| 48 | + * The value may be {@code null}. |
| 49 | + */ |
| 50 | + @com.google.api.client.util.Key |
| 51 | + private java.lang.String modelState; |
| 52 | + |
| 53 | + /** |
| 54 | + * The value may be {@code null}. |
| 55 | + */ |
| 56 | + @com.google.api.client.util.Key @com.google.api.client.json.JsonString |
| 57 | + private java.lang.Long modelVersion; |
| 58 | + |
| 59 | + /** |
| 60 | + * Required. The fully qualified resource name of the model. Format: `projects/{project_number}/lo |
| 61 | + * cations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_ |
| 62 | + * tuning_model}` model must be an alpha-numerical string with limit of 40 characters. |
| 63 | + * The value may be {@code null}. |
| 64 | + */ |
| 65 | + @com.google.api.client.util.Key |
| 66 | + private java.lang.String name; |
| 67 | + |
| 68 | + /** |
| 69 | + * Timestamp the model training was initiated. |
| 70 | + * The value may be {@code null}. |
| 71 | + */ |
| 72 | + @com.google.api.client.util.Key |
| 73 | + private String trainingStartTime; |
| 74 | + |
| 75 | + /** |
| 76 | + * Timestamp the Model was created at. |
| 77 | + * @return value or {@code null} for none |
| 78 | + */ |
| 79 | + public String getCreateTime() { |
| 80 | + return createTime; |
| 81 | + } |
| 82 | + |
| 83 | + /** |
| 84 | + * Timestamp the Model was created at. |
| 85 | + * @param createTime createTime or {@code null} for none |
| 86 | + */ |
| 87 | + public GoogleCloudDiscoveryengineV1alphaCustomTuningModel setCreateTime(String createTime) { |
| 88 | + this.createTime = createTime; |
| 89 | + return this; |
| 90 | + } |
| 91 | + |
| 92 | + /** |
| 93 | + * The display name of the model. |
| 94 | + * @return value or {@code null} for none |
| 95 | + */ |
| 96 | + public java.lang.String getDisplayName() { |
| 97 | + return displayName; |
| 98 | + } |
| 99 | + |
| 100 | + /** |
| 101 | + * The display name of the model. |
| 102 | + * @param displayName displayName or {@code null} for none |
| 103 | + */ |
| 104 | + public GoogleCloudDiscoveryengineV1alphaCustomTuningModel setDisplayName(java.lang.String displayName) { |
| 105 | + this.displayName = displayName; |
| 106 | + return this; |
| 107 | + } |
| 108 | + |
| 109 | + /** |
| 110 | + * The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). |
| 111 | + * @return value or {@code null} for none |
| 112 | + */ |
| 113 | + public java.lang.String getModelState() { |
| 114 | + return modelState; |
| 115 | + } |
| 116 | + |
| 117 | + /** |
| 118 | + * The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). |
| 119 | + * @param modelState modelState or {@code null} for none |
| 120 | + */ |
| 121 | + public GoogleCloudDiscoveryengineV1alphaCustomTuningModel setModelState(java.lang.String modelState) { |
| 122 | + this.modelState = modelState; |
| 123 | + return this; |
| 124 | + } |
| 125 | + |
| 126 | + /** |
| 127 | + * @return value or {@code null} for none |
| 128 | + */ |
| 129 | + public java.lang.Long getModelVersion() { |
| 130 | + return modelVersion; |
| 131 | + } |
| 132 | + |
| 133 | + /** |
| 134 | + * @param modelVersion modelVersion or {@code null} for none |
| 135 | + */ |
| 136 | + public GoogleCloudDiscoveryengineV1alphaCustomTuningModel setModelVersion(java.lang.Long modelVersion) { |
| 137 | + this.modelVersion = modelVersion; |
| 138 | + return this; |
| 139 | + } |
| 140 | + |
| 141 | + /** |
| 142 | + * Required. The fully qualified resource name of the model. Format: `projects/{project_number}/lo |
| 143 | + * cations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_ |
| 144 | + * tuning_model}` model must be an alpha-numerical string with limit of 40 characters. |
| 145 | + * @return value or {@code null} for none |
| 146 | + */ |
| 147 | + public java.lang.String getName() { |
| 148 | + return name; |
| 149 | + } |
| 150 | + |
| 151 | + /** |
| 152 | + * Required. The fully qualified resource name of the model. Format: `projects/{project_number}/lo |
| 153 | + * cations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_ |
| 154 | + * tuning_model}` model must be an alpha-numerical string with limit of 40 characters. |
| 155 | + * @param name name or {@code null} for none |
| 156 | + */ |
| 157 | + public GoogleCloudDiscoveryengineV1alphaCustomTuningModel setName(java.lang.String name) { |
| 158 | + this.name = name; |
| 159 | + return this; |
| 160 | + } |
| 161 | + |
| 162 | + /** |
| 163 | + * Timestamp the model training was initiated. |
| 164 | + * @return value or {@code null} for none |
| 165 | + */ |
| 166 | + public String getTrainingStartTime() { |
| 167 | + return trainingStartTime; |
| 168 | + } |
| 169 | + |
| 170 | + /** |
| 171 | + * Timestamp the model training was initiated. |
| 172 | + * @param trainingStartTime trainingStartTime or {@code null} for none |
| 173 | + */ |
| 174 | + public GoogleCloudDiscoveryengineV1alphaCustomTuningModel setTrainingStartTime(String trainingStartTime) { |
| 175 | + this.trainingStartTime = trainingStartTime; |
| 176 | + return this; |
| 177 | + } |
| 178 | + |
| 179 | + @Override |
| 180 | + public GoogleCloudDiscoveryengineV1alphaCustomTuningModel set(String fieldName, Object value) { |
| 181 | + return (GoogleCloudDiscoveryengineV1alphaCustomTuningModel) super.set(fieldName, value); |
| 182 | + } |
| 183 | + |
| 184 | + @Override |
| 185 | + public GoogleCloudDiscoveryengineV1alphaCustomTuningModel clone() { |
| 186 | + return (GoogleCloudDiscoveryengineV1alphaCustomTuningModel) super.clone(); |
| 187 | + } |
| 188 | + |
| 189 | +} |
0 commit comments