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/cloud/contactcenterinsights/v1/contact_center_insights.proto 18 19 package com.google.cloud.contactcenterinsights.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * The response of listing views. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.contactcenterinsights.v1.ListViewsResponse} 29 */ 30 public final class ListViewsResponse extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.ListViewsResponse) 33 ListViewsResponseOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use ListViewsResponse.newBuilder() to construct. ListViewsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private ListViewsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 ListViewsResponse()40 private ListViewsResponse() { 41 views_ = java.util.Collections.emptyList(); 42 nextPageToken_ = ""; 43 } 44 45 @java.lang.Override 46 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)47 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 48 return new ListViewsResponse(); 49 } 50 51 @java.lang.Override getUnknownFields()52 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 53 return this.unknownFields; 54 } 55 getDescriptor()56 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 57 return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto 58 .internal_static_google_cloud_contactcenterinsights_v1_ListViewsResponse_descriptor; 59 } 60 61 @java.lang.Override 62 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()63 internalGetFieldAccessorTable() { 64 return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto 65 .internal_static_google_cloud_contactcenterinsights_v1_ListViewsResponse_fieldAccessorTable 66 .ensureFieldAccessorsInitialized( 67 com.google.cloud.contactcenterinsights.v1.ListViewsResponse.class, 68 com.google.cloud.contactcenterinsights.v1.ListViewsResponse.Builder.class); 69 } 70 71 public static final int VIEWS_FIELD_NUMBER = 1; 72 73 @SuppressWarnings("serial") 74 private java.util.List<com.google.cloud.contactcenterinsights.v1.View> views_; 75 /** 76 * 77 * 78 * <pre> 79 * The views that match the request. 80 * </pre> 81 * 82 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 83 */ 84 @java.lang.Override getViewsList()85 public java.util.List<com.google.cloud.contactcenterinsights.v1.View> getViewsList() { 86 return views_; 87 } 88 /** 89 * 90 * 91 * <pre> 92 * The views that match the request. 93 * </pre> 94 * 95 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 96 */ 97 @java.lang.Override 98 public java.util.List<? extends com.google.cloud.contactcenterinsights.v1.ViewOrBuilder> getViewsOrBuilderList()99 getViewsOrBuilderList() { 100 return views_; 101 } 102 /** 103 * 104 * 105 * <pre> 106 * The views that match the request. 107 * </pre> 108 * 109 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 110 */ 111 @java.lang.Override getViewsCount()112 public int getViewsCount() { 113 return views_.size(); 114 } 115 /** 116 * 117 * 118 * <pre> 119 * The views that match the request. 120 * </pre> 121 * 122 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 123 */ 124 @java.lang.Override getViews(int index)125 public com.google.cloud.contactcenterinsights.v1.View getViews(int index) { 126 return views_.get(index); 127 } 128 /** 129 * 130 * 131 * <pre> 132 * The views that match the request. 133 * </pre> 134 * 135 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 136 */ 137 @java.lang.Override getViewsOrBuilder(int index)138 public com.google.cloud.contactcenterinsights.v1.ViewOrBuilder getViewsOrBuilder(int index) { 139 return views_.get(index); 140 } 141 142 public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; 143 144 @SuppressWarnings("serial") 145 private volatile java.lang.Object nextPageToken_ = ""; 146 /** 147 * 148 * 149 * <pre> 150 * A token, which can be sent as `page_token` to retrieve the next page. 151 * If this field is omitted, there are no subsequent pages. 152 * </pre> 153 * 154 * <code>string next_page_token = 2;</code> 155 * 156 * @return The nextPageToken. 157 */ 158 @java.lang.Override getNextPageToken()159 public java.lang.String getNextPageToken() { 160 java.lang.Object ref = nextPageToken_; 161 if (ref instanceof java.lang.String) { 162 return (java.lang.String) ref; 163 } else { 164 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 165 java.lang.String s = bs.toStringUtf8(); 166 nextPageToken_ = s; 167 return s; 168 } 169 } 170 /** 171 * 172 * 173 * <pre> 174 * A token, which can be sent as `page_token` to retrieve the next page. 175 * If this field is omitted, there are no subsequent pages. 176 * </pre> 177 * 178 * <code>string next_page_token = 2;</code> 179 * 180 * @return The bytes for nextPageToken. 181 */ 182 @java.lang.Override getNextPageTokenBytes()183 public com.google.protobuf.ByteString getNextPageTokenBytes() { 184 java.lang.Object ref = nextPageToken_; 185 if (ref instanceof java.lang.String) { 186 com.google.protobuf.ByteString b = 187 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 188 nextPageToken_ = b; 189 return b; 190 } else { 191 return (com.google.protobuf.ByteString) ref; 192 } 193 } 194 195 private byte memoizedIsInitialized = -1; 196 197 @java.lang.Override isInitialized()198 public final boolean isInitialized() { 199 byte isInitialized = memoizedIsInitialized; 200 if (isInitialized == 1) return true; 201 if (isInitialized == 0) return false; 202 203 memoizedIsInitialized = 1; 204 return true; 205 } 206 207 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)208 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 209 for (int i = 0; i < views_.size(); i++) { 210 output.writeMessage(1, views_.get(i)); 211 } 212 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { 213 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); 214 } 215 getUnknownFields().writeTo(output); 216 } 217 218 @java.lang.Override getSerializedSize()219 public int getSerializedSize() { 220 int size = memoizedSize; 221 if (size != -1) return size; 222 223 size = 0; 224 for (int i = 0; i < views_.size(); i++) { 225 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, views_.get(i)); 226 } 227 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { 228 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); 229 } 230 size += getUnknownFields().getSerializedSize(); 231 memoizedSize = size; 232 return size; 233 } 234 235 @java.lang.Override equals(final java.lang.Object obj)236 public boolean equals(final java.lang.Object obj) { 237 if (obj == this) { 238 return true; 239 } 240 if (!(obj instanceof com.google.cloud.contactcenterinsights.v1.ListViewsResponse)) { 241 return super.equals(obj); 242 } 243 com.google.cloud.contactcenterinsights.v1.ListViewsResponse other = 244 (com.google.cloud.contactcenterinsights.v1.ListViewsResponse) obj; 245 246 if (!getViewsList().equals(other.getViewsList())) return false; 247 if (!getNextPageToken().equals(other.getNextPageToken())) return false; 248 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 249 return true; 250 } 251 252 @java.lang.Override hashCode()253 public int hashCode() { 254 if (memoizedHashCode != 0) { 255 return memoizedHashCode; 256 } 257 int hash = 41; 258 hash = (19 * hash) + getDescriptor().hashCode(); 259 if (getViewsCount() > 0) { 260 hash = (37 * hash) + VIEWS_FIELD_NUMBER; 261 hash = (53 * hash) + getViewsList().hashCode(); 262 } 263 hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; 264 hash = (53 * hash) + getNextPageToken().hashCode(); 265 hash = (29 * hash) + getUnknownFields().hashCode(); 266 memoizedHashCode = hash; 267 return hash; 268 } 269 parseFrom( java.nio.ByteBuffer data)270 public static com.google.cloud.contactcenterinsights.v1.ListViewsResponse parseFrom( 271 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 272 return PARSER.parseFrom(data); 273 } 274 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)275 public static com.google.cloud.contactcenterinsights.v1.ListViewsResponse parseFrom( 276 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 277 throws com.google.protobuf.InvalidProtocolBufferException { 278 return PARSER.parseFrom(data, extensionRegistry); 279 } 280 parseFrom( com.google.protobuf.ByteString data)281 public static com.google.cloud.contactcenterinsights.v1.ListViewsResponse parseFrom( 282 com.google.protobuf.ByteString data) 283 throws com.google.protobuf.InvalidProtocolBufferException { 284 return PARSER.parseFrom(data); 285 } 286 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)287 public static com.google.cloud.contactcenterinsights.v1.ListViewsResponse parseFrom( 288 com.google.protobuf.ByteString data, 289 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 290 throws com.google.protobuf.InvalidProtocolBufferException { 291 return PARSER.parseFrom(data, extensionRegistry); 292 } 293 parseFrom(byte[] data)294 public static com.google.cloud.contactcenterinsights.v1.ListViewsResponse parseFrom(byte[] data) 295 throws com.google.protobuf.InvalidProtocolBufferException { 296 return PARSER.parseFrom(data); 297 } 298 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)299 public static com.google.cloud.contactcenterinsights.v1.ListViewsResponse parseFrom( 300 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 301 throws com.google.protobuf.InvalidProtocolBufferException { 302 return PARSER.parseFrom(data, extensionRegistry); 303 } 304 parseFrom( java.io.InputStream input)305 public static com.google.cloud.contactcenterinsights.v1.ListViewsResponse parseFrom( 306 java.io.InputStream input) throws java.io.IOException { 307 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 308 } 309 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)310 public static com.google.cloud.contactcenterinsights.v1.ListViewsResponse parseFrom( 311 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 312 throws java.io.IOException { 313 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 314 PARSER, input, extensionRegistry); 315 } 316 parseDelimitedFrom( java.io.InputStream input)317 public static com.google.cloud.contactcenterinsights.v1.ListViewsResponse parseDelimitedFrom( 318 java.io.InputStream input) throws java.io.IOException { 319 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 320 } 321 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)322 public static com.google.cloud.contactcenterinsights.v1.ListViewsResponse parseDelimitedFrom( 323 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 324 throws java.io.IOException { 325 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 326 PARSER, input, extensionRegistry); 327 } 328 parseFrom( com.google.protobuf.CodedInputStream input)329 public static com.google.cloud.contactcenterinsights.v1.ListViewsResponse parseFrom( 330 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 331 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 332 } 333 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)334 public static com.google.cloud.contactcenterinsights.v1.ListViewsResponse parseFrom( 335 com.google.protobuf.CodedInputStream input, 336 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 337 throws java.io.IOException { 338 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 339 PARSER, input, extensionRegistry); 340 } 341 342 @java.lang.Override newBuilderForType()343 public Builder newBuilderForType() { 344 return newBuilder(); 345 } 346 newBuilder()347 public static Builder newBuilder() { 348 return DEFAULT_INSTANCE.toBuilder(); 349 } 350 newBuilder( com.google.cloud.contactcenterinsights.v1.ListViewsResponse prototype)351 public static Builder newBuilder( 352 com.google.cloud.contactcenterinsights.v1.ListViewsResponse prototype) { 353 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 354 } 355 356 @java.lang.Override toBuilder()357 public Builder toBuilder() { 358 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 359 } 360 361 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)362 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 363 Builder builder = new Builder(parent); 364 return builder; 365 } 366 /** 367 * 368 * 369 * <pre> 370 * The response of listing views. 371 * </pre> 372 * 373 * Protobuf type {@code google.cloud.contactcenterinsights.v1.ListViewsResponse} 374 */ 375 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 376 implements 377 // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.ListViewsResponse) 378 com.google.cloud.contactcenterinsights.v1.ListViewsResponseOrBuilder { getDescriptor()379 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 380 return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto 381 .internal_static_google_cloud_contactcenterinsights_v1_ListViewsResponse_descriptor; 382 } 383 384 @java.lang.Override 385 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()386 internalGetFieldAccessorTable() { 387 return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto 388 .internal_static_google_cloud_contactcenterinsights_v1_ListViewsResponse_fieldAccessorTable 389 .ensureFieldAccessorsInitialized( 390 com.google.cloud.contactcenterinsights.v1.ListViewsResponse.class, 391 com.google.cloud.contactcenterinsights.v1.ListViewsResponse.Builder.class); 392 } 393 394 // Construct using com.google.cloud.contactcenterinsights.v1.ListViewsResponse.newBuilder() Builder()395 private Builder() {} 396 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)397 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 398 super(parent); 399 } 400 401 @java.lang.Override clear()402 public Builder clear() { 403 super.clear(); 404 bitField0_ = 0; 405 if (viewsBuilder_ == null) { 406 views_ = java.util.Collections.emptyList(); 407 } else { 408 views_ = null; 409 viewsBuilder_.clear(); 410 } 411 bitField0_ = (bitField0_ & ~0x00000001); 412 nextPageToken_ = ""; 413 return this; 414 } 415 416 @java.lang.Override getDescriptorForType()417 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 418 return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto 419 .internal_static_google_cloud_contactcenterinsights_v1_ListViewsResponse_descriptor; 420 } 421 422 @java.lang.Override getDefaultInstanceForType()423 public com.google.cloud.contactcenterinsights.v1.ListViewsResponse getDefaultInstanceForType() { 424 return com.google.cloud.contactcenterinsights.v1.ListViewsResponse.getDefaultInstance(); 425 } 426 427 @java.lang.Override build()428 public com.google.cloud.contactcenterinsights.v1.ListViewsResponse build() { 429 com.google.cloud.contactcenterinsights.v1.ListViewsResponse result = buildPartial(); 430 if (!result.isInitialized()) { 431 throw newUninitializedMessageException(result); 432 } 433 return result; 434 } 435 436 @java.lang.Override buildPartial()437 public com.google.cloud.contactcenterinsights.v1.ListViewsResponse buildPartial() { 438 com.google.cloud.contactcenterinsights.v1.ListViewsResponse result = 439 new com.google.cloud.contactcenterinsights.v1.ListViewsResponse(this); 440 buildPartialRepeatedFields(result); 441 if (bitField0_ != 0) { 442 buildPartial0(result); 443 } 444 onBuilt(); 445 return result; 446 } 447 buildPartialRepeatedFields( com.google.cloud.contactcenterinsights.v1.ListViewsResponse result)448 private void buildPartialRepeatedFields( 449 com.google.cloud.contactcenterinsights.v1.ListViewsResponse result) { 450 if (viewsBuilder_ == null) { 451 if (((bitField0_ & 0x00000001) != 0)) { 452 views_ = java.util.Collections.unmodifiableList(views_); 453 bitField0_ = (bitField0_ & ~0x00000001); 454 } 455 result.views_ = views_; 456 } else { 457 result.views_ = viewsBuilder_.build(); 458 } 459 } 460 buildPartial0(com.google.cloud.contactcenterinsights.v1.ListViewsResponse result)461 private void buildPartial0(com.google.cloud.contactcenterinsights.v1.ListViewsResponse result) { 462 int from_bitField0_ = bitField0_; 463 if (((from_bitField0_ & 0x00000002) != 0)) { 464 result.nextPageToken_ = nextPageToken_; 465 } 466 } 467 468 @java.lang.Override clone()469 public Builder clone() { 470 return super.clone(); 471 } 472 473 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)474 public Builder setField( 475 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 476 return super.setField(field, value); 477 } 478 479 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)480 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 481 return super.clearField(field); 482 } 483 484 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)485 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 486 return super.clearOneof(oneof); 487 } 488 489 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)490 public Builder setRepeatedField( 491 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 492 return super.setRepeatedField(field, index, value); 493 } 494 495 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)496 public Builder addRepeatedField( 497 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 498 return super.addRepeatedField(field, value); 499 } 500 501 @java.lang.Override mergeFrom(com.google.protobuf.Message other)502 public Builder mergeFrom(com.google.protobuf.Message other) { 503 if (other instanceof com.google.cloud.contactcenterinsights.v1.ListViewsResponse) { 504 return mergeFrom((com.google.cloud.contactcenterinsights.v1.ListViewsResponse) other); 505 } else { 506 super.mergeFrom(other); 507 return this; 508 } 509 } 510 mergeFrom(com.google.cloud.contactcenterinsights.v1.ListViewsResponse other)511 public Builder mergeFrom(com.google.cloud.contactcenterinsights.v1.ListViewsResponse other) { 512 if (other == com.google.cloud.contactcenterinsights.v1.ListViewsResponse.getDefaultInstance()) 513 return this; 514 if (viewsBuilder_ == null) { 515 if (!other.views_.isEmpty()) { 516 if (views_.isEmpty()) { 517 views_ = other.views_; 518 bitField0_ = (bitField0_ & ~0x00000001); 519 } else { 520 ensureViewsIsMutable(); 521 views_.addAll(other.views_); 522 } 523 onChanged(); 524 } 525 } else { 526 if (!other.views_.isEmpty()) { 527 if (viewsBuilder_.isEmpty()) { 528 viewsBuilder_.dispose(); 529 viewsBuilder_ = null; 530 views_ = other.views_; 531 bitField0_ = (bitField0_ & ~0x00000001); 532 viewsBuilder_ = 533 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 534 ? getViewsFieldBuilder() 535 : null; 536 } else { 537 viewsBuilder_.addAllMessages(other.views_); 538 } 539 } 540 } 541 if (!other.getNextPageToken().isEmpty()) { 542 nextPageToken_ = other.nextPageToken_; 543 bitField0_ |= 0x00000002; 544 onChanged(); 545 } 546 this.mergeUnknownFields(other.getUnknownFields()); 547 onChanged(); 548 return this; 549 } 550 551 @java.lang.Override isInitialized()552 public final boolean isInitialized() { 553 return true; 554 } 555 556 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)557 public Builder mergeFrom( 558 com.google.protobuf.CodedInputStream input, 559 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 560 throws java.io.IOException { 561 if (extensionRegistry == null) { 562 throw new java.lang.NullPointerException(); 563 } 564 try { 565 boolean done = false; 566 while (!done) { 567 int tag = input.readTag(); 568 switch (tag) { 569 case 0: 570 done = true; 571 break; 572 case 10: 573 { 574 com.google.cloud.contactcenterinsights.v1.View m = 575 input.readMessage( 576 com.google.cloud.contactcenterinsights.v1.View.parser(), extensionRegistry); 577 if (viewsBuilder_ == null) { 578 ensureViewsIsMutable(); 579 views_.add(m); 580 } else { 581 viewsBuilder_.addMessage(m); 582 } 583 break; 584 } // case 10 585 case 18: 586 { 587 nextPageToken_ = input.readStringRequireUtf8(); 588 bitField0_ |= 0x00000002; 589 break; 590 } // case 18 591 default: 592 { 593 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 594 done = true; // was an endgroup tag 595 } 596 break; 597 } // default: 598 } // switch (tag) 599 } // while (!done) 600 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 601 throw e.unwrapIOException(); 602 } finally { 603 onChanged(); 604 } // finally 605 return this; 606 } 607 608 private int bitField0_; 609 610 private java.util.List<com.google.cloud.contactcenterinsights.v1.View> views_ = 611 java.util.Collections.emptyList(); 612 ensureViewsIsMutable()613 private void ensureViewsIsMutable() { 614 if (!((bitField0_ & 0x00000001) != 0)) { 615 views_ = new java.util.ArrayList<com.google.cloud.contactcenterinsights.v1.View>(views_); 616 bitField0_ |= 0x00000001; 617 } 618 } 619 620 private com.google.protobuf.RepeatedFieldBuilderV3< 621 com.google.cloud.contactcenterinsights.v1.View, 622 com.google.cloud.contactcenterinsights.v1.View.Builder, 623 com.google.cloud.contactcenterinsights.v1.ViewOrBuilder> 624 viewsBuilder_; 625 626 /** 627 * 628 * 629 * <pre> 630 * The views that match the request. 631 * </pre> 632 * 633 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 634 */ getViewsList()635 public java.util.List<com.google.cloud.contactcenterinsights.v1.View> getViewsList() { 636 if (viewsBuilder_ == null) { 637 return java.util.Collections.unmodifiableList(views_); 638 } else { 639 return viewsBuilder_.getMessageList(); 640 } 641 } 642 /** 643 * 644 * 645 * <pre> 646 * The views that match the request. 647 * </pre> 648 * 649 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 650 */ getViewsCount()651 public int getViewsCount() { 652 if (viewsBuilder_ == null) { 653 return views_.size(); 654 } else { 655 return viewsBuilder_.getCount(); 656 } 657 } 658 /** 659 * 660 * 661 * <pre> 662 * The views that match the request. 663 * </pre> 664 * 665 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 666 */ getViews(int index)667 public com.google.cloud.contactcenterinsights.v1.View getViews(int index) { 668 if (viewsBuilder_ == null) { 669 return views_.get(index); 670 } else { 671 return viewsBuilder_.getMessage(index); 672 } 673 } 674 /** 675 * 676 * 677 * <pre> 678 * The views that match the request. 679 * </pre> 680 * 681 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 682 */ setViews(int index, com.google.cloud.contactcenterinsights.v1.View value)683 public Builder setViews(int index, com.google.cloud.contactcenterinsights.v1.View value) { 684 if (viewsBuilder_ == null) { 685 if (value == null) { 686 throw new NullPointerException(); 687 } 688 ensureViewsIsMutable(); 689 views_.set(index, value); 690 onChanged(); 691 } else { 692 viewsBuilder_.setMessage(index, value); 693 } 694 return this; 695 } 696 /** 697 * 698 * 699 * <pre> 700 * The views that match the request. 701 * </pre> 702 * 703 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 704 */ setViews( int index, com.google.cloud.contactcenterinsights.v1.View.Builder builderForValue)705 public Builder setViews( 706 int index, com.google.cloud.contactcenterinsights.v1.View.Builder builderForValue) { 707 if (viewsBuilder_ == null) { 708 ensureViewsIsMutable(); 709 views_.set(index, builderForValue.build()); 710 onChanged(); 711 } else { 712 viewsBuilder_.setMessage(index, builderForValue.build()); 713 } 714 return this; 715 } 716 /** 717 * 718 * 719 * <pre> 720 * The views that match the request. 721 * </pre> 722 * 723 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 724 */ addViews(com.google.cloud.contactcenterinsights.v1.View value)725 public Builder addViews(com.google.cloud.contactcenterinsights.v1.View value) { 726 if (viewsBuilder_ == null) { 727 if (value == null) { 728 throw new NullPointerException(); 729 } 730 ensureViewsIsMutable(); 731 views_.add(value); 732 onChanged(); 733 } else { 734 viewsBuilder_.addMessage(value); 735 } 736 return this; 737 } 738 /** 739 * 740 * 741 * <pre> 742 * The views that match the request. 743 * </pre> 744 * 745 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 746 */ addViews(int index, com.google.cloud.contactcenterinsights.v1.View value)747 public Builder addViews(int index, com.google.cloud.contactcenterinsights.v1.View value) { 748 if (viewsBuilder_ == null) { 749 if (value == null) { 750 throw new NullPointerException(); 751 } 752 ensureViewsIsMutable(); 753 views_.add(index, value); 754 onChanged(); 755 } else { 756 viewsBuilder_.addMessage(index, value); 757 } 758 return this; 759 } 760 /** 761 * 762 * 763 * <pre> 764 * The views that match the request. 765 * </pre> 766 * 767 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 768 */ addViews( com.google.cloud.contactcenterinsights.v1.View.Builder builderForValue)769 public Builder addViews( 770 com.google.cloud.contactcenterinsights.v1.View.Builder builderForValue) { 771 if (viewsBuilder_ == null) { 772 ensureViewsIsMutable(); 773 views_.add(builderForValue.build()); 774 onChanged(); 775 } else { 776 viewsBuilder_.addMessage(builderForValue.build()); 777 } 778 return this; 779 } 780 /** 781 * 782 * 783 * <pre> 784 * The views that match the request. 785 * </pre> 786 * 787 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 788 */ addViews( int index, com.google.cloud.contactcenterinsights.v1.View.Builder builderForValue)789 public Builder addViews( 790 int index, com.google.cloud.contactcenterinsights.v1.View.Builder builderForValue) { 791 if (viewsBuilder_ == null) { 792 ensureViewsIsMutable(); 793 views_.add(index, builderForValue.build()); 794 onChanged(); 795 } else { 796 viewsBuilder_.addMessage(index, builderForValue.build()); 797 } 798 return this; 799 } 800 /** 801 * 802 * 803 * <pre> 804 * The views that match the request. 805 * </pre> 806 * 807 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 808 */ addAllViews( java.lang.Iterable<? extends com.google.cloud.contactcenterinsights.v1.View> values)809 public Builder addAllViews( 810 java.lang.Iterable<? extends com.google.cloud.contactcenterinsights.v1.View> values) { 811 if (viewsBuilder_ == null) { 812 ensureViewsIsMutable(); 813 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, views_); 814 onChanged(); 815 } else { 816 viewsBuilder_.addAllMessages(values); 817 } 818 return this; 819 } 820 /** 821 * 822 * 823 * <pre> 824 * The views that match the request. 825 * </pre> 826 * 827 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 828 */ clearViews()829 public Builder clearViews() { 830 if (viewsBuilder_ == null) { 831 views_ = java.util.Collections.emptyList(); 832 bitField0_ = (bitField0_ & ~0x00000001); 833 onChanged(); 834 } else { 835 viewsBuilder_.clear(); 836 } 837 return this; 838 } 839 /** 840 * 841 * 842 * <pre> 843 * The views that match the request. 844 * </pre> 845 * 846 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 847 */ removeViews(int index)848 public Builder removeViews(int index) { 849 if (viewsBuilder_ == null) { 850 ensureViewsIsMutable(); 851 views_.remove(index); 852 onChanged(); 853 } else { 854 viewsBuilder_.remove(index); 855 } 856 return this; 857 } 858 /** 859 * 860 * 861 * <pre> 862 * The views that match the request. 863 * </pre> 864 * 865 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 866 */ getViewsBuilder(int index)867 public com.google.cloud.contactcenterinsights.v1.View.Builder getViewsBuilder(int index) { 868 return getViewsFieldBuilder().getBuilder(index); 869 } 870 /** 871 * 872 * 873 * <pre> 874 * The views that match the request. 875 * </pre> 876 * 877 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 878 */ getViewsOrBuilder(int index)879 public com.google.cloud.contactcenterinsights.v1.ViewOrBuilder getViewsOrBuilder(int index) { 880 if (viewsBuilder_ == null) { 881 return views_.get(index); 882 } else { 883 return viewsBuilder_.getMessageOrBuilder(index); 884 } 885 } 886 /** 887 * 888 * 889 * <pre> 890 * The views that match the request. 891 * </pre> 892 * 893 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 894 */ 895 public java.util.List<? extends com.google.cloud.contactcenterinsights.v1.ViewOrBuilder> getViewsOrBuilderList()896 getViewsOrBuilderList() { 897 if (viewsBuilder_ != null) { 898 return viewsBuilder_.getMessageOrBuilderList(); 899 } else { 900 return java.util.Collections.unmodifiableList(views_); 901 } 902 } 903 /** 904 * 905 * 906 * <pre> 907 * The views that match the request. 908 * </pre> 909 * 910 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 911 */ addViewsBuilder()912 public com.google.cloud.contactcenterinsights.v1.View.Builder addViewsBuilder() { 913 return getViewsFieldBuilder() 914 .addBuilder(com.google.cloud.contactcenterinsights.v1.View.getDefaultInstance()); 915 } 916 /** 917 * 918 * 919 * <pre> 920 * The views that match the request. 921 * </pre> 922 * 923 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 924 */ addViewsBuilder(int index)925 public com.google.cloud.contactcenterinsights.v1.View.Builder addViewsBuilder(int index) { 926 return getViewsFieldBuilder() 927 .addBuilder(index, com.google.cloud.contactcenterinsights.v1.View.getDefaultInstance()); 928 } 929 /** 930 * 931 * 932 * <pre> 933 * The views that match the request. 934 * </pre> 935 * 936 * <code>repeated .google.cloud.contactcenterinsights.v1.View views = 1;</code> 937 */ 938 public java.util.List<com.google.cloud.contactcenterinsights.v1.View.Builder> getViewsBuilderList()939 getViewsBuilderList() { 940 return getViewsFieldBuilder().getBuilderList(); 941 } 942 943 private com.google.protobuf.RepeatedFieldBuilderV3< 944 com.google.cloud.contactcenterinsights.v1.View, 945 com.google.cloud.contactcenterinsights.v1.View.Builder, 946 com.google.cloud.contactcenterinsights.v1.ViewOrBuilder> getViewsFieldBuilder()947 getViewsFieldBuilder() { 948 if (viewsBuilder_ == null) { 949 viewsBuilder_ = 950 new com.google.protobuf.RepeatedFieldBuilderV3< 951 com.google.cloud.contactcenterinsights.v1.View, 952 com.google.cloud.contactcenterinsights.v1.View.Builder, 953 com.google.cloud.contactcenterinsights.v1.ViewOrBuilder>( 954 views_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); 955 views_ = null; 956 } 957 return viewsBuilder_; 958 } 959 960 private java.lang.Object nextPageToken_ = ""; 961 /** 962 * 963 * 964 * <pre> 965 * A token, which can be sent as `page_token` to retrieve the next page. 966 * If this field is omitted, there are no subsequent pages. 967 * </pre> 968 * 969 * <code>string next_page_token = 2;</code> 970 * 971 * @return The nextPageToken. 972 */ getNextPageToken()973 public java.lang.String getNextPageToken() { 974 java.lang.Object ref = nextPageToken_; 975 if (!(ref instanceof java.lang.String)) { 976 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 977 java.lang.String s = bs.toStringUtf8(); 978 nextPageToken_ = s; 979 return s; 980 } else { 981 return (java.lang.String) ref; 982 } 983 } 984 /** 985 * 986 * 987 * <pre> 988 * A token, which can be sent as `page_token` to retrieve the next page. 989 * If this field is omitted, there are no subsequent pages. 990 * </pre> 991 * 992 * <code>string next_page_token = 2;</code> 993 * 994 * @return The bytes for nextPageToken. 995 */ getNextPageTokenBytes()996 public com.google.protobuf.ByteString getNextPageTokenBytes() { 997 java.lang.Object ref = nextPageToken_; 998 if (ref instanceof String) { 999 com.google.protobuf.ByteString b = 1000 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1001 nextPageToken_ = b; 1002 return b; 1003 } else { 1004 return (com.google.protobuf.ByteString) ref; 1005 } 1006 } 1007 /** 1008 * 1009 * 1010 * <pre> 1011 * A token, which can be sent as `page_token` to retrieve the next page. 1012 * If this field is omitted, there are no subsequent pages. 1013 * </pre> 1014 * 1015 * <code>string next_page_token = 2;</code> 1016 * 1017 * @param value The nextPageToken to set. 1018 * @return This builder for chaining. 1019 */ setNextPageToken(java.lang.String value)1020 public Builder setNextPageToken(java.lang.String value) { 1021 if (value == null) { 1022 throw new NullPointerException(); 1023 } 1024 nextPageToken_ = value; 1025 bitField0_ |= 0x00000002; 1026 onChanged(); 1027 return this; 1028 } 1029 /** 1030 * 1031 * 1032 * <pre> 1033 * A token, which can be sent as `page_token` to retrieve the next page. 1034 * If this field is omitted, there are no subsequent pages. 1035 * </pre> 1036 * 1037 * <code>string next_page_token = 2;</code> 1038 * 1039 * @return This builder for chaining. 1040 */ clearNextPageToken()1041 public Builder clearNextPageToken() { 1042 nextPageToken_ = getDefaultInstance().getNextPageToken(); 1043 bitField0_ = (bitField0_ & ~0x00000002); 1044 onChanged(); 1045 return this; 1046 } 1047 /** 1048 * 1049 * 1050 * <pre> 1051 * A token, which can be sent as `page_token` to retrieve the next page. 1052 * If this field is omitted, there are no subsequent pages. 1053 * </pre> 1054 * 1055 * <code>string next_page_token = 2;</code> 1056 * 1057 * @param value The bytes for nextPageToken to set. 1058 * @return This builder for chaining. 1059 */ setNextPageTokenBytes(com.google.protobuf.ByteString value)1060 public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 1061 if (value == null) { 1062 throw new NullPointerException(); 1063 } 1064 checkByteStringIsUtf8(value); 1065 nextPageToken_ = value; 1066 bitField0_ |= 0x00000002; 1067 onChanged(); 1068 return this; 1069 } 1070 1071 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1072 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1073 return super.setUnknownFields(unknownFields); 1074 } 1075 1076 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1077 public final Builder mergeUnknownFields( 1078 final com.google.protobuf.UnknownFieldSet unknownFields) { 1079 return super.mergeUnknownFields(unknownFields); 1080 } 1081 1082 // @@protoc_insertion_point(builder_scope:google.cloud.contactcenterinsights.v1.ListViewsResponse) 1083 } 1084 1085 // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.ListViewsResponse) 1086 private static final com.google.cloud.contactcenterinsights.v1.ListViewsResponse DEFAULT_INSTANCE; 1087 1088 static { 1089 DEFAULT_INSTANCE = new com.google.cloud.contactcenterinsights.v1.ListViewsResponse(); 1090 } 1091 getDefaultInstance()1092 public static com.google.cloud.contactcenterinsights.v1.ListViewsResponse getDefaultInstance() { 1093 return DEFAULT_INSTANCE; 1094 } 1095 1096 private static final com.google.protobuf.Parser<ListViewsResponse> PARSER = 1097 new com.google.protobuf.AbstractParser<ListViewsResponse>() { 1098 @java.lang.Override 1099 public ListViewsResponse parsePartialFrom( 1100 com.google.protobuf.CodedInputStream input, 1101 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1102 throws com.google.protobuf.InvalidProtocolBufferException { 1103 Builder builder = newBuilder(); 1104 try { 1105 builder.mergeFrom(input, extensionRegistry); 1106 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1107 throw e.setUnfinishedMessage(builder.buildPartial()); 1108 } catch (com.google.protobuf.UninitializedMessageException e) { 1109 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1110 } catch (java.io.IOException e) { 1111 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1112 .setUnfinishedMessage(builder.buildPartial()); 1113 } 1114 return builder.buildPartial(); 1115 } 1116 }; 1117 parser()1118 public static com.google.protobuf.Parser<ListViewsResponse> parser() { 1119 return PARSER; 1120 } 1121 1122 @java.lang.Override getParserForType()1123 public com.google.protobuf.Parser<ListViewsResponse> getParserForType() { 1124 return PARSER; 1125 } 1126 1127 @java.lang.Override getDefaultInstanceForType()1128 public com.google.cloud.contactcenterinsights.v1.ListViewsResponse getDefaultInstanceForType() { 1129 return DEFAULT_INSTANCE; 1130 } 1131 } 1132