|
| 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 a Bigtable subscription. The Pub/Sub message will be written to a Bigtable row |
| 21 | + * as follows: - row key: subscription name and message ID delimited by #. - columns: message bytes |
| 22 | + * written to a single column family "data" with an empty-string column qualifier. - cell timestamp: |
| 23 | + * the message publish timestamp. |
| 24 | + * |
| 25 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 26 | + * transmitted over HTTP when working with the Analytics Hub API. For a detailed explanation see: |
| 27 | + * <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> |
| 28 | + * </p> |
| 29 | + * |
| 30 | + * @author Google, Inc. |
| 31 | + */ |
| 32 | +@SuppressWarnings("javadoc") |
| 33 | +public final class BigtableConfig extends com.google.api.client.json.GenericJson { |
| 34 | + |
| 35 | + /** |
| 36 | + * Optional. The app profile to use for the Bigtable writes. If not specified, the "default" |
| 37 | + * application profile will be used. The app profile must use single-cluster routing. |
| 38 | + * The value may be {@code null}. |
| 39 | + */ |
| 40 | + @com.google.api.client.util.Key |
| 41 | + private java.lang.String appProfileId; |
| 42 | + |
| 43 | + /** |
| 44 | + * Optional. The service account to use to write to Bigtable. The subscription creator or updater |
| 45 | + * that specifies this field must have `iam.serviceAccounts.actAs` permission on the service |
| 46 | + * account. If not specified, the Pub/Sub [service |
| 47 | + * agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents), |
| 48 | + * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used. |
| 49 | + * The value may be {@code null}. |
| 50 | + */ |
| 51 | + @com.google.api.client.util.Key |
| 52 | + private java.lang.String serviceAccountEmail; |
| 53 | + |
| 54 | + /** |
| 55 | + * Optional. The unique name of the table to write messages to. Values are of the form |
| 56 | + * `projects//instances//tables/`. |
| 57 | + * The value may be {@code null}. |
| 58 | + */ |
| 59 | + @com.google.api.client.util.Key |
| 60 | + private java.lang.String table; |
| 61 | + |
| 62 | + /** |
| 63 | + * Optional. When true, write the subscription name, message_id, publish_time, attributes, and |
| 64 | + * ordering_key to additional columns in the table under the pubsub_metadata column family. The |
| 65 | + * subscription name, message_id, and publish_time fields are put in their own columns while all |
| 66 | + * other message properties (other than data) are written to a JSON object in the attributes |
| 67 | + * column. |
| 68 | + * The value may be {@code null}. |
| 69 | + */ |
| 70 | + @com.google.api.client.util.Key |
| 71 | + private java.lang.Boolean writeMetadata; |
| 72 | + |
| 73 | + /** |
| 74 | + * Optional. The app profile to use for the Bigtable writes. If not specified, the "default" |
| 75 | + * application profile will be used. The app profile must use single-cluster routing. |
| 76 | + * @return value or {@code null} for none |
| 77 | + */ |
| 78 | + public java.lang.String getAppProfileId() { |
| 79 | + return appProfileId; |
| 80 | + } |
| 81 | + |
| 82 | + /** |
| 83 | + * Optional. The app profile to use for the Bigtable writes. If not specified, the "default" |
| 84 | + * application profile will be used. The app profile must use single-cluster routing. |
| 85 | + * @param appProfileId appProfileId or {@code null} for none |
| 86 | + */ |
| 87 | + public BigtableConfig setAppProfileId(java.lang.String appProfileId) { |
| 88 | + this.appProfileId = appProfileId; |
| 89 | + return this; |
| 90 | + } |
| 91 | + |
| 92 | + /** |
| 93 | + * Optional. The service account to use to write to Bigtable. The subscription creator or updater |
| 94 | + * that specifies this field must have `iam.serviceAccounts.actAs` permission on the service |
| 95 | + * account. If not specified, the Pub/Sub [service |
| 96 | + * agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents), |
| 97 | + * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used. |
| 98 | + * @return value or {@code null} for none |
| 99 | + */ |
| 100 | + public java.lang.String getServiceAccountEmail() { |
| 101 | + return serviceAccountEmail; |
| 102 | + } |
| 103 | + |
| 104 | + /** |
| 105 | + * Optional. The service account to use to write to Bigtable. The subscription creator or updater |
| 106 | + * that specifies this field must have `iam.serviceAccounts.actAs` permission on the service |
| 107 | + * account. If not specified, the Pub/Sub [service |
| 108 | + * agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents), |
| 109 | + * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used. |
| 110 | + * @param serviceAccountEmail serviceAccountEmail or {@code null} for none |
| 111 | + */ |
| 112 | + public BigtableConfig setServiceAccountEmail(java.lang.String serviceAccountEmail) { |
| 113 | + this.serviceAccountEmail = serviceAccountEmail; |
| 114 | + return this; |
| 115 | + } |
| 116 | + |
| 117 | + /** |
| 118 | + * Optional. The unique name of the table to write messages to. Values are of the form |
| 119 | + * `projects//instances//tables/`. |
| 120 | + * @return value or {@code null} for none |
| 121 | + */ |
| 122 | + public java.lang.String getTable() { |
| 123 | + return table; |
| 124 | + } |
| 125 | + |
| 126 | + /** |
| 127 | + * Optional. The unique name of the table to write messages to. Values are of the form |
| 128 | + * `projects//instances//tables/`. |
| 129 | + * @param table table or {@code null} for none |
| 130 | + */ |
| 131 | + public BigtableConfig setTable(java.lang.String table) { |
| 132 | + this.table = table; |
| 133 | + return this; |
| 134 | + } |
| 135 | + |
| 136 | + /** |
| 137 | + * Optional. When true, write the subscription name, message_id, publish_time, attributes, and |
| 138 | + * ordering_key to additional columns in the table under the pubsub_metadata column family. The |
| 139 | + * subscription name, message_id, and publish_time fields are put in their own columns while all |
| 140 | + * other message properties (other than data) are written to a JSON object in the attributes |
| 141 | + * column. |
| 142 | + * @return value or {@code null} for none |
| 143 | + */ |
| 144 | + public java.lang.Boolean getWriteMetadata() { |
| 145 | + return writeMetadata; |
| 146 | + } |
| 147 | + |
| 148 | + /** |
| 149 | + * Optional. When true, write the subscription name, message_id, publish_time, attributes, and |
| 150 | + * ordering_key to additional columns in the table under the pubsub_metadata column family. The |
| 151 | + * subscription name, message_id, and publish_time fields are put in their own columns while all |
| 152 | + * other message properties (other than data) are written to a JSON object in the attributes |
| 153 | + * column. |
| 154 | + * @param writeMetadata writeMetadata or {@code null} for none |
| 155 | + */ |
| 156 | + public BigtableConfig setWriteMetadata(java.lang.Boolean writeMetadata) { |
| 157 | + this.writeMetadata = writeMetadata; |
| 158 | + return this; |
| 159 | + } |
| 160 | + |
| 161 | + @Override |
| 162 | + public BigtableConfig set(String fieldName, Object value) { |
| 163 | + return (BigtableConfig) super.set(fieldName, value); |
| 164 | + } |
| 165 | + |
| 166 | + @Override |
| 167 | + public BigtableConfig clone() { |
| 168 | + return (BigtableConfig) super.clone(); |
| 169 | + } |
| 170 | + |
| 171 | +} |
0 commit comments