|
| 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.documentai.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Model definition for CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule. |
| 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 Document AI 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 CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Description of the validation rule. This has no use but for documentation |
| 35 | + * The value may be {@code null}. |
| 36 | + */ |
| 37 | + @com.google.api.client.util.Key |
| 38 | + private java.lang.String description; |
| 39 | + |
| 40 | + /** |
| 41 | + * The value may be {@code null}. |
| 42 | + */ |
| 43 | + @com.google.api.client.util.Key |
| 44 | + private CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences fieldOccurrences; |
| 45 | + |
| 46 | + /** |
| 47 | + * The value may be {@code null}. |
| 48 | + */ |
| 49 | + @com.google.api.client.util.Key |
| 50 | + private CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex fieldRegex; |
| 51 | + |
| 52 | + /** |
| 53 | + * The value may be {@code null}. |
| 54 | + */ |
| 55 | + @com.google.api.client.util.Key |
| 56 | + private CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation formValidation; |
| 57 | + |
| 58 | + /** |
| 59 | + * Name of the validation rule. |
| 60 | + * The value may be {@code null}. |
| 61 | + */ |
| 62 | + @com.google.api.client.util.Key |
| 63 | + private java.lang.String name; |
| 64 | + |
| 65 | + /** |
| 66 | + * Description of the validation rule. This has no use but for documentation |
| 67 | + * @return value or {@code null} for none |
| 68 | + */ |
| 69 | + public java.lang.String getDescription() { |
| 70 | + return description; |
| 71 | + } |
| 72 | + |
| 73 | + /** |
| 74 | + * Description of the validation rule. This has no use but for documentation |
| 75 | + * @param description description or {@code null} for none |
| 76 | + */ |
| 77 | + public CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule setDescription(java.lang.String description) { |
| 78 | + this.description = description; |
| 79 | + return this; |
| 80 | + } |
| 81 | + |
| 82 | + /** |
| 83 | + * @return value or {@code null} for none |
| 84 | + */ |
| 85 | + public CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences getFieldOccurrences() { |
| 86 | + return fieldOccurrences; |
| 87 | + } |
| 88 | + |
| 89 | + /** |
| 90 | + * @param fieldOccurrences fieldOccurrences or {@code null} for none |
| 91 | + */ |
| 92 | + public CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule setFieldOccurrences(CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences fieldOccurrences) { |
| 93 | + this.fieldOccurrences = fieldOccurrences; |
| 94 | + return this; |
| 95 | + } |
| 96 | + |
| 97 | + /** |
| 98 | + * @return value or {@code null} for none |
| 99 | + */ |
| 100 | + public CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex getFieldRegex() { |
| 101 | + return fieldRegex; |
| 102 | + } |
| 103 | + |
| 104 | + /** |
| 105 | + * @param fieldRegex fieldRegex or {@code null} for none |
| 106 | + */ |
| 107 | + public CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule setFieldRegex(CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex fieldRegex) { |
| 108 | + this.fieldRegex = fieldRegex; |
| 109 | + return this; |
| 110 | + } |
| 111 | + |
| 112 | + /** |
| 113 | + * @return value or {@code null} for none |
| 114 | + */ |
| 115 | + public CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation getFormValidation() { |
| 116 | + return formValidation; |
| 117 | + } |
| 118 | + |
| 119 | + /** |
| 120 | + * @param formValidation formValidation or {@code null} for none |
| 121 | + */ |
| 122 | + public CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule setFormValidation(CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation formValidation) { |
| 123 | + this.formValidation = formValidation; |
| 124 | + return this; |
| 125 | + } |
| 126 | + |
| 127 | + /** |
| 128 | + * Name of the validation rule. |
| 129 | + * @return value or {@code null} for none |
| 130 | + */ |
| 131 | + public java.lang.String getName() { |
| 132 | + return name; |
| 133 | + } |
| 134 | + |
| 135 | + /** |
| 136 | + * Name of the validation rule. |
| 137 | + * @param name name or {@code null} for none |
| 138 | + */ |
| 139 | + public CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule setName(java.lang.String name) { |
| 140 | + this.name = name; |
| 141 | + return this; |
| 142 | + } |
| 143 | + |
| 144 | + @Override |
| 145 | + public CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule set(String fieldName, Object value) { |
| 146 | + return (CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule) super.set(fieldName, value); |
| 147 | + } |
| 148 | + |
| 149 | + @Override |
| 150 | + public CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule clone() { |
| 151 | + return (CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule) super.clone(); |
| 152 | + } |
| 153 | + |
| 154 | +} |
0 commit comments