|
| 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.pubsub.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Ingestion settings for Cloud Storage. |
| 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 Pub/Sub 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 CloudStorage extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Optional. Data from Cloud Storage will be interpreted in Avro format. |
| 34 | + * The value may be {@code null}. |
| 35 | + */ |
| 36 | + @com.google.api.client.util.Key |
| 37 | + private AvroFormat avroFormat; |
| 38 | + |
| 39 | + /** |
| 40 | + * Optional. Cloud Storage bucket. The bucket name must be without any prefix like "gs://". See |
| 41 | + * the [bucket naming requirements] (https://cloud.google.com/storage/docs/buckets#naming). |
| 42 | + * The value may be {@code null}. |
| 43 | + */ |
| 44 | + @com.google.api.client.util.Key |
| 45 | + private java.lang.String bucket; |
| 46 | + |
| 47 | + /** |
| 48 | + * Optional. Glob pattern used to match objects that will be ingested. If unset, all objects will |
| 49 | + * be ingested. See the [supported |
| 50 | + * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and- |
| 51 | + * prefixes-using-glob). |
| 52 | + * The value may be {@code null}. |
| 53 | + */ |
| 54 | + @com.google.api.client.util.Key |
| 55 | + private java.lang.String matchGlob; |
| 56 | + |
| 57 | + /** |
| 58 | + * Optional. Only objects with a larger or equal creation timestamp will be ingested. |
| 59 | + * The value may be {@code null}. |
| 60 | + */ |
| 61 | + @com.google.api.client.util.Key |
| 62 | + private String minimumObjectCreateTime; |
| 63 | + |
| 64 | + /** |
| 65 | + * Optional. It will be assumed data from Cloud Storage was written via [Cloud Storage |
| 66 | + * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage). |
| 67 | + * The value may be {@code null}. |
| 68 | + */ |
| 69 | + @com.google.api.client.util.Key |
| 70 | + private PubSubAvroFormat pubsubAvroFormat; |
| 71 | + |
| 72 | + /** |
| 73 | + * Output only. An output-only field that indicates the state of the Cloud Storage ingestion |
| 74 | + * source. |
| 75 | + * The value may be {@code null}. |
| 76 | + */ |
| 77 | + @com.google.api.client.util.Key |
| 78 | + private java.lang.String state; |
| 79 | + |
| 80 | + /** |
| 81 | + * Optional. Data from Cloud Storage will be interpreted as text. |
| 82 | + * The value may be {@code null}. |
| 83 | + */ |
| 84 | + @com.google.api.client.util.Key |
| 85 | + private TextFormat textFormat; |
| 86 | + |
| 87 | + /** |
| 88 | + * Optional. Data from Cloud Storage will be interpreted in Avro format. |
| 89 | + * @return value or {@code null} for none |
| 90 | + */ |
| 91 | + public AvroFormat getAvroFormat() { |
| 92 | + return avroFormat; |
| 93 | + } |
| 94 | + |
| 95 | + /** |
| 96 | + * Optional. Data from Cloud Storage will be interpreted in Avro format. |
| 97 | + * @param avroFormat avroFormat or {@code null} for none |
| 98 | + */ |
| 99 | + public CloudStorage setAvroFormat(AvroFormat avroFormat) { |
| 100 | + this.avroFormat = avroFormat; |
| 101 | + return this; |
| 102 | + } |
| 103 | + |
| 104 | + /** |
| 105 | + * Optional. Cloud Storage bucket. The bucket name must be without any prefix like "gs://". See |
| 106 | + * the [bucket naming requirements] (https://cloud.google.com/storage/docs/buckets#naming). |
| 107 | + * @return value or {@code null} for none |
| 108 | + */ |
| 109 | + public java.lang.String getBucket() { |
| 110 | + return bucket; |
| 111 | + } |
| 112 | + |
| 113 | + /** |
| 114 | + * Optional. Cloud Storage bucket. The bucket name must be without any prefix like "gs://". See |
| 115 | + * the [bucket naming requirements] (https://cloud.google.com/storage/docs/buckets#naming). |
| 116 | + * @param bucket bucket or {@code null} for none |
| 117 | + */ |
| 118 | + public CloudStorage setBucket(java.lang.String bucket) { |
| 119 | + this.bucket = bucket; |
| 120 | + return this; |
| 121 | + } |
| 122 | + |
| 123 | + /** |
| 124 | + * Optional. Glob pattern used to match objects that will be ingested. If unset, all objects will |
| 125 | + * be ingested. See the [supported |
| 126 | + * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and- |
| 127 | + * prefixes-using-glob). |
| 128 | + * @return value or {@code null} for none |
| 129 | + */ |
| 130 | + public java.lang.String getMatchGlob() { |
| 131 | + return matchGlob; |
| 132 | + } |
| 133 | + |
| 134 | + /** |
| 135 | + * Optional. Glob pattern used to match objects that will be ingested. If unset, all objects will |
| 136 | + * be ingested. See the [supported |
| 137 | + * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and- |
| 138 | + * prefixes-using-glob). |
| 139 | + * @param matchGlob matchGlob or {@code null} for none |
| 140 | + */ |
| 141 | + public CloudStorage setMatchGlob(java.lang.String matchGlob) { |
| 142 | + this.matchGlob = matchGlob; |
| 143 | + return this; |
| 144 | + } |
| 145 | + |
| 146 | + /** |
| 147 | + * Optional. Only objects with a larger or equal creation timestamp will be ingested. |
| 148 | + * @return value or {@code null} for none |
| 149 | + */ |
| 150 | + public String getMinimumObjectCreateTime() { |
| 151 | + return minimumObjectCreateTime; |
| 152 | + } |
| 153 | + |
| 154 | + /** |
| 155 | + * Optional. Only objects with a larger or equal creation timestamp will be ingested. |
| 156 | + * @param minimumObjectCreateTime minimumObjectCreateTime or {@code null} for none |
| 157 | + */ |
| 158 | + public CloudStorage setMinimumObjectCreateTime(String minimumObjectCreateTime) { |
| 159 | + this.minimumObjectCreateTime = minimumObjectCreateTime; |
| 160 | + return this; |
| 161 | + } |
| 162 | + |
| 163 | + /** |
| 164 | + * Optional. It will be assumed data from Cloud Storage was written via [Cloud Storage |
| 165 | + * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage). |
| 166 | + * @return value or {@code null} for none |
| 167 | + */ |
| 168 | + public PubSubAvroFormat getPubsubAvroFormat() { |
| 169 | + return pubsubAvroFormat; |
| 170 | + } |
| 171 | + |
| 172 | + /** |
| 173 | + * Optional. It will be assumed data from Cloud Storage was written via [Cloud Storage |
| 174 | + * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage). |
| 175 | + * @param pubsubAvroFormat pubsubAvroFormat or {@code null} for none |
| 176 | + */ |
| 177 | + public CloudStorage setPubsubAvroFormat(PubSubAvroFormat pubsubAvroFormat) { |
| 178 | + this.pubsubAvroFormat = pubsubAvroFormat; |
| 179 | + return this; |
| 180 | + } |
| 181 | + |
| 182 | + /** |
| 183 | + * Output only. An output-only field that indicates the state of the Cloud Storage ingestion |
| 184 | + * source. |
| 185 | + * @return value or {@code null} for none |
| 186 | + */ |
| 187 | + public java.lang.String getState() { |
| 188 | + return state; |
| 189 | + } |
| 190 | + |
| 191 | + /** |
| 192 | + * Output only. An output-only field that indicates the state of the Cloud Storage ingestion |
| 193 | + * source. |
| 194 | + * @param state state or {@code null} for none |
| 195 | + */ |
| 196 | + public CloudStorage setState(java.lang.String state) { |
| 197 | + this.state = state; |
| 198 | + return this; |
| 199 | + } |
| 200 | + |
| 201 | + /** |
| 202 | + * Optional. Data from Cloud Storage will be interpreted as text. |
| 203 | + * @return value or {@code null} for none |
| 204 | + */ |
| 205 | + public TextFormat getTextFormat() { |
| 206 | + return textFormat; |
| 207 | + } |
| 208 | + |
| 209 | + /** |
| 210 | + * Optional. Data from Cloud Storage will be interpreted as text. |
| 211 | + * @param textFormat textFormat or {@code null} for none |
| 212 | + */ |
| 213 | + public CloudStorage setTextFormat(TextFormat textFormat) { |
| 214 | + this.textFormat = textFormat; |
| 215 | + return this; |
| 216 | + } |
| 217 | + |
| 218 | + @Override |
| 219 | + public CloudStorage set(String fieldName, Object value) { |
| 220 | + return (CloudStorage) super.set(fieldName, value); |
| 221 | + } |
| 222 | + |
| 223 | + @Override |
| 224 | + public CloudStorage clone() { |
| 225 | + return (CloudStorage) super.clone(); |
| 226 | + } |
| 227 | + |
| 228 | +} |
0 commit comments