|
| 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.metastore.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Wire-format for a Status object |
| 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 Dataproc Metastore 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 StatusProto extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional int32 canonical_code |
| 35 | + * = 6; |
| 36 | + * The value may be {@code null}. |
| 37 | + */ |
| 38 | + @com.google.api.client.util.Key |
| 39 | + private java.lang.Integer canonicalCode; |
| 40 | + |
| 41 | + /** |
| 42 | + * Numeric code drawn from the space specified below. Often, this is the canonical error space, |
| 43 | + * and code is drawn from google3/util/task/codes.proto copybara:strip_begin(b/383363683) |
| 44 | + * copybara:strip_end_and_replace optional int32 code = 1; |
| 45 | + * The value may be {@code null}. |
| 46 | + */ |
| 47 | + @com.google.api.client.util.Key |
| 48 | + private java.lang.Integer code; |
| 49 | + |
| 50 | + /** |
| 51 | + * Detail message copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional string |
| 52 | + * message = 3; |
| 53 | + * The value may be {@code null}. |
| 54 | + */ |
| 55 | + @com.google.api.client.util.Key |
| 56 | + private java.lang.String message; |
| 57 | + |
| 58 | + /** |
| 59 | + * message_set associates an arbitrary proto message with the status. |
| 60 | + * copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional |
| 61 | + * proto2.bridge.MessageSet message_set = 5; |
| 62 | + * The value may be {@code null}. |
| 63 | + */ |
| 64 | + @com.google.api.client.util.Key |
| 65 | + private MessageSet messageSet; |
| 66 | + |
| 67 | + /** |
| 68 | + * copybara:strip_begin(b/383363683) Space to which this status belongs |
| 69 | + * copybara:strip_end_and_replace optional string space = 2; // Space to which this status belongs |
| 70 | + * The value may be {@code null}. |
| 71 | + */ |
| 72 | + @com.google.api.client.util.Key |
| 73 | + private java.lang.String space; |
| 74 | + |
| 75 | + /** |
| 76 | + * copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional int32 canonical_code |
| 77 | + * = 6; |
| 78 | + * @return value or {@code null} for none |
| 79 | + */ |
| 80 | + public java.lang.Integer getCanonicalCode() { |
| 81 | + return canonicalCode; |
| 82 | + } |
| 83 | + |
| 84 | + /** |
| 85 | + * copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional int32 canonical_code |
| 86 | + * = 6; |
| 87 | + * @param canonicalCode canonicalCode or {@code null} for none |
| 88 | + */ |
| 89 | + public StatusProto setCanonicalCode(java.lang.Integer canonicalCode) { |
| 90 | + this.canonicalCode = canonicalCode; |
| 91 | + return this; |
| 92 | + } |
| 93 | + |
| 94 | + /** |
| 95 | + * Numeric code drawn from the space specified below. Often, this is the canonical error space, |
| 96 | + * and code is drawn from google3/util/task/codes.proto copybara:strip_begin(b/383363683) |
| 97 | + * copybara:strip_end_and_replace optional int32 code = 1; |
| 98 | + * @return value or {@code null} for none |
| 99 | + */ |
| 100 | + public java.lang.Integer getCode() { |
| 101 | + return code; |
| 102 | + } |
| 103 | + |
| 104 | + /** |
| 105 | + * Numeric code drawn from the space specified below. Often, this is the canonical error space, |
| 106 | + * and code is drawn from google3/util/task/codes.proto copybara:strip_begin(b/383363683) |
| 107 | + * copybara:strip_end_and_replace optional int32 code = 1; |
| 108 | + * @param code code or {@code null} for none |
| 109 | + */ |
| 110 | + public StatusProto setCode(java.lang.Integer code) { |
| 111 | + this.code = code; |
| 112 | + return this; |
| 113 | + } |
| 114 | + |
| 115 | + /** |
| 116 | + * Detail message copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional string |
| 117 | + * message = 3; |
| 118 | + * @return value or {@code null} for none |
| 119 | + */ |
| 120 | + public java.lang.String getMessage() { |
| 121 | + return message; |
| 122 | + } |
| 123 | + |
| 124 | + /** |
| 125 | + * Detail message copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional string |
| 126 | + * message = 3; |
| 127 | + * @param message message or {@code null} for none |
| 128 | + */ |
| 129 | + public StatusProto setMessage(java.lang.String message) { |
| 130 | + this.message = message; |
| 131 | + return this; |
| 132 | + } |
| 133 | + |
| 134 | + /** |
| 135 | + * message_set associates an arbitrary proto message with the status. |
| 136 | + * copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional |
| 137 | + * proto2.bridge.MessageSet message_set = 5; |
| 138 | + * @return value or {@code null} for none |
| 139 | + */ |
| 140 | + public MessageSet getMessageSet() { |
| 141 | + return messageSet; |
| 142 | + } |
| 143 | + |
| 144 | + /** |
| 145 | + * message_set associates an arbitrary proto message with the status. |
| 146 | + * copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional |
| 147 | + * proto2.bridge.MessageSet message_set = 5; |
| 148 | + * @param messageSet messageSet or {@code null} for none |
| 149 | + */ |
| 150 | + public StatusProto setMessageSet(MessageSet messageSet) { |
| 151 | + this.messageSet = messageSet; |
| 152 | + return this; |
| 153 | + } |
| 154 | + |
| 155 | + /** |
| 156 | + * copybara:strip_begin(b/383363683) Space to which this status belongs |
| 157 | + * copybara:strip_end_and_replace optional string space = 2; // Space to which this status belongs |
| 158 | + * @return value or {@code null} for none |
| 159 | + */ |
| 160 | + public java.lang.String getSpace() { |
| 161 | + return space; |
| 162 | + } |
| 163 | + |
| 164 | + /** |
| 165 | + * copybara:strip_begin(b/383363683) Space to which this status belongs |
| 166 | + * copybara:strip_end_and_replace optional string space = 2; // Space to which this status belongs |
| 167 | + * @param space space or {@code null} for none |
| 168 | + */ |
| 169 | + public StatusProto setSpace(java.lang.String space) { |
| 170 | + this.space = space; |
| 171 | + return this; |
| 172 | + } |
| 173 | + |
| 174 | + @Override |
| 175 | + public StatusProto set(String fieldName, Object value) { |
| 176 | + return (StatusProto) super.set(fieldName, value); |
| 177 | + } |
| 178 | + |
| 179 | + @Override |
| 180 | + public StatusProto clone() { |
| 181 | + return (StatusProto) super.clone(); |
| 182 | + } |
| 183 | + |
| 184 | +} |
0 commit comments