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/iot/v1/device_manager.proto 18 19 package com.google.cloud.iot.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Request for `ListDevices`. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.iot.v1.ListDevicesRequest} 29 */ 30 public final class ListDevicesRequest extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ListDevicesRequest) 33 ListDevicesRequestOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use ListDevicesRequest.newBuilder() to construct. ListDevicesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private ListDevicesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 ListDevicesRequest()40 private ListDevicesRequest() { 41 parent_ = ""; 42 deviceNumIds_ = emptyLongList(); 43 deviceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; 44 pageToken_ = ""; 45 } 46 47 @java.lang.Override 48 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)49 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 50 return new ListDevicesRequest(); 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.cloud.iot.v1.DeviceManagerProto 60 .internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor; 61 } 62 63 @java.lang.Override 64 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()65 internalGetFieldAccessorTable() { 66 return com.google.cloud.iot.v1.DeviceManagerProto 67 .internal_static_google_cloud_iot_v1_ListDevicesRequest_fieldAccessorTable 68 .ensureFieldAccessorsInitialized( 69 com.google.cloud.iot.v1.ListDevicesRequest.class, 70 com.google.cloud.iot.v1.ListDevicesRequest.Builder.class); 71 } 72 73 public static final int PARENT_FIELD_NUMBER = 1; 74 75 @SuppressWarnings("serial") 76 private volatile java.lang.Object parent_ = ""; 77 /** 78 * 79 * 80 * <pre> 81 * Required. The device registry path. Required. For example, 82 * `projects/my-project/locations/us-central1/registries/my-registry`. 83 * </pre> 84 * 85 * <code> 86 * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 87 * </code> 88 * 89 * @return The parent. 90 */ 91 @java.lang.Override getParent()92 public java.lang.String getParent() { 93 java.lang.Object ref = parent_; 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 parent_ = s; 100 return s; 101 } 102 } 103 /** 104 * 105 * 106 * <pre> 107 * Required. The device registry path. Required. For example, 108 * `projects/my-project/locations/us-central1/registries/my-registry`. 109 * </pre> 110 * 111 * <code> 112 * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 113 * </code> 114 * 115 * @return The bytes for parent. 116 */ 117 @java.lang.Override getParentBytes()118 public com.google.protobuf.ByteString getParentBytes() { 119 java.lang.Object ref = parent_; 120 if (ref instanceof java.lang.String) { 121 com.google.protobuf.ByteString b = 122 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 123 parent_ = b; 124 return b; 125 } else { 126 return (com.google.protobuf.ByteString) ref; 127 } 128 } 129 130 public static final int DEVICE_NUM_IDS_FIELD_NUMBER = 2; 131 132 @SuppressWarnings("serial") 133 private com.google.protobuf.Internal.LongList deviceNumIds_; 134 /** 135 * 136 * 137 * <pre> 138 * A list of device numeric IDs. If empty, this field is ignored. Maximum 139 * IDs: 10,000. 140 * </pre> 141 * 142 * <code>repeated uint64 device_num_ids = 2;</code> 143 * 144 * @return A list containing the deviceNumIds. 145 */ 146 @java.lang.Override getDeviceNumIdsList()147 public java.util.List<java.lang.Long> getDeviceNumIdsList() { 148 return deviceNumIds_; 149 } 150 /** 151 * 152 * 153 * <pre> 154 * A list of device numeric IDs. If empty, this field is ignored. Maximum 155 * IDs: 10,000. 156 * </pre> 157 * 158 * <code>repeated uint64 device_num_ids = 2;</code> 159 * 160 * @return The count of deviceNumIds. 161 */ getDeviceNumIdsCount()162 public int getDeviceNumIdsCount() { 163 return deviceNumIds_.size(); 164 } 165 /** 166 * 167 * 168 * <pre> 169 * A list of device numeric IDs. If empty, this field is ignored. Maximum 170 * IDs: 10,000. 171 * </pre> 172 * 173 * <code>repeated uint64 device_num_ids = 2;</code> 174 * 175 * @param index The index of the element to return. 176 * @return The deviceNumIds at the given index. 177 */ getDeviceNumIds(int index)178 public long getDeviceNumIds(int index) { 179 return deviceNumIds_.getLong(index); 180 } 181 182 private int deviceNumIdsMemoizedSerializedSize = -1; 183 184 public static final int DEVICE_IDS_FIELD_NUMBER = 3; 185 186 @SuppressWarnings("serial") 187 private com.google.protobuf.LazyStringList deviceIds_; 188 /** 189 * 190 * 191 * <pre> 192 * A list of device string IDs. For example, `['device0', 'device12']`. 193 * If empty, this field is ignored. Maximum IDs: 10,000 194 * </pre> 195 * 196 * <code>repeated string device_ids = 3;</code> 197 * 198 * @return A list containing the deviceIds. 199 */ getDeviceIdsList()200 public com.google.protobuf.ProtocolStringList getDeviceIdsList() { 201 return deviceIds_; 202 } 203 /** 204 * 205 * 206 * <pre> 207 * A list of device string IDs. For example, `['device0', 'device12']`. 208 * If empty, this field is ignored. Maximum IDs: 10,000 209 * </pre> 210 * 211 * <code>repeated string device_ids = 3;</code> 212 * 213 * @return The count of deviceIds. 214 */ getDeviceIdsCount()215 public int getDeviceIdsCount() { 216 return deviceIds_.size(); 217 } 218 /** 219 * 220 * 221 * <pre> 222 * A list of device string IDs. For example, `['device0', 'device12']`. 223 * If empty, this field is ignored. Maximum IDs: 10,000 224 * </pre> 225 * 226 * <code>repeated string device_ids = 3;</code> 227 * 228 * @param index The index of the element to return. 229 * @return The deviceIds at the given index. 230 */ getDeviceIds(int index)231 public java.lang.String getDeviceIds(int index) { 232 return deviceIds_.get(index); 233 } 234 /** 235 * 236 * 237 * <pre> 238 * A list of device string IDs. For example, `['device0', 'device12']`. 239 * If empty, this field is ignored. Maximum IDs: 10,000 240 * </pre> 241 * 242 * <code>repeated string device_ids = 3;</code> 243 * 244 * @param index The index of the value to return. 245 * @return The bytes of the deviceIds at the given index. 246 */ getDeviceIdsBytes(int index)247 public com.google.protobuf.ByteString getDeviceIdsBytes(int index) { 248 return deviceIds_.getByteString(index); 249 } 250 251 public static final int FIELD_MASK_FIELD_NUMBER = 4; 252 private com.google.protobuf.FieldMask fieldMask_; 253 /** 254 * 255 * 256 * <pre> 257 * The fields of the `Device` resource to be returned in the response. The 258 * fields `id` and `num_id` are always returned, along with any 259 * other fields specified in snake_case format, for example: 260 * `last_heartbeat_time`. 261 * </pre> 262 * 263 * <code>.google.protobuf.FieldMask field_mask = 4;</code> 264 * 265 * @return Whether the fieldMask field is set. 266 */ 267 @java.lang.Override hasFieldMask()268 public boolean hasFieldMask() { 269 return fieldMask_ != null; 270 } 271 /** 272 * 273 * 274 * <pre> 275 * The fields of the `Device` resource to be returned in the response. The 276 * fields `id` and `num_id` are always returned, along with any 277 * other fields specified in snake_case format, for example: 278 * `last_heartbeat_time`. 279 * </pre> 280 * 281 * <code>.google.protobuf.FieldMask field_mask = 4;</code> 282 * 283 * @return The fieldMask. 284 */ 285 @java.lang.Override getFieldMask()286 public com.google.protobuf.FieldMask getFieldMask() { 287 return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; 288 } 289 /** 290 * 291 * 292 * <pre> 293 * The fields of the `Device` resource to be returned in the response. The 294 * fields `id` and `num_id` are always returned, along with any 295 * other fields specified in snake_case format, for example: 296 * `last_heartbeat_time`. 297 * </pre> 298 * 299 * <code>.google.protobuf.FieldMask field_mask = 4;</code> 300 */ 301 @java.lang.Override getFieldMaskOrBuilder()302 public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { 303 return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; 304 } 305 306 public static final int GATEWAY_LIST_OPTIONS_FIELD_NUMBER = 6; 307 private com.google.cloud.iot.v1.GatewayListOptions gatewayListOptions_; 308 /** 309 * 310 * 311 * <pre> 312 * Options related to gateways. 313 * </pre> 314 * 315 * <code>.google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6;</code> 316 * 317 * @return Whether the gatewayListOptions field is set. 318 */ 319 @java.lang.Override hasGatewayListOptions()320 public boolean hasGatewayListOptions() { 321 return gatewayListOptions_ != null; 322 } 323 /** 324 * 325 * 326 * <pre> 327 * Options related to gateways. 328 * </pre> 329 * 330 * <code>.google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6;</code> 331 * 332 * @return The gatewayListOptions. 333 */ 334 @java.lang.Override getGatewayListOptions()335 public com.google.cloud.iot.v1.GatewayListOptions getGatewayListOptions() { 336 return gatewayListOptions_ == null 337 ? com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance() 338 : gatewayListOptions_; 339 } 340 /** 341 * 342 * 343 * <pre> 344 * Options related to gateways. 345 * </pre> 346 * 347 * <code>.google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6;</code> 348 */ 349 @java.lang.Override getGatewayListOptionsOrBuilder()350 public com.google.cloud.iot.v1.GatewayListOptionsOrBuilder getGatewayListOptionsOrBuilder() { 351 return gatewayListOptions_ == null 352 ? com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance() 353 : gatewayListOptions_; 354 } 355 356 public static final int PAGE_SIZE_FIELD_NUMBER = 100; 357 private int pageSize_ = 0; 358 /** 359 * 360 * 361 * <pre> 362 * The maximum number of devices to return in the response. If this value 363 * is zero, the service will select a default size. A call may return fewer 364 * objects than requested. A non-empty `next_page_token` in the response 365 * indicates that more data is available. 366 * </pre> 367 * 368 * <code>int32 page_size = 100;</code> 369 * 370 * @return The pageSize. 371 */ 372 @java.lang.Override getPageSize()373 public int getPageSize() { 374 return pageSize_; 375 } 376 377 public static final int PAGE_TOKEN_FIELD_NUMBER = 101; 378 379 @SuppressWarnings("serial") 380 private volatile java.lang.Object pageToken_ = ""; 381 /** 382 * 383 * 384 * <pre> 385 * The value returned by the last `ListDevicesResponse`; indicates 386 * that this is a continuation of a prior `ListDevices` call and 387 * the system should return the next page of data. 388 * </pre> 389 * 390 * <code>string page_token = 101;</code> 391 * 392 * @return The pageToken. 393 */ 394 @java.lang.Override getPageToken()395 public java.lang.String getPageToken() { 396 java.lang.Object ref = pageToken_; 397 if (ref instanceof java.lang.String) { 398 return (java.lang.String) ref; 399 } else { 400 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 401 java.lang.String s = bs.toStringUtf8(); 402 pageToken_ = s; 403 return s; 404 } 405 } 406 /** 407 * 408 * 409 * <pre> 410 * The value returned by the last `ListDevicesResponse`; indicates 411 * that this is a continuation of a prior `ListDevices` call and 412 * the system should return the next page of data. 413 * </pre> 414 * 415 * <code>string page_token = 101;</code> 416 * 417 * @return The bytes for pageToken. 418 */ 419 @java.lang.Override getPageTokenBytes()420 public com.google.protobuf.ByteString getPageTokenBytes() { 421 java.lang.Object ref = pageToken_; 422 if (ref instanceof java.lang.String) { 423 com.google.protobuf.ByteString b = 424 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 425 pageToken_ = b; 426 return b; 427 } else { 428 return (com.google.protobuf.ByteString) ref; 429 } 430 } 431 432 private byte memoizedIsInitialized = -1; 433 434 @java.lang.Override isInitialized()435 public final boolean isInitialized() { 436 byte isInitialized = memoizedIsInitialized; 437 if (isInitialized == 1) return true; 438 if (isInitialized == 0) return false; 439 440 memoizedIsInitialized = 1; 441 return true; 442 } 443 444 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)445 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 446 getSerializedSize(); 447 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { 448 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); 449 } 450 if (getDeviceNumIdsList().size() > 0) { 451 output.writeUInt32NoTag(18); 452 output.writeUInt32NoTag(deviceNumIdsMemoizedSerializedSize); 453 } 454 for (int i = 0; i < deviceNumIds_.size(); i++) { 455 output.writeUInt64NoTag(deviceNumIds_.getLong(i)); 456 } 457 for (int i = 0; i < deviceIds_.size(); i++) { 458 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deviceIds_.getRaw(i)); 459 } 460 if (fieldMask_ != null) { 461 output.writeMessage(4, getFieldMask()); 462 } 463 if (gatewayListOptions_ != null) { 464 output.writeMessage(6, getGatewayListOptions()); 465 } 466 if (pageSize_ != 0) { 467 output.writeInt32(100, pageSize_); 468 } 469 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { 470 com.google.protobuf.GeneratedMessageV3.writeString(output, 101, pageToken_); 471 } 472 getUnknownFields().writeTo(output); 473 } 474 475 @java.lang.Override getSerializedSize()476 public int getSerializedSize() { 477 int size = memoizedSize; 478 if (size != -1) return size; 479 480 size = 0; 481 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { 482 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); 483 } 484 { 485 int dataSize = 0; 486 for (int i = 0; i < deviceNumIds_.size(); i++) { 487 dataSize += 488 com.google.protobuf.CodedOutputStream.computeUInt64SizeNoTag(deviceNumIds_.getLong(i)); 489 } 490 size += dataSize; 491 if (!getDeviceNumIdsList().isEmpty()) { 492 size += 1; 493 size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); 494 } 495 deviceNumIdsMemoizedSerializedSize = dataSize; 496 } 497 { 498 int dataSize = 0; 499 for (int i = 0; i < deviceIds_.size(); i++) { 500 dataSize += computeStringSizeNoTag(deviceIds_.getRaw(i)); 501 } 502 size += dataSize; 503 size += 1 * getDeviceIdsList().size(); 504 } 505 if (fieldMask_ != null) { 506 size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFieldMask()); 507 } 508 if (gatewayListOptions_ != null) { 509 size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getGatewayListOptions()); 510 } 511 if (pageSize_ != 0) { 512 size += com.google.protobuf.CodedOutputStream.computeInt32Size(100, pageSize_); 513 } 514 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { 515 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, pageToken_); 516 } 517 size += getUnknownFields().getSerializedSize(); 518 memoizedSize = size; 519 return size; 520 } 521 522 @java.lang.Override equals(final java.lang.Object obj)523 public boolean equals(final java.lang.Object obj) { 524 if (obj == this) { 525 return true; 526 } 527 if (!(obj instanceof com.google.cloud.iot.v1.ListDevicesRequest)) { 528 return super.equals(obj); 529 } 530 com.google.cloud.iot.v1.ListDevicesRequest other = 531 (com.google.cloud.iot.v1.ListDevicesRequest) obj; 532 533 if (!getParent().equals(other.getParent())) return false; 534 if (!getDeviceNumIdsList().equals(other.getDeviceNumIdsList())) return false; 535 if (!getDeviceIdsList().equals(other.getDeviceIdsList())) return false; 536 if (hasFieldMask() != other.hasFieldMask()) return false; 537 if (hasFieldMask()) { 538 if (!getFieldMask().equals(other.getFieldMask())) return false; 539 } 540 if (hasGatewayListOptions() != other.hasGatewayListOptions()) return false; 541 if (hasGatewayListOptions()) { 542 if (!getGatewayListOptions().equals(other.getGatewayListOptions())) return false; 543 } 544 if (getPageSize() != other.getPageSize()) return false; 545 if (!getPageToken().equals(other.getPageToken())) return false; 546 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 547 return true; 548 } 549 550 @java.lang.Override hashCode()551 public int hashCode() { 552 if (memoizedHashCode != 0) { 553 return memoizedHashCode; 554 } 555 int hash = 41; 556 hash = (19 * hash) + getDescriptor().hashCode(); 557 hash = (37 * hash) + PARENT_FIELD_NUMBER; 558 hash = (53 * hash) + getParent().hashCode(); 559 if (getDeviceNumIdsCount() > 0) { 560 hash = (37 * hash) + DEVICE_NUM_IDS_FIELD_NUMBER; 561 hash = (53 * hash) + getDeviceNumIdsList().hashCode(); 562 } 563 if (getDeviceIdsCount() > 0) { 564 hash = (37 * hash) + DEVICE_IDS_FIELD_NUMBER; 565 hash = (53 * hash) + getDeviceIdsList().hashCode(); 566 } 567 if (hasFieldMask()) { 568 hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; 569 hash = (53 * hash) + getFieldMask().hashCode(); 570 } 571 if (hasGatewayListOptions()) { 572 hash = (37 * hash) + GATEWAY_LIST_OPTIONS_FIELD_NUMBER; 573 hash = (53 * hash) + getGatewayListOptions().hashCode(); 574 } 575 hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; 576 hash = (53 * hash) + getPageSize(); 577 hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; 578 hash = (53 * hash) + getPageToken().hashCode(); 579 hash = (29 * hash) + getUnknownFields().hashCode(); 580 memoizedHashCode = hash; 581 return hash; 582 } 583 parseFrom(java.nio.ByteBuffer data)584 public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom(java.nio.ByteBuffer data) 585 throws com.google.protobuf.InvalidProtocolBufferException { 586 return PARSER.parseFrom(data); 587 } 588 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)589 public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( 590 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 591 throws com.google.protobuf.InvalidProtocolBufferException { 592 return PARSER.parseFrom(data, extensionRegistry); 593 } 594 parseFrom( com.google.protobuf.ByteString data)595 public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( 596 com.google.protobuf.ByteString data) 597 throws com.google.protobuf.InvalidProtocolBufferException { 598 return PARSER.parseFrom(data); 599 } 600 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)601 public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( 602 com.google.protobuf.ByteString data, 603 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 604 throws com.google.protobuf.InvalidProtocolBufferException { 605 return PARSER.parseFrom(data, extensionRegistry); 606 } 607 parseFrom(byte[] data)608 public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom(byte[] data) 609 throws com.google.protobuf.InvalidProtocolBufferException { 610 return PARSER.parseFrom(data); 611 } 612 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)613 public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( 614 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 615 throws com.google.protobuf.InvalidProtocolBufferException { 616 return PARSER.parseFrom(data, extensionRegistry); 617 } 618 parseFrom(java.io.InputStream input)619 public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom(java.io.InputStream input) 620 throws java.io.IOException { 621 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 622 } 623 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)624 public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( 625 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 626 throws java.io.IOException { 627 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 628 PARSER, input, extensionRegistry); 629 } 630 parseDelimitedFrom( java.io.InputStream input)631 public static com.google.cloud.iot.v1.ListDevicesRequest parseDelimitedFrom( 632 java.io.InputStream input) throws java.io.IOException { 633 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 634 } 635 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)636 public static com.google.cloud.iot.v1.ListDevicesRequest parseDelimitedFrom( 637 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 638 throws java.io.IOException { 639 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 640 PARSER, input, extensionRegistry); 641 } 642 parseFrom( com.google.protobuf.CodedInputStream input)643 public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( 644 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 645 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 646 } 647 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)648 public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( 649 com.google.protobuf.CodedInputStream input, 650 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 651 throws java.io.IOException { 652 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 653 PARSER, input, extensionRegistry); 654 } 655 656 @java.lang.Override newBuilderForType()657 public Builder newBuilderForType() { 658 return newBuilder(); 659 } 660 newBuilder()661 public static Builder newBuilder() { 662 return DEFAULT_INSTANCE.toBuilder(); 663 } 664 newBuilder(com.google.cloud.iot.v1.ListDevicesRequest prototype)665 public static Builder newBuilder(com.google.cloud.iot.v1.ListDevicesRequest prototype) { 666 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 667 } 668 669 @java.lang.Override toBuilder()670 public Builder toBuilder() { 671 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 672 } 673 674 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)675 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 676 Builder builder = new Builder(parent); 677 return builder; 678 } 679 /** 680 * 681 * 682 * <pre> 683 * Request for `ListDevices`. 684 * </pre> 685 * 686 * Protobuf type {@code google.cloud.iot.v1.ListDevicesRequest} 687 */ 688 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 689 implements 690 // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ListDevicesRequest) 691 com.google.cloud.iot.v1.ListDevicesRequestOrBuilder { getDescriptor()692 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 693 return com.google.cloud.iot.v1.DeviceManagerProto 694 .internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor; 695 } 696 697 @java.lang.Override 698 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()699 internalGetFieldAccessorTable() { 700 return com.google.cloud.iot.v1.DeviceManagerProto 701 .internal_static_google_cloud_iot_v1_ListDevicesRequest_fieldAccessorTable 702 .ensureFieldAccessorsInitialized( 703 com.google.cloud.iot.v1.ListDevicesRequest.class, 704 com.google.cloud.iot.v1.ListDevicesRequest.Builder.class); 705 } 706 707 // Construct using com.google.cloud.iot.v1.ListDevicesRequest.newBuilder() Builder()708 private Builder() {} 709 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)710 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 711 super(parent); 712 } 713 714 @java.lang.Override clear()715 public Builder clear() { 716 super.clear(); 717 bitField0_ = 0; 718 parent_ = ""; 719 deviceNumIds_ = emptyLongList(); 720 deviceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; 721 bitField0_ = (bitField0_ & ~0x00000004); 722 fieldMask_ = null; 723 if (fieldMaskBuilder_ != null) { 724 fieldMaskBuilder_.dispose(); 725 fieldMaskBuilder_ = null; 726 } 727 gatewayListOptions_ = null; 728 if (gatewayListOptionsBuilder_ != null) { 729 gatewayListOptionsBuilder_.dispose(); 730 gatewayListOptionsBuilder_ = null; 731 } 732 pageSize_ = 0; 733 pageToken_ = ""; 734 return this; 735 } 736 737 @java.lang.Override getDescriptorForType()738 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 739 return com.google.cloud.iot.v1.DeviceManagerProto 740 .internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor; 741 } 742 743 @java.lang.Override getDefaultInstanceForType()744 public com.google.cloud.iot.v1.ListDevicesRequest getDefaultInstanceForType() { 745 return com.google.cloud.iot.v1.ListDevicesRequest.getDefaultInstance(); 746 } 747 748 @java.lang.Override build()749 public com.google.cloud.iot.v1.ListDevicesRequest build() { 750 com.google.cloud.iot.v1.ListDevicesRequest result = buildPartial(); 751 if (!result.isInitialized()) { 752 throw newUninitializedMessageException(result); 753 } 754 return result; 755 } 756 757 @java.lang.Override buildPartial()758 public com.google.cloud.iot.v1.ListDevicesRequest buildPartial() { 759 com.google.cloud.iot.v1.ListDevicesRequest result = 760 new com.google.cloud.iot.v1.ListDevicesRequest(this); 761 buildPartialRepeatedFields(result); 762 if (bitField0_ != 0) { 763 buildPartial0(result); 764 } 765 onBuilt(); 766 return result; 767 } 768 buildPartialRepeatedFields(com.google.cloud.iot.v1.ListDevicesRequest result)769 private void buildPartialRepeatedFields(com.google.cloud.iot.v1.ListDevicesRequest result) { 770 if (((bitField0_ & 0x00000002) != 0)) { 771 deviceNumIds_.makeImmutable(); 772 bitField0_ = (bitField0_ & ~0x00000002); 773 } 774 result.deviceNumIds_ = deviceNumIds_; 775 if (((bitField0_ & 0x00000004) != 0)) { 776 deviceIds_ = deviceIds_.getUnmodifiableView(); 777 bitField0_ = (bitField0_ & ~0x00000004); 778 } 779 result.deviceIds_ = deviceIds_; 780 } 781 buildPartial0(com.google.cloud.iot.v1.ListDevicesRequest result)782 private void buildPartial0(com.google.cloud.iot.v1.ListDevicesRequest result) { 783 int from_bitField0_ = bitField0_; 784 if (((from_bitField0_ & 0x00000001) != 0)) { 785 result.parent_ = parent_; 786 } 787 if (((from_bitField0_ & 0x00000008) != 0)) { 788 result.fieldMask_ = fieldMaskBuilder_ == null ? fieldMask_ : fieldMaskBuilder_.build(); 789 } 790 if (((from_bitField0_ & 0x00000010) != 0)) { 791 result.gatewayListOptions_ = 792 gatewayListOptionsBuilder_ == null 793 ? gatewayListOptions_ 794 : gatewayListOptionsBuilder_.build(); 795 } 796 if (((from_bitField0_ & 0x00000020) != 0)) { 797 result.pageSize_ = pageSize_; 798 } 799 if (((from_bitField0_ & 0x00000040) != 0)) { 800 result.pageToken_ = pageToken_; 801 } 802 } 803 804 @java.lang.Override clone()805 public Builder clone() { 806 return super.clone(); 807 } 808 809 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)810 public Builder setField( 811 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 812 return super.setField(field, value); 813 } 814 815 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)816 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 817 return super.clearField(field); 818 } 819 820 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)821 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 822 return super.clearOneof(oneof); 823 } 824 825 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)826 public Builder setRepeatedField( 827 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 828 return super.setRepeatedField(field, index, value); 829 } 830 831 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)832 public Builder addRepeatedField( 833 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 834 return super.addRepeatedField(field, value); 835 } 836 837 @java.lang.Override mergeFrom(com.google.protobuf.Message other)838 public Builder mergeFrom(com.google.protobuf.Message other) { 839 if (other instanceof com.google.cloud.iot.v1.ListDevicesRequest) { 840 return mergeFrom((com.google.cloud.iot.v1.ListDevicesRequest) other); 841 } else { 842 super.mergeFrom(other); 843 return this; 844 } 845 } 846 mergeFrom(com.google.cloud.iot.v1.ListDevicesRequest other)847 public Builder mergeFrom(com.google.cloud.iot.v1.ListDevicesRequest other) { 848 if (other == com.google.cloud.iot.v1.ListDevicesRequest.getDefaultInstance()) return this; 849 if (!other.getParent().isEmpty()) { 850 parent_ = other.parent_; 851 bitField0_ |= 0x00000001; 852 onChanged(); 853 } 854 if (!other.deviceNumIds_.isEmpty()) { 855 if (deviceNumIds_.isEmpty()) { 856 deviceNumIds_ = other.deviceNumIds_; 857 bitField0_ = (bitField0_ & ~0x00000002); 858 } else { 859 ensureDeviceNumIdsIsMutable(); 860 deviceNumIds_.addAll(other.deviceNumIds_); 861 } 862 onChanged(); 863 } 864 if (!other.deviceIds_.isEmpty()) { 865 if (deviceIds_.isEmpty()) { 866 deviceIds_ = other.deviceIds_; 867 bitField0_ = (bitField0_ & ~0x00000004); 868 } else { 869 ensureDeviceIdsIsMutable(); 870 deviceIds_.addAll(other.deviceIds_); 871 } 872 onChanged(); 873 } 874 if (other.hasFieldMask()) { 875 mergeFieldMask(other.getFieldMask()); 876 } 877 if (other.hasGatewayListOptions()) { 878 mergeGatewayListOptions(other.getGatewayListOptions()); 879 } 880 if (other.getPageSize() != 0) { 881 setPageSize(other.getPageSize()); 882 } 883 if (!other.getPageToken().isEmpty()) { 884 pageToken_ = other.pageToken_; 885 bitField0_ |= 0x00000040; 886 onChanged(); 887 } 888 this.mergeUnknownFields(other.getUnknownFields()); 889 onChanged(); 890 return this; 891 } 892 893 @java.lang.Override isInitialized()894 public final boolean isInitialized() { 895 return true; 896 } 897 898 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)899 public Builder mergeFrom( 900 com.google.protobuf.CodedInputStream input, 901 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 902 throws java.io.IOException { 903 if (extensionRegistry == null) { 904 throw new java.lang.NullPointerException(); 905 } 906 try { 907 boolean done = false; 908 while (!done) { 909 int tag = input.readTag(); 910 switch (tag) { 911 case 0: 912 done = true; 913 break; 914 case 10: 915 { 916 parent_ = input.readStringRequireUtf8(); 917 bitField0_ |= 0x00000001; 918 break; 919 } // case 10 920 case 16: 921 { 922 long v = input.readUInt64(); 923 ensureDeviceNumIdsIsMutable(); 924 deviceNumIds_.addLong(v); 925 break; 926 } // case 16 927 case 18: 928 { 929 int length = input.readRawVarint32(); 930 int limit = input.pushLimit(length); 931 ensureDeviceNumIdsIsMutable(); 932 while (input.getBytesUntilLimit() > 0) { 933 deviceNumIds_.addLong(input.readUInt64()); 934 } 935 input.popLimit(limit); 936 break; 937 } // case 18 938 case 26: 939 { 940 java.lang.String s = input.readStringRequireUtf8(); 941 ensureDeviceIdsIsMutable(); 942 deviceIds_.add(s); 943 break; 944 } // case 26 945 case 34: 946 { 947 input.readMessage(getFieldMaskFieldBuilder().getBuilder(), extensionRegistry); 948 bitField0_ |= 0x00000008; 949 break; 950 } // case 34 951 case 50: 952 { 953 input.readMessage( 954 getGatewayListOptionsFieldBuilder().getBuilder(), extensionRegistry); 955 bitField0_ |= 0x00000010; 956 break; 957 } // case 50 958 case 800: 959 { 960 pageSize_ = input.readInt32(); 961 bitField0_ |= 0x00000020; 962 break; 963 } // case 800 964 case 810: 965 { 966 pageToken_ = input.readStringRequireUtf8(); 967 bitField0_ |= 0x00000040; 968 break; 969 } // case 810 970 default: 971 { 972 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 973 done = true; // was an endgroup tag 974 } 975 break; 976 } // default: 977 } // switch (tag) 978 } // while (!done) 979 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 980 throw e.unwrapIOException(); 981 } finally { 982 onChanged(); 983 } // finally 984 return this; 985 } 986 987 private int bitField0_; 988 989 private java.lang.Object parent_ = ""; 990 /** 991 * 992 * 993 * <pre> 994 * Required. The device registry path. Required. For example, 995 * `projects/my-project/locations/us-central1/registries/my-registry`. 996 * </pre> 997 * 998 * <code> 999 * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 1000 * </code> 1001 * 1002 * @return The parent. 1003 */ getParent()1004 public java.lang.String getParent() { 1005 java.lang.Object ref = parent_; 1006 if (!(ref instanceof java.lang.String)) { 1007 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1008 java.lang.String s = bs.toStringUtf8(); 1009 parent_ = s; 1010 return s; 1011 } else { 1012 return (java.lang.String) ref; 1013 } 1014 } 1015 /** 1016 * 1017 * 1018 * <pre> 1019 * Required. The device registry path. Required. For example, 1020 * `projects/my-project/locations/us-central1/registries/my-registry`. 1021 * </pre> 1022 * 1023 * <code> 1024 * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 1025 * </code> 1026 * 1027 * @return The bytes for parent. 1028 */ getParentBytes()1029 public com.google.protobuf.ByteString getParentBytes() { 1030 java.lang.Object ref = parent_; 1031 if (ref instanceof String) { 1032 com.google.protobuf.ByteString b = 1033 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1034 parent_ = b; 1035 return b; 1036 } else { 1037 return (com.google.protobuf.ByteString) ref; 1038 } 1039 } 1040 /** 1041 * 1042 * 1043 * <pre> 1044 * Required. The device registry path. Required. For example, 1045 * `projects/my-project/locations/us-central1/registries/my-registry`. 1046 * </pre> 1047 * 1048 * <code> 1049 * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 1050 * </code> 1051 * 1052 * @param value The parent to set. 1053 * @return This builder for chaining. 1054 */ setParent(java.lang.String value)1055 public Builder setParent(java.lang.String value) { 1056 if (value == null) { 1057 throw new NullPointerException(); 1058 } 1059 parent_ = value; 1060 bitField0_ |= 0x00000001; 1061 onChanged(); 1062 return this; 1063 } 1064 /** 1065 * 1066 * 1067 * <pre> 1068 * Required. The device registry path. Required. For example, 1069 * `projects/my-project/locations/us-central1/registries/my-registry`. 1070 * </pre> 1071 * 1072 * <code> 1073 * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 1074 * </code> 1075 * 1076 * @return This builder for chaining. 1077 */ clearParent()1078 public Builder clearParent() { 1079 parent_ = getDefaultInstance().getParent(); 1080 bitField0_ = (bitField0_ & ~0x00000001); 1081 onChanged(); 1082 return this; 1083 } 1084 /** 1085 * 1086 * 1087 * <pre> 1088 * Required. The device registry path. Required. For example, 1089 * `projects/my-project/locations/us-central1/registries/my-registry`. 1090 * </pre> 1091 * 1092 * <code> 1093 * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 1094 * </code> 1095 * 1096 * @param value The bytes for parent to set. 1097 * @return This builder for chaining. 1098 */ setParentBytes(com.google.protobuf.ByteString value)1099 public Builder setParentBytes(com.google.protobuf.ByteString value) { 1100 if (value == null) { 1101 throw new NullPointerException(); 1102 } 1103 checkByteStringIsUtf8(value); 1104 parent_ = value; 1105 bitField0_ |= 0x00000001; 1106 onChanged(); 1107 return this; 1108 } 1109 1110 private com.google.protobuf.Internal.LongList deviceNumIds_ = emptyLongList(); 1111 ensureDeviceNumIdsIsMutable()1112 private void ensureDeviceNumIdsIsMutable() { 1113 if (!((bitField0_ & 0x00000002) != 0)) { 1114 deviceNumIds_ = mutableCopy(deviceNumIds_); 1115 bitField0_ |= 0x00000002; 1116 } 1117 } 1118 /** 1119 * 1120 * 1121 * <pre> 1122 * A list of device numeric IDs. If empty, this field is ignored. Maximum 1123 * IDs: 10,000. 1124 * </pre> 1125 * 1126 * <code>repeated uint64 device_num_ids = 2;</code> 1127 * 1128 * @return A list containing the deviceNumIds. 1129 */ getDeviceNumIdsList()1130 public java.util.List<java.lang.Long> getDeviceNumIdsList() { 1131 return ((bitField0_ & 0x00000002) != 0) 1132 ? java.util.Collections.unmodifiableList(deviceNumIds_) 1133 : deviceNumIds_; 1134 } 1135 /** 1136 * 1137 * 1138 * <pre> 1139 * A list of device numeric IDs. If empty, this field is ignored. Maximum 1140 * IDs: 10,000. 1141 * </pre> 1142 * 1143 * <code>repeated uint64 device_num_ids = 2;</code> 1144 * 1145 * @return The count of deviceNumIds. 1146 */ getDeviceNumIdsCount()1147 public int getDeviceNumIdsCount() { 1148 return deviceNumIds_.size(); 1149 } 1150 /** 1151 * 1152 * 1153 * <pre> 1154 * A list of device numeric IDs. If empty, this field is ignored. Maximum 1155 * IDs: 10,000. 1156 * </pre> 1157 * 1158 * <code>repeated uint64 device_num_ids = 2;</code> 1159 * 1160 * @param index The index of the element to return. 1161 * @return The deviceNumIds at the given index. 1162 */ getDeviceNumIds(int index)1163 public long getDeviceNumIds(int index) { 1164 return deviceNumIds_.getLong(index); 1165 } 1166 /** 1167 * 1168 * 1169 * <pre> 1170 * A list of device numeric IDs. If empty, this field is ignored. Maximum 1171 * IDs: 10,000. 1172 * </pre> 1173 * 1174 * <code>repeated uint64 device_num_ids = 2;</code> 1175 * 1176 * @param index The index to set the value at. 1177 * @param value The deviceNumIds to set. 1178 * @return This builder for chaining. 1179 */ setDeviceNumIds(int index, long value)1180 public Builder setDeviceNumIds(int index, long value) { 1181 1182 ensureDeviceNumIdsIsMutable(); 1183 deviceNumIds_.setLong(index, value); 1184 onChanged(); 1185 return this; 1186 } 1187 /** 1188 * 1189 * 1190 * <pre> 1191 * A list of device numeric IDs. If empty, this field is ignored. Maximum 1192 * IDs: 10,000. 1193 * </pre> 1194 * 1195 * <code>repeated uint64 device_num_ids = 2;</code> 1196 * 1197 * @param value The deviceNumIds to add. 1198 * @return This builder for chaining. 1199 */ addDeviceNumIds(long value)1200 public Builder addDeviceNumIds(long value) { 1201 1202 ensureDeviceNumIdsIsMutable(); 1203 deviceNumIds_.addLong(value); 1204 onChanged(); 1205 return this; 1206 } 1207 /** 1208 * 1209 * 1210 * <pre> 1211 * A list of device numeric IDs. If empty, this field is ignored. Maximum 1212 * IDs: 10,000. 1213 * </pre> 1214 * 1215 * <code>repeated uint64 device_num_ids = 2;</code> 1216 * 1217 * @param values The deviceNumIds to add. 1218 * @return This builder for chaining. 1219 */ addAllDeviceNumIds(java.lang.Iterable<? extends java.lang.Long> values)1220 public Builder addAllDeviceNumIds(java.lang.Iterable<? extends java.lang.Long> values) { 1221 ensureDeviceNumIdsIsMutable(); 1222 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deviceNumIds_); 1223 onChanged(); 1224 return this; 1225 } 1226 /** 1227 * 1228 * 1229 * <pre> 1230 * A list of device numeric IDs. If empty, this field is ignored. Maximum 1231 * IDs: 10,000. 1232 * </pre> 1233 * 1234 * <code>repeated uint64 device_num_ids = 2;</code> 1235 * 1236 * @return This builder for chaining. 1237 */ clearDeviceNumIds()1238 public Builder clearDeviceNumIds() { 1239 deviceNumIds_ = emptyLongList(); 1240 bitField0_ = (bitField0_ & ~0x00000002); 1241 onChanged(); 1242 return this; 1243 } 1244 1245 private com.google.protobuf.LazyStringList deviceIds_ = 1246 com.google.protobuf.LazyStringArrayList.EMPTY; 1247 ensureDeviceIdsIsMutable()1248 private void ensureDeviceIdsIsMutable() { 1249 if (!((bitField0_ & 0x00000004) != 0)) { 1250 deviceIds_ = new com.google.protobuf.LazyStringArrayList(deviceIds_); 1251 bitField0_ |= 0x00000004; 1252 } 1253 } 1254 /** 1255 * 1256 * 1257 * <pre> 1258 * A list of device string IDs. For example, `['device0', 'device12']`. 1259 * If empty, this field is ignored. Maximum IDs: 10,000 1260 * </pre> 1261 * 1262 * <code>repeated string device_ids = 3;</code> 1263 * 1264 * @return A list containing the deviceIds. 1265 */ getDeviceIdsList()1266 public com.google.protobuf.ProtocolStringList getDeviceIdsList() { 1267 return deviceIds_.getUnmodifiableView(); 1268 } 1269 /** 1270 * 1271 * 1272 * <pre> 1273 * A list of device string IDs. For example, `['device0', 'device12']`. 1274 * If empty, this field is ignored. Maximum IDs: 10,000 1275 * </pre> 1276 * 1277 * <code>repeated string device_ids = 3;</code> 1278 * 1279 * @return The count of deviceIds. 1280 */ getDeviceIdsCount()1281 public int getDeviceIdsCount() { 1282 return deviceIds_.size(); 1283 } 1284 /** 1285 * 1286 * 1287 * <pre> 1288 * A list of device string IDs. For example, `['device0', 'device12']`. 1289 * If empty, this field is ignored. Maximum IDs: 10,000 1290 * </pre> 1291 * 1292 * <code>repeated string device_ids = 3;</code> 1293 * 1294 * @param index The index of the element to return. 1295 * @return The deviceIds at the given index. 1296 */ getDeviceIds(int index)1297 public java.lang.String getDeviceIds(int index) { 1298 return deviceIds_.get(index); 1299 } 1300 /** 1301 * 1302 * 1303 * <pre> 1304 * A list of device string IDs. For example, `['device0', 'device12']`. 1305 * If empty, this field is ignored. Maximum IDs: 10,000 1306 * </pre> 1307 * 1308 * <code>repeated string device_ids = 3;</code> 1309 * 1310 * @param index The index of the value to return. 1311 * @return The bytes of the deviceIds at the given index. 1312 */ getDeviceIdsBytes(int index)1313 public com.google.protobuf.ByteString getDeviceIdsBytes(int index) { 1314 return deviceIds_.getByteString(index); 1315 } 1316 /** 1317 * 1318 * 1319 * <pre> 1320 * A list of device string IDs. For example, `['device0', 'device12']`. 1321 * If empty, this field is ignored. Maximum IDs: 10,000 1322 * </pre> 1323 * 1324 * <code>repeated string device_ids = 3;</code> 1325 * 1326 * @param index The index to set the value at. 1327 * @param value The deviceIds to set. 1328 * @return This builder for chaining. 1329 */ setDeviceIds(int index, java.lang.String value)1330 public Builder setDeviceIds(int index, java.lang.String value) { 1331 if (value == null) { 1332 throw new NullPointerException(); 1333 } 1334 ensureDeviceIdsIsMutable(); 1335 deviceIds_.set(index, value); 1336 onChanged(); 1337 return this; 1338 } 1339 /** 1340 * 1341 * 1342 * <pre> 1343 * A list of device string IDs. For example, `['device0', 'device12']`. 1344 * If empty, this field is ignored. Maximum IDs: 10,000 1345 * </pre> 1346 * 1347 * <code>repeated string device_ids = 3;</code> 1348 * 1349 * @param value The deviceIds to add. 1350 * @return This builder for chaining. 1351 */ addDeviceIds(java.lang.String value)1352 public Builder addDeviceIds(java.lang.String value) { 1353 if (value == null) { 1354 throw new NullPointerException(); 1355 } 1356 ensureDeviceIdsIsMutable(); 1357 deviceIds_.add(value); 1358 onChanged(); 1359 return this; 1360 } 1361 /** 1362 * 1363 * 1364 * <pre> 1365 * A list of device string IDs. For example, `['device0', 'device12']`. 1366 * If empty, this field is ignored. Maximum IDs: 10,000 1367 * </pre> 1368 * 1369 * <code>repeated string device_ids = 3;</code> 1370 * 1371 * @param values The deviceIds to add. 1372 * @return This builder for chaining. 1373 */ addAllDeviceIds(java.lang.Iterable<java.lang.String> values)1374 public Builder addAllDeviceIds(java.lang.Iterable<java.lang.String> values) { 1375 ensureDeviceIdsIsMutable(); 1376 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deviceIds_); 1377 onChanged(); 1378 return this; 1379 } 1380 /** 1381 * 1382 * 1383 * <pre> 1384 * A list of device string IDs. For example, `['device0', 'device12']`. 1385 * If empty, this field is ignored. Maximum IDs: 10,000 1386 * </pre> 1387 * 1388 * <code>repeated string device_ids = 3;</code> 1389 * 1390 * @return This builder for chaining. 1391 */ clearDeviceIds()1392 public Builder clearDeviceIds() { 1393 deviceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1394 bitField0_ = (bitField0_ & ~0x00000004); 1395 onChanged(); 1396 return this; 1397 } 1398 /** 1399 * 1400 * 1401 * <pre> 1402 * A list of device string IDs. For example, `['device0', 'device12']`. 1403 * If empty, this field is ignored. Maximum IDs: 10,000 1404 * </pre> 1405 * 1406 * <code>repeated string device_ids = 3;</code> 1407 * 1408 * @param value The bytes of the deviceIds to add. 1409 * @return This builder for chaining. 1410 */ addDeviceIdsBytes(com.google.protobuf.ByteString value)1411 public Builder addDeviceIdsBytes(com.google.protobuf.ByteString value) { 1412 if (value == null) { 1413 throw new NullPointerException(); 1414 } 1415 checkByteStringIsUtf8(value); 1416 ensureDeviceIdsIsMutable(); 1417 deviceIds_.add(value); 1418 onChanged(); 1419 return this; 1420 } 1421 1422 private com.google.protobuf.FieldMask fieldMask_; 1423 private com.google.protobuf.SingleFieldBuilderV3< 1424 com.google.protobuf.FieldMask, 1425 com.google.protobuf.FieldMask.Builder, 1426 com.google.protobuf.FieldMaskOrBuilder> 1427 fieldMaskBuilder_; 1428 /** 1429 * 1430 * 1431 * <pre> 1432 * The fields of the `Device` resource to be returned in the response. The 1433 * fields `id` and `num_id` are always returned, along with any 1434 * other fields specified in snake_case format, for example: 1435 * `last_heartbeat_time`. 1436 * </pre> 1437 * 1438 * <code>.google.protobuf.FieldMask field_mask = 4;</code> 1439 * 1440 * @return Whether the fieldMask field is set. 1441 */ hasFieldMask()1442 public boolean hasFieldMask() { 1443 return ((bitField0_ & 0x00000008) != 0); 1444 } 1445 /** 1446 * 1447 * 1448 * <pre> 1449 * The fields of the `Device` resource to be returned in the response. The 1450 * fields `id` and `num_id` are always returned, along with any 1451 * other fields specified in snake_case format, for example: 1452 * `last_heartbeat_time`. 1453 * </pre> 1454 * 1455 * <code>.google.protobuf.FieldMask field_mask = 4;</code> 1456 * 1457 * @return The fieldMask. 1458 */ getFieldMask()1459 public com.google.protobuf.FieldMask getFieldMask() { 1460 if (fieldMaskBuilder_ == null) { 1461 return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; 1462 } else { 1463 return fieldMaskBuilder_.getMessage(); 1464 } 1465 } 1466 /** 1467 * 1468 * 1469 * <pre> 1470 * The fields of the `Device` resource to be returned in the response. The 1471 * fields `id` and `num_id` are always returned, along with any 1472 * other fields specified in snake_case format, for example: 1473 * `last_heartbeat_time`. 1474 * </pre> 1475 * 1476 * <code>.google.protobuf.FieldMask field_mask = 4;</code> 1477 */ setFieldMask(com.google.protobuf.FieldMask value)1478 public Builder setFieldMask(com.google.protobuf.FieldMask value) { 1479 if (fieldMaskBuilder_ == null) { 1480 if (value == null) { 1481 throw new NullPointerException(); 1482 } 1483 fieldMask_ = value; 1484 } else { 1485 fieldMaskBuilder_.setMessage(value); 1486 } 1487 bitField0_ |= 0x00000008; 1488 onChanged(); 1489 return this; 1490 } 1491 /** 1492 * 1493 * 1494 * <pre> 1495 * The fields of the `Device` resource to be returned in the response. The 1496 * fields `id` and `num_id` are always returned, along with any 1497 * other fields specified in snake_case format, for example: 1498 * `last_heartbeat_time`. 1499 * </pre> 1500 * 1501 * <code>.google.protobuf.FieldMask field_mask = 4;</code> 1502 */ setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue)1503 public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { 1504 if (fieldMaskBuilder_ == null) { 1505 fieldMask_ = builderForValue.build(); 1506 } else { 1507 fieldMaskBuilder_.setMessage(builderForValue.build()); 1508 } 1509 bitField0_ |= 0x00000008; 1510 onChanged(); 1511 return this; 1512 } 1513 /** 1514 * 1515 * 1516 * <pre> 1517 * The fields of the `Device` resource to be returned in the response. The 1518 * fields `id` and `num_id` are always returned, along with any 1519 * other fields specified in snake_case format, for example: 1520 * `last_heartbeat_time`. 1521 * </pre> 1522 * 1523 * <code>.google.protobuf.FieldMask field_mask = 4;</code> 1524 */ mergeFieldMask(com.google.protobuf.FieldMask value)1525 public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { 1526 if (fieldMaskBuilder_ == null) { 1527 if (((bitField0_ & 0x00000008) != 0) 1528 && fieldMask_ != null 1529 && fieldMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { 1530 getFieldMaskBuilder().mergeFrom(value); 1531 } else { 1532 fieldMask_ = value; 1533 } 1534 } else { 1535 fieldMaskBuilder_.mergeFrom(value); 1536 } 1537 bitField0_ |= 0x00000008; 1538 onChanged(); 1539 return this; 1540 } 1541 /** 1542 * 1543 * 1544 * <pre> 1545 * The fields of the `Device` resource to be returned in the response. The 1546 * fields `id` and `num_id` are always returned, along with any 1547 * other fields specified in snake_case format, for example: 1548 * `last_heartbeat_time`. 1549 * </pre> 1550 * 1551 * <code>.google.protobuf.FieldMask field_mask = 4;</code> 1552 */ clearFieldMask()1553 public Builder clearFieldMask() { 1554 bitField0_ = (bitField0_ & ~0x00000008); 1555 fieldMask_ = null; 1556 if (fieldMaskBuilder_ != null) { 1557 fieldMaskBuilder_.dispose(); 1558 fieldMaskBuilder_ = null; 1559 } 1560 onChanged(); 1561 return this; 1562 } 1563 /** 1564 * 1565 * 1566 * <pre> 1567 * The fields of the `Device` resource to be returned in the response. The 1568 * fields `id` and `num_id` are always returned, along with any 1569 * other fields specified in snake_case format, for example: 1570 * `last_heartbeat_time`. 1571 * </pre> 1572 * 1573 * <code>.google.protobuf.FieldMask field_mask = 4;</code> 1574 */ getFieldMaskBuilder()1575 public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { 1576 bitField0_ |= 0x00000008; 1577 onChanged(); 1578 return getFieldMaskFieldBuilder().getBuilder(); 1579 } 1580 /** 1581 * 1582 * 1583 * <pre> 1584 * The fields of the `Device` resource to be returned in the response. The 1585 * fields `id` and `num_id` are always returned, along with any 1586 * other fields specified in snake_case format, for example: 1587 * `last_heartbeat_time`. 1588 * </pre> 1589 * 1590 * <code>.google.protobuf.FieldMask field_mask = 4;</code> 1591 */ getFieldMaskOrBuilder()1592 public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { 1593 if (fieldMaskBuilder_ != null) { 1594 return fieldMaskBuilder_.getMessageOrBuilder(); 1595 } else { 1596 return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; 1597 } 1598 } 1599 /** 1600 * 1601 * 1602 * <pre> 1603 * The fields of the `Device` resource to be returned in the response. The 1604 * fields `id` and `num_id` are always returned, along with any 1605 * other fields specified in snake_case format, for example: 1606 * `last_heartbeat_time`. 1607 * </pre> 1608 * 1609 * <code>.google.protobuf.FieldMask field_mask = 4;</code> 1610 */ 1611 private com.google.protobuf.SingleFieldBuilderV3< 1612 com.google.protobuf.FieldMask, 1613 com.google.protobuf.FieldMask.Builder, 1614 com.google.protobuf.FieldMaskOrBuilder> getFieldMaskFieldBuilder()1615 getFieldMaskFieldBuilder() { 1616 if (fieldMaskBuilder_ == null) { 1617 fieldMaskBuilder_ = 1618 new com.google.protobuf.SingleFieldBuilderV3< 1619 com.google.protobuf.FieldMask, 1620 com.google.protobuf.FieldMask.Builder, 1621 com.google.protobuf.FieldMaskOrBuilder>( 1622 getFieldMask(), getParentForChildren(), isClean()); 1623 fieldMask_ = null; 1624 } 1625 return fieldMaskBuilder_; 1626 } 1627 1628 private com.google.cloud.iot.v1.GatewayListOptions gatewayListOptions_; 1629 private com.google.protobuf.SingleFieldBuilderV3< 1630 com.google.cloud.iot.v1.GatewayListOptions, 1631 com.google.cloud.iot.v1.GatewayListOptions.Builder, 1632 com.google.cloud.iot.v1.GatewayListOptionsOrBuilder> 1633 gatewayListOptionsBuilder_; 1634 /** 1635 * 1636 * 1637 * <pre> 1638 * Options related to gateways. 1639 * </pre> 1640 * 1641 * <code>.google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6;</code> 1642 * 1643 * @return Whether the gatewayListOptions field is set. 1644 */ hasGatewayListOptions()1645 public boolean hasGatewayListOptions() { 1646 return ((bitField0_ & 0x00000010) != 0); 1647 } 1648 /** 1649 * 1650 * 1651 * <pre> 1652 * Options related to gateways. 1653 * </pre> 1654 * 1655 * <code>.google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6;</code> 1656 * 1657 * @return The gatewayListOptions. 1658 */ getGatewayListOptions()1659 public com.google.cloud.iot.v1.GatewayListOptions getGatewayListOptions() { 1660 if (gatewayListOptionsBuilder_ == null) { 1661 return gatewayListOptions_ == null 1662 ? com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance() 1663 : gatewayListOptions_; 1664 } else { 1665 return gatewayListOptionsBuilder_.getMessage(); 1666 } 1667 } 1668 /** 1669 * 1670 * 1671 * <pre> 1672 * Options related to gateways. 1673 * </pre> 1674 * 1675 * <code>.google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6;</code> 1676 */ setGatewayListOptions(com.google.cloud.iot.v1.GatewayListOptions value)1677 public Builder setGatewayListOptions(com.google.cloud.iot.v1.GatewayListOptions value) { 1678 if (gatewayListOptionsBuilder_ == null) { 1679 if (value == null) { 1680 throw new NullPointerException(); 1681 } 1682 gatewayListOptions_ = value; 1683 } else { 1684 gatewayListOptionsBuilder_.setMessage(value); 1685 } 1686 bitField0_ |= 0x00000010; 1687 onChanged(); 1688 return this; 1689 } 1690 /** 1691 * 1692 * 1693 * <pre> 1694 * Options related to gateways. 1695 * </pre> 1696 * 1697 * <code>.google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6;</code> 1698 */ setGatewayListOptions( com.google.cloud.iot.v1.GatewayListOptions.Builder builderForValue)1699 public Builder setGatewayListOptions( 1700 com.google.cloud.iot.v1.GatewayListOptions.Builder builderForValue) { 1701 if (gatewayListOptionsBuilder_ == null) { 1702 gatewayListOptions_ = builderForValue.build(); 1703 } else { 1704 gatewayListOptionsBuilder_.setMessage(builderForValue.build()); 1705 } 1706 bitField0_ |= 0x00000010; 1707 onChanged(); 1708 return this; 1709 } 1710 /** 1711 * 1712 * 1713 * <pre> 1714 * Options related to gateways. 1715 * </pre> 1716 * 1717 * <code>.google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6;</code> 1718 */ mergeGatewayListOptions(com.google.cloud.iot.v1.GatewayListOptions value)1719 public Builder mergeGatewayListOptions(com.google.cloud.iot.v1.GatewayListOptions value) { 1720 if (gatewayListOptionsBuilder_ == null) { 1721 if (((bitField0_ & 0x00000010) != 0) 1722 && gatewayListOptions_ != null 1723 && gatewayListOptions_ 1724 != com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance()) { 1725 getGatewayListOptionsBuilder().mergeFrom(value); 1726 } else { 1727 gatewayListOptions_ = value; 1728 } 1729 } else { 1730 gatewayListOptionsBuilder_.mergeFrom(value); 1731 } 1732 bitField0_ |= 0x00000010; 1733 onChanged(); 1734 return this; 1735 } 1736 /** 1737 * 1738 * 1739 * <pre> 1740 * Options related to gateways. 1741 * </pre> 1742 * 1743 * <code>.google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6;</code> 1744 */ clearGatewayListOptions()1745 public Builder clearGatewayListOptions() { 1746 bitField0_ = (bitField0_ & ~0x00000010); 1747 gatewayListOptions_ = null; 1748 if (gatewayListOptionsBuilder_ != null) { 1749 gatewayListOptionsBuilder_.dispose(); 1750 gatewayListOptionsBuilder_ = null; 1751 } 1752 onChanged(); 1753 return this; 1754 } 1755 /** 1756 * 1757 * 1758 * <pre> 1759 * Options related to gateways. 1760 * </pre> 1761 * 1762 * <code>.google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6;</code> 1763 */ getGatewayListOptionsBuilder()1764 public com.google.cloud.iot.v1.GatewayListOptions.Builder getGatewayListOptionsBuilder() { 1765 bitField0_ |= 0x00000010; 1766 onChanged(); 1767 return getGatewayListOptionsFieldBuilder().getBuilder(); 1768 } 1769 /** 1770 * 1771 * 1772 * <pre> 1773 * Options related to gateways. 1774 * </pre> 1775 * 1776 * <code>.google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6;</code> 1777 */ getGatewayListOptionsOrBuilder()1778 public com.google.cloud.iot.v1.GatewayListOptionsOrBuilder getGatewayListOptionsOrBuilder() { 1779 if (gatewayListOptionsBuilder_ != null) { 1780 return gatewayListOptionsBuilder_.getMessageOrBuilder(); 1781 } else { 1782 return gatewayListOptions_ == null 1783 ? com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance() 1784 : gatewayListOptions_; 1785 } 1786 } 1787 /** 1788 * 1789 * 1790 * <pre> 1791 * Options related to gateways. 1792 * </pre> 1793 * 1794 * <code>.google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6;</code> 1795 */ 1796 private com.google.protobuf.SingleFieldBuilderV3< 1797 com.google.cloud.iot.v1.GatewayListOptions, 1798 com.google.cloud.iot.v1.GatewayListOptions.Builder, 1799 com.google.cloud.iot.v1.GatewayListOptionsOrBuilder> getGatewayListOptionsFieldBuilder()1800 getGatewayListOptionsFieldBuilder() { 1801 if (gatewayListOptionsBuilder_ == null) { 1802 gatewayListOptionsBuilder_ = 1803 new com.google.protobuf.SingleFieldBuilderV3< 1804 com.google.cloud.iot.v1.GatewayListOptions, 1805 com.google.cloud.iot.v1.GatewayListOptions.Builder, 1806 com.google.cloud.iot.v1.GatewayListOptionsOrBuilder>( 1807 getGatewayListOptions(), getParentForChildren(), isClean()); 1808 gatewayListOptions_ = null; 1809 } 1810 return gatewayListOptionsBuilder_; 1811 } 1812 1813 private int pageSize_; 1814 /** 1815 * 1816 * 1817 * <pre> 1818 * The maximum number of devices to return in the response. If this value 1819 * is zero, the service will select a default size. A call may return fewer 1820 * objects than requested. A non-empty `next_page_token` in the response 1821 * indicates that more data is available. 1822 * </pre> 1823 * 1824 * <code>int32 page_size = 100;</code> 1825 * 1826 * @return The pageSize. 1827 */ 1828 @java.lang.Override getPageSize()1829 public int getPageSize() { 1830 return pageSize_; 1831 } 1832 /** 1833 * 1834 * 1835 * <pre> 1836 * The maximum number of devices to return in the response. If this value 1837 * is zero, the service will select a default size. A call may return fewer 1838 * objects than requested. A non-empty `next_page_token` in the response 1839 * indicates that more data is available. 1840 * </pre> 1841 * 1842 * <code>int32 page_size = 100;</code> 1843 * 1844 * @param value The pageSize to set. 1845 * @return This builder for chaining. 1846 */ setPageSize(int value)1847 public Builder setPageSize(int value) { 1848 1849 pageSize_ = value; 1850 bitField0_ |= 0x00000020; 1851 onChanged(); 1852 return this; 1853 } 1854 /** 1855 * 1856 * 1857 * <pre> 1858 * The maximum number of devices to return in the response. If this value 1859 * is zero, the service will select a default size. A call may return fewer 1860 * objects than requested. A non-empty `next_page_token` in the response 1861 * indicates that more data is available. 1862 * </pre> 1863 * 1864 * <code>int32 page_size = 100;</code> 1865 * 1866 * @return This builder for chaining. 1867 */ clearPageSize()1868 public Builder clearPageSize() { 1869 bitField0_ = (bitField0_ & ~0x00000020); 1870 pageSize_ = 0; 1871 onChanged(); 1872 return this; 1873 } 1874 1875 private java.lang.Object pageToken_ = ""; 1876 /** 1877 * 1878 * 1879 * <pre> 1880 * The value returned by the last `ListDevicesResponse`; indicates 1881 * that this is a continuation of a prior `ListDevices` call and 1882 * the system should return the next page of data. 1883 * </pre> 1884 * 1885 * <code>string page_token = 101;</code> 1886 * 1887 * @return The pageToken. 1888 */ getPageToken()1889 public java.lang.String getPageToken() { 1890 java.lang.Object ref = pageToken_; 1891 if (!(ref instanceof java.lang.String)) { 1892 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1893 java.lang.String s = bs.toStringUtf8(); 1894 pageToken_ = s; 1895 return s; 1896 } else { 1897 return (java.lang.String) ref; 1898 } 1899 } 1900 /** 1901 * 1902 * 1903 * <pre> 1904 * The value returned by the last `ListDevicesResponse`; indicates 1905 * that this is a continuation of a prior `ListDevices` call and 1906 * the system should return the next page of data. 1907 * </pre> 1908 * 1909 * <code>string page_token = 101;</code> 1910 * 1911 * @return The bytes for pageToken. 1912 */ getPageTokenBytes()1913 public com.google.protobuf.ByteString getPageTokenBytes() { 1914 java.lang.Object ref = pageToken_; 1915 if (ref instanceof String) { 1916 com.google.protobuf.ByteString b = 1917 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1918 pageToken_ = b; 1919 return b; 1920 } else { 1921 return (com.google.protobuf.ByteString) ref; 1922 } 1923 } 1924 /** 1925 * 1926 * 1927 * <pre> 1928 * The value returned by the last `ListDevicesResponse`; indicates 1929 * that this is a continuation of a prior `ListDevices` call and 1930 * the system should return the next page of data. 1931 * </pre> 1932 * 1933 * <code>string page_token = 101;</code> 1934 * 1935 * @param value The pageToken to set. 1936 * @return This builder for chaining. 1937 */ setPageToken(java.lang.String value)1938 public Builder setPageToken(java.lang.String value) { 1939 if (value == null) { 1940 throw new NullPointerException(); 1941 } 1942 pageToken_ = value; 1943 bitField0_ |= 0x00000040; 1944 onChanged(); 1945 return this; 1946 } 1947 /** 1948 * 1949 * 1950 * <pre> 1951 * The value returned by the last `ListDevicesResponse`; indicates 1952 * that this is a continuation of a prior `ListDevices` call and 1953 * the system should return the next page of data. 1954 * </pre> 1955 * 1956 * <code>string page_token = 101;</code> 1957 * 1958 * @return This builder for chaining. 1959 */ clearPageToken()1960 public Builder clearPageToken() { 1961 pageToken_ = getDefaultInstance().getPageToken(); 1962 bitField0_ = (bitField0_ & ~0x00000040); 1963 onChanged(); 1964 return this; 1965 } 1966 /** 1967 * 1968 * 1969 * <pre> 1970 * The value returned by the last `ListDevicesResponse`; indicates 1971 * that this is a continuation of a prior `ListDevices` call and 1972 * the system should return the next page of data. 1973 * </pre> 1974 * 1975 * <code>string page_token = 101;</code> 1976 * 1977 * @param value The bytes for pageToken to set. 1978 * @return This builder for chaining. 1979 */ setPageTokenBytes(com.google.protobuf.ByteString value)1980 public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 1981 if (value == null) { 1982 throw new NullPointerException(); 1983 } 1984 checkByteStringIsUtf8(value); 1985 pageToken_ = value; 1986 bitField0_ |= 0x00000040; 1987 onChanged(); 1988 return this; 1989 } 1990 1991 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1992 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1993 return super.setUnknownFields(unknownFields); 1994 } 1995 1996 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1997 public final Builder mergeUnknownFields( 1998 final com.google.protobuf.UnknownFieldSet unknownFields) { 1999 return super.mergeUnknownFields(unknownFields); 2000 } 2001 2002 // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ListDevicesRequest) 2003 } 2004 2005 // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDevicesRequest) 2006 private static final com.google.cloud.iot.v1.ListDevicesRequest DEFAULT_INSTANCE; 2007 2008 static { 2009 DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ListDevicesRequest(); 2010 } 2011 getDefaultInstance()2012 public static com.google.cloud.iot.v1.ListDevicesRequest getDefaultInstance() { 2013 return DEFAULT_INSTANCE; 2014 } 2015 2016 private static final com.google.protobuf.Parser<ListDevicesRequest> PARSER = 2017 new com.google.protobuf.AbstractParser<ListDevicesRequest>() { 2018 @java.lang.Override 2019 public ListDevicesRequest parsePartialFrom( 2020 com.google.protobuf.CodedInputStream input, 2021 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2022 throws com.google.protobuf.InvalidProtocolBufferException { 2023 Builder builder = newBuilder(); 2024 try { 2025 builder.mergeFrom(input, extensionRegistry); 2026 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2027 throw e.setUnfinishedMessage(builder.buildPartial()); 2028 } catch (com.google.protobuf.UninitializedMessageException e) { 2029 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 2030 } catch (java.io.IOException e) { 2031 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2032 .setUnfinishedMessage(builder.buildPartial()); 2033 } 2034 return builder.buildPartial(); 2035 } 2036 }; 2037 parser()2038 public static com.google.protobuf.Parser<ListDevicesRequest> parser() { 2039 return PARSER; 2040 } 2041 2042 @java.lang.Override getParserForType()2043 public com.google.protobuf.Parser<ListDevicesRequest> getParserForType() { 2044 return PARSER; 2045 } 2046 2047 @java.lang.Override getDefaultInstanceForType()2048 public com.google.cloud.iot.v1.ListDevicesRequest getDefaultInstanceForType() { 2049 return DEFAULT_INSTANCE; 2050 } 2051 } 2052