1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/analytics/data/v1beta/data.proto 18 19 package com.google.analytics.data.v1beta; 20 21 /** 22 * 23 * 24 * <pre> 25 * Defines a cohort selection criteria. A cohort is a group of users who share 26 * a common characteristic. For example, users with the same `firstSessionDate` 27 * belong to the same cohort. 28 * </pre> 29 * 30 * Protobuf type {@code google.analytics.data.v1beta.Cohort} 31 */ 32 public final class Cohort extends com.google.protobuf.GeneratedMessageV3 33 implements 34 // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.Cohort) 35 CohortOrBuilder { 36 private static final long serialVersionUID = 0L; 37 // Use Cohort.newBuilder() to construct. Cohort(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)38 private Cohort(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 39 super(builder); 40 } 41 Cohort()42 private Cohort() { 43 name_ = ""; 44 dimension_ = ""; 45 } 46 47 @java.lang.Override 48 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)49 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 50 return new Cohort(); 51 } 52 53 @java.lang.Override getUnknownFields()54 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 55 return this.unknownFields; 56 } 57 getDescriptor()58 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 59 return com.google.analytics.data.v1beta.ReportingApiProto 60 .internal_static_google_analytics_data_v1beta_Cohort_descriptor; 61 } 62 63 @java.lang.Override 64 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()65 internalGetFieldAccessorTable() { 66 return com.google.analytics.data.v1beta.ReportingApiProto 67 .internal_static_google_analytics_data_v1beta_Cohort_fieldAccessorTable 68 .ensureFieldAccessorsInitialized( 69 com.google.analytics.data.v1beta.Cohort.class, 70 com.google.analytics.data.v1beta.Cohort.Builder.class); 71 } 72 73 public static final int NAME_FIELD_NUMBER = 1; 74 75 @SuppressWarnings("serial") 76 private volatile java.lang.Object name_ = ""; 77 /** 78 * 79 * 80 * <pre> 81 * Assigns a name to this cohort. The dimension `cohort` is valued to this 82 * name in a report response. If set, cannot begin with `cohort_` or 83 * `RESERVED_`. If not set, cohorts are named by their zero based index 84 * `cohort_0`, `cohort_1`, etc. 85 * </pre> 86 * 87 * <code>string name = 1;</code> 88 * 89 * @return The name. 90 */ 91 @java.lang.Override getName()92 public java.lang.String getName() { 93 java.lang.Object ref = name_; 94 if (ref instanceof java.lang.String) { 95 return (java.lang.String) ref; 96 } else { 97 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 98 java.lang.String s = bs.toStringUtf8(); 99 name_ = s; 100 return s; 101 } 102 } 103 /** 104 * 105 * 106 * <pre> 107 * Assigns a name to this cohort. The dimension `cohort` is valued to this 108 * name in a report response. If set, cannot begin with `cohort_` or 109 * `RESERVED_`. If not set, cohorts are named by their zero based index 110 * `cohort_0`, `cohort_1`, etc. 111 * </pre> 112 * 113 * <code>string name = 1;</code> 114 * 115 * @return The bytes for name. 116 */ 117 @java.lang.Override getNameBytes()118 public com.google.protobuf.ByteString getNameBytes() { 119 java.lang.Object ref = name_; 120 if (ref instanceof java.lang.String) { 121 com.google.protobuf.ByteString b = 122 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 123 name_ = b; 124 return b; 125 } else { 126 return (com.google.protobuf.ByteString) ref; 127 } 128 } 129 130 public static final int DIMENSION_FIELD_NUMBER = 2; 131 132 @SuppressWarnings("serial") 133 private volatile java.lang.Object dimension_ = ""; 134 /** 135 * 136 * 137 * <pre> 138 * Dimension used by the cohort. Required and only supports 139 * `firstSessionDate`. 140 * </pre> 141 * 142 * <code>string dimension = 2;</code> 143 * 144 * @return The dimension. 145 */ 146 @java.lang.Override getDimension()147 public java.lang.String getDimension() { 148 java.lang.Object ref = dimension_; 149 if (ref instanceof java.lang.String) { 150 return (java.lang.String) ref; 151 } else { 152 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 153 java.lang.String s = bs.toStringUtf8(); 154 dimension_ = s; 155 return s; 156 } 157 } 158 /** 159 * 160 * 161 * <pre> 162 * Dimension used by the cohort. Required and only supports 163 * `firstSessionDate`. 164 * </pre> 165 * 166 * <code>string dimension = 2;</code> 167 * 168 * @return The bytes for dimension. 169 */ 170 @java.lang.Override getDimensionBytes()171 public com.google.protobuf.ByteString getDimensionBytes() { 172 java.lang.Object ref = dimension_; 173 if (ref instanceof java.lang.String) { 174 com.google.protobuf.ByteString b = 175 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 176 dimension_ = b; 177 return b; 178 } else { 179 return (com.google.protobuf.ByteString) ref; 180 } 181 } 182 183 public static final int DATE_RANGE_FIELD_NUMBER = 3; 184 private com.google.analytics.data.v1beta.DateRange dateRange_; 185 /** 186 * 187 * 188 * <pre> 189 * The cohort selects users whose first touch date is between start date and 190 * end date defined in the `dateRange`. This `dateRange` does not specify the 191 * full date range of event data that is present in a cohort report. In a 192 * cohort report, this `dateRange` is extended by the granularity and offset 193 * present in the `cohortsRange`; event data for the extended reporting date 194 * range is present in a cohort report. 195 * In a cohort request, this `dateRange` is required and the `dateRanges` in 196 * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. 197 * This `dateRange` should generally be aligned with the cohort's granularity. 198 * If `CohortsRange` uses daily granularity, this `dateRange` can be a single 199 * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be 200 * aligned to a week boundary, starting at Sunday and ending Saturday. If 201 * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to 202 * a month, starting at the first and ending on the last day of the month. 203 * </pre> 204 * 205 * <code>.google.analytics.data.v1beta.DateRange date_range = 3;</code> 206 * 207 * @return Whether the dateRange field is set. 208 */ 209 @java.lang.Override hasDateRange()210 public boolean hasDateRange() { 211 return dateRange_ != null; 212 } 213 /** 214 * 215 * 216 * <pre> 217 * The cohort selects users whose first touch date is between start date and 218 * end date defined in the `dateRange`. This `dateRange` does not specify the 219 * full date range of event data that is present in a cohort report. In a 220 * cohort report, this `dateRange` is extended by the granularity and offset 221 * present in the `cohortsRange`; event data for the extended reporting date 222 * range is present in a cohort report. 223 * In a cohort request, this `dateRange` is required and the `dateRanges` in 224 * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. 225 * This `dateRange` should generally be aligned with the cohort's granularity. 226 * If `CohortsRange` uses daily granularity, this `dateRange` can be a single 227 * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be 228 * aligned to a week boundary, starting at Sunday and ending Saturday. If 229 * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to 230 * a month, starting at the first and ending on the last day of the month. 231 * </pre> 232 * 233 * <code>.google.analytics.data.v1beta.DateRange date_range = 3;</code> 234 * 235 * @return The dateRange. 236 */ 237 @java.lang.Override getDateRange()238 public com.google.analytics.data.v1beta.DateRange getDateRange() { 239 return dateRange_ == null 240 ? com.google.analytics.data.v1beta.DateRange.getDefaultInstance() 241 : dateRange_; 242 } 243 /** 244 * 245 * 246 * <pre> 247 * The cohort selects users whose first touch date is between start date and 248 * end date defined in the `dateRange`. This `dateRange` does not specify the 249 * full date range of event data that is present in a cohort report. In a 250 * cohort report, this `dateRange` is extended by the granularity and offset 251 * present in the `cohortsRange`; event data for the extended reporting date 252 * range is present in a cohort report. 253 * In a cohort request, this `dateRange` is required and the `dateRanges` in 254 * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. 255 * This `dateRange` should generally be aligned with the cohort's granularity. 256 * If `CohortsRange` uses daily granularity, this `dateRange` can be a single 257 * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be 258 * aligned to a week boundary, starting at Sunday and ending Saturday. If 259 * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to 260 * a month, starting at the first and ending on the last day of the month. 261 * </pre> 262 * 263 * <code>.google.analytics.data.v1beta.DateRange date_range = 3;</code> 264 */ 265 @java.lang.Override getDateRangeOrBuilder()266 public com.google.analytics.data.v1beta.DateRangeOrBuilder getDateRangeOrBuilder() { 267 return dateRange_ == null 268 ? com.google.analytics.data.v1beta.DateRange.getDefaultInstance() 269 : dateRange_; 270 } 271 272 private byte memoizedIsInitialized = -1; 273 274 @java.lang.Override isInitialized()275 public final boolean isInitialized() { 276 byte isInitialized = memoizedIsInitialized; 277 if (isInitialized == 1) return true; 278 if (isInitialized == 0) return false; 279 280 memoizedIsInitialized = 1; 281 return true; 282 } 283 284 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)285 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 286 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 287 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 288 } 289 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimension_)) { 290 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dimension_); 291 } 292 if (dateRange_ != null) { 293 output.writeMessage(3, getDateRange()); 294 } 295 getUnknownFields().writeTo(output); 296 } 297 298 @java.lang.Override getSerializedSize()299 public int getSerializedSize() { 300 int size = memoizedSize; 301 if (size != -1) return size; 302 303 size = 0; 304 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 305 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 306 } 307 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimension_)) { 308 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dimension_); 309 } 310 if (dateRange_ != null) { 311 size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDateRange()); 312 } 313 size += getUnknownFields().getSerializedSize(); 314 memoizedSize = size; 315 return size; 316 } 317 318 @java.lang.Override equals(final java.lang.Object obj)319 public boolean equals(final java.lang.Object obj) { 320 if (obj == this) { 321 return true; 322 } 323 if (!(obj instanceof com.google.analytics.data.v1beta.Cohort)) { 324 return super.equals(obj); 325 } 326 com.google.analytics.data.v1beta.Cohort other = (com.google.analytics.data.v1beta.Cohort) obj; 327 328 if (!getName().equals(other.getName())) return false; 329 if (!getDimension().equals(other.getDimension())) return false; 330 if (hasDateRange() != other.hasDateRange()) return false; 331 if (hasDateRange()) { 332 if (!getDateRange().equals(other.getDateRange())) return false; 333 } 334 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 335 return true; 336 } 337 338 @java.lang.Override hashCode()339 public int hashCode() { 340 if (memoizedHashCode != 0) { 341 return memoizedHashCode; 342 } 343 int hash = 41; 344 hash = (19 * hash) + getDescriptor().hashCode(); 345 hash = (37 * hash) + NAME_FIELD_NUMBER; 346 hash = (53 * hash) + getName().hashCode(); 347 hash = (37 * hash) + DIMENSION_FIELD_NUMBER; 348 hash = (53 * hash) + getDimension().hashCode(); 349 if (hasDateRange()) { 350 hash = (37 * hash) + DATE_RANGE_FIELD_NUMBER; 351 hash = (53 * hash) + getDateRange().hashCode(); 352 } 353 hash = (29 * hash) + getUnknownFields().hashCode(); 354 memoizedHashCode = hash; 355 return hash; 356 } 357 parseFrom(java.nio.ByteBuffer data)358 public static com.google.analytics.data.v1beta.Cohort parseFrom(java.nio.ByteBuffer data) 359 throws com.google.protobuf.InvalidProtocolBufferException { 360 return PARSER.parseFrom(data); 361 } 362 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)363 public static com.google.analytics.data.v1beta.Cohort parseFrom( 364 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 365 throws com.google.protobuf.InvalidProtocolBufferException { 366 return PARSER.parseFrom(data, extensionRegistry); 367 } 368 parseFrom( com.google.protobuf.ByteString data)369 public static com.google.analytics.data.v1beta.Cohort parseFrom( 370 com.google.protobuf.ByteString data) 371 throws com.google.protobuf.InvalidProtocolBufferException { 372 return PARSER.parseFrom(data); 373 } 374 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)375 public static com.google.analytics.data.v1beta.Cohort parseFrom( 376 com.google.protobuf.ByteString data, 377 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 378 throws com.google.protobuf.InvalidProtocolBufferException { 379 return PARSER.parseFrom(data, extensionRegistry); 380 } 381 parseFrom(byte[] data)382 public static com.google.analytics.data.v1beta.Cohort parseFrom(byte[] data) 383 throws com.google.protobuf.InvalidProtocolBufferException { 384 return PARSER.parseFrom(data); 385 } 386 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)387 public static com.google.analytics.data.v1beta.Cohort parseFrom( 388 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 389 throws com.google.protobuf.InvalidProtocolBufferException { 390 return PARSER.parseFrom(data, extensionRegistry); 391 } 392 parseFrom(java.io.InputStream input)393 public static com.google.analytics.data.v1beta.Cohort parseFrom(java.io.InputStream input) 394 throws java.io.IOException { 395 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 396 } 397 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)398 public static com.google.analytics.data.v1beta.Cohort parseFrom( 399 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 400 throws java.io.IOException { 401 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 402 PARSER, input, extensionRegistry); 403 } 404 parseDelimitedFrom( java.io.InputStream input)405 public static com.google.analytics.data.v1beta.Cohort parseDelimitedFrom( 406 java.io.InputStream input) throws java.io.IOException { 407 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 408 } 409 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)410 public static com.google.analytics.data.v1beta.Cohort parseDelimitedFrom( 411 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 412 throws java.io.IOException { 413 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 414 PARSER, input, extensionRegistry); 415 } 416 parseFrom( com.google.protobuf.CodedInputStream input)417 public static com.google.analytics.data.v1beta.Cohort parseFrom( 418 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 419 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 420 } 421 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)422 public static com.google.analytics.data.v1beta.Cohort parseFrom( 423 com.google.protobuf.CodedInputStream input, 424 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 425 throws java.io.IOException { 426 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 427 PARSER, input, extensionRegistry); 428 } 429 430 @java.lang.Override newBuilderForType()431 public Builder newBuilderForType() { 432 return newBuilder(); 433 } 434 newBuilder()435 public static Builder newBuilder() { 436 return DEFAULT_INSTANCE.toBuilder(); 437 } 438 newBuilder(com.google.analytics.data.v1beta.Cohort prototype)439 public static Builder newBuilder(com.google.analytics.data.v1beta.Cohort prototype) { 440 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 441 } 442 443 @java.lang.Override toBuilder()444 public Builder toBuilder() { 445 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 446 } 447 448 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)449 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 450 Builder builder = new Builder(parent); 451 return builder; 452 } 453 /** 454 * 455 * 456 * <pre> 457 * Defines a cohort selection criteria. A cohort is a group of users who share 458 * a common characteristic. For example, users with the same `firstSessionDate` 459 * belong to the same cohort. 460 * </pre> 461 * 462 * Protobuf type {@code google.analytics.data.v1beta.Cohort} 463 */ 464 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 465 implements 466 // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.Cohort) 467 com.google.analytics.data.v1beta.CohortOrBuilder { getDescriptor()468 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 469 return com.google.analytics.data.v1beta.ReportingApiProto 470 .internal_static_google_analytics_data_v1beta_Cohort_descriptor; 471 } 472 473 @java.lang.Override 474 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()475 internalGetFieldAccessorTable() { 476 return com.google.analytics.data.v1beta.ReportingApiProto 477 .internal_static_google_analytics_data_v1beta_Cohort_fieldAccessorTable 478 .ensureFieldAccessorsInitialized( 479 com.google.analytics.data.v1beta.Cohort.class, 480 com.google.analytics.data.v1beta.Cohort.Builder.class); 481 } 482 483 // Construct using com.google.analytics.data.v1beta.Cohort.newBuilder() Builder()484 private Builder() {} 485 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)486 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 487 super(parent); 488 } 489 490 @java.lang.Override clear()491 public Builder clear() { 492 super.clear(); 493 bitField0_ = 0; 494 name_ = ""; 495 dimension_ = ""; 496 dateRange_ = null; 497 if (dateRangeBuilder_ != null) { 498 dateRangeBuilder_.dispose(); 499 dateRangeBuilder_ = null; 500 } 501 return this; 502 } 503 504 @java.lang.Override getDescriptorForType()505 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 506 return com.google.analytics.data.v1beta.ReportingApiProto 507 .internal_static_google_analytics_data_v1beta_Cohort_descriptor; 508 } 509 510 @java.lang.Override getDefaultInstanceForType()511 public com.google.analytics.data.v1beta.Cohort getDefaultInstanceForType() { 512 return com.google.analytics.data.v1beta.Cohort.getDefaultInstance(); 513 } 514 515 @java.lang.Override build()516 public com.google.analytics.data.v1beta.Cohort build() { 517 com.google.analytics.data.v1beta.Cohort result = buildPartial(); 518 if (!result.isInitialized()) { 519 throw newUninitializedMessageException(result); 520 } 521 return result; 522 } 523 524 @java.lang.Override buildPartial()525 public com.google.analytics.data.v1beta.Cohort buildPartial() { 526 com.google.analytics.data.v1beta.Cohort result = 527 new com.google.analytics.data.v1beta.Cohort(this); 528 if (bitField0_ != 0) { 529 buildPartial0(result); 530 } 531 onBuilt(); 532 return result; 533 } 534 buildPartial0(com.google.analytics.data.v1beta.Cohort result)535 private void buildPartial0(com.google.analytics.data.v1beta.Cohort result) { 536 int from_bitField0_ = bitField0_; 537 if (((from_bitField0_ & 0x00000001) != 0)) { 538 result.name_ = name_; 539 } 540 if (((from_bitField0_ & 0x00000002) != 0)) { 541 result.dimension_ = dimension_; 542 } 543 if (((from_bitField0_ & 0x00000004) != 0)) { 544 result.dateRange_ = dateRangeBuilder_ == null ? dateRange_ : dateRangeBuilder_.build(); 545 } 546 } 547 548 @java.lang.Override clone()549 public Builder clone() { 550 return super.clone(); 551 } 552 553 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)554 public Builder setField( 555 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 556 return super.setField(field, value); 557 } 558 559 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)560 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 561 return super.clearField(field); 562 } 563 564 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)565 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 566 return super.clearOneof(oneof); 567 } 568 569 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)570 public Builder setRepeatedField( 571 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 572 return super.setRepeatedField(field, index, value); 573 } 574 575 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)576 public Builder addRepeatedField( 577 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 578 return super.addRepeatedField(field, value); 579 } 580 581 @java.lang.Override mergeFrom(com.google.protobuf.Message other)582 public Builder mergeFrom(com.google.protobuf.Message other) { 583 if (other instanceof com.google.analytics.data.v1beta.Cohort) { 584 return mergeFrom((com.google.analytics.data.v1beta.Cohort) other); 585 } else { 586 super.mergeFrom(other); 587 return this; 588 } 589 } 590 mergeFrom(com.google.analytics.data.v1beta.Cohort other)591 public Builder mergeFrom(com.google.analytics.data.v1beta.Cohort other) { 592 if (other == com.google.analytics.data.v1beta.Cohort.getDefaultInstance()) return this; 593 if (!other.getName().isEmpty()) { 594 name_ = other.name_; 595 bitField0_ |= 0x00000001; 596 onChanged(); 597 } 598 if (!other.getDimension().isEmpty()) { 599 dimension_ = other.dimension_; 600 bitField0_ |= 0x00000002; 601 onChanged(); 602 } 603 if (other.hasDateRange()) { 604 mergeDateRange(other.getDateRange()); 605 } 606 this.mergeUnknownFields(other.getUnknownFields()); 607 onChanged(); 608 return this; 609 } 610 611 @java.lang.Override isInitialized()612 public final boolean isInitialized() { 613 return true; 614 } 615 616 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)617 public Builder mergeFrom( 618 com.google.protobuf.CodedInputStream input, 619 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 620 throws java.io.IOException { 621 if (extensionRegistry == null) { 622 throw new java.lang.NullPointerException(); 623 } 624 try { 625 boolean done = false; 626 while (!done) { 627 int tag = input.readTag(); 628 switch (tag) { 629 case 0: 630 done = true; 631 break; 632 case 10: 633 { 634 name_ = input.readStringRequireUtf8(); 635 bitField0_ |= 0x00000001; 636 break; 637 } // case 10 638 case 18: 639 { 640 dimension_ = input.readStringRequireUtf8(); 641 bitField0_ |= 0x00000002; 642 break; 643 } // case 18 644 case 26: 645 { 646 input.readMessage(getDateRangeFieldBuilder().getBuilder(), extensionRegistry); 647 bitField0_ |= 0x00000004; 648 break; 649 } // case 26 650 default: 651 { 652 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 653 done = true; // was an endgroup tag 654 } 655 break; 656 } // default: 657 } // switch (tag) 658 } // while (!done) 659 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 660 throw e.unwrapIOException(); 661 } finally { 662 onChanged(); 663 } // finally 664 return this; 665 } 666 667 private int bitField0_; 668 669 private java.lang.Object name_ = ""; 670 /** 671 * 672 * 673 * <pre> 674 * Assigns a name to this cohort. The dimension `cohort` is valued to this 675 * name in a report response. If set, cannot begin with `cohort_` or 676 * `RESERVED_`. If not set, cohorts are named by their zero based index 677 * `cohort_0`, `cohort_1`, etc. 678 * </pre> 679 * 680 * <code>string name = 1;</code> 681 * 682 * @return The name. 683 */ getName()684 public java.lang.String getName() { 685 java.lang.Object ref = name_; 686 if (!(ref instanceof java.lang.String)) { 687 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 688 java.lang.String s = bs.toStringUtf8(); 689 name_ = s; 690 return s; 691 } else { 692 return (java.lang.String) ref; 693 } 694 } 695 /** 696 * 697 * 698 * <pre> 699 * Assigns a name to this cohort. The dimension `cohort` is valued to this 700 * name in a report response. If set, cannot begin with `cohort_` or 701 * `RESERVED_`. If not set, cohorts are named by their zero based index 702 * `cohort_0`, `cohort_1`, etc. 703 * </pre> 704 * 705 * <code>string name = 1;</code> 706 * 707 * @return The bytes for name. 708 */ getNameBytes()709 public com.google.protobuf.ByteString getNameBytes() { 710 java.lang.Object ref = name_; 711 if (ref instanceof String) { 712 com.google.protobuf.ByteString b = 713 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 714 name_ = b; 715 return b; 716 } else { 717 return (com.google.protobuf.ByteString) ref; 718 } 719 } 720 /** 721 * 722 * 723 * <pre> 724 * Assigns a name to this cohort. The dimension `cohort` is valued to this 725 * name in a report response. If set, cannot begin with `cohort_` or 726 * `RESERVED_`. If not set, cohorts are named by their zero based index 727 * `cohort_0`, `cohort_1`, etc. 728 * </pre> 729 * 730 * <code>string name = 1;</code> 731 * 732 * @param value The name to set. 733 * @return This builder for chaining. 734 */ setName(java.lang.String value)735 public Builder setName(java.lang.String value) { 736 if (value == null) { 737 throw new NullPointerException(); 738 } 739 name_ = value; 740 bitField0_ |= 0x00000001; 741 onChanged(); 742 return this; 743 } 744 /** 745 * 746 * 747 * <pre> 748 * Assigns a name to this cohort. The dimension `cohort` is valued to this 749 * name in a report response. If set, cannot begin with `cohort_` or 750 * `RESERVED_`. If not set, cohorts are named by their zero based index 751 * `cohort_0`, `cohort_1`, etc. 752 * </pre> 753 * 754 * <code>string name = 1;</code> 755 * 756 * @return This builder for chaining. 757 */ clearName()758 public Builder clearName() { 759 name_ = getDefaultInstance().getName(); 760 bitField0_ = (bitField0_ & ~0x00000001); 761 onChanged(); 762 return this; 763 } 764 /** 765 * 766 * 767 * <pre> 768 * Assigns a name to this cohort. The dimension `cohort` is valued to this 769 * name in a report response. If set, cannot begin with `cohort_` or 770 * `RESERVED_`. If not set, cohorts are named by their zero based index 771 * `cohort_0`, `cohort_1`, etc. 772 * </pre> 773 * 774 * <code>string name = 1;</code> 775 * 776 * @param value The bytes for name to set. 777 * @return This builder for chaining. 778 */ setNameBytes(com.google.protobuf.ByteString value)779 public Builder setNameBytes(com.google.protobuf.ByteString value) { 780 if (value == null) { 781 throw new NullPointerException(); 782 } 783 checkByteStringIsUtf8(value); 784 name_ = value; 785 bitField0_ |= 0x00000001; 786 onChanged(); 787 return this; 788 } 789 790 private java.lang.Object dimension_ = ""; 791 /** 792 * 793 * 794 * <pre> 795 * Dimension used by the cohort. Required and only supports 796 * `firstSessionDate`. 797 * </pre> 798 * 799 * <code>string dimension = 2;</code> 800 * 801 * @return The dimension. 802 */ getDimension()803 public java.lang.String getDimension() { 804 java.lang.Object ref = dimension_; 805 if (!(ref instanceof java.lang.String)) { 806 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 807 java.lang.String s = bs.toStringUtf8(); 808 dimension_ = s; 809 return s; 810 } else { 811 return (java.lang.String) ref; 812 } 813 } 814 /** 815 * 816 * 817 * <pre> 818 * Dimension used by the cohort. Required and only supports 819 * `firstSessionDate`. 820 * </pre> 821 * 822 * <code>string dimension = 2;</code> 823 * 824 * @return The bytes for dimension. 825 */ getDimensionBytes()826 public com.google.protobuf.ByteString getDimensionBytes() { 827 java.lang.Object ref = dimension_; 828 if (ref instanceof String) { 829 com.google.protobuf.ByteString b = 830 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 831 dimension_ = b; 832 return b; 833 } else { 834 return (com.google.protobuf.ByteString) ref; 835 } 836 } 837 /** 838 * 839 * 840 * <pre> 841 * Dimension used by the cohort. Required and only supports 842 * `firstSessionDate`. 843 * </pre> 844 * 845 * <code>string dimension = 2;</code> 846 * 847 * @param value The dimension to set. 848 * @return This builder for chaining. 849 */ setDimension(java.lang.String value)850 public Builder setDimension(java.lang.String value) { 851 if (value == null) { 852 throw new NullPointerException(); 853 } 854 dimension_ = value; 855 bitField0_ |= 0x00000002; 856 onChanged(); 857 return this; 858 } 859 /** 860 * 861 * 862 * <pre> 863 * Dimension used by the cohort. Required and only supports 864 * `firstSessionDate`. 865 * </pre> 866 * 867 * <code>string dimension = 2;</code> 868 * 869 * @return This builder for chaining. 870 */ clearDimension()871 public Builder clearDimension() { 872 dimension_ = getDefaultInstance().getDimension(); 873 bitField0_ = (bitField0_ & ~0x00000002); 874 onChanged(); 875 return this; 876 } 877 /** 878 * 879 * 880 * <pre> 881 * Dimension used by the cohort. Required and only supports 882 * `firstSessionDate`. 883 * </pre> 884 * 885 * <code>string dimension = 2;</code> 886 * 887 * @param value The bytes for dimension to set. 888 * @return This builder for chaining. 889 */ setDimensionBytes(com.google.protobuf.ByteString value)890 public Builder setDimensionBytes(com.google.protobuf.ByteString value) { 891 if (value == null) { 892 throw new NullPointerException(); 893 } 894 checkByteStringIsUtf8(value); 895 dimension_ = value; 896 bitField0_ |= 0x00000002; 897 onChanged(); 898 return this; 899 } 900 901 private com.google.analytics.data.v1beta.DateRange dateRange_; 902 private com.google.protobuf.SingleFieldBuilderV3< 903 com.google.analytics.data.v1beta.DateRange, 904 com.google.analytics.data.v1beta.DateRange.Builder, 905 com.google.analytics.data.v1beta.DateRangeOrBuilder> 906 dateRangeBuilder_; 907 /** 908 * 909 * 910 * <pre> 911 * The cohort selects users whose first touch date is between start date and 912 * end date defined in the `dateRange`. This `dateRange` does not specify the 913 * full date range of event data that is present in a cohort report. In a 914 * cohort report, this `dateRange` is extended by the granularity and offset 915 * present in the `cohortsRange`; event data for the extended reporting date 916 * range is present in a cohort report. 917 * In a cohort request, this `dateRange` is required and the `dateRanges` in 918 * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. 919 * This `dateRange` should generally be aligned with the cohort's granularity. 920 * If `CohortsRange` uses daily granularity, this `dateRange` can be a single 921 * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be 922 * aligned to a week boundary, starting at Sunday and ending Saturday. If 923 * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to 924 * a month, starting at the first and ending on the last day of the month. 925 * </pre> 926 * 927 * <code>.google.analytics.data.v1beta.DateRange date_range = 3;</code> 928 * 929 * @return Whether the dateRange field is set. 930 */ hasDateRange()931 public boolean hasDateRange() { 932 return ((bitField0_ & 0x00000004) != 0); 933 } 934 /** 935 * 936 * 937 * <pre> 938 * The cohort selects users whose first touch date is between start date and 939 * end date defined in the `dateRange`. This `dateRange` does not specify the 940 * full date range of event data that is present in a cohort report. In a 941 * cohort report, this `dateRange` is extended by the granularity and offset 942 * present in the `cohortsRange`; event data for the extended reporting date 943 * range is present in a cohort report. 944 * In a cohort request, this `dateRange` is required and the `dateRanges` in 945 * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. 946 * This `dateRange` should generally be aligned with the cohort's granularity. 947 * If `CohortsRange` uses daily granularity, this `dateRange` can be a single 948 * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be 949 * aligned to a week boundary, starting at Sunday and ending Saturday. If 950 * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to 951 * a month, starting at the first and ending on the last day of the month. 952 * </pre> 953 * 954 * <code>.google.analytics.data.v1beta.DateRange date_range = 3;</code> 955 * 956 * @return The dateRange. 957 */ getDateRange()958 public com.google.analytics.data.v1beta.DateRange getDateRange() { 959 if (dateRangeBuilder_ == null) { 960 return dateRange_ == null 961 ? com.google.analytics.data.v1beta.DateRange.getDefaultInstance() 962 : dateRange_; 963 } else { 964 return dateRangeBuilder_.getMessage(); 965 } 966 } 967 /** 968 * 969 * 970 * <pre> 971 * The cohort selects users whose first touch date is between start date and 972 * end date defined in the `dateRange`. This `dateRange` does not specify the 973 * full date range of event data that is present in a cohort report. In a 974 * cohort report, this `dateRange` is extended by the granularity and offset 975 * present in the `cohortsRange`; event data for the extended reporting date 976 * range is present in a cohort report. 977 * In a cohort request, this `dateRange` is required and the `dateRanges` in 978 * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. 979 * This `dateRange` should generally be aligned with the cohort's granularity. 980 * If `CohortsRange` uses daily granularity, this `dateRange` can be a single 981 * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be 982 * aligned to a week boundary, starting at Sunday and ending Saturday. If 983 * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to 984 * a month, starting at the first and ending on the last day of the month. 985 * </pre> 986 * 987 * <code>.google.analytics.data.v1beta.DateRange date_range = 3;</code> 988 */ setDateRange(com.google.analytics.data.v1beta.DateRange value)989 public Builder setDateRange(com.google.analytics.data.v1beta.DateRange value) { 990 if (dateRangeBuilder_ == null) { 991 if (value == null) { 992 throw new NullPointerException(); 993 } 994 dateRange_ = value; 995 } else { 996 dateRangeBuilder_.setMessage(value); 997 } 998 bitField0_ |= 0x00000004; 999 onChanged(); 1000 return this; 1001 } 1002 /** 1003 * 1004 * 1005 * <pre> 1006 * The cohort selects users whose first touch date is between start date and 1007 * end date defined in the `dateRange`. This `dateRange` does not specify the 1008 * full date range of event data that is present in a cohort report. In a 1009 * cohort report, this `dateRange` is extended by the granularity and offset 1010 * present in the `cohortsRange`; event data for the extended reporting date 1011 * range is present in a cohort report. 1012 * In a cohort request, this `dateRange` is required and the `dateRanges` in 1013 * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. 1014 * This `dateRange` should generally be aligned with the cohort's granularity. 1015 * If `CohortsRange` uses daily granularity, this `dateRange` can be a single 1016 * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be 1017 * aligned to a week boundary, starting at Sunday and ending Saturday. If 1018 * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to 1019 * a month, starting at the first and ending on the last day of the month. 1020 * </pre> 1021 * 1022 * <code>.google.analytics.data.v1beta.DateRange date_range = 3;</code> 1023 */ setDateRange( com.google.analytics.data.v1beta.DateRange.Builder builderForValue)1024 public Builder setDateRange( 1025 com.google.analytics.data.v1beta.DateRange.Builder builderForValue) { 1026 if (dateRangeBuilder_ == null) { 1027 dateRange_ = builderForValue.build(); 1028 } else { 1029 dateRangeBuilder_.setMessage(builderForValue.build()); 1030 } 1031 bitField0_ |= 0x00000004; 1032 onChanged(); 1033 return this; 1034 } 1035 /** 1036 * 1037 * 1038 * <pre> 1039 * The cohort selects users whose first touch date is between start date and 1040 * end date defined in the `dateRange`. This `dateRange` does not specify the 1041 * full date range of event data that is present in a cohort report. In a 1042 * cohort report, this `dateRange` is extended by the granularity and offset 1043 * present in the `cohortsRange`; event data for the extended reporting date 1044 * range is present in a cohort report. 1045 * In a cohort request, this `dateRange` is required and the `dateRanges` in 1046 * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. 1047 * This `dateRange` should generally be aligned with the cohort's granularity. 1048 * If `CohortsRange` uses daily granularity, this `dateRange` can be a single 1049 * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be 1050 * aligned to a week boundary, starting at Sunday and ending Saturday. If 1051 * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to 1052 * a month, starting at the first and ending on the last day of the month. 1053 * </pre> 1054 * 1055 * <code>.google.analytics.data.v1beta.DateRange date_range = 3;</code> 1056 */ mergeDateRange(com.google.analytics.data.v1beta.DateRange value)1057 public Builder mergeDateRange(com.google.analytics.data.v1beta.DateRange value) { 1058 if (dateRangeBuilder_ == null) { 1059 if (((bitField0_ & 0x00000004) != 0) 1060 && dateRange_ != null 1061 && dateRange_ != com.google.analytics.data.v1beta.DateRange.getDefaultInstance()) { 1062 getDateRangeBuilder().mergeFrom(value); 1063 } else { 1064 dateRange_ = value; 1065 } 1066 } else { 1067 dateRangeBuilder_.mergeFrom(value); 1068 } 1069 bitField0_ |= 0x00000004; 1070 onChanged(); 1071 return this; 1072 } 1073 /** 1074 * 1075 * 1076 * <pre> 1077 * The cohort selects users whose first touch date is between start date and 1078 * end date defined in the `dateRange`. This `dateRange` does not specify the 1079 * full date range of event data that is present in a cohort report. In a 1080 * cohort report, this `dateRange` is extended by the granularity and offset 1081 * present in the `cohortsRange`; event data for the extended reporting date 1082 * range is present in a cohort report. 1083 * In a cohort request, this `dateRange` is required and the `dateRanges` in 1084 * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. 1085 * This `dateRange` should generally be aligned with the cohort's granularity. 1086 * If `CohortsRange` uses daily granularity, this `dateRange` can be a single 1087 * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be 1088 * aligned to a week boundary, starting at Sunday and ending Saturday. If 1089 * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to 1090 * a month, starting at the first and ending on the last day of the month. 1091 * </pre> 1092 * 1093 * <code>.google.analytics.data.v1beta.DateRange date_range = 3;</code> 1094 */ clearDateRange()1095 public Builder clearDateRange() { 1096 bitField0_ = (bitField0_ & ~0x00000004); 1097 dateRange_ = null; 1098 if (dateRangeBuilder_ != null) { 1099 dateRangeBuilder_.dispose(); 1100 dateRangeBuilder_ = null; 1101 } 1102 onChanged(); 1103 return this; 1104 } 1105 /** 1106 * 1107 * 1108 * <pre> 1109 * The cohort selects users whose first touch date is between start date and 1110 * end date defined in the `dateRange`. This `dateRange` does not specify the 1111 * full date range of event data that is present in a cohort report. In a 1112 * cohort report, this `dateRange` is extended by the granularity and offset 1113 * present in the `cohortsRange`; event data for the extended reporting date 1114 * range is present in a cohort report. 1115 * In a cohort request, this `dateRange` is required and the `dateRanges` in 1116 * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. 1117 * This `dateRange` should generally be aligned with the cohort's granularity. 1118 * If `CohortsRange` uses daily granularity, this `dateRange` can be a single 1119 * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be 1120 * aligned to a week boundary, starting at Sunday and ending Saturday. If 1121 * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to 1122 * a month, starting at the first and ending on the last day of the month. 1123 * </pre> 1124 * 1125 * <code>.google.analytics.data.v1beta.DateRange date_range = 3;</code> 1126 */ getDateRangeBuilder()1127 public com.google.analytics.data.v1beta.DateRange.Builder getDateRangeBuilder() { 1128 bitField0_ |= 0x00000004; 1129 onChanged(); 1130 return getDateRangeFieldBuilder().getBuilder(); 1131 } 1132 /** 1133 * 1134 * 1135 * <pre> 1136 * The cohort selects users whose first touch date is between start date and 1137 * end date defined in the `dateRange`. This `dateRange` does not specify the 1138 * full date range of event data that is present in a cohort report. In a 1139 * cohort report, this `dateRange` is extended by the granularity and offset 1140 * present in the `cohortsRange`; event data for the extended reporting date 1141 * range is present in a cohort report. 1142 * In a cohort request, this `dateRange` is required and the `dateRanges` in 1143 * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. 1144 * This `dateRange` should generally be aligned with the cohort's granularity. 1145 * If `CohortsRange` uses daily granularity, this `dateRange` can be a single 1146 * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be 1147 * aligned to a week boundary, starting at Sunday and ending Saturday. If 1148 * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to 1149 * a month, starting at the first and ending on the last day of the month. 1150 * </pre> 1151 * 1152 * <code>.google.analytics.data.v1beta.DateRange date_range = 3;</code> 1153 */ getDateRangeOrBuilder()1154 public com.google.analytics.data.v1beta.DateRangeOrBuilder getDateRangeOrBuilder() { 1155 if (dateRangeBuilder_ != null) { 1156 return dateRangeBuilder_.getMessageOrBuilder(); 1157 } else { 1158 return dateRange_ == null 1159 ? com.google.analytics.data.v1beta.DateRange.getDefaultInstance() 1160 : dateRange_; 1161 } 1162 } 1163 /** 1164 * 1165 * 1166 * <pre> 1167 * The cohort selects users whose first touch date is between start date and 1168 * end date defined in the `dateRange`. This `dateRange` does not specify the 1169 * full date range of event data that is present in a cohort report. In a 1170 * cohort report, this `dateRange` is extended by the granularity and offset 1171 * present in the `cohortsRange`; event data for the extended reporting date 1172 * range is present in a cohort report. 1173 * In a cohort request, this `dateRange` is required and the `dateRanges` in 1174 * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. 1175 * This `dateRange` should generally be aligned with the cohort's granularity. 1176 * If `CohortsRange` uses daily granularity, this `dateRange` can be a single 1177 * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be 1178 * aligned to a week boundary, starting at Sunday and ending Saturday. If 1179 * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to 1180 * a month, starting at the first and ending on the last day of the month. 1181 * </pre> 1182 * 1183 * <code>.google.analytics.data.v1beta.DateRange date_range = 3;</code> 1184 */ 1185 private com.google.protobuf.SingleFieldBuilderV3< 1186 com.google.analytics.data.v1beta.DateRange, 1187 com.google.analytics.data.v1beta.DateRange.Builder, 1188 com.google.analytics.data.v1beta.DateRangeOrBuilder> getDateRangeFieldBuilder()1189 getDateRangeFieldBuilder() { 1190 if (dateRangeBuilder_ == null) { 1191 dateRangeBuilder_ = 1192 new com.google.protobuf.SingleFieldBuilderV3< 1193 com.google.analytics.data.v1beta.DateRange, 1194 com.google.analytics.data.v1beta.DateRange.Builder, 1195 com.google.analytics.data.v1beta.DateRangeOrBuilder>( 1196 getDateRange(), getParentForChildren(), isClean()); 1197 dateRange_ = null; 1198 } 1199 return dateRangeBuilder_; 1200 } 1201 1202 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1203 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1204 return super.setUnknownFields(unknownFields); 1205 } 1206 1207 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1208 public final Builder mergeUnknownFields( 1209 final com.google.protobuf.UnknownFieldSet unknownFields) { 1210 return super.mergeUnknownFields(unknownFields); 1211 } 1212 1213 // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.Cohort) 1214 } 1215 1216 // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.Cohort) 1217 private static final com.google.analytics.data.v1beta.Cohort DEFAULT_INSTANCE; 1218 1219 static { 1220 DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.Cohort(); 1221 } 1222 getDefaultInstance()1223 public static com.google.analytics.data.v1beta.Cohort getDefaultInstance() { 1224 return DEFAULT_INSTANCE; 1225 } 1226 1227 private static final com.google.protobuf.Parser<Cohort> PARSER = 1228 new com.google.protobuf.AbstractParser<Cohort>() { 1229 @java.lang.Override 1230 public Cohort parsePartialFrom( 1231 com.google.protobuf.CodedInputStream input, 1232 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1233 throws com.google.protobuf.InvalidProtocolBufferException { 1234 Builder builder = newBuilder(); 1235 try { 1236 builder.mergeFrom(input, extensionRegistry); 1237 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1238 throw e.setUnfinishedMessage(builder.buildPartial()); 1239 } catch (com.google.protobuf.UninitializedMessageException e) { 1240 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1241 } catch (java.io.IOException e) { 1242 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1243 .setUnfinishedMessage(builder.buildPartial()); 1244 } 1245 return builder.buildPartial(); 1246 } 1247 }; 1248 parser()1249 public static com.google.protobuf.Parser<Cohort> parser() { 1250 return PARSER; 1251 } 1252 1253 @java.lang.Override getParserForType()1254 public com.google.protobuf.Parser<Cohort> getParserForType() { 1255 return PARSER; 1256 } 1257 1258 @java.lang.Override getDefaultInstanceForType()1259 public com.google.analytics.data.v1beta.Cohort getDefaultInstanceForType() { 1260 return DEFAULT_INSTANCE; 1261 } 1262 } 1263