|
| 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.analyticshub.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Configuration for writing message data in Avro format. Message payloads and metadata will be |
| 21 | + * written to files as an Avro binary. |
| 22 | + * |
| 23 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 24 | + * transmitted over HTTP when working with the Analytics Hub API. For a detailed explanation 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 AvroConfig extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Optional. When true, the output Cloud Storage file will be serialized using the topic schema, |
| 35 | + * if it exists. |
| 36 | + * The value may be {@code null}. |
| 37 | + */ |
| 38 | + @com.google.api.client.util.Key |
| 39 | + private java.lang.Boolean useTopicSchema; |
| 40 | + |
| 41 | + /** |
| 42 | + * Optional. When true, write the subscription name, message_id, publish_time, attributes, and |
| 43 | + * ordering_key as additional fields in the output. The subscription name, message_id, and |
| 44 | + * publish_time fields are put in their own fields while all other message properties other than |
| 45 | + * data (for example, an ordering_key, if present) are added as entries in the attributes map. |
| 46 | + * The value may be {@code null}. |
| 47 | + */ |
| 48 | + @com.google.api.client.util.Key |
| 49 | + private java.lang.Boolean writeMetadata; |
| 50 | + |
| 51 | + /** |
| 52 | + * Optional. When true, the output Cloud Storage file will be serialized using the topic schema, |
| 53 | + * if it exists. |
| 54 | + * @return value or {@code null} for none |
| 55 | + */ |
| 56 | + public java.lang.Boolean getUseTopicSchema() { |
| 57 | + return useTopicSchema; |
| 58 | + } |
| 59 | + |
| 60 | + /** |
| 61 | + * Optional. When true, the output Cloud Storage file will be serialized using the topic schema, |
| 62 | + * if it exists. |
| 63 | + * @param useTopicSchema useTopicSchema or {@code null} for none |
| 64 | + */ |
| 65 | + public AvroConfig setUseTopicSchema(java.lang.Boolean useTopicSchema) { |
| 66 | + this.useTopicSchema = useTopicSchema; |
| 67 | + return this; |
| 68 | + } |
| 69 | + |
| 70 | + /** |
| 71 | + * Optional. When true, write the subscription name, message_id, publish_time, attributes, and |
| 72 | + * ordering_key as additional fields in the output. The subscription name, message_id, and |
| 73 | + * publish_time fields are put in their own fields while all other message properties other than |
| 74 | + * data (for example, an ordering_key, if present) are added as entries in the attributes map. |
| 75 | + * @return value or {@code null} for none |
| 76 | + */ |
| 77 | + public java.lang.Boolean getWriteMetadata() { |
| 78 | + return writeMetadata; |
| 79 | + } |
| 80 | + |
| 81 | + /** |
| 82 | + * Optional. When true, write the subscription name, message_id, publish_time, attributes, and |
| 83 | + * ordering_key as additional fields in the output. The subscription name, message_id, and |
| 84 | + * publish_time fields are put in their own fields while all other message properties other than |
| 85 | + * data (for example, an ordering_key, if present) are added as entries in the attributes map. |
| 86 | + * @param writeMetadata writeMetadata or {@code null} for none |
| 87 | + */ |
| 88 | + public AvroConfig setWriteMetadata(java.lang.Boolean writeMetadata) { |
| 89 | + this.writeMetadata = writeMetadata; |
| 90 | + return this; |
| 91 | + } |
| 92 | + |
| 93 | + @Override |
| 94 | + public AvroConfig set(String fieldName, Object value) { |
| 95 | + return (AvroConfig) super.set(fieldName, value); |
| 96 | + } |
| 97 | + |
| 98 | + @Override |
| 99 | + public AvroConfig clone() { |
| 100 | + return (AvroConfig) super.clone(); |
| 101 | + } |
| 102 | + |
| 103 | +} |
0 commit comments