|
| 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.analyticsadmin.v1alpha.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * A Reporting Data Annotation is a comment connected to certain dates for reporting data. |
| 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 Google Analytics Admin API. For a detailed |
| 24 | + * 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 GoogleAnalyticsAdminV1alphaReportingDataAnnotation extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * If set, the Reporting Data Annotation is for a specific date represented by this field. The |
| 35 | + * date must be a valid date with year, month and day set. The date may be in the past, present, |
| 36 | + * or future. |
| 37 | + * The value may be {@code null}. |
| 38 | + */ |
| 39 | + @com.google.api.client.util.Key |
| 40 | + private GoogleTypeDate annotationDate; |
| 41 | + |
| 42 | + /** |
| 43 | + * If set, the Reporting Data Annotation is for a range of dates represented by this field. |
| 44 | + * The value may be {@code null}. |
| 45 | + */ |
| 46 | + @com.google.api.client.util.Key |
| 47 | + private GoogleAnalyticsAdminV1alphaReportingDataAnnotationDateRange annotationDateRange; |
| 48 | + |
| 49 | + /** |
| 50 | + * Required. The color used for display of this Reporting Data Annotation. |
| 51 | + * The value may be {@code null}. |
| 52 | + */ |
| 53 | + @com.google.api.client.util.Key |
| 54 | + private java.lang.String color; |
| 55 | + |
| 56 | + /** |
| 57 | + * Optional. Description for this Reporting Data Annotation. |
| 58 | + * The value may be {@code null}. |
| 59 | + */ |
| 60 | + @com.google.api.client.util.Key |
| 61 | + private java.lang.String description; |
| 62 | + |
| 63 | + /** |
| 64 | + * Required. Identifier. Resource name of this Reporting Data Annotation. Format: |
| 65 | + * 'properties/{property_id}/reportingDataAnnotations/{reporting_data_annotation}' Format: |
| 66 | + * 'properties/123/reportingDataAnnotations/456' |
| 67 | + * The value may be {@code null}. |
| 68 | + */ |
| 69 | + @com.google.api.client.util.Key |
| 70 | + private java.lang.String name; |
| 71 | + |
| 72 | + /** |
| 73 | + * Output only. If true, this annotation was generated by the Google Analytics system. System- |
| 74 | + * generated annotations cannot be updated or deleted. |
| 75 | + * The value may be {@code null}. |
| 76 | + */ |
| 77 | + @com.google.api.client.util.Key |
| 78 | + private java.lang.Boolean systemGenerated; |
| 79 | + |
| 80 | + /** |
| 81 | + * Required. Human-readable title for this Reporting Data Annotation. |
| 82 | + * The value may be {@code null}. |
| 83 | + */ |
| 84 | + @com.google.api.client.util.Key |
| 85 | + private java.lang.String title; |
| 86 | + |
| 87 | + /** |
| 88 | + * If set, the Reporting Data Annotation is for a specific date represented by this field. The |
| 89 | + * date must be a valid date with year, month and day set. The date may be in the past, present, |
| 90 | + * or future. |
| 91 | + * @return value or {@code null} for none |
| 92 | + */ |
| 93 | + public GoogleTypeDate getAnnotationDate() { |
| 94 | + return annotationDate; |
| 95 | + } |
| 96 | + |
| 97 | + /** |
| 98 | + * If set, the Reporting Data Annotation is for a specific date represented by this field. The |
| 99 | + * date must be a valid date with year, month and day set. The date may be in the past, present, |
| 100 | + * or future. |
| 101 | + * @param annotationDate annotationDate or {@code null} for none |
| 102 | + */ |
| 103 | + public GoogleAnalyticsAdminV1alphaReportingDataAnnotation setAnnotationDate(GoogleTypeDate annotationDate) { |
| 104 | + this.annotationDate = annotationDate; |
| 105 | + return this; |
| 106 | + } |
| 107 | + |
| 108 | + /** |
| 109 | + * If set, the Reporting Data Annotation is for a range of dates represented by this field. |
| 110 | + * @return value or {@code null} for none |
| 111 | + */ |
| 112 | + public GoogleAnalyticsAdminV1alphaReportingDataAnnotationDateRange getAnnotationDateRange() { |
| 113 | + return annotationDateRange; |
| 114 | + } |
| 115 | + |
| 116 | + /** |
| 117 | + * If set, the Reporting Data Annotation is for a range of dates represented by this field. |
| 118 | + * @param annotationDateRange annotationDateRange or {@code null} for none |
| 119 | + */ |
| 120 | + public GoogleAnalyticsAdminV1alphaReportingDataAnnotation setAnnotationDateRange(GoogleAnalyticsAdminV1alphaReportingDataAnnotationDateRange annotationDateRange) { |
| 121 | + this.annotationDateRange = annotationDateRange; |
| 122 | + return this; |
| 123 | + } |
| 124 | + |
| 125 | + /** |
| 126 | + * Required. The color used for display of this Reporting Data Annotation. |
| 127 | + * @return value or {@code null} for none |
| 128 | + */ |
| 129 | + public java.lang.String getColor() { |
| 130 | + return color; |
| 131 | + } |
| 132 | + |
| 133 | + /** |
| 134 | + * Required. The color used for display of this Reporting Data Annotation. |
| 135 | + * @param color color or {@code null} for none |
| 136 | + */ |
| 137 | + public GoogleAnalyticsAdminV1alphaReportingDataAnnotation setColor(java.lang.String color) { |
| 138 | + this.color = color; |
| 139 | + return this; |
| 140 | + } |
| 141 | + |
| 142 | + /** |
| 143 | + * Optional. Description for this Reporting Data Annotation. |
| 144 | + * @return value or {@code null} for none |
| 145 | + */ |
| 146 | + public java.lang.String getDescription() { |
| 147 | + return description; |
| 148 | + } |
| 149 | + |
| 150 | + /** |
| 151 | + * Optional. Description for this Reporting Data Annotation. |
| 152 | + * @param description description or {@code null} for none |
| 153 | + */ |
| 154 | + public GoogleAnalyticsAdminV1alphaReportingDataAnnotation setDescription(java.lang.String description) { |
| 155 | + this.description = description; |
| 156 | + return this; |
| 157 | + } |
| 158 | + |
| 159 | + /** |
| 160 | + * Required. Identifier. Resource name of this Reporting Data Annotation. Format: |
| 161 | + * 'properties/{property_id}/reportingDataAnnotations/{reporting_data_annotation}' Format: |
| 162 | + * 'properties/123/reportingDataAnnotations/456' |
| 163 | + * @return value or {@code null} for none |
| 164 | + */ |
| 165 | + public java.lang.String getName() { |
| 166 | + return name; |
| 167 | + } |
| 168 | + |
| 169 | + /** |
| 170 | + * Required. Identifier. Resource name of this Reporting Data Annotation. Format: |
| 171 | + * 'properties/{property_id}/reportingDataAnnotations/{reporting_data_annotation}' Format: |
| 172 | + * 'properties/123/reportingDataAnnotations/456' |
| 173 | + * @param name name or {@code null} for none |
| 174 | + */ |
| 175 | + public GoogleAnalyticsAdminV1alphaReportingDataAnnotation setName(java.lang.String name) { |
| 176 | + this.name = name; |
| 177 | + return this; |
| 178 | + } |
| 179 | + |
| 180 | + /** |
| 181 | + * Output only. If true, this annotation was generated by the Google Analytics system. System- |
| 182 | + * generated annotations cannot be updated or deleted. |
| 183 | + * @return value or {@code null} for none |
| 184 | + */ |
| 185 | + public java.lang.Boolean getSystemGenerated() { |
| 186 | + return systemGenerated; |
| 187 | + } |
| 188 | + |
| 189 | + /** |
| 190 | + * Output only. If true, this annotation was generated by the Google Analytics system. System- |
| 191 | + * generated annotations cannot be updated or deleted. |
| 192 | + * @param systemGenerated systemGenerated or {@code null} for none |
| 193 | + */ |
| 194 | + public GoogleAnalyticsAdminV1alphaReportingDataAnnotation setSystemGenerated(java.lang.Boolean systemGenerated) { |
| 195 | + this.systemGenerated = systemGenerated; |
| 196 | + return this; |
| 197 | + } |
| 198 | + |
| 199 | + /** |
| 200 | + * Required. Human-readable title for this Reporting Data Annotation. |
| 201 | + * @return value or {@code null} for none |
| 202 | + */ |
| 203 | + public java.lang.String getTitle() { |
| 204 | + return title; |
| 205 | + } |
| 206 | + |
| 207 | + /** |
| 208 | + * Required. Human-readable title for this Reporting Data Annotation. |
| 209 | + * @param title title or {@code null} for none |
| 210 | + */ |
| 211 | + public GoogleAnalyticsAdminV1alphaReportingDataAnnotation setTitle(java.lang.String title) { |
| 212 | + this.title = title; |
| 213 | + return this; |
| 214 | + } |
| 215 | + |
| 216 | + @Override |
| 217 | + public GoogleAnalyticsAdminV1alphaReportingDataAnnotation set(String fieldName, Object value) { |
| 218 | + return (GoogleAnalyticsAdminV1alphaReportingDataAnnotation) super.set(fieldName, value); |
| 219 | + } |
| 220 | + |
| 221 | + @Override |
| 222 | + public GoogleAnalyticsAdminV1alphaReportingDataAnnotation clone() { |
| 223 | + return (GoogleAnalyticsAdminV1alphaReportingDataAnnotation) super.clone(); |
| 224 | + } |
| 225 | + |
| 226 | +} |
0 commit comments