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/networkmanagement/v1beta1/connectivity_test.proto 18 19 package com.google.cloud.networkmanagement.v1beta1; 20 21 /** 22 * 23 * 24 * <pre> 25 * A Connectivity Test for a network reachability analysis. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.networkmanagement.v1beta1.ConnectivityTest} 29 */ 30 public final class ConnectivityTest extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.ConnectivityTest) 33 ConnectivityTestOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use ConnectivityTest.newBuilder() to construct. ConnectivityTest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private ConnectivityTest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 ConnectivityTest()40 private ConnectivityTest() { 41 name_ = ""; 42 description_ = ""; 43 protocol_ = ""; 44 relatedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY; 45 displayName_ = ""; 46 } 47 48 @java.lang.Override 49 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)50 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 51 return new ConnectivityTest(); 52 } 53 54 @java.lang.Override getUnknownFields()55 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 56 return this.unknownFields; 57 } 58 getDescriptor()59 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 60 return com.google.cloud.networkmanagement.v1beta1.TestOuterClass 61 .internal_static_google_cloud_networkmanagement_v1beta1_ConnectivityTest_descriptor; 62 } 63 64 @SuppressWarnings({"rawtypes"}) 65 @java.lang.Override internalGetMapField(int number)66 protected com.google.protobuf.MapField internalGetMapField(int number) { 67 switch (number) { 68 case 8: 69 return internalGetLabels(); 70 default: 71 throw new RuntimeException("Invalid map field number: " + number); 72 } 73 } 74 75 @java.lang.Override 76 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()77 internalGetFieldAccessorTable() { 78 return com.google.cloud.networkmanagement.v1beta1.TestOuterClass 79 .internal_static_google_cloud_networkmanagement_v1beta1_ConnectivityTest_fieldAccessorTable 80 .ensureFieldAccessorsInitialized( 81 com.google.cloud.networkmanagement.v1beta1.ConnectivityTest.class, 82 com.google.cloud.networkmanagement.v1beta1.ConnectivityTest.Builder.class); 83 } 84 85 public static final int NAME_FIELD_NUMBER = 1; 86 87 @SuppressWarnings("serial") 88 private volatile java.lang.Object name_ = ""; 89 /** 90 * 91 * 92 * <pre> 93 * Required. Unique name of the resource using the form: 94 * `projects/{project_id}/locations/global/connectivityTests/{test}` 95 * </pre> 96 * 97 * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> 98 * 99 * @return The name. 100 */ 101 @java.lang.Override getName()102 public java.lang.String getName() { 103 java.lang.Object ref = name_; 104 if (ref instanceof java.lang.String) { 105 return (java.lang.String) ref; 106 } else { 107 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 108 java.lang.String s = bs.toStringUtf8(); 109 name_ = s; 110 return s; 111 } 112 } 113 /** 114 * 115 * 116 * <pre> 117 * Required. Unique name of the resource using the form: 118 * `projects/{project_id}/locations/global/connectivityTests/{test}` 119 * </pre> 120 * 121 * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> 122 * 123 * @return The bytes for name. 124 */ 125 @java.lang.Override getNameBytes()126 public com.google.protobuf.ByteString getNameBytes() { 127 java.lang.Object ref = name_; 128 if (ref instanceof java.lang.String) { 129 com.google.protobuf.ByteString b = 130 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 131 name_ = b; 132 return b; 133 } else { 134 return (com.google.protobuf.ByteString) ref; 135 } 136 } 137 138 public static final int DESCRIPTION_FIELD_NUMBER = 2; 139 140 @SuppressWarnings("serial") 141 private volatile java.lang.Object description_ = ""; 142 /** 143 * 144 * 145 * <pre> 146 * The user-supplied description of the Connectivity Test. 147 * Maximum of 512 characters. 148 * </pre> 149 * 150 * <code>string description = 2;</code> 151 * 152 * @return The description. 153 */ 154 @java.lang.Override getDescription()155 public java.lang.String getDescription() { 156 java.lang.Object ref = description_; 157 if (ref instanceof java.lang.String) { 158 return (java.lang.String) ref; 159 } else { 160 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 161 java.lang.String s = bs.toStringUtf8(); 162 description_ = s; 163 return s; 164 } 165 } 166 /** 167 * 168 * 169 * <pre> 170 * The user-supplied description of the Connectivity Test. 171 * Maximum of 512 characters. 172 * </pre> 173 * 174 * <code>string description = 2;</code> 175 * 176 * @return The bytes for description. 177 */ 178 @java.lang.Override getDescriptionBytes()179 public com.google.protobuf.ByteString getDescriptionBytes() { 180 java.lang.Object ref = description_; 181 if (ref instanceof java.lang.String) { 182 com.google.protobuf.ByteString b = 183 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 184 description_ = b; 185 return b; 186 } else { 187 return (com.google.protobuf.ByteString) ref; 188 } 189 } 190 191 public static final int SOURCE_FIELD_NUMBER = 3; 192 private com.google.cloud.networkmanagement.v1beta1.Endpoint source_; 193 /** 194 * 195 * 196 * <pre> 197 * Required. Source specification of the Connectivity Test. 198 * You can use a combination of source IP address, virtual machine 199 * (VM) instance, or Compute Engine network to uniquely identify 200 * the source location. 201 * Examples: 202 * If the source IP address is an internal IP address within a Google Cloud 203 * Virtual Private Cloud (VPC) network, then you must also specify the VPC 204 * network. Otherwise, specify the VM instance, which already contains its 205 * internal IP address and VPC network information. 206 * If the source of the test is within an on-premises network, then you must 207 * provide the destination VPC network. 208 * If the source endpoint is a Compute Engine VM instance with multiple 209 * network interfaces, the instance itself is not sufficient to identify the 210 * endpoint. So, you must also specify the source IP address or VPC network. 211 * A reachability analysis proceeds even if the source location is 212 * ambiguous. However, the test result may include endpoints that you don't 213 * intend to test. 214 * </pre> 215 * 216 * <code> 217 * .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED]; 218 * </code> 219 * 220 * @return Whether the source field is set. 221 */ 222 @java.lang.Override hasSource()223 public boolean hasSource() { 224 return source_ != null; 225 } 226 /** 227 * 228 * 229 * <pre> 230 * Required. Source specification of the Connectivity Test. 231 * You can use a combination of source IP address, virtual machine 232 * (VM) instance, or Compute Engine network to uniquely identify 233 * the source location. 234 * Examples: 235 * If the source IP address is an internal IP address within a Google Cloud 236 * Virtual Private Cloud (VPC) network, then you must also specify the VPC 237 * network. Otherwise, specify the VM instance, which already contains its 238 * internal IP address and VPC network information. 239 * If the source of the test is within an on-premises network, then you must 240 * provide the destination VPC network. 241 * If the source endpoint is a Compute Engine VM instance with multiple 242 * network interfaces, the instance itself is not sufficient to identify the 243 * endpoint. So, you must also specify the source IP address or VPC network. 244 * A reachability analysis proceeds even if the source location is 245 * ambiguous. However, the test result may include endpoints that you don't 246 * intend to test. 247 * </pre> 248 * 249 * <code> 250 * .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED]; 251 * </code> 252 * 253 * @return The source. 254 */ 255 @java.lang.Override getSource()256 public com.google.cloud.networkmanagement.v1beta1.Endpoint getSource() { 257 return source_ == null 258 ? com.google.cloud.networkmanagement.v1beta1.Endpoint.getDefaultInstance() 259 : source_; 260 } 261 /** 262 * 263 * 264 * <pre> 265 * Required. Source specification of the Connectivity Test. 266 * You can use a combination of source IP address, virtual machine 267 * (VM) instance, or Compute Engine network to uniquely identify 268 * the source location. 269 * Examples: 270 * If the source IP address is an internal IP address within a Google Cloud 271 * Virtual Private Cloud (VPC) network, then you must also specify the VPC 272 * network. Otherwise, specify the VM instance, which already contains its 273 * internal IP address and VPC network information. 274 * If the source of the test is within an on-premises network, then you must 275 * provide the destination VPC network. 276 * If the source endpoint is a Compute Engine VM instance with multiple 277 * network interfaces, the instance itself is not sufficient to identify the 278 * endpoint. So, you must also specify the source IP address or VPC network. 279 * A reachability analysis proceeds even if the source location is 280 * ambiguous. However, the test result may include endpoints that you don't 281 * intend to test. 282 * </pre> 283 * 284 * <code> 285 * .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED]; 286 * </code> 287 */ 288 @java.lang.Override getSourceOrBuilder()289 public com.google.cloud.networkmanagement.v1beta1.EndpointOrBuilder getSourceOrBuilder() { 290 return source_ == null 291 ? com.google.cloud.networkmanagement.v1beta1.Endpoint.getDefaultInstance() 292 : source_; 293 } 294 295 public static final int DESTINATION_FIELD_NUMBER = 4; 296 private com.google.cloud.networkmanagement.v1beta1.Endpoint destination_; 297 /** 298 * 299 * 300 * <pre> 301 * Required. Destination specification of the Connectivity Test. 302 * You can use a combination of destination IP address, Compute Engine 303 * VM instance, or VPC network to uniquely identify the destination 304 * location. 305 * Even if the destination IP address is not unique, the source IP 306 * location is unique. Usually, the analysis can infer the destination 307 * endpoint from route information. 308 * If the destination you specify is a VM instance and the instance has 309 * multiple network interfaces, then you must also specify either 310 * a destination IP address or VPC network to identify the destination 311 * interface. 312 * A reachability analysis proceeds even if the destination location is 313 * ambiguous. However, the result can include endpoints that you don't 314 * intend to test. 315 * </pre> 316 * 317 * <code> 318 * .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED]; 319 * </code> 320 * 321 * @return Whether the destination field is set. 322 */ 323 @java.lang.Override hasDestination()324 public boolean hasDestination() { 325 return destination_ != null; 326 } 327 /** 328 * 329 * 330 * <pre> 331 * Required. Destination specification of the Connectivity Test. 332 * You can use a combination of destination IP address, Compute Engine 333 * VM instance, or VPC network to uniquely identify the destination 334 * location. 335 * Even if the destination IP address is not unique, the source IP 336 * location is unique. Usually, the analysis can infer the destination 337 * endpoint from route information. 338 * If the destination you specify is a VM instance and the instance has 339 * multiple network interfaces, then you must also specify either 340 * a destination IP address or VPC network to identify the destination 341 * interface. 342 * A reachability analysis proceeds even if the destination location is 343 * ambiguous. However, the result can include endpoints that you don't 344 * intend to test. 345 * </pre> 346 * 347 * <code> 348 * .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED]; 349 * </code> 350 * 351 * @return The destination. 352 */ 353 @java.lang.Override getDestination()354 public com.google.cloud.networkmanagement.v1beta1.Endpoint getDestination() { 355 return destination_ == null 356 ? com.google.cloud.networkmanagement.v1beta1.Endpoint.getDefaultInstance() 357 : destination_; 358 } 359 /** 360 * 361 * 362 * <pre> 363 * Required. Destination specification of the Connectivity Test. 364 * You can use a combination of destination IP address, Compute Engine 365 * VM instance, or VPC network to uniquely identify the destination 366 * location. 367 * Even if the destination IP address is not unique, the source IP 368 * location is unique. Usually, the analysis can infer the destination 369 * endpoint from route information. 370 * If the destination you specify is a VM instance and the instance has 371 * multiple network interfaces, then you must also specify either 372 * a destination IP address or VPC network to identify the destination 373 * interface. 374 * A reachability analysis proceeds even if the destination location is 375 * ambiguous. However, the result can include endpoints that you don't 376 * intend to test. 377 * </pre> 378 * 379 * <code> 380 * .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED]; 381 * </code> 382 */ 383 @java.lang.Override getDestinationOrBuilder()384 public com.google.cloud.networkmanagement.v1beta1.EndpointOrBuilder getDestinationOrBuilder() { 385 return destination_ == null 386 ? com.google.cloud.networkmanagement.v1beta1.Endpoint.getDefaultInstance() 387 : destination_; 388 } 389 390 public static final int PROTOCOL_FIELD_NUMBER = 5; 391 392 @SuppressWarnings("serial") 393 private volatile java.lang.Object protocol_ = ""; 394 /** 395 * 396 * 397 * <pre> 398 * IP Protocol of the test. When not provided, "TCP" is assumed. 399 * </pre> 400 * 401 * <code>string protocol = 5;</code> 402 * 403 * @return The protocol. 404 */ 405 @java.lang.Override getProtocol()406 public java.lang.String getProtocol() { 407 java.lang.Object ref = protocol_; 408 if (ref instanceof java.lang.String) { 409 return (java.lang.String) ref; 410 } else { 411 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 412 java.lang.String s = bs.toStringUtf8(); 413 protocol_ = s; 414 return s; 415 } 416 } 417 /** 418 * 419 * 420 * <pre> 421 * IP Protocol of the test. When not provided, "TCP" is assumed. 422 * </pre> 423 * 424 * <code>string protocol = 5;</code> 425 * 426 * @return The bytes for protocol. 427 */ 428 @java.lang.Override getProtocolBytes()429 public com.google.protobuf.ByteString getProtocolBytes() { 430 java.lang.Object ref = protocol_; 431 if (ref instanceof java.lang.String) { 432 com.google.protobuf.ByteString b = 433 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 434 protocol_ = b; 435 return b; 436 } else { 437 return (com.google.protobuf.ByteString) ref; 438 } 439 } 440 441 public static final int RELATED_PROJECTS_FIELD_NUMBER = 6; 442 443 @SuppressWarnings("serial") 444 private com.google.protobuf.LazyStringList relatedProjects_; 445 /** 446 * 447 * 448 * <pre> 449 * Other projects that may be relevant for reachability analysis. 450 * This is applicable to scenarios where a test can cross project boundaries. 451 * </pre> 452 * 453 * <code>repeated string related_projects = 6;</code> 454 * 455 * @return A list containing the relatedProjects. 456 */ getRelatedProjectsList()457 public com.google.protobuf.ProtocolStringList getRelatedProjectsList() { 458 return relatedProjects_; 459 } 460 /** 461 * 462 * 463 * <pre> 464 * Other projects that may be relevant for reachability analysis. 465 * This is applicable to scenarios where a test can cross project boundaries. 466 * </pre> 467 * 468 * <code>repeated string related_projects = 6;</code> 469 * 470 * @return The count of relatedProjects. 471 */ getRelatedProjectsCount()472 public int getRelatedProjectsCount() { 473 return relatedProjects_.size(); 474 } 475 /** 476 * 477 * 478 * <pre> 479 * Other projects that may be relevant for reachability analysis. 480 * This is applicable to scenarios where a test can cross project boundaries. 481 * </pre> 482 * 483 * <code>repeated string related_projects = 6;</code> 484 * 485 * @param index The index of the element to return. 486 * @return The relatedProjects at the given index. 487 */ getRelatedProjects(int index)488 public java.lang.String getRelatedProjects(int index) { 489 return relatedProjects_.get(index); 490 } 491 /** 492 * 493 * 494 * <pre> 495 * Other projects that may be relevant for reachability analysis. 496 * This is applicable to scenarios where a test can cross project boundaries. 497 * </pre> 498 * 499 * <code>repeated string related_projects = 6;</code> 500 * 501 * @param index The index of the value to return. 502 * @return The bytes of the relatedProjects at the given index. 503 */ getRelatedProjectsBytes(int index)504 public com.google.protobuf.ByteString getRelatedProjectsBytes(int index) { 505 return relatedProjects_.getByteString(index); 506 } 507 508 public static final int DISPLAY_NAME_FIELD_NUMBER = 7; 509 510 @SuppressWarnings("serial") 511 private volatile java.lang.Object displayName_ = ""; 512 /** 513 * 514 * 515 * <pre> 516 * Output only. The display name of a Connectivity Test. 517 * </pre> 518 * 519 * <code>string display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 520 * 521 * @return The displayName. 522 */ 523 @java.lang.Override getDisplayName()524 public java.lang.String getDisplayName() { 525 java.lang.Object ref = displayName_; 526 if (ref instanceof java.lang.String) { 527 return (java.lang.String) ref; 528 } else { 529 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 530 java.lang.String s = bs.toStringUtf8(); 531 displayName_ = s; 532 return s; 533 } 534 } 535 /** 536 * 537 * 538 * <pre> 539 * Output only. The display name of a Connectivity Test. 540 * </pre> 541 * 542 * <code>string display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 543 * 544 * @return The bytes for displayName. 545 */ 546 @java.lang.Override getDisplayNameBytes()547 public com.google.protobuf.ByteString getDisplayNameBytes() { 548 java.lang.Object ref = displayName_; 549 if (ref instanceof java.lang.String) { 550 com.google.protobuf.ByteString b = 551 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 552 displayName_ = b; 553 return b; 554 } else { 555 return (com.google.protobuf.ByteString) ref; 556 } 557 } 558 559 public static final int LABELS_FIELD_NUMBER = 8; 560 561 private static final class LabelsDefaultEntryHolder { 562 static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry = 563 com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance( 564 com.google.cloud.networkmanagement.v1beta1.TestOuterClass 565 .internal_static_google_cloud_networkmanagement_v1beta1_ConnectivityTest_LabelsEntry_descriptor, 566 com.google.protobuf.WireFormat.FieldType.STRING, 567 "", 568 com.google.protobuf.WireFormat.FieldType.STRING, 569 ""); 570 } 571 572 @SuppressWarnings("serial") 573 private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_; 574 internalGetLabels()575 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() { 576 if (labels_ == null) { 577 return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); 578 } 579 return labels_; 580 } 581 getLabelsCount()582 public int getLabelsCount() { 583 return internalGetLabels().getMap().size(); 584 } 585 /** 586 * 587 * 588 * <pre> 589 * Resource labels to represent user-provided metadata. 590 * </pre> 591 * 592 * <code>map<string, string> labels = 8;</code> 593 */ 594 @java.lang.Override containsLabels(java.lang.String key)595 public boolean containsLabels(java.lang.String key) { 596 if (key == null) { 597 throw new NullPointerException("map key"); 598 } 599 return internalGetLabels().getMap().containsKey(key); 600 } 601 /** Use {@link #getLabelsMap()} instead. */ 602 @java.lang.Override 603 @java.lang.Deprecated getLabels()604 public java.util.Map<java.lang.String, java.lang.String> getLabels() { 605 return getLabelsMap(); 606 } 607 /** 608 * 609 * 610 * <pre> 611 * Resource labels to represent user-provided metadata. 612 * </pre> 613 * 614 * <code>map<string, string> labels = 8;</code> 615 */ 616 @java.lang.Override getLabelsMap()617 public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { 618 return internalGetLabels().getMap(); 619 } 620 /** 621 * 622 * 623 * <pre> 624 * Resource labels to represent user-provided metadata. 625 * </pre> 626 * 627 * <code>map<string, string> labels = 8;</code> 628 */ 629 @java.lang.Override getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)630 public /* nullable */ java.lang.String getLabelsOrDefault( 631 java.lang.String key, 632 /* nullable */ 633 java.lang.String defaultValue) { 634 if (key == null) { 635 throw new NullPointerException("map key"); 636 } 637 java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); 638 return map.containsKey(key) ? map.get(key) : defaultValue; 639 } 640 /** 641 * 642 * 643 * <pre> 644 * Resource labels to represent user-provided metadata. 645 * </pre> 646 * 647 * <code>map<string, string> labels = 8;</code> 648 */ 649 @java.lang.Override getLabelsOrThrow(java.lang.String key)650 public java.lang.String getLabelsOrThrow(java.lang.String key) { 651 if (key == null) { 652 throw new NullPointerException("map key"); 653 } 654 java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); 655 if (!map.containsKey(key)) { 656 throw new java.lang.IllegalArgumentException(); 657 } 658 return map.get(key); 659 } 660 661 public static final int CREATE_TIME_FIELD_NUMBER = 10; 662 private com.google.protobuf.Timestamp createTime_; 663 /** 664 * 665 * 666 * <pre> 667 * Output only. The time the test was created. 668 * </pre> 669 * 670 * <code>.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 671 * </code> 672 * 673 * @return Whether the createTime field is set. 674 */ 675 @java.lang.Override hasCreateTime()676 public boolean hasCreateTime() { 677 return createTime_ != null; 678 } 679 /** 680 * 681 * 682 * <pre> 683 * Output only. The time the test was created. 684 * </pre> 685 * 686 * <code>.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 687 * </code> 688 * 689 * @return The createTime. 690 */ 691 @java.lang.Override getCreateTime()692 public com.google.protobuf.Timestamp getCreateTime() { 693 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; 694 } 695 /** 696 * 697 * 698 * <pre> 699 * Output only. The time the test was created. 700 * </pre> 701 * 702 * <code>.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 703 * </code> 704 */ 705 @java.lang.Override getCreateTimeOrBuilder()706 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 707 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; 708 } 709 710 public static final int UPDATE_TIME_FIELD_NUMBER = 11; 711 private com.google.protobuf.Timestamp updateTime_; 712 /** 713 * 714 * 715 * <pre> 716 * Output only. The time the test's configuration was updated. 717 * </pre> 718 * 719 * <code>.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 720 * </code> 721 * 722 * @return Whether the updateTime field is set. 723 */ 724 @java.lang.Override hasUpdateTime()725 public boolean hasUpdateTime() { 726 return updateTime_ != null; 727 } 728 /** 729 * 730 * 731 * <pre> 732 * Output only. The time the test's configuration was updated. 733 * </pre> 734 * 735 * <code>.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 736 * </code> 737 * 738 * @return The updateTime. 739 */ 740 @java.lang.Override getUpdateTime()741 public com.google.protobuf.Timestamp getUpdateTime() { 742 return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; 743 } 744 /** 745 * 746 * 747 * <pre> 748 * Output only. The time the test's configuration was updated. 749 * </pre> 750 * 751 * <code>.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 752 * </code> 753 */ 754 @java.lang.Override getUpdateTimeOrBuilder()755 public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 756 return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; 757 } 758 759 public static final int REACHABILITY_DETAILS_FIELD_NUMBER = 12; 760 private com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachabilityDetails_; 761 /** 762 * 763 * 764 * <pre> 765 * Output only. The reachability details of this test from the latest run. 766 * The details are updated when creating a new test, updating an 767 * existing test, or triggering a one-time rerun of an existing test. 768 * </pre> 769 * 770 * <code> 771 * .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 772 * </code> 773 * 774 * @return Whether the reachabilityDetails field is set. 775 */ 776 @java.lang.Override hasReachabilityDetails()777 public boolean hasReachabilityDetails() { 778 return reachabilityDetails_ != null; 779 } 780 /** 781 * 782 * 783 * <pre> 784 * Output only. The reachability details of this test from the latest run. 785 * The details are updated when creating a new test, updating an 786 * existing test, or triggering a one-time rerun of an existing test. 787 * </pre> 788 * 789 * <code> 790 * .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 791 * </code> 792 * 793 * @return The reachabilityDetails. 794 */ 795 @java.lang.Override getReachabilityDetails()796 public com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails getReachabilityDetails() { 797 return reachabilityDetails_ == null 798 ? com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails.getDefaultInstance() 799 : reachabilityDetails_; 800 } 801 /** 802 * 803 * 804 * <pre> 805 * Output only. The reachability details of this test from the latest run. 806 * The details are updated when creating a new test, updating an 807 * existing test, or triggering a one-time rerun of an existing test. 808 * </pre> 809 * 810 * <code> 811 * .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 812 * </code> 813 */ 814 @java.lang.Override 815 public com.google.cloud.networkmanagement.v1beta1.ReachabilityDetailsOrBuilder getReachabilityDetailsOrBuilder()816 getReachabilityDetailsOrBuilder() { 817 return reachabilityDetails_ == null 818 ? com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails.getDefaultInstance() 819 : reachabilityDetails_; 820 } 821 822 public static final int PROBING_DETAILS_FIELD_NUMBER = 14; 823 private com.google.cloud.networkmanagement.v1beta1.ProbingDetails probingDetails_; 824 /** 825 * 826 * 827 * <pre> 828 * Output only. The probing details of this test from the latest run, present 829 * for applicable tests only. The details are updated when creating a new 830 * test, updating an existing test, or triggering a one-time rerun of an 831 * existing test. 832 * </pre> 833 * 834 * <code> 835 * .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 836 * </code> 837 * 838 * @return Whether the probingDetails field is set. 839 */ 840 @java.lang.Override hasProbingDetails()841 public boolean hasProbingDetails() { 842 return probingDetails_ != null; 843 } 844 /** 845 * 846 * 847 * <pre> 848 * Output only. The probing details of this test from the latest run, present 849 * for applicable tests only. The details are updated when creating a new 850 * test, updating an existing test, or triggering a one-time rerun of an 851 * existing test. 852 * </pre> 853 * 854 * <code> 855 * .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 856 * </code> 857 * 858 * @return The probingDetails. 859 */ 860 @java.lang.Override getProbingDetails()861 public com.google.cloud.networkmanagement.v1beta1.ProbingDetails getProbingDetails() { 862 return probingDetails_ == null 863 ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.getDefaultInstance() 864 : probingDetails_; 865 } 866 /** 867 * 868 * 869 * <pre> 870 * Output only. The probing details of this test from the latest run, present 871 * for applicable tests only. The details are updated when creating a new 872 * test, updating an existing test, or triggering a one-time rerun of an 873 * existing test. 874 * </pre> 875 * 876 * <code> 877 * .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 878 * </code> 879 */ 880 @java.lang.Override 881 public com.google.cloud.networkmanagement.v1beta1.ProbingDetailsOrBuilder getProbingDetailsOrBuilder()882 getProbingDetailsOrBuilder() { 883 return probingDetails_ == null 884 ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.getDefaultInstance() 885 : probingDetails_; 886 } 887 888 private byte memoizedIsInitialized = -1; 889 890 @java.lang.Override isInitialized()891 public final boolean isInitialized() { 892 byte isInitialized = memoizedIsInitialized; 893 if (isInitialized == 1) return true; 894 if (isInitialized == 0) return false; 895 896 memoizedIsInitialized = 1; 897 return true; 898 } 899 900 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)901 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 902 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 903 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 904 } 905 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { 906 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); 907 } 908 if (source_ != null) { 909 output.writeMessage(3, getSource()); 910 } 911 if (destination_ != null) { 912 output.writeMessage(4, getDestination()); 913 } 914 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { 915 com.google.protobuf.GeneratedMessageV3.writeString(output, 5, protocol_); 916 } 917 for (int i = 0; i < relatedProjects_.size(); i++) { 918 com.google.protobuf.GeneratedMessageV3.writeString(output, 6, relatedProjects_.getRaw(i)); 919 } 920 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { 921 com.google.protobuf.GeneratedMessageV3.writeString(output, 7, displayName_); 922 } 923 com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( 924 output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); 925 if (createTime_ != null) { 926 output.writeMessage(10, getCreateTime()); 927 } 928 if (updateTime_ != null) { 929 output.writeMessage(11, getUpdateTime()); 930 } 931 if (reachabilityDetails_ != null) { 932 output.writeMessage(12, getReachabilityDetails()); 933 } 934 if (probingDetails_ != null) { 935 output.writeMessage(14, getProbingDetails()); 936 } 937 getUnknownFields().writeTo(output); 938 } 939 940 @java.lang.Override getSerializedSize()941 public int getSerializedSize() { 942 int size = memoizedSize; 943 if (size != -1) return size; 944 945 size = 0; 946 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 947 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 948 } 949 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { 950 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); 951 } 952 if (source_ != null) { 953 size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSource()); 954 } 955 if (destination_ != null) { 956 size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDestination()); 957 } 958 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { 959 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, protocol_); 960 } 961 { 962 int dataSize = 0; 963 for (int i = 0; i < relatedProjects_.size(); i++) { 964 dataSize += computeStringSizeNoTag(relatedProjects_.getRaw(i)); 965 } 966 size += dataSize; 967 size += 1 * getRelatedProjectsList().size(); 968 } 969 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { 970 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, displayName_); 971 } 972 for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : 973 internalGetLabels().getMap().entrySet()) { 974 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ = 975 LabelsDefaultEntryHolder.defaultEntry 976 .newBuilderForType() 977 .setKey(entry.getKey()) 978 .setValue(entry.getValue()) 979 .build(); 980 size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); 981 } 982 if (createTime_ != null) { 983 size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime()); 984 } 985 if (updateTime_ != null) { 986 size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime()); 987 } 988 if (reachabilityDetails_ != null) { 989 size += 990 com.google.protobuf.CodedOutputStream.computeMessageSize(12, getReachabilityDetails()); 991 } 992 if (probingDetails_ != null) { 993 size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getProbingDetails()); 994 } 995 size += getUnknownFields().getSerializedSize(); 996 memoizedSize = size; 997 return size; 998 } 999 1000 @java.lang.Override equals(final java.lang.Object obj)1001 public boolean equals(final java.lang.Object obj) { 1002 if (obj == this) { 1003 return true; 1004 } 1005 if (!(obj instanceof com.google.cloud.networkmanagement.v1beta1.ConnectivityTest)) { 1006 return super.equals(obj); 1007 } 1008 com.google.cloud.networkmanagement.v1beta1.ConnectivityTest other = 1009 (com.google.cloud.networkmanagement.v1beta1.ConnectivityTest) obj; 1010 1011 if (!getName().equals(other.getName())) return false; 1012 if (!getDescription().equals(other.getDescription())) return false; 1013 if (hasSource() != other.hasSource()) return false; 1014 if (hasSource()) { 1015 if (!getSource().equals(other.getSource())) return false; 1016 } 1017 if (hasDestination() != other.hasDestination()) return false; 1018 if (hasDestination()) { 1019 if (!getDestination().equals(other.getDestination())) return false; 1020 } 1021 if (!getProtocol().equals(other.getProtocol())) return false; 1022 if (!getRelatedProjectsList().equals(other.getRelatedProjectsList())) return false; 1023 if (!getDisplayName().equals(other.getDisplayName())) return false; 1024 if (!internalGetLabels().equals(other.internalGetLabels())) return false; 1025 if (hasCreateTime() != other.hasCreateTime()) return false; 1026 if (hasCreateTime()) { 1027 if (!getCreateTime().equals(other.getCreateTime())) return false; 1028 } 1029 if (hasUpdateTime() != other.hasUpdateTime()) return false; 1030 if (hasUpdateTime()) { 1031 if (!getUpdateTime().equals(other.getUpdateTime())) return false; 1032 } 1033 if (hasReachabilityDetails() != other.hasReachabilityDetails()) return false; 1034 if (hasReachabilityDetails()) { 1035 if (!getReachabilityDetails().equals(other.getReachabilityDetails())) return false; 1036 } 1037 if (hasProbingDetails() != other.hasProbingDetails()) return false; 1038 if (hasProbingDetails()) { 1039 if (!getProbingDetails().equals(other.getProbingDetails())) return false; 1040 } 1041 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1042 return true; 1043 } 1044 1045 @java.lang.Override hashCode()1046 public int hashCode() { 1047 if (memoizedHashCode != 0) { 1048 return memoizedHashCode; 1049 } 1050 int hash = 41; 1051 hash = (19 * hash) + getDescriptor().hashCode(); 1052 hash = (37 * hash) + NAME_FIELD_NUMBER; 1053 hash = (53 * hash) + getName().hashCode(); 1054 hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; 1055 hash = (53 * hash) + getDescription().hashCode(); 1056 if (hasSource()) { 1057 hash = (37 * hash) + SOURCE_FIELD_NUMBER; 1058 hash = (53 * hash) + getSource().hashCode(); 1059 } 1060 if (hasDestination()) { 1061 hash = (37 * hash) + DESTINATION_FIELD_NUMBER; 1062 hash = (53 * hash) + getDestination().hashCode(); 1063 } 1064 hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; 1065 hash = (53 * hash) + getProtocol().hashCode(); 1066 if (getRelatedProjectsCount() > 0) { 1067 hash = (37 * hash) + RELATED_PROJECTS_FIELD_NUMBER; 1068 hash = (53 * hash) + getRelatedProjectsList().hashCode(); 1069 } 1070 hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; 1071 hash = (53 * hash) + getDisplayName().hashCode(); 1072 if (!internalGetLabels().getMap().isEmpty()) { 1073 hash = (37 * hash) + LABELS_FIELD_NUMBER; 1074 hash = (53 * hash) + internalGetLabels().hashCode(); 1075 } 1076 if (hasCreateTime()) { 1077 hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; 1078 hash = (53 * hash) + getCreateTime().hashCode(); 1079 } 1080 if (hasUpdateTime()) { 1081 hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; 1082 hash = (53 * hash) + getUpdateTime().hashCode(); 1083 } 1084 if (hasReachabilityDetails()) { 1085 hash = (37 * hash) + REACHABILITY_DETAILS_FIELD_NUMBER; 1086 hash = (53 * hash) + getReachabilityDetails().hashCode(); 1087 } 1088 if (hasProbingDetails()) { 1089 hash = (37 * hash) + PROBING_DETAILS_FIELD_NUMBER; 1090 hash = (53 * hash) + getProbingDetails().hashCode(); 1091 } 1092 hash = (29 * hash) + getUnknownFields().hashCode(); 1093 memoizedHashCode = hash; 1094 return hash; 1095 } 1096 parseFrom( java.nio.ByteBuffer data)1097 public static com.google.cloud.networkmanagement.v1beta1.ConnectivityTest parseFrom( 1098 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 1099 return PARSER.parseFrom(data); 1100 } 1101 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1102 public static com.google.cloud.networkmanagement.v1beta1.ConnectivityTest parseFrom( 1103 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1104 throws com.google.protobuf.InvalidProtocolBufferException { 1105 return PARSER.parseFrom(data, extensionRegistry); 1106 } 1107 parseFrom( com.google.protobuf.ByteString data)1108 public static com.google.cloud.networkmanagement.v1beta1.ConnectivityTest parseFrom( 1109 com.google.protobuf.ByteString data) 1110 throws com.google.protobuf.InvalidProtocolBufferException { 1111 return PARSER.parseFrom(data); 1112 } 1113 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1114 public static com.google.cloud.networkmanagement.v1beta1.ConnectivityTest parseFrom( 1115 com.google.protobuf.ByteString data, 1116 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1117 throws com.google.protobuf.InvalidProtocolBufferException { 1118 return PARSER.parseFrom(data, extensionRegistry); 1119 } 1120 parseFrom(byte[] data)1121 public static com.google.cloud.networkmanagement.v1beta1.ConnectivityTest parseFrom(byte[] data) 1122 throws com.google.protobuf.InvalidProtocolBufferException { 1123 return PARSER.parseFrom(data); 1124 } 1125 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1126 public static com.google.cloud.networkmanagement.v1beta1.ConnectivityTest parseFrom( 1127 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1128 throws com.google.protobuf.InvalidProtocolBufferException { 1129 return PARSER.parseFrom(data, extensionRegistry); 1130 } 1131 parseFrom( java.io.InputStream input)1132 public static com.google.cloud.networkmanagement.v1beta1.ConnectivityTest parseFrom( 1133 java.io.InputStream input) throws java.io.IOException { 1134 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1135 } 1136 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1137 public static com.google.cloud.networkmanagement.v1beta1.ConnectivityTest parseFrom( 1138 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1139 throws java.io.IOException { 1140 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1141 PARSER, input, extensionRegistry); 1142 } 1143 parseDelimitedFrom( java.io.InputStream input)1144 public static com.google.cloud.networkmanagement.v1beta1.ConnectivityTest parseDelimitedFrom( 1145 java.io.InputStream input) throws java.io.IOException { 1146 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 1147 } 1148 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1149 public static com.google.cloud.networkmanagement.v1beta1.ConnectivityTest parseDelimitedFrom( 1150 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1151 throws java.io.IOException { 1152 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 1153 PARSER, input, extensionRegistry); 1154 } 1155 parseFrom( com.google.protobuf.CodedInputStream input)1156 public static com.google.cloud.networkmanagement.v1beta1.ConnectivityTest parseFrom( 1157 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 1158 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1159 } 1160 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1161 public static com.google.cloud.networkmanagement.v1beta1.ConnectivityTest parseFrom( 1162 com.google.protobuf.CodedInputStream input, 1163 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1164 throws java.io.IOException { 1165 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1166 PARSER, input, extensionRegistry); 1167 } 1168 1169 @java.lang.Override newBuilderForType()1170 public Builder newBuilderForType() { 1171 return newBuilder(); 1172 } 1173 newBuilder()1174 public static Builder newBuilder() { 1175 return DEFAULT_INSTANCE.toBuilder(); 1176 } 1177 newBuilder( com.google.cloud.networkmanagement.v1beta1.ConnectivityTest prototype)1178 public static Builder newBuilder( 1179 com.google.cloud.networkmanagement.v1beta1.ConnectivityTest prototype) { 1180 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1181 } 1182 1183 @java.lang.Override toBuilder()1184 public Builder toBuilder() { 1185 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 1186 } 1187 1188 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1189 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1190 Builder builder = new Builder(parent); 1191 return builder; 1192 } 1193 /** 1194 * 1195 * 1196 * <pre> 1197 * A Connectivity Test for a network reachability analysis. 1198 * </pre> 1199 * 1200 * Protobuf type {@code google.cloud.networkmanagement.v1beta1.ConnectivityTest} 1201 */ 1202 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 1203 implements 1204 // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.ConnectivityTest) 1205 com.google.cloud.networkmanagement.v1beta1.ConnectivityTestOrBuilder { getDescriptor()1206 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1207 return com.google.cloud.networkmanagement.v1beta1.TestOuterClass 1208 .internal_static_google_cloud_networkmanagement_v1beta1_ConnectivityTest_descriptor; 1209 } 1210 1211 @SuppressWarnings({"rawtypes"}) internalGetMapField(int number)1212 protected com.google.protobuf.MapField internalGetMapField(int number) { 1213 switch (number) { 1214 case 8: 1215 return internalGetLabels(); 1216 default: 1217 throw new RuntimeException("Invalid map field number: " + number); 1218 } 1219 } 1220 1221 @SuppressWarnings({"rawtypes"}) internalGetMutableMapField(int number)1222 protected com.google.protobuf.MapField internalGetMutableMapField(int number) { 1223 switch (number) { 1224 case 8: 1225 return internalGetMutableLabels(); 1226 default: 1227 throw new RuntimeException("Invalid map field number: " + number); 1228 } 1229 } 1230 1231 @java.lang.Override 1232 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1233 internalGetFieldAccessorTable() { 1234 return com.google.cloud.networkmanagement.v1beta1.TestOuterClass 1235 .internal_static_google_cloud_networkmanagement_v1beta1_ConnectivityTest_fieldAccessorTable 1236 .ensureFieldAccessorsInitialized( 1237 com.google.cloud.networkmanagement.v1beta1.ConnectivityTest.class, 1238 com.google.cloud.networkmanagement.v1beta1.ConnectivityTest.Builder.class); 1239 } 1240 1241 // Construct using com.google.cloud.networkmanagement.v1beta1.ConnectivityTest.newBuilder() Builder()1242 private Builder() {} 1243 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1244 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1245 super(parent); 1246 } 1247 1248 @java.lang.Override clear()1249 public Builder clear() { 1250 super.clear(); 1251 bitField0_ = 0; 1252 name_ = ""; 1253 description_ = ""; 1254 source_ = null; 1255 if (sourceBuilder_ != null) { 1256 sourceBuilder_.dispose(); 1257 sourceBuilder_ = null; 1258 } 1259 destination_ = null; 1260 if (destinationBuilder_ != null) { 1261 destinationBuilder_.dispose(); 1262 destinationBuilder_ = null; 1263 } 1264 protocol_ = ""; 1265 relatedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1266 bitField0_ = (bitField0_ & ~0x00000020); 1267 displayName_ = ""; 1268 internalGetMutableLabels().clear(); 1269 createTime_ = null; 1270 if (createTimeBuilder_ != null) { 1271 createTimeBuilder_.dispose(); 1272 createTimeBuilder_ = null; 1273 } 1274 updateTime_ = null; 1275 if (updateTimeBuilder_ != null) { 1276 updateTimeBuilder_.dispose(); 1277 updateTimeBuilder_ = null; 1278 } 1279 reachabilityDetails_ = null; 1280 if (reachabilityDetailsBuilder_ != null) { 1281 reachabilityDetailsBuilder_.dispose(); 1282 reachabilityDetailsBuilder_ = null; 1283 } 1284 probingDetails_ = null; 1285 if (probingDetailsBuilder_ != null) { 1286 probingDetailsBuilder_.dispose(); 1287 probingDetailsBuilder_ = null; 1288 } 1289 return this; 1290 } 1291 1292 @java.lang.Override getDescriptorForType()1293 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1294 return com.google.cloud.networkmanagement.v1beta1.TestOuterClass 1295 .internal_static_google_cloud_networkmanagement_v1beta1_ConnectivityTest_descriptor; 1296 } 1297 1298 @java.lang.Override getDefaultInstanceForType()1299 public com.google.cloud.networkmanagement.v1beta1.ConnectivityTest getDefaultInstanceForType() { 1300 return com.google.cloud.networkmanagement.v1beta1.ConnectivityTest.getDefaultInstance(); 1301 } 1302 1303 @java.lang.Override build()1304 public com.google.cloud.networkmanagement.v1beta1.ConnectivityTest build() { 1305 com.google.cloud.networkmanagement.v1beta1.ConnectivityTest result = buildPartial(); 1306 if (!result.isInitialized()) { 1307 throw newUninitializedMessageException(result); 1308 } 1309 return result; 1310 } 1311 1312 @java.lang.Override buildPartial()1313 public com.google.cloud.networkmanagement.v1beta1.ConnectivityTest buildPartial() { 1314 com.google.cloud.networkmanagement.v1beta1.ConnectivityTest result = 1315 new com.google.cloud.networkmanagement.v1beta1.ConnectivityTest(this); 1316 buildPartialRepeatedFields(result); 1317 if (bitField0_ != 0) { 1318 buildPartial0(result); 1319 } 1320 onBuilt(); 1321 return result; 1322 } 1323 buildPartialRepeatedFields( com.google.cloud.networkmanagement.v1beta1.ConnectivityTest result)1324 private void buildPartialRepeatedFields( 1325 com.google.cloud.networkmanagement.v1beta1.ConnectivityTest result) { 1326 if (((bitField0_ & 0x00000020) != 0)) { 1327 relatedProjects_ = relatedProjects_.getUnmodifiableView(); 1328 bitField0_ = (bitField0_ & ~0x00000020); 1329 } 1330 result.relatedProjects_ = relatedProjects_; 1331 } 1332 buildPartial0(com.google.cloud.networkmanagement.v1beta1.ConnectivityTest result)1333 private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.ConnectivityTest result) { 1334 int from_bitField0_ = bitField0_; 1335 if (((from_bitField0_ & 0x00000001) != 0)) { 1336 result.name_ = name_; 1337 } 1338 if (((from_bitField0_ & 0x00000002) != 0)) { 1339 result.description_ = description_; 1340 } 1341 if (((from_bitField0_ & 0x00000004) != 0)) { 1342 result.source_ = sourceBuilder_ == null ? source_ : sourceBuilder_.build(); 1343 } 1344 if (((from_bitField0_ & 0x00000008) != 0)) { 1345 result.destination_ = 1346 destinationBuilder_ == null ? destination_ : destinationBuilder_.build(); 1347 } 1348 if (((from_bitField0_ & 0x00000010) != 0)) { 1349 result.protocol_ = protocol_; 1350 } 1351 if (((from_bitField0_ & 0x00000040) != 0)) { 1352 result.displayName_ = displayName_; 1353 } 1354 if (((from_bitField0_ & 0x00000080) != 0)) { 1355 result.labels_ = internalGetLabels(); 1356 result.labels_.makeImmutable(); 1357 } 1358 if (((from_bitField0_ & 0x00000100) != 0)) { 1359 result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); 1360 } 1361 if (((from_bitField0_ & 0x00000200) != 0)) { 1362 result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); 1363 } 1364 if (((from_bitField0_ & 0x00000400) != 0)) { 1365 result.reachabilityDetails_ = 1366 reachabilityDetailsBuilder_ == null 1367 ? reachabilityDetails_ 1368 : reachabilityDetailsBuilder_.build(); 1369 } 1370 if (((from_bitField0_ & 0x00000800) != 0)) { 1371 result.probingDetails_ = 1372 probingDetailsBuilder_ == null ? probingDetails_ : probingDetailsBuilder_.build(); 1373 } 1374 } 1375 1376 @java.lang.Override clone()1377 public Builder clone() { 1378 return super.clone(); 1379 } 1380 1381 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1382 public Builder setField( 1383 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1384 return super.setField(field, value); 1385 } 1386 1387 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1388 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1389 return super.clearField(field); 1390 } 1391 1392 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1393 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1394 return super.clearOneof(oneof); 1395 } 1396 1397 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1398 public Builder setRepeatedField( 1399 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1400 return super.setRepeatedField(field, index, value); 1401 } 1402 1403 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1404 public Builder addRepeatedField( 1405 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1406 return super.addRepeatedField(field, value); 1407 } 1408 1409 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1410 public Builder mergeFrom(com.google.protobuf.Message other) { 1411 if (other instanceof com.google.cloud.networkmanagement.v1beta1.ConnectivityTest) { 1412 return mergeFrom((com.google.cloud.networkmanagement.v1beta1.ConnectivityTest) other); 1413 } else { 1414 super.mergeFrom(other); 1415 return this; 1416 } 1417 } 1418 mergeFrom(com.google.cloud.networkmanagement.v1beta1.ConnectivityTest other)1419 public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.ConnectivityTest other) { 1420 if (other == com.google.cloud.networkmanagement.v1beta1.ConnectivityTest.getDefaultInstance()) 1421 return this; 1422 if (!other.getName().isEmpty()) { 1423 name_ = other.name_; 1424 bitField0_ |= 0x00000001; 1425 onChanged(); 1426 } 1427 if (!other.getDescription().isEmpty()) { 1428 description_ = other.description_; 1429 bitField0_ |= 0x00000002; 1430 onChanged(); 1431 } 1432 if (other.hasSource()) { 1433 mergeSource(other.getSource()); 1434 } 1435 if (other.hasDestination()) { 1436 mergeDestination(other.getDestination()); 1437 } 1438 if (!other.getProtocol().isEmpty()) { 1439 protocol_ = other.protocol_; 1440 bitField0_ |= 0x00000010; 1441 onChanged(); 1442 } 1443 if (!other.relatedProjects_.isEmpty()) { 1444 if (relatedProjects_.isEmpty()) { 1445 relatedProjects_ = other.relatedProjects_; 1446 bitField0_ = (bitField0_ & ~0x00000020); 1447 } else { 1448 ensureRelatedProjectsIsMutable(); 1449 relatedProjects_.addAll(other.relatedProjects_); 1450 } 1451 onChanged(); 1452 } 1453 if (!other.getDisplayName().isEmpty()) { 1454 displayName_ = other.displayName_; 1455 bitField0_ |= 0x00000040; 1456 onChanged(); 1457 } 1458 internalGetMutableLabels().mergeFrom(other.internalGetLabels()); 1459 bitField0_ |= 0x00000080; 1460 if (other.hasCreateTime()) { 1461 mergeCreateTime(other.getCreateTime()); 1462 } 1463 if (other.hasUpdateTime()) { 1464 mergeUpdateTime(other.getUpdateTime()); 1465 } 1466 if (other.hasReachabilityDetails()) { 1467 mergeReachabilityDetails(other.getReachabilityDetails()); 1468 } 1469 if (other.hasProbingDetails()) { 1470 mergeProbingDetails(other.getProbingDetails()); 1471 } 1472 this.mergeUnknownFields(other.getUnknownFields()); 1473 onChanged(); 1474 return this; 1475 } 1476 1477 @java.lang.Override isInitialized()1478 public final boolean isInitialized() { 1479 return true; 1480 } 1481 1482 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1483 public Builder mergeFrom( 1484 com.google.protobuf.CodedInputStream input, 1485 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1486 throws java.io.IOException { 1487 if (extensionRegistry == null) { 1488 throw new java.lang.NullPointerException(); 1489 } 1490 try { 1491 boolean done = false; 1492 while (!done) { 1493 int tag = input.readTag(); 1494 switch (tag) { 1495 case 0: 1496 done = true; 1497 break; 1498 case 10: 1499 { 1500 name_ = input.readStringRequireUtf8(); 1501 bitField0_ |= 0x00000001; 1502 break; 1503 } // case 10 1504 case 18: 1505 { 1506 description_ = input.readStringRequireUtf8(); 1507 bitField0_ |= 0x00000002; 1508 break; 1509 } // case 18 1510 case 26: 1511 { 1512 input.readMessage(getSourceFieldBuilder().getBuilder(), extensionRegistry); 1513 bitField0_ |= 0x00000004; 1514 break; 1515 } // case 26 1516 case 34: 1517 { 1518 input.readMessage(getDestinationFieldBuilder().getBuilder(), extensionRegistry); 1519 bitField0_ |= 0x00000008; 1520 break; 1521 } // case 34 1522 case 42: 1523 { 1524 protocol_ = input.readStringRequireUtf8(); 1525 bitField0_ |= 0x00000010; 1526 break; 1527 } // case 42 1528 case 50: 1529 { 1530 java.lang.String s = input.readStringRequireUtf8(); 1531 ensureRelatedProjectsIsMutable(); 1532 relatedProjects_.add(s); 1533 break; 1534 } // case 50 1535 case 58: 1536 { 1537 displayName_ = input.readStringRequireUtf8(); 1538 bitField0_ |= 0x00000040; 1539 break; 1540 } // case 58 1541 case 66: 1542 { 1543 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ = 1544 input.readMessage( 1545 LabelsDefaultEntryHolder.defaultEntry.getParserForType(), 1546 extensionRegistry); 1547 internalGetMutableLabels() 1548 .getMutableMap() 1549 .put(labels__.getKey(), labels__.getValue()); 1550 bitField0_ |= 0x00000080; 1551 break; 1552 } // case 66 1553 case 82: 1554 { 1555 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); 1556 bitField0_ |= 0x00000100; 1557 break; 1558 } // case 82 1559 case 90: 1560 { 1561 input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); 1562 bitField0_ |= 0x00000200; 1563 break; 1564 } // case 90 1565 case 98: 1566 { 1567 input.readMessage( 1568 getReachabilityDetailsFieldBuilder().getBuilder(), extensionRegistry); 1569 bitField0_ |= 0x00000400; 1570 break; 1571 } // case 98 1572 case 114: 1573 { 1574 input.readMessage(getProbingDetailsFieldBuilder().getBuilder(), extensionRegistry); 1575 bitField0_ |= 0x00000800; 1576 break; 1577 } // case 114 1578 default: 1579 { 1580 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1581 done = true; // was an endgroup tag 1582 } 1583 break; 1584 } // default: 1585 } // switch (tag) 1586 } // while (!done) 1587 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1588 throw e.unwrapIOException(); 1589 } finally { 1590 onChanged(); 1591 } // finally 1592 return this; 1593 } 1594 1595 private int bitField0_; 1596 1597 private java.lang.Object name_ = ""; 1598 /** 1599 * 1600 * 1601 * <pre> 1602 * Required. Unique name of the resource using the form: 1603 * `projects/{project_id}/locations/global/connectivityTests/{test}` 1604 * </pre> 1605 * 1606 * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> 1607 * 1608 * @return The name. 1609 */ getName()1610 public java.lang.String getName() { 1611 java.lang.Object ref = name_; 1612 if (!(ref instanceof java.lang.String)) { 1613 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1614 java.lang.String s = bs.toStringUtf8(); 1615 name_ = s; 1616 return s; 1617 } else { 1618 return (java.lang.String) ref; 1619 } 1620 } 1621 /** 1622 * 1623 * 1624 * <pre> 1625 * Required. Unique name of the resource using the form: 1626 * `projects/{project_id}/locations/global/connectivityTests/{test}` 1627 * </pre> 1628 * 1629 * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> 1630 * 1631 * @return The bytes for name. 1632 */ getNameBytes()1633 public com.google.protobuf.ByteString getNameBytes() { 1634 java.lang.Object ref = name_; 1635 if (ref instanceof String) { 1636 com.google.protobuf.ByteString b = 1637 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1638 name_ = b; 1639 return b; 1640 } else { 1641 return (com.google.protobuf.ByteString) ref; 1642 } 1643 } 1644 /** 1645 * 1646 * 1647 * <pre> 1648 * Required. Unique name of the resource using the form: 1649 * `projects/{project_id}/locations/global/connectivityTests/{test}` 1650 * </pre> 1651 * 1652 * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> 1653 * 1654 * @param value The name to set. 1655 * @return This builder for chaining. 1656 */ setName(java.lang.String value)1657 public Builder setName(java.lang.String value) { 1658 if (value == null) { 1659 throw new NullPointerException(); 1660 } 1661 name_ = value; 1662 bitField0_ |= 0x00000001; 1663 onChanged(); 1664 return this; 1665 } 1666 /** 1667 * 1668 * 1669 * <pre> 1670 * Required. Unique name of the resource using the form: 1671 * `projects/{project_id}/locations/global/connectivityTests/{test}` 1672 * </pre> 1673 * 1674 * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> 1675 * 1676 * @return This builder for chaining. 1677 */ clearName()1678 public Builder clearName() { 1679 name_ = getDefaultInstance().getName(); 1680 bitField0_ = (bitField0_ & ~0x00000001); 1681 onChanged(); 1682 return this; 1683 } 1684 /** 1685 * 1686 * 1687 * <pre> 1688 * Required. Unique name of the resource using the form: 1689 * `projects/{project_id}/locations/global/connectivityTests/{test}` 1690 * </pre> 1691 * 1692 * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> 1693 * 1694 * @param value The bytes for name to set. 1695 * @return This builder for chaining. 1696 */ setNameBytes(com.google.protobuf.ByteString value)1697 public Builder setNameBytes(com.google.protobuf.ByteString value) { 1698 if (value == null) { 1699 throw new NullPointerException(); 1700 } 1701 checkByteStringIsUtf8(value); 1702 name_ = value; 1703 bitField0_ |= 0x00000001; 1704 onChanged(); 1705 return this; 1706 } 1707 1708 private java.lang.Object description_ = ""; 1709 /** 1710 * 1711 * 1712 * <pre> 1713 * The user-supplied description of the Connectivity Test. 1714 * Maximum of 512 characters. 1715 * </pre> 1716 * 1717 * <code>string description = 2;</code> 1718 * 1719 * @return The description. 1720 */ getDescription()1721 public java.lang.String getDescription() { 1722 java.lang.Object ref = description_; 1723 if (!(ref instanceof java.lang.String)) { 1724 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1725 java.lang.String s = bs.toStringUtf8(); 1726 description_ = s; 1727 return s; 1728 } else { 1729 return (java.lang.String) ref; 1730 } 1731 } 1732 /** 1733 * 1734 * 1735 * <pre> 1736 * The user-supplied description of the Connectivity Test. 1737 * Maximum of 512 characters. 1738 * </pre> 1739 * 1740 * <code>string description = 2;</code> 1741 * 1742 * @return The bytes for description. 1743 */ getDescriptionBytes()1744 public com.google.protobuf.ByteString getDescriptionBytes() { 1745 java.lang.Object ref = description_; 1746 if (ref instanceof String) { 1747 com.google.protobuf.ByteString b = 1748 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1749 description_ = b; 1750 return b; 1751 } else { 1752 return (com.google.protobuf.ByteString) ref; 1753 } 1754 } 1755 /** 1756 * 1757 * 1758 * <pre> 1759 * The user-supplied description of the Connectivity Test. 1760 * Maximum of 512 characters. 1761 * </pre> 1762 * 1763 * <code>string description = 2;</code> 1764 * 1765 * @param value The description to set. 1766 * @return This builder for chaining. 1767 */ setDescription(java.lang.String value)1768 public Builder setDescription(java.lang.String value) { 1769 if (value == null) { 1770 throw new NullPointerException(); 1771 } 1772 description_ = value; 1773 bitField0_ |= 0x00000002; 1774 onChanged(); 1775 return this; 1776 } 1777 /** 1778 * 1779 * 1780 * <pre> 1781 * The user-supplied description of the Connectivity Test. 1782 * Maximum of 512 characters. 1783 * </pre> 1784 * 1785 * <code>string description = 2;</code> 1786 * 1787 * @return This builder for chaining. 1788 */ clearDescription()1789 public Builder clearDescription() { 1790 description_ = getDefaultInstance().getDescription(); 1791 bitField0_ = (bitField0_ & ~0x00000002); 1792 onChanged(); 1793 return this; 1794 } 1795 /** 1796 * 1797 * 1798 * <pre> 1799 * The user-supplied description of the Connectivity Test. 1800 * Maximum of 512 characters. 1801 * </pre> 1802 * 1803 * <code>string description = 2;</code> 1804 * 1805 * @param value The bytes for description to set. 1806 * @return This builder for chaining. 1807 */ setDescriptionBytes(com.google.protobuf.ByteString value)1808 public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 1809 if (value == null) { 1810 throw new NullPointerException(); 1811 } 1812 checkByteStringIsUtf8(value); 1813 description_ = value; 1814 bitField0_ |= 0x00000002; 1815 onChanged(); 1816 return this; 1817 } 1818 1819 private com.google.cloud.networkmanagement.v1beta1.Endpoint source_; 1820 private com.google.protobuf.SingleFieldBuilderV3< 1821 com.google.cloud.networkmanagement.v1beta1.Endpoint, 1822 com.google.cloud.networkmanagement.v1beta1.Endpoint.Builder, 1823 com.google.cloud.networkmanagement.v1beta1.EndpointOrBuilder> 1824 sourceBuilder_; 1825 /** 1826 * 1827 * 1828 * <pre> 1829 * Required. Source specification of the Connectivity Test. 1830 * You can use a combination of source IP address, virtual machine 1831 * (VM) instance, or Compute Engine network to uniquely identify 1832 * the source location. 1833 * Examples: 1834 * If the source IP address is an internal IP address within a Google Cloud 1835 * Virtual Private Cloud (VPC) network, then you must also specify the VPC 1836 * network. Otherwise, specify the VM instance, which already contains its 1837 * internal IP address and VPC network information. 1838 * If the source of the test is within an on-premises network, then you must 1839 * provide the destination VPC network. 1840 * If the source endpoint is a Compute Engine VM instance with multiple 1841 * network interfaces, the instance itself is not sufficient to identify the 1842 * endpoint. So, you must also specify the source IP address or VPC network. 1843 * A reachability analysis proceeds even if the source location is 1844 * ambiguous. However, the test result may include endpoints that you don't 1845 * intend to test. 1846 * </pre> 1847 * 1848 * <code> 1849 * .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED]; 1850 * </code> 1851 * 1852 * @return Whether the source field is set. 1853 */ hasSource()1854 public boolean hasSource() { 1855 return ((bitField0_ & 0x00000004) != 0); 1856 } 1857 /** 1858 * 1859 * 1860 * <pre> 1861 * Required. Source specification of the Connectivity Test. 1862 * You can use a combination of source IP address, virtual machine 1863 * (VM) instance, or Compute Engine network to uniquely identify 1864 * the source location. 1865 * Examples: 1866 * If the source IP address is an internal IP address within a Google Cloud 1867 * Virtual Private Cloud (VPC) network, then you must also specify the VPC 1868 * network. Otherwise, specify the VM instance, which already contains its 1869 * internal IP address and VPC network information. 1870 * If the source of the test is within an on-premises network, then you must 1871 * provide the destination VPC network. 1872 * If the source endpoint is a Compute Engine VM instance with multiple 1873 * network interfaces, the instance itself is not sufficient to identify the 1874 * endpoint. So, you must also specify the source IP address or VPC network. 1875 * A reachability analysis proceeds even if the source location is 1876 * ambiguous. However, the test result may include endpoints that you don't 1877 * intend to test. 1878 * </pre> 1879 * 1880 * <code> 1881 * .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED]; 1882 * </code> 1883 * 1884 * @return The source. 1885 */ getSource()1886 public com.google.cloud.networkmanagement.v1beta1.Endpoint getSource() { 1887 if (sourceBuilder_ == null) { 1888 return source_ == null 1889 ? com.google.cloud.networkmanagement.v1beta1.Endpoint.getDefaultInstance() 1890 : source_; 1891 } else { 1892 return sourceBuilder_.getMessage(); 1893 } 1894 } 1895 /** 1896 * 1897 * 1898 * <pre> 1899 * Required. Source specification of the Connectivity Test. 1900 * You can use a combination of source IP address, virtual machine 1901 * (VM) instance, or Compute Engine network to uniquely identify 1902 * the source location. 1903 * Examples: 1904 * If the source IP address is an internal IP address within a Google Cloud 1905 * Virtual Private Cloud (VPC) network, then you must also specify the VPC 1906 * network. Otherwise, specify the VM instance, which already contains its 1907 * internal IP address and VPC network information. 1908 * If the source of the test is within an on-premises network, then you must 1909 * provide the destination VPC network. 1910 * If the source endpoint is a Compute Engine VM instance with multiple 1911 * network interfaces, the instance itself is not sufficient to identify the 1912 * endpoint. So, you must also specify the source IP address or VPC network. 1913 * A reachability analysis proceeds even if the source location is 1914 * ambiguous. However, the test result may include endpoints that you don't 1915 * intend to test. 1916 * </pre> 1917 * 1918 * <code> 1919 * .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED]; 1920 * </code> 1921 */ setSource(com.google.cloud.networkmanagement.v1beta1.Endpoint value)1922 public Builder setSource(com.google.cloud.networkmanagement.v1beta1.Endpoint value) { 1923 if (sourceBuilder_ == null) { 1924 if (value == null) { 1925 throw new NullPointerException(); 1926 } 1927 source_ = value; 1928 } else { 1929 sourceBuilder_.setMessage(value); 1930 } 1931 bitField0_ |= 0x00000004; 1932 onChanged(); 1933 return this; 1934 } 1935 /** 1936 * 1937 * 1938 * <pre> 1939 * Required. Source specification of the Connectivity Test. 1940 * You can use a combination of source IP address, virtual machine 1941 * (VM) instance, or Compute Engine network to uniquely identify 1942 * the source location. 1943 * Examples: 1944 * If the source IP address is an internal IP address within a Google Cloud 1945 * Virtual Private Cloud (VPC) network, then you must also specify the VPC 1946 * network. Otherwise, specify the VM instance, which already contains its 1947 * internal IP address and VPC network information. 1948 * If the source of the test is within an on-premises network, then you must 1949 * provide the destination VPC network. 1950 * If the source endpoint is a Compute Engine VM instance with multiple 1951 * network interfaces, the instance itself is not sufficient to identify the 1952 * endpoint. So, you must also specify the source IP address or VPC network. 1953 * A reachability analysis proceeds even if the source location is 1954 * ambiguous. However, the test result may include endpoints that you don't 1955 * intend to test. 1956 * </pre> 1957 * 1958 * <code> 1959 * .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED]; 1960 * </code> 1961 */ setSource( com.google.cloud.networkmanagement.v1beta1.Endpoint.Builder builderForValue)1962 public Builder setSource( 1963 com.google.cloud.networkmanagement.v1beta1.Endpoint.Builder builderForValue) { 1964 if (sourceBuilder_ == null) { 1965 source_ = builderForValue.build(); 1966 } else { 1967 sourceBuilder_.setMessage(builderForValue.build()); 1968 } 1969 bitField0_ |= 0x00000004; 1970 onChanged(); 1971 return this; 1972 } 1973 /** 1974 * 1975 * 1976 * <pre> 1977 * Required. Source specification of the Connectivity Test. 1978 * You can use a combination of source IP address, virtual machine 1979 * (VM) instance, or Compute Engine network to uniquely identify 1980 * the source location. 1981 * Examples: 1982 * If the source IP address is an internal IP address within a Google Cloud 1983 * Virtual Private Cloud (VPC) network, then you must also specify the VPC 1984 * network. Otherwise, specify the VM instance, which already contains its 1985 * internal IP address and VPC network information. 1986 * If the source of the test is within an on-premises network, then you must 1987 * provide the destination VPC network. 1988 * If the source endpoint is a Compute Engine VM instance with multiple 1989 * network interfaces, the instance itself is not sufficient to identify the 1990 * endpoint. So, you must also specify the source IP address or VPC network. 1991 * A reachability analysis proceeds even if the source location is 1992 * ambiguous. However, the test result may include endpoints that you don't 1993 * intend to test. 1994 * </pre> 1995 * 1996 * <code> 1997 * .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED]; 1998 * </code> 1999 */ mergeSource(com.google.cloud.networkmanagement.v1beta1.Endpoint value)2000 public Builder mergeSource(com.google.cloud.networkmanagement.v1beta1.Endpoint value) { 2001 if (sourceBuilder_ == null) { 2002 if (((bitField0_ & 0x00000004) != 0) 2003 && source_ != null 2004 && source_ 2005 != com.google.cloud.networkmanagement.v1beta1.Endpoint.getDefaultInstance()) { 2006 getSourceBuilder().mergeFrom(value); 2007 } else { 2008 source_ = value; 2009 } 2010 } else { 2011 sourceBuilder_.mergeFrom(value); 2012 } 2013 bitField0_ |= 0x00000004; 2014 onChanged(); 2015 return this; 2016 } 2017 /** 2018 * 2019 * 2020 * <pre> 2021 * Required. Source specification of the Connectivity Test. 2022 * You can use a combination of source IP address, virtual machine 2023 * (VM) instance, or Compute Engine network to uniquely identify 2024 * the source location. 2025 * Examples: 2026 * If the source IP address is an internal IP address within a Google Cloud 2027 * Virtual Private Cloud (VPC) network, then you must also specify the VPC 2028 * network. Otherwise, specify the VM instance, which already contains its 2029 * internal IP address and VPC network information. 2030 * If the source of the test is within an on-premises network, then you must 2031 * provide the destination VPC network. 2032 * If the source endpoint is a Compute Engine VM instance with multiple 2033 * network interfaces, the instance itself is not sufficient to identify the 2034 * endpoint. So, you must also specify the source IP address or VPC network. 2035 * A reachability analysis proceeds even if the source location is 2036 * ambiguous. However, the test result may include endpoints that you don't 2037 * intend to test. 2038 * </pre> 2039 * 2040 * <code> 2041 * .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED]; 2042 * </code> 2043 */ clearSource()2044 public Builder clearSource() { 2045 bitField0_ = (bitField0_ & ~0x00000004); 2046 source_ = null; 2047 if (sourceBuilder_ != null) { 2048 sourceBuilder_.dispose(); 2049 sourceBuilder_ = null; 2050 } 2051 onChanged(); 2052 return this; 2053 } 2054 /** 2055 * 2056 * 2057 * <pre> 2058 * Required. Source specification of the Connectivity Test. 2059 * You can use a combination of source IP address, virtual machine 2060 * (VM) instance, or Compute Engine network to uniquely identify 2061 * the source location. 2062 * Examples: 2063 * If the source IP address is an internal IP address within a Google Cloud 2064 * Virtual Private Cloud (VPC) network, then you must also specify the VPC 2065 * network. Otherwise, specify the VM instance, which already contains its 2066 * internal IP address and VPC network information. 2067 * If the source of the test is within an on-premises network, then you must 2068 * provide the destination VPC network. 2069 * If the source endpoint is a Compute Engine VM instance with multiple 2070 * network interfaces, the instance itself is not sufficient to identify the 2071 * endpoint. So, you must also specify the source IP address or VPC network. 2072 * A reachability analysis proceeds even if the source location is 2073 * ambiguous. However, the test result may include endpoints that you don't 2074 * intend to test. 2075 * </pre> 2076 * 2077 * <code> 2078 * .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED]; 2079 * </code> 2080 */ getSourceBuilder()2081 public com.google.cloud.networkmanagement.v1beta1.Endpoint.Builder getSourceBuilder() { 2082 bitField0_ |= 0x00000004; 2083 onChanged(); 2084 return getSourceFieldBuilder().getBuilder(); 2085 } 2086 /** 2087 * 2088 * 2089 * <pre> 2090 * Required. Source specification of the Connectivity Test. 2091 * You can use a combination of source IP address, virtual machine 2092 * (VM) instance, or Compute Engine network to uniquely identify 2093 * the source location. 2094 * Examples: 2095 * If the source IP address is an internal IP address within a Google Cloud 2096 * Virtual Private Cloud (VPC) network, then you must also specify the VPC 2097 * network. Otherwise, specify the VM instance, which already contains its 2098 * internal IP address and VPC network information. 2099 * If the source of the test is within an on-premises network, then you must 2100 * provide the destination VPC network. 2101 * If the source endpoint is a Compute Engine VM instance with multiple 2102 * network interfaces, the instance itself is not sufficient to identify the 2103 * endpoint. So, you must also specify the source IP address or VPC network. 2104 * A reachability analysis proceeds even if the source location is 2105 * ambiguous. However, the test result may include endpoints that you don't 2106 * intend to test. 2107 * </pre> 2108 * 2109 * <code> 2110 * .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED]; 2111 * </code> 2112 */ getSourceOrBuilder()2113 public com.google.cloud.networkmanagement.v1beta1.EndpointOrBuilder getSourceOrBuilder() { 2114 if (sourceBuilder_ != null) { 2115 return sourceBuilder_.getMessageOrBuilder(); 2116 } else { 2117 return source_ == null 2118 ? com.google.cloud.networkmanagement.v1beta1.Endpoint.getDefaultInstance() 2119 : source_; 2120 } 2121 } 2122 /** 2123 * 2124 * 2125 * <pre> 2126 * Required. Source specification of the Connectivity Test. 2127 * You can use a combination of source IP address, virtual machine 2128 * (VM) instance, or Compute Engine network to uniquely identify 2129 * the source location. 2130 * Examples: 2131 * If the source IP address is an internal IP address within a Google Cloud 2132 * Virtual Private Cloud (VPC) network, then you must also specify the VPC 2133 * network. Otherwise, specify the VM instance, which already contains its 2134 * internal IP address and VPC network information. 2135 * If the source of the test is within an on-premises network, then you must 2136 * provide the destination VPC network. 2137 * If the source endpoint is a Compute Engine VM instance with multiple 2138 * network interfaces, the instance itself is not sufficient to identify the 2139 * endpoint. So, you must also specify the source IP address or VPC network. 2140 * A reachability analysis proceeds even if the source location is 2141 * ambiguous. However, the test result may include endpoints that you don't 2142 * intend to test. 2143 * </pre> 2144 * 2145 * <code> 2146 * .google.cloud.networkmanagement.v1beta1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED]; 2147 * </code> 2148 */ 2149 private com.google.protobuf.SingleFieldBuilderV3< 2150 com.google.cloud.networkmanagement.v1beta1.Endpoint, 2151 com.google.cloud.networkmanagement.v1beta1.Endpoint.Builder, 2152 com.google.cloud.networkmanagement.v1beta1.EndpointOrBuilder> getSourceFieldBuilder()2153 getSourceFieldBuilder() { 2154 if (sourceBuilder_ == null) { 2155 sourceBuilder_ = 2156 new com.google.protobuf.SingleFieldBuilderV3< 2157 com.google.cloud.networkmanagement.v1beta1.Endpoint, 2158 com.google.cloud.networkmanagement.v1beta1.Endpoint.Builder, 2159 com.google.cloud.networkmanagement.v1beta1.EndpointOrBuilder>( 2160 getSource(), getParentForChildren(), isClean()); 2161 source_ = null; 2162 } 2163 return sourceBuilder_; 2164 } 2165 2166 private com.google.cloud.networkmanagement.v1beta1.Endpoint destination_; 2167 private com.google.protobuf.SingleFieldBuilderV3< 2168 com.google.cloud.networkmanagement.v1beta1.Endpoint, 2169 com.google.cloud.networkmanagement.v1beta1.Endpoint.Builder, 2170 com.google.cloud.networkmanagement.v1beta1.EndpointOrBuilder> 2171 destinationBuilder_; 2172 /** 2173 * 2174 * 2175 * <pre> 2176 * Required. Destination specification of the Connectivity Test. 2177 * You can use a combination of destination IP address, Compute Engine 2178 * VM instance, or VPC network to uniquely identify the destination 2179 * location. 2180 * Even if the destination IP address is not unique, the source IP 2181 * location is unique. Usually, the analysis can infer the destination 2182 * endpoint from route information. 2183 * If the destination you specify is a VM instance and the instance has 2184 * multiple network interfaces, then you must also specify either 2185 * a destination IP address or VPC network to identify the destination 2186 * interface. 2187 * A reachability analysis proceeds even if the destination location is 2188 * ambiguous. However, the result can include endpoints that you don't 2189 * intend to test. 2190 * </pre> 2191 * 2192 * <code> 2193 * .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED]; 2194 * </code> 2195 * 2196 * @return Whether the destination field is set. 2197 */ hasDestination()2198 public boolean hasDestination() { 2199 return ((bitField0_ & 0x00000008) != 0); 2200 } 2201 /** 2202 * 2203 * 2204 * <pre> 2205 * Required. Destination specification of the Connectivity Test. 2206 * You can use a combination of destination IP address, Compute Engine 2207 * VM instance, or VPC network to uniquely identify the destination 2208 * location. 2209 * Even if the destination IP address is not unique, the source IP 2210 * location is unique. Usually, the analysis can infer the destination 2211 * endpoint from route information. 2212 * If the destination you specify is a VM instance and the instance has 2213 * multiple network interfaces, then you must also specify either 2214 * a destination IP address or VPC network to identify the destination 2215 * interface. 2216 * A reachability analysis proceeds even if the destination location is 2217 * ambiguous. However, the result can include endpoints that you don't 2218 * intend to test. 2219 * </pre> 2220 * 2221 * <code> 2222 * .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED]; 2223 * </code> 2224 * 2225 * @return The destination. 2226 */ getDestination()2227 public com.google.cloud.networkmanagement.v1beta1.Endpoint getDestination() { 2228 if (destinationBuilder_ == null) { 2229 return destination_ == null 2230 ? com.google.cloud.networkmanagement.v1beta1.Endpoint.getDefaultInstance() 2231 : destination_; 2232 } else { 2233 return destinationBuilder_.getMessage(); 2234 } 2235 } 2236 /** 2237 * 2238 * 2239 * <pre> 2240 * Required. Destination specification of the Connectivity Test. 2241 * You can use a combination of destination IP address, Compute Engine 2242 * VM instance, or VPC network to uniquely identify the destination 2243 * location. 2244 * Even if the destination IP address is not unique, the source IP 2245 * location is unique. Usually, the analysis can infer the destination 2246 * endpoint from route information. 2247 * If the destination you specify is a VM instance and the instance has 2248 * multiple network interfaces, then you must also specify either 2249 * a destination IP address or VPC network to identify the destination 2250 * interface. 2251 * A reachability analysis proceeds even if the destination location is 2252 * ambiguous. However, the result can include endpoints that you don't 2253 * intend to test. 2254 * </pre> 2255 * 2256 * <code> 2257 * .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED]; 2258 * </code> 2259 */ setDestination(com.google.cloud.networkmanagement.v1beta1.Endpoint value)2260 public Builder setDestination(com.google.cloud.networkmanagement.v1beta1.Endpoint value) { 2261 if (destinationBuilder_ == null) { 2262 if (value == null) { 2263 throw new NullPointerException(); 2264 } 2265 destination_ = value; 2266 } else { 2267 destinationBuilder_.setMessage(value); 2268 } 2269 bitField0_ |= 0x00000008; 2270 onChanged(); 2271 return this; 2272 } 2273 /** 2274 * 2275 * 2276 * <pre> 2277 * Required. Destination specification of the Connectivity Test. 2278 * You can use a combination of destination IP address, Compute Engine 2279 * VM instance, or VPC network to uniquely identify the destination 2280 * location. 2281 * Even if the destination IP address is not unique, the source IP 2282 * location is unique. Usually, the analysis can infer the destination 2283 * endpoint from route information. 2284 * If the destination you specify is a VM instance and the instance has 2285 * multiple network interfaces, then you must also specify either 2286 * a destination IP address or VPC network to identify the destination 2287 * interface. 2288 * A reachability analysis proceeds even if the destination location is 2289 * ambiguous. However, the result can include endpoints that you don't 2290 * intend to test. 2291 * </pre> 2292 * 2293 * <code> 2294 * .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED]; 2295 * </code> 2296 */ setDestination( com.google.cloud.networkmanagement.v1beta1.Endpoint.Builder builderForValue)2297 public Builder setDestination( 2298 com.google.cloud.networkmanagement.v1beta1.Endpoint.Builder builderForValue) { 2299 if (destinationBuilder_ == null) { 2300 destination_ = builderForValue.build(); 2301 } else { 2302 destinationBuilder_.setMessage(builderForValue.build()); 2303 } 2304 bitField0_ |= 0x00000008; 2305 onChanged(); 2306 return this; 2307 } 2308 /** 2309 * 2310 * 2311 * <pre> 2312 * Required. Destination specification of the Connectivity Test. 2313 * You can use a combination of destination IP address, Compute Engine 2314 * VM instance, or VPC network to uniquely identify the destination 2315 * location. 2316 * Even if the destination IP address is not unique, the source IP 2317 * location is unique. Usually, the analysis can infer the destination 2318 * endpoint from route information. 2319 * If the destination you specify is a VM instance and the instance has 2320 * multiple network interfaces, then you must also specify either 2321 * a destination IP address or VPC network to identify the destination 2322 * interface. 2323 * A reachability analysis proceeds even if the destination location is 2324 * ambiguous. However, the result can include endpoints that you don't 2325 * intend to test. 2326 * </pre> 2327 * 2328 * <code> 2329 * .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED]; 2330 * </code> 2331 */ mergeDestination(com.google.cloud.networkmanagement.v1beta1.Endpoint value)2332 public Builder mergeDestination(com.google.cloud.networkmanagement.v1beta1.Endpoint value) { 2333 if (destinationBuilder_ == null) { 2334 if (((bitField0_ & 0x00000008) != 0) 2335 && destination_ != null 2336 && destination_ 2337 != com.google.cloud.networkmanagement.v1beta1.Endpoint.getDefaultInstance()) { 2338 getDestinationBuilder().mergeFrom(value); 2339 } else { 2340 destination_ = value; 2341 } 2342 } else { 2343 destinationBuilder_.mergeFrom(value); 2344 } 2345 bitField0_ |= 0x00000008; 2346 onChanged(); 2347 return this; 2348 } 2349 /** 2350 * 2351 * 2352 * <pre> 2353 * Required. Destination specification of the Connectivity Test. 2354 * You can use a combination of destination IP address, Compute Engine 2355 * VM instance, or VPC network to uniquely identify the destination 2356 * location. 2357 * Even if the destination IP address is not unique, the source IP 2358 * location is unique. Usually, the analysis can infer the destination 2359 * endpoint from route information. 2360 * If the destination you specify is a VM instance and the instance has 2361 * multiple network interfaces, then you must also specify either 2362 * a destination IP address or VPC network to identify the destination 2363 * interface. 2364 * A reachability analysis proceeds even if the destination location is 2365 * ambiguous. However, the result can include endpoints that you don't 2366 * intend to test. 2367 * </pre> 2368 * 2369 * <code> 2370 * .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED]; 2371 * </code> 2372 */ clearDestination()2373 public Builder clearDestination() { 2374 bitField0_ = (bitField0_ & ~0x00000008); 2375 destination_ = null; 2376 if (destinationBuilder_ != null) { 2377 destinationBuilder_.dispose(); 2378 destinationBuilder_ = null; 2379 } 2380 onChanged(); 2381 return this; 2382 } 2383 /** 2384 * 2385 * 2386 * <pre> 2387 * Required. Destination specification of the Connectivity Test. 2388 * You can use a combination of destination IP address, Compute Engine 2389 * VM instance, or VPC network to uniquely identify the destination 2390 * location. 2391 * Even if the destination IP address is not unique, the source IP 2392 * location is unique. Usually, the analysis can infer the destination 2393 * endpoint from route information. 2394 * If the destination you specify is a VM instance and the instance has 2395 * multiple network interfaces, then you must also specify either 2396 * a destination IP address or VPC network to identify the destination 2397 * interface. 2398 * A reachability analysis proceeds even if the destination location is 2399 * ambiguous. However, the result can include endpoints that you don't 2400 * intend to test. 2401 * </pre> 2402 * 2403 * <code> 2404 * .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED]; 2405 * </code> 2406 */ getDestinationBuilder()2407 public com.google.cloud.networkmanagement.v1beta1.Endpoint.Builder getDestinationBuilder() { 2408 bitField0_ |= 0x00000008; 2409 onChanged(); 2410 return getDestinationFieldBuilder().getBuilder(); 2411 } 2412 /** 2413 * 2414 * 2415 * <pre> 2416 * Required. Destination specification of the Connectivity Test. 2417 * You can use a combination of destination IP address, Compute Engine 2418 * VM instance, or VPC network to uniquely identify the destination 2419 * location. 2420 * Even if the destination IP address is not unique, the source IP 2421 * location is unique. Usually, the analysis can infer the destination 2422 * endpoint from route information. 2423 * If the destination you specify is a VM instance and the instance has 2424 * multiple network interfaces, then you must also specify either 2425 * a destination IP address or VPC network to identify the destination 2426 * interface. 2427 * A reachability analysis proceeds even if the destination location is 2428 * ambiguous. However, the result can include endpoints that you don't 2429 * intend to test. 2430 * </pre> 2431 * 2432 * <code> 2433 * .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED]; 2434 * </code> 2435 */ getDestinationOrBuilder()2436 public com.google.cloud.networkmanagement.v1beta1.EndpointOrBuilder getDestinationOrBuilder() { 2437 if (destinationBuilder_ != null) { 2438 return destinationBuilder_.getMessageOrBuilder(); 2439 } else { 2440 return destination_ == null 2441 ? com.google.cloud.networkmanagement.v1beta1.Endpoint.getDefaultInstance() 2442 : destination_; 2443 } 2444 } 2445 /** 2446 * 2447 * 2448 * <pre> 2449 * Required. Destination specification of the Connectivity Test. 2450 * You can use a combination of destination IP address, Compute Engine 2451 * VM instance, or VPC network to uniquely identify the destination 2452 * location. 2453 * Even if the destination IP address is not unique, the source IP 2454 * location is unique. Usually, the analysis can infer the destination 2455 * endpoint from route information. 2456 * If the destination you specify is a VM instance and the instance has 2457 * multiple network interfaces, then you must also specify either 2458 * a destination IP address or VPC network to identify the destination 2459 * interface. 2460 * A reachability analysis proceeds even if the destination location is 2461 * ambiguous. However, the result can include endpoints that you don't 2462 * intend to test. 2463 * </pre> 2464 * 2465 * <code> 2466 * .google.cloud.networkmanagement.v1beta1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED]; 2467 * </code> 2468 */ 2469 private com.google.protobuf.SingleFieldBuilderV3< 2470 com.google.cloud.networkmanagement.v1beta1.Endpoint, 2471 com.google.cloud.networkmanagement.v1beta1.Endpoint.Builder, 2472 com.google.cloud.networkmanagement.v1beta1.EndpointOrBuilder> getDestinationFieldBuilder()2473 getDestinationFieldBuilder() { 2474 if (destinationBuilder_ == null) { 2475 destinationBuilder_ = 2476 new com.google.protobuf.SingleFieldBuilderV3< 2477 com.google.cloud.networkmanagement.v1beta1.Endpoint, 2478 com.google.cloud.networkmanagement.v1beta1.Endpoint.Builder, 2479 com.google.cloud.networkmanagement.v1beta1.EndpointOrBuilder>( 2480 getDestination(), getParentForChildren(), isClean()); 2481 destination_ = null; 2482 } 2483 return destinationBuilder_; 2484 } 2485 2486 private java.lang.Object protocol_ = ""; 2487 /** 2488 * 2489 * 2490 * <pre> 2491 * IP Protocol of the test. When not provided, "TCP" is assumed. 2492 * </pre> 2493 * 2494 * <code>string protocol = 5;</code> 2495 * 2496 * @return The protocol. 2497 */ getProtocol()2498 public java.lang.String getProtocol() { 2499 java.lang.Object ref = protocol_; 2500 if (!(ref instanceof java.lang.String)) { 2501 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2502 java.lang.String s = bs.toStringUtf8(); 2503 protocol_ = s; 2504 return s; 2505 } else { 2506 return (java.lang.String) ref; 2507 } 2508 } 2509 /** 2510 * 2511 * 2512 * <pre> 2513 * IP Protocol of the test. When not provided, "TCP" is assumed. 2514 * </pre> 2515 * 2516 * <code>string protocol = 5;</code> 2517 * 2518 * @return The bytes for protocol. 2519 */ getProtocolBytes()2520 public com.google.protobuf.ByteString getProtocolBytes() { 2521 java.lang.Object ref = protocol_; 2522 if (ref instanceof String) { 2523 com.google.protobuf.ByteString b = 2524 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2525 protocol_ = b; 2526 return b; 2527 } else { 2528 return (com.google.protobuf.ByteString) ref; 2529 } 2530 } 2531 /** 2532 * 2533 * 2534 * <pre> 2535 * IP Protocol of the test. When not provided, "TCP" is assumed. 2536 * </pre> 2537 * 2538 * <code>string protocol = 5;</code> 2539 * 2540 * @param value The protocol to set. 2541 * @return This builder for chaining. 2542 */ setProtocol(java.lang.String value)2543 public Builder setProtocol(java.lang.String value) { 2544 if (value == null) { 2545 throw new NullPointerException(); 2546 } 2547 protocol_ = value; 2548 bitField0_ |= 0x00000010; 2549 onChanged(); 2550 return this; 2551 } 2552 /** 2553 * 2554 * 2555 * <pre> 2556 * IP Protocol of the test. When not provided, "TCP" is assumed. 2557 * </pre> 2558 * 2559 * <code>string protocol = 5;</code> 2560 * 2561 * @return This builder for chaining. 2562 */ clearProtocol()2563 public Builder clearProtocol() { 2564 protocol_ = getDefaultInstance().getProtocol(); 2565 bitField0_ = (bitField0_ & ~0x00000010); 2566 onChanged(); 2567 return this; 2568 } 2569 /** 2570 * 2571 * 2572 * <pre> 2573 * IP Protocol of the test. When not provided, "TCP" is assumed. 2574 * </pre> 2575 * 2576 * <code>string protocol = 5;</code> 2577 * 2578 * @param value The bytes for protocol to set. 2579 * @return This builder for chaining. 2580 */ setProtocolBytes(com.google.protobuf.ByteString value)2581 public Builder setProtocolBytes(com.google.protobuf.ByteString value) { 2582 if (value == null) { 2583 throw new NullPointerException(); 2584 } 2585 checkByteStringIsUtf8(value); 2586 protocol_ = value; 2587 bitField0_ |= 0x00000010; 2588 onChanged(); 2589 return this; 2590 } 2591 2592 private com.google.protobuf.LazyStringList relatedProjects_ = 2593 com.google.protobuf.LazyStringArrayList.EMPTY; 2594 ensureRelatedProjectsIsMutable()2595 private void ensureRelatedProjectsIsMutable() { 2596 if (!((bitField0_ & 0x00000020) != 0)) { 2597 relatedProjects_ = new com.google.protobuf.LazyStringArrayList(relatedProjects_); 2598 bitField0_ |= 0x00000020; 2599 } 2600 } 2601 /** 2602 * 2603 * 2604 * <pre> 2605 * Other projects that may be relevant for reachability analysis. 2606 * This is applicable to scenarios where a test can cross project boundaries. 2607 * </pre> 2608 * 2609 * <code>repeated string related_projects = 6;</code> 2610 * 2611 * @return A list containing the relatedProjects. 2612 */ getRelatedProjectsList()2613 public com.google.protobuf.ProtocolStringList getRelatedProjectsList() { 2614 return relatedProjects_.getUnmodifiableView(); 2615 } 2616 /** 2617 * 2618 * 2619 * <pre> 2620 * Other projects that may be relevant for reachability analysis. 2621 * This is applicable to scenarios where a test can cross project boundaries. 2622 * </pre> 2623 * 2624 * <code>repeated string related_projects = 6;</code> 2625 * 2626 * @return The count of relatedProjects. 2627 */ getRelatedProjectsCount()2628 public int getRelatedProjectsCount() { 2629 return relatedProjects_.size(); 2630 } 2631 /** 2632 * 2633 * 2634 * <pre> 2635 * Other projects that may be relevant for reachability analysis. 2636 * This is applicable to scenarios where a test can cross project boundaries. 2637 * </pre> 2638 * 2639 * <code>repeated string related_projects = 6;</code> 2640 * 2641 * @param index The index of the element to return. 2642 * @return The relatedProjects at the given index. 2643 */ getRelatedProjects(int index)2644 public java.lang.String getRelatedProjects(int index) { 2645 return relatedProjects_.get(index); 2646 } 2647 /** 2648 * 2649 * 2650 * <pre> 2651 * Other projects that may be relevant for reachability analysis. 2652 * This is applicable to scenarios where a test can cross project boundaries. 2653 * </pre> 2654 * 2655 * <code>repeated string related_projects = 6;</code> 2656 * 2657 * @param index The index of the value to return. 2658 * @return The bytes of the relatedProjects at the given index. 2659 */ getRelatedProjectsBytes(int index)2660 public com.google.protobuf.ByteString getRelatedProjectsBytes(int index) { 2661 return relatedProjects_.getByteString(index); 2662 } 2663 /** 2664 * 2665 * 2666 * <pre> 2667 * Other projects that may be relevant for reachability analysis. 2668 * This is applicable to scenarios where a test can cross project boundaries. 2669 * </pre> 2670 * 2671 * <code>repeated string related_projects = 6;</code> 2672 * 2673 * @param index The index to set the value at. 2674 * @param value The relatedProjects to set. 2675 * @return This builder for chaining. 2676 */ setRelatedProjects(int index, java.lang.String value)2677 public Builder setRelatedProjects(int index, java.lang.String value) { 2678 if (value == null) { 2679 throw new NullPointerException(); 2680 } 2681 ensureRelatedProjectsIsMutable(); 2682 relatedProjects_.set(index, value); 2683 onChanged(); 2684 return this; 2685 } 2686 /** 2687 * 2688 * 2689 * <pre> 2690 * Other projects that may be relevant for reachability analysis. 2691 * This is applicable to scenarios where a test can cross project boundaries. 2692 * </pre> 2693 * 2694 * <code>repeated string related_projects = 6;</code> 2695 * 2696 * @param value The relatedProjects to add. 2697 * @return This builder for chaining. 2698 */ addRelatedProjects(java.lang.String value)2699 public Builder addRelatedProjects(java.lang.String value) { 2700 if (value == null) { 2701 throw new NullPointerException(); 2702 } 2703 ensureRelatedProjectsIsMutable(); 2704 relatedProjects_.add(value); 2705 onChanged(); 2706 return this; 2707 } 2708 /** 2709 * 2710 * 2711 * <pre> 2712 * Other projects that may be relevant for reachability analysis. 2713 * This is applicable to scenarios where a test can cross project boundaries. 2714 * </pre> 2715 * 2716 * <code>repeated string related_projects = 6;</code> 2717 * 2718 * @param values The relatedProjects to add. 2719 * @return This builder for chaining. 2720 */ addAllRelatedProjects(java.lang.Iterable<java.lang.String> values)2721 public Builder addAllRelatedProjects(java.lang.Iterable<java.lang.String> values) { 2722 ensureRelatedProjectsIsMutable(); 2723 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relatedProjects_); 2724 onChanged(); 2725 return this; 2726 } 2727 /** 2728 * 2729 * 2730 * <pre> 2731 * Other projects that may be relevant for reachability analysis. 2732 * This is applicable to scenarios where a test can cross project boundaries. 2733 * </pre> 2734 * 2735 * <code>repeated string related_projects = 6;</code> 2736 * 2737 * @return This builder for chaining. 2738 */ clearRelatedProjects()2739 public Builder clearRelatedProjects() { 2740 relatedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY; 2741 bitField0_ = (bitField0_ & ~0x00000020); 2742 onChanged(); 2743 return this; 2744 } 2745 /** 2746 * 2747 * 2748 * <pre> 2749 * Other projects that may be relevant for reachability analysis. 2750 * This is applicable to scenarios where a test can cross project boundaries. 2751 * </pre> 2752 * 2753 * <code>repeated string related_projects = 6;</code> 2754 * 2755 * @param value The bytes of the relatedProjects to add. 2756 * @return This builder for chaining. 2757 */ addRelatedProjectsBytes(com.google.protobuf.ByteString value)2758 public Builder addRelatedProjectsBytes(com.google.protobuf.ByteString value) { 2759 if (value == null) { 2760 throw new NullPointerException(); 2761 } 2762 checkByteStringIsUtf8(value); 2763 ensureRelatedProjectsIsMutable(); 2764 relatedProjects_.add(value); 2765 onChanged(); 2766 return this; 2767 } 2768 2769 private java.lang.Object displayName_ = ""; 2770 /** 2771 * 2772 * 2773 * <pre> 2774 * Output only. The display name of a Connectivity Test. 2775 * </pre> 2776 * 2777 * <code>string display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2778 * 2779 * @return The displayName. 2780 */ getDisplayName()2781 public java.lang.String getDisplayName() { 2782 java.lang.Object ref = displayName_; 2783 if (!(ref instanceof java.lang.String)) { 2784 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2785 java.lang.String s = bs.toStringUtf8(); 2786 displayName_ = s; 2787 return s; 2788 } else { 2789 return (java.lang.String) ref; 2790 } 2791 } 2792 /** 2793 * 2794 * 2795 * <pre> 2796 * Output only. The display name of a Connectivity Test. 2797 * </pre> 2798 * 2799 * <code>string display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2800 * 2801 * @return The bytes for displayName. 2802 */ getDisplayNameBytes()2803 public com.google.protobuf.ByteString getDisplayNameBytes() { 2804 java.lang.Object ref = displayName_; 2805 if (ref instanceof String) { 2806 com.google.protobuf.ByteString b = 2807 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2808 displayName_ = b; 2809 return b; 2810 } else { 2811 return (com.google.protobuf.ByteString) ref; 2812 } 2813 } 2814 /** 2815 * 2816 * 2817 * <pre> 2818 * Output only. The display name of a Connectivity Test. 2819 * </pre> 2820 * 2821 * <code>string display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2822 * 2823 * @param value The displayName to set. 2824 * @return This builder for chaining. 2825 */ setDisplayName(java.lang.String value)2826 public Builder setDisplayName(java.lang.String value) { 2827 if (value == null) { 2828 throw new NullPointerException(); 2829 } 2830 displayName_ = value; 2831 bitField0_ |= 0x00000040; 2832 onChanged(); 2833 return this; 2834 } 2835 /** 2836 * 2837 * 2838 * <pre> 2839 * Output only. The display name of a Connectivity Test. 2840 * </pre> 2841 * 2842 * <code>string display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2843 * 2844 * @return This builder for chaining. 2845 */ clearDisplayName()2846 public Builder clearDisplayName() { 2847 displayName_ = getDefaultInstance().getDisplayName(); 2848 bitField0_ = (bitField0_ & ~0x00000040); 2849 onChanged(); 2850 return this; 2851 } 2852 /** 2853 * 2854 * 2855 * <pre> 2856 * Output only. The display name of a Connectivity Test. 2857 * </pre> 2858 * 2859 * <code>string display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2860 * 2861 * @param value The bytes for displayName to set. 2862 * @return This builder for chaining. 2863 */ setDisplayNameBytes(com.google.protobuf.ByteString value)2864 public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { 2865 if (value == null) { 2866 throw new NullPointerException(); 2867 } 2868 checkByteStringIsUtf8(value); 2869 displayName_ = value; 2870 bitField0_ |= 0x00000040; 2871 onChanged(); 2872 return this; 2873 } 2874 2875 private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_; 2876 internalGetLabels()2877 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() { 2878 if (labels_ == null) { 2879 return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); 2880 } 2881 return labels_; 2882 } 2883 2884 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableLabels()2885 internalGetMutableLabels() { 2886 if (labels_ == null) { 2887 labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); 2888 } 2889 if (!labels_.isMutable()) { 2890 labels_ = labels_.copy(); 2891 } 2892 bitField0_ |= 0x00000080; 2893 onChanged(); 2894 return labels_; 2895 } 2896 getLabelsCount()2897 public int getLabelsCount() { 2898 return internalGetLabels().getMap().size(); 2899 } 2900 /** 2901 * 2902 * 2903 * <pre> 2904 * Resource labels to represent user-provided metadata. 2905 * </pre> 2906 * 2907 * <code>map<string, string> labels = 8;</code> 2908 */ 2909 @java.lang.Override containsLabels(java.lang.String key)2910 public boolean containsLabels(java.lang.String key) { 2911 if (key == null) { 2912 throw new NullPointerException("map key"); 2913 } 2914 return internalGetLabels().getMap().containsKey(key); 2915 } 2916 /** Use {@link #getLabelsMap()} instead. */ 2917 @java.lang.Override 2918 @java.lang.Deprecated getLabels()2919 public java.util.Map<java.lang.String, java.lang.String> getLabels() { 2920 return getLabelsMap(); 2921 } 2922 /** 2923 * 2924 * 2925 * <pre> 2926 * Resource labels to represent user-provided metadata. 2927 * </pre> 2928 * 2929 * <code>map<string, string> labels = 8;</code> 2930 */ 2931 @java.lang.Override getLabelsMap()2932 public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { 2933 return internalGetLabels().getMap(); 2934 } 2935 /** 2936 * 2937 * 2938 * <pre> 2939 * Resource labels to represent user-provided metadata. 2940 * </pre> 2941 * 2942 * <code>map<string, string> labels = 8;</code> 2943 */ 2944 @java.lang.Override getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)2945 public /* nullable */ java.lang.String getLabelsOrDefault( 2946 java.lang.String key, 2947 /* nullable */ 2948 java.lang.String defaultValue) { 2949 if (key == null) { 2950 throw new NullPointerException("map key"); 2951 } 2952 java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); 2953 return map.containsKey(key) ? map.get(key) : defaultValue; 2954 } 2955 /** 2956 * 2957 * 2958 * <pre> 2959 * Resource labels to represent user-provided metadata. 2960 * </pre> 2961 * 2962 * <code>map<string, string> labels = 8;</code> 2963 */ 2964 @java.lang.Override getLabelsOrThrow(java.lang.String key)2965 public java.lang.String getLabelsOrThrow(java.lang.String key) { 2966 if (key == null) { 2967 throw new NullPointerException("map key"); 2968 } 2969 java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); 2970 if (!map.containsKey(key)) { 2971 throw new java.lang.IllegalArgumentException(); 2972 } 2973 return map.get(key); 2974 } 2975 clearLabels()2976 public Builder clearLabels() { 2977 bitField0_ = (bitField0_ & ~0x00000080); 2978 internalGetMutableLabels().getMutableMap().clear(); 2979 return this; 2980 } 2981 /** 2982 * 2983 * 2984 * <pre> 2985 * Resource labels to represent user-provided metadata. 2986 * </pre> 2987 * 2988 * <code>map<string, string> labels = 8;</code> 2989 */ removeLabels(java.lang.String key)2990 public Builder removeLabels(java.lang.String key) { 2991 if (key == null) { 2992 throw new NullPointerException("map key"); 2993 } 2994 internalGetMutableLabels().getMutableMap().remove(key); 2995 return this; 2996 } 2997 /** Use alternate mutation accessors instead. */ 2998 @java.lang.Deprecated getMutableLabels()2999 public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() { 3000 bitField0_ |= 0x00000080; 3001 return internalGetMutableLabels().getMutableMap(); 3002 } 3003 /** 3004 * 3005 * 3006 * <pre> 3007 * Resource labels to represent user-provided metadata. 3008 * </pre> 3009 * 3010 * <code>map<string, string> labels = 8;</code> 3011 */ putLabels(java.lang.String key, java.lang.String value)3012 public Builder putLabels(java.lang.String key, java.lang.String value) { 3013 if (key == null) { 3014 throw new NullPointerException("map key"); 3015 } 3016 if (value == null) { 3017 throw new NullPointerException("map value"); 3018 } 3019 internalGetMutableLabels().getMutableMap().put(key, value); 3020 bitField0_ |= 0x00000080; 3021 return this; 3022 } 3023 /** 3024 * 3025 * 3026 * <pre> 3027 * Resource labels to represent user-provided metadata. 3028 * </pre> 3029 * 3030 * <code>map<string, string> labels = 8;</code> 3031 */ putAllLabels(java.util.Map<java.lang.String, java.lang.String> values)3032 public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) { 3033 internalGetMutableLabels().getMutableMap().putAll(values); 3034 bitField0_ |= 0x00000080; 3035 return this; 3036 } 3037 3038 private com.google.protobuf.Timestamp createTime_; 3039 private com.google.protobuf.SingleFieldBuilderV3< 3040 com.google.protobuf.Timestamp, 3041 com.google.protobuf.Timestamp.Builder, 3042 com.google.protobuf.TimestampOrBuilder> 3043 createTimeBuilder_; 3044 /** 3045 * 3046 * 3047 * <pre> 3048 * Output only. The time the test was created. 3049 * </pre> 3050 * 3051 * <code> 3052 * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3053 * </code> 3054 * 3055 * @return Whether the createTime field is set. 3056 */ hasCreateTime()3057 public boolean hasCreateTime() { 3058 return ((bitField0_ & 0x00000100) != 0); 3059 } 3060 /** 3061 * 3062 * 3063 * <pre> 3064 * Output only. The time the test was created. 3065 * </pre> 3066 * 3067 * <code> 3068 * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3069 * </code> 3070 * 3071 * @return The createTime. 3072 */ getCreateTime()3073 public com.google.protobuf.Timestamp getCreateTime() { 3074 if (createTimeBuilder_ == null) { 3075 return createTime_ == null 3076 ? com.google.protobuf.Timestamp.getDefaultInstance() 3077 : createTime_; 3078 } else { 3079 return createTimeBuilder_.getMessage(); 3080 } 3081 } 3082 /** 3083 * 3084 * 3085 * <pre> 3086 * Output only. The time the test was created. 3087 * </pre> 3088 * 3089 * <code> 3090 * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3091 * </code> 3092 */ setCreateTime(com.google.protobuf.Timestamp value)3093 public Builder setCreateTime(com.google.protobuf.Timestamp value) { 3094 if (createTimeBuilder_ == null) { 3095 if (value == null) { 3096 throw new NullPointerException(); 3097 } 3098 createTime_ = value; 3099 } else { 3100 createTimeBuilder_.setMessage(value); 3101 } 3102 bitField0_ |= 0x00000100; 3103 onChanged(); 3104 return this; 3105 } 3106 /** 3107 * 3108 * 3109 * <pre> 3110 * Output only. The time the test was created. 3111 * </pre> 3112 * 3113 * <code> 3114 * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3115 * </code> 3116 */ setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)3117 public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { 3118 if (createTimeBuilder_ == null) { 3119 createTime_ = builderForValue.build(); 3120 } else { 3121 createTimeBuilder_.setMessage(builderForValue.build()); 3122 } 3123 bitField0_ |= 0x00000100; 3124 onChanged(); 3125 return this; 3126 } 3127 /** 3128 * 3129 * 3130 * <pre> 3131 * Output only. The time the test was created. 3132 * </pre> 3133 * 3134 * <code> 3135 * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3136 * </code> 3137 */ mergeCreateTime(com.google.protobuf.Timestamp value)3138 public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { 3139 if (createTimeBuilder_ == null) { 3140 if (((bitField0_ & 0x00000100) != 0) 3141 && createTime_ != null 3142 && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 3143 getCreateTimeBuilder().mergeFrom(value); 3144 } else { 3145 createTime_ = value; 3146 } 3147 } else { 3148 createTimeBuilder_.mergeFrom(value); 3149 } 3150 bitField0_ |= 0x00000100; 3151 onChanged(); 3152 return this; 3153 } 3154 /** 3155 * 3156 * 3157 * <pre> 3158 * Output only. The time the test was created. 3159 * </pre> 3160 * 3161 * <code> 3162 * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3163 * </code> 3164 */ clearCreateTime()3165 public Builder clearCreateTime() { 3166 bitField0_ = (bitField0_ & ~0x00000100); 3167 createTime_ = null; 3168 if (createTimeBuilder_ != null) { 3169 createTimeBuilder_.dispose(); 3170 createTimeBuilder_ = null; 3171 } 3172 onChanged(); 3173 return this; 3174 } 3175 /** 3176 * 3177 * 3178 * <pre> 3179 * Output only. The time the test was created. 3180 * </pre> 3181 * 3182 * <code> 3183 * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3184 * </code> 3185 */ getCreateTimeBuilder()3186 public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { 3187 bitField0_ |= 0x00000100; 3188 onChanged(); 3189 return getCreateTimeFieldBuilder().getBuilder(); 3190 } 3191 /** 3192 * 3193 * 3194 * <pre> 3195 * Output only. The time the test was created. 3196 * </pre> 3197 * 3198 * <code> 3199 * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3200 * </code> 3201 */ getCreateTimeOrBuilder()3202 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 3203 if (createTimeBuilder_ != null) { 3204 return createTimeBuilder_.getMessageOrBuilder(); 3205 } else { 3206 return createTime_ == null 3207 ? com.google.protobuf.Timestamp.getDefaultInstance() 3208 : createTime_; 3209 } 3210 } 3211 /** 3212 * 3213 * 3214 * <pre> 3215 * Output only. The time the test was created. 3216 * </pre> 3217 * 3218 * <code> 3219 * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3220 * </code> 3221 */ 3222 private com.google.protobuf.SingleFieldBuilderV3< 3223 com.google.protobuf.Timestamp, 3224 com.google.protobuf.Timestamp.Builder, 3225 com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder()3226 getCreateTimeFieldBuilder() { 3227 if (createTimeBuilder_ == null) { 3228 createTimeBuilder_ = 3229 new com.google.protobuf.SingleFieldBuilderV3< 3230 com.google.protobuf.Timestamp, 3231 com.google.protobuf.Timestamp.Builder, 3232 com.google.protobuf.TimestampOrBuilder>( 3233 getCreateTime(), getParentForChildren(), isClean()); 3234 createTime_ = null; 3235 } 3236 return createTimeBuilder_; 3237 } 3238 3239 private com.google.protobuf.Timestamp updateTime_; 3240 private com.google.protobuf.SingleFieldBuilderV3< 3241 com.google.protobuf.Timestamp, 3242 com.google.protobuf.Timestamp.Builder, 3243 com.google.protobuf.TimestampOrBuilder> 3244 updateTimeBuilder_; 3245 /** 3246 * 3247 * 3248 * <pre> 3249 * Output only. The time the test's configuration was updated. 3250 * </pre> 3251 * 3252 * <code> 3253 * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3254 * </code> 3255 * 3256 * @return Whether the updateTime field is set. 3257 */ hasUpdateTime()3258 public boolean hasUpdateTime() { 3259 return ((bitField0_ & 0x00000200) != 0); 3260 } 3261 /** 3262 * 3263 * 3264 * <pre> 3265 * Output only. The time the test's configuration was updated. 3266 * </pre> 3267 * 3268 * <code> 3269 * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3270 * </code> 3271 * 3272 * @return The updateTime. 3273 */ getUpdateTime()3274 public com.google.protobuf.Timestamp getUpdateTime() { 3275 if (updateTimeBuilder_ == null) { 3276 return updateTime_ == null 3277 ? com.google.protobuf.Timestamp.getDefaultInstance() 3278 : updateTime_; 3279 } else { 3280 return updateTimeBuilder_.getMessage(); 3281 } 3282 } 3283 /** 3284 * 3285 * 3286 * <pre> 3287 * Output only. The time the test's configuration was updated. 3288 * </pre> 3289 * 3290 * <code> 3291 * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3292 * </code> 3293 */ setUpdateTime(com.google.protobuf.Timestamp value)3294 public Builder setUpdateTime(com.google.protobuf.Timestamp value) { 3295 if (updateTimeBuilder_ == null) { 3296 if (value == null) { 3297 throw new NullPointerException(); 3298 } 3299 updateTime_ = value; 3300 } else { 3301 updateTimeBuilder_.setMessage(value); 3302 } 3303 bitField0_ |= 0x00000200; 3304 onChanged(); 3305 return this; 3306 } 3307 /** 3308 * 3309 * 3310 * <pre> 3311 * Output only. The time the test's configuration was updated. 3312 * </pre> 3313 * 3314 * <code> 3315 * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3316 * </code> 3317 */ setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)3318 public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { 3319 if (updateTimeBuilder_ == null) { 3320 updateTime_ = builderForValue.build(); 3321 } else { 3322 updateTimeBuilder_.setMessage(builderForValue.build()); 3323 } 3324 bitField0_ |= 0x00000200; 3325 onChanged(); 3326 return this; 3327 } 3328 /** 3329 * 3330 * 3331 * <pre> 3332 * Output only. The time the test's configuration was updated. 3333 * </pre> 3334 * 3335 * <code> 3336 * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3337 * </code> 3338 */ mergeUpdateTime(com.google.protobuf.Timestamp value)3339 public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { 3340 if (updateTimeBuilder_ == null) { 3341 if (((bitField0_ & 0x00000200) != 0) 3342 && updateTime_ != null 3343 && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 3344 getUpdateTimeBuilder().mergeFrom(value); 3345 } else { 3346 updateTime_ = value; 3347 } 3348 } else { 3349 updateTimeBuilder_.mergeFrom(value); 3350 } 3351 bitField0_ |= 0x00000200; 3352 onChanged(); 3353 return this; 3354 } 3355 /** 3356 * 3357 * 3358 * <pre> 3359 * Output only. The time the test's configuration was updated. 3360 * </pre> 3361 * 3362 * <code> 3363 * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3364 * </code> 3365 */ clearUpdateTime()3366 public Builder clearUpdateTime() { 3367 bitField0_ = (bitField0_ & ~0x00000200); 3368 updateTime_ = null; 3369 if (updateTimeBuilder_ != null) { 3370 updateTimeBuilder_.dispose(); 3371 updateTimeBuilder_ = null; 3372 } 3373 onChanged(); 3374 return this; 3375 } 3376 /** 3377 * 3378 * 3379 * <pre> 3380 * Output only. The time the test's configuration was updated. 3381 * </pre> 3382 * 3383 * <code> 3384 * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3385 * </code> 3386 */ getUpdateTimeBuilder()3387 public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { 3388 bitField0_ |= 0x00000200; 3389 onChanged(); 3390 return getUpdateTimeFieldBuilder().getBuilder(); 3391 } 3392 /** 3393 * 3394 * 3395 * <pre> 3396 * Output only. The time the test's configuration was updated. 3397 * </pre> 3398 * 3399 * <code> 3400 * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3401 * </code> 3402 */ getUpdateTimeOrBuilder()3403 public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 3404 if (updateTimeBuilder_ != null) { 3405 return updateTimeBuilder_.getMessageOrBuilder(); 3406 } else { 3407 return updateTime_ == null 3408 ? com.google.protobuf.Timestamp.getDefaultInstance() 3409 : updateTime_; 3410 } 3411 } 3412 /** 3413 * 3414 * 3415 * <pre> 3416 * Output only. The time the test's configuration was updated. 3417 * </pre> 3418 * 3419 * <code> 3420 * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3421 * </code> 3422 */ 3423 private com.google.protobuf.SingleFieldBuilderV3< 3424 com.google.protobuf.Timestamp, 3425 com.google.protobuf.Timestamp.Builder, 3426 com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder()3427 getUpdateTimeFieldBuilder() { 3428 if (updateTimeBuilder_ == null) { 3429 updateTimeBuilder_ = 3430 new com.google.protobuf.SingleFieldBuilderV3< 3431 com.google.protobuf.Timestamp, 3432 com.google.protobuf.Timestamp.Builder, 3433 com.google.protobuf.TimestampOrBuilder>( 3434 getUpdateTime(), getParentForChildren(), isClean()); 3435 updateTime_ = null; 3436 } 3437 return updateTimeBuilder_; 3438 } 3439 3440 private com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachabilityDetails_; 3441 private com.google.protobuf.SingleFieldBuilderV3< 3442 com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails, 3443 com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails.Builder, 3444 com.google.cloud.networkmanagement.v1beta1.ReachabilityDetailsOrBuilder> 3445 reachabilityDetailsBuilder_; 3446 /** 3447 * 3448 * 3449 * <pre> 3450 * Output only. The reachability details of this test from the latest run. 3451 * The details are updated when creating a new test, updating an 3452 * existing test, or triggering a one-time rerun of an existing test. 3453 * </pre> 3454 * 3455 * <code> 3456 * .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3457 * </code> 3458 * 3459 * @return Whether the reachabilityDetails field is set. 3460 */ hasReachabilityDetails()3461 public boolean hasReachabilityDetails() { 3462 return ((bitField0_ & 0x00000400) != 0); 3463 } 3464 /** 3465 * 3466 * 3467 * <pre> 3468 * Output only. The reachability details of this test from the latest run. 3469 * The details are updated when creating a new test, updating an 3470 * existing test, or triggering a one-time rerun of an existing test. 3471 * </pre> 3472 * 3473 * <code> 3474 * .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3475 * </code> 3476 * 3477 * @return The reachabilityDetails. 3478 */ getReachabilityDetails()3479 public com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails getReachabilityDetails() { 3480 if (reachabilityDetailsBuilder_ == null) { 3481 return reachabilityDetails_ == null 3482 ? com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails.getDefaultInstance() 3483 : reachabilityDetails_; 3484 } else { 3485 return reachabilityDetailsBuilder_.getMessage(); 3486 } 3487 } 3488 /** 3489 * 3490 * 3491 * <pre> 3492 * Output only. The reachability details of this test from the latest run. 3493 * The details are updated when creating a new test, updating an 3494 * existing test, or triggering a one-time rerun of an existing test. 3495 * </pre> 3496 * 3497 * <code> 3498 * .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3499 * </code> 3500 */ setReachabilityDetails( com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails value)3501 public Builder setReachabilityDetails( 3502 com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails value) { 3503 if (reachabilityDetailsBuilder_ == null) { 3504 if (value == null) { 3505 throw new NullPointerException(); 3506 } 3507 reachabilityDetails_ = value; 3508 } else { 3509 reachabilityDetailsBuilder_.setMessage(value); 3510 } 3511 bitField0_ |= 0x00000400; 3512 onChanged(); 3513 return this; 3514 } 3515 /** 3516 * 3517 * 3518 * <pre> 3519 * Output only. The reachability details of this test from the latest run. 3520 * The details are updated when creating a new test, updating an 3521 * existing test, or triggering a one-time rerun of an existing test. 3522 * </pre> 3523 * 3524 * <code> 3525 * .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3526 * </code> 3527 */ setReachabilityDetails( com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails.Builder builderForValue)3528 public Builder setReachabilityDetails( 3529 com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails.Builder builderForValue) { 3530 if (reachabilityDetailsBuilder_ == null) { 3531 reachabilityDetails_ = builderForValue.build(); 3532 } else { 3533 reachabilityDetailsBuilder_.setMessage(builderForValue.build()); 3534 } 3535 bitField0_ |= 0x00000400; 3536 onChanged(); 3537 return this; 3538 } 3539 /** 3540 * 3541 * 3542 * <pre> 3543 * Output only. The reachability details of this test from the latest run. 3544 * The details are updated when creating a new test, updating an 3545 * existing test, or triggering a one-time rerun of an existing test. 3546 * </pre> 3547 * 3548 * <code> 3549 * .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3550 * </code> 3551 */ mergeReachabilityDetails( com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails value)3552 public Builder mergeReachabilityDetails( 3553 com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails value) { 3554 if (reachabilityDetailsBuilder_ == null) { 3555 if (((bitField0_ & 0x00000400) != 0) 3556 && reachabilityDetails_ != null 3557 && reachabilityDetails_ 3558 != com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails 3559 .getDefaultInstance()) { 3560 getReachabilityDetailsBuilder().mergeFrom(value); 3561 } else { 3562 reachabilityDetails_ = value; 3563 } 3564 } else { 3565 reachabilityDetailsBuilder_.mergeFrom(value); 3566 } 3567 bitField0_ |= 0x00000400; 3568 onChanged(); 3569 return this; 3570 } 3571 /** 3572 * 3573 * 3574 * <pre> 3575 * Output only. The reachability details of this test from the latest run. 3576 * The details are updated when creating a new test, updating an 3577 * existing test, or triggering a one-time rerun of an existing test. 3578 * </pre> 3579 * 3580 * <code> 3581 * .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3582 * </code> 3583 */ clearReachabilityDetails()3584 public Builder clearReachabilityDetails() { 3585 bitField0_ = (bitField0_ & ~0x00000400); 3586 reachabilityDetails_ = null; 3587 if (reachabilityDetailsBuilder_ != null) { 3588 reachabilityDetailsBuilder_.dispose(); 3589 reachabilityDetailsBuilder_ = null; 3590 } 3591 onChanged(); 3592 return this; 3593 } 3594 /** 3595 * 3596 * 3597 * <pre> 3598 * Output only. The reachability details of this test from the latest run. 3599 * The details are updated when creating a new test, updating an 3600 * existing test, or triggering a one-time rerun of an existing test. 3601 * </pre> 3602 * 3603 * <code> 3604 * .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3605 * </code> 3606 */ 3607 public com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails.Builder getReachabilityDetailsBuilder()3608 getReachabilityDetailsBuilder() { 3609 bitField0_ |= 0x00000400; 3610 onChanged(); 3611 return getReachabilityDetailsFieldBuilder().getBuilder(); 3612 } 3613 /** 3614 * 3615 * 3616 * <pre> 3617 * Output only. The reachability details of this test from the latest run. 3618 * The details are updated when creating a new test, updating an 3619 * existing test, or triggering a one-time rerun of an existing test. 3620 * </pre> 3621 * 3622 * <code> 3623 * .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3624 * </code> 3625 */ 3626 public com.google.cloud.networkmanagement.v1beta1.ReachabilityDetailsOrBuilder getReachabilityDetailsOrBuilder()3627 getReachabilityDetailsOrBuilder() { 3628 if (reachabilityDetailsBuilder_ != null) { 3629 return reachabilityDetailsBuilder_.getMessageOrBuilder(); 3630 } else { 3631 return reachabilityDetails_ == null 3632 ? com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails.getDefaultInstance() 3633 : reachabilityDetails_; 3634 } 3635 } 3636 /** 3637 * 3638 * 3639 * <pre> 3640 * Output only. The reachability details of this test from the latest run. 3641 * The details are updated when creating a new test, updating an 3642 * existing test, or triggering a one-time rerun of an existing test. 3643 * </pre> 3644 * 3645 * <code> 3646 * .google.cloud.networkmanagement.v1beta1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3647 * </code> 3648 */ 3649 private com.google.protobuf.SingleFieldBuilderV3< 3650 com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails, 3651 com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails.Builder, 3652 com.google.cloud.networkmanagement.v1beta1.ReachabilityDetailsOrBuilder> getReachabilityDetailsFieldBuilder()3653 getReachabilityDetailsFieldBuilder() { 3654 if (reachabilityDetailsBuilder_ == null) { 3655 reachabilityDetailsBuilder_ = 3656 new com.google.protobuf.SingleFieldBuilderV3< 3657 com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails, 3658 com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails.Builder, 3659 com.google.cloud.networkmanagement.v1beta1.ReachabilityDetailsOrBuilder>( 3660 getReachabilityDetails(), getParentForChildren(), isClean()); 3661 reachabilityDetails_ = null; 3662 } 3663 return reachabilityDetailsBuilder_; 3664 } 3665 3666 private com.google.cloud.networkmanagement.v1beta1.ProbingDetails probingDetails_; 3667 private com.google.protobuf.SingleFieldBuilderV3< 3668 com.google.cloud.networkmanagement.v1beta1.ProbingDetails, 3669 com.google.cloud.networkmanagement.v1beta1.ProbingDetails.Builder, 3670 com.google.cloud.networkmanagement.v1beta1.ProbingDetailsOrBuilder> 3671 probingDetailsBuilder_; 3672 /** 3673 * 3674 * 3675 * <pre> 3676 * Output only. The probing details of this test from the latest run, present 3677 * for applicable tests only. The details are updated when creating a new 3678 * test, updating an existing test, or triggering a one-time rerun of an 3679 * existing test. 3680 * </pre> 3681 * 3682 * <code> 3683 * .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3684 * </code> 3685 * 3686 * @return Whether the probingDetails field is set. 3687 */ hasProbingDetails()3688 public boolean hasProbingDetails() { 3689 return ((bitField0_ & 0x00000800) != 0); 3690 } 3691 /** 3692 * 3693 * 3694 * <pre> 3695 * Output only. The probing details of this test from the latest run, present 3696 * for applicable tests only. The details are updated when creating a new 3697 * test, updating an existing test, or triggering a one-time rerun of an 3698 * existing test. 3699 * </pre> 3700 * 3701 * <code> 3702 * .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3703 * </code> 3704 * 3705 * @return The probingDetails. 3706 */ getProbingDetails()3707 public com.google.cloud.networkmanagement.v1beta1.ProbingDetails getProbingDetails() { 3708 if (probingDetailsBuilder_ == null) { 3709 return probingDetails_ == null 3710 ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.getDefaultInstance() 3711 : probingDetails_; 3712 } else { 3713 return probingDetailsBuilder_.getMessage(); 3714 } 3715 } 3716 /** 3717 * 3718 * 3719 * <pre> 3720 * Output only. The probing details of this test from the latest run, present 3721 * for applicable tests only. The details are updated when creating a new 3722 * test, updating an existing test, or triggering a one-time rerun of an 3723 * existing test. 3724 * </pre> 3725 * 3726 * <code> 3727 * .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3728 * </code> 3729 */ setProbingDetails( com.google.cloud.networkmanagement.v1beta1.ProbingDetails value)3730 public Builder setProbingDetails( 3731 com.google.cloud.networkmanagement.v1beta1.ProbingDetails value) { 3732 if (probingDetailsBuilder_ == null) { 3733 if (value == null) { 3734 throw new NullPointerException(); 3735 } 3736 probingDetails_ = value; 3737 } else { 3738 probingDetailsBuilder_.setMessage(value); 3739 } 3740 bitField0_ |= 0x00000800; 3741 onChanged(); 3742 return this; 3743 } 3744 /** 3745 * 3746 * 3747 * <pre> 3748 * Output only. The probing details of this test from the latest run, present 3749 * for applicable tests only. The details are updated when creating a new 3750 * test, updating an existing test, or triggering a one-time rerun of an 3751 * existing test. 3752 * </pre> 3753 * 3754 * <code> 3755 * .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3756 * </code> 3757 */ setProbingDetails( com.google.cloud.networkmanagement.v1beta1.ProbingDetails.Builder builderForValue)3758 public Builder setProbingDetails( 3759 com.google.cloud.networkmanagement.v1beta1.ProbingDetails.Builder builderForValue) { 3760 if (probingDetailsBuilder_ == null) { 3761 probingDetails_ = builderForValue.build(); 3762 } else { 3763 probingDetailsBuilder_.setMessage(builderForValue.build()); 3764 } 3765 bitField0_ |= 0x00000800; 3766 onChanged(); 3767 return this; 3768 } 3769 /** 3770 * 3771 * 3772 * <pre> 3773 * Output only. The probing details of this test from the latest run, present 3774 * for applicable tests only. The details are updated when creating a new 3775 * test, updating an existing test, or triggering a one-time rerun of an 3776 * existing test. 3777 * </pre> 3778 * 3779 * <code> 3780 * .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3781 * </code> 3782 */ mergeProbingDetails( com.google.cloud.networkmanagement.v1beta1.ProbingDetails value)3783 public Builder mergeProbingDetails( 3784 com.google.cloud.networkmanagement.v1beta1.ProbingDetails value) { 3785 if (probingDetailsBuilder_ == null) { 3786 if (((bitField0_ & 0x00000800) != 0) 3787 && probingDetails_ != null 3788 && probingDetails_ 3789 != com.google.cloud.networkmanagement.v1beta1.ProbingDetails.getDefaultInstance()) { 3790 getProbingDetailsBuilder().mergeFrom(value); 3791 } else { 3792 probingDetails_ = value; 3793 } 3794 } else { 3795 probingDetailsBuilder_.mergeFrom(value); 3796 } 3797 bitField0_ |= 0x00000800; 3798 onChanged(); 3799 return this; 3800 } 3801 /** 3802 * 3803 * 3804 * <pre> 3805 * Output only. The probing details of this test from the latest run, present 3806 * for applicable tests only. The details are updated when creating a new 3807 * test, updating an existing test, or triggering a one-time rerun of an 3808 * existing test. 3809 * </pre> 3810 * 3811 * <code> 3812 * .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3813 * </code> 3814 */ clearProbingDetails()3815 public Builder clearProbingDetails() { 3816 bitField0_ = (bitField0_ & ~0x00000800); 3817 probingDetails_ = null; 3818 if (probingDetailsBuilder_ != null) { 3819 probingDetailsBuilder_.dispose(); 3820 probingDetailsBuilder_ = null; 3821 } 3822 onChanged(); 3823 return this; 3824 } 3825 /** 3826 * 3827 * 3828 * <pre> 3829 * Output only. The probing details of this test from the latest run, present 3830 * for applicable tests only. The details are updated when creating a new 3831 * test, updating an existing test, or triggering a one-time rerun of an 3832 * existing test. 3833 * </pre> 3834 * 3835 * <code> 3836 * .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3837 * </code> 3838 */ 3839 public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.Builder getProbingDetailsBuilder()3840 getProbingDetailsBuilder() { 3841 bitField0_ |= 0x00000800; 3842 onChanged(); 3843 return getProbingDetailsFieldBuilder().getBuilder(); 3844 } 3845 /** 3846 * 3847 * 3848 * <pre> 3849 * Output only. The probing details of this test from the latest run, present 3850 * for applicable tests only. The details are updated when creating a new 3851 * test, updating an existing test, or triggering a one-time rerun of an 3852 * existing test. 3853 * </pre> 3854 * 3855 * <code> 3856 * .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3857 * </code> 3858 */ 3859 public com.google.cloud.networkmanagement.v1beta1.ProbingDetailsOrBuilder getProbingDetailsOrBuilder()3860 getProbingDetailsOrBuilder() { 3861 if (probingDetailsBuilder_ != null) { 3862 return probingDetailsBuilder_.getMessageOrBuilder(); 3863 } else { 3864 return probingDetails_ == null 3865 ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.getDefaultInstance() 3866 : probingDetails_; 3867 } 3868 } 3869 /** 3870 * 3871 * 3872 * <pre> 3873 * Output only. The probing details of this test from the latest run, present 3874 * for applicable tests only. The details are updated when creating a new 3875 * test, updating an existing test, or triggering a one-time rerun of an 3876 * existing test. 3877 * </pre> 3878 * 3879 * <code> 3880 * .google.cloud.networkmanagement.v1beta1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3881 * </code> 3882 */ 3883 private com.google.protobuf.SingleFieldBuilderV3< 3884 com.google.cloud.networkmanagement.v1beta1.ProbingDetails, 3885 com.google.cloud.networkmanagement.v1beta1.ProbingDetails.Builder, 3886 com.google.cloud.networkmanagement.v1beta1.ProbingDetailsOrBuilder> getProbingDetailsFieldBuilder()3887 getProbingDetailsFieldBuilder() { 3888 if (probingDetailsBuilder_ == null) { 3889 probingDetailsBuilder_ = 3890 new com.google.protobuf.SingleFieldBuilderV3< 3891 com.google.cloud.networkmanagement.v1beta1.ProbingDetails, 3892 com.google.cloud.networkmanagement.v1beta1.ProbingDetails.Builder, 3893 com.google.cloud.networkmanagement.v1beta1.ProbingDetailsOrBuilder>( 3894 getProbingDetails(), getParentForChildren(), isClean()); 3895 probingDetails_ = null; 3896 } 3897 return probingDetailsBuilder_; 3898 } 3899 3900 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3901 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 3902 return super.setUnknownFields(unknownFields); 3903 } 3904 3905 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3906 public final Builder mergeUnknownFields( 3907 final com.google.protobuf.UnknownFieldSet unknownFields) { 3908 return super.mergeUnknownFields(unknownFields); 3909 } 3910 3911 // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.ConnectivityTest) 3912 } 3913 3914 // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.ConnectivityTest) 3915 private static final com.google.cloud.networkmanagement.v1beta1.ConnectivityTest DEFAULT_INSTANCE; 3916 3917 static { 3918 DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1beta1.ConnectivityTest(); 3919 } 3920 getDefaultInstance()3921 public static com.google.cloud.networkmanagement.v1beta1.ConnectivityTest getDefaultInstance() { 3922 return DEFAULT_INSTANCE; 3923 } 3924 3925 private static final com.google.protobuf.Parser<ConnectivityTest> PARSER = 3926 new com.google.protobuf.AbstractParser<ConnectivityTest>() { 3927 @java.lang.Override 3928 public ConnectivityTest parsePartialFrom( 3929 com.google.protobuf.CodedInputStream input, 3930 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3931 throws com.google.protobuf.InvalidProtocolBufferException { 3932 Builder builder = newBuilder(); 3933 try { 3934 builder.mergeFrom(input, extensionRegistry); 3935 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3936 throw e.setUnfinishedMessage(builder.buildPartial()); 3937 } catch (com.google.protobuf.UninitializedMessageException e) { 3938 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 3939 } catch (java.io.IOException e) { 3940 throw new com.google.protobuf.InvalidProtocolBufferException(e) 3941 .setUnfinishedMessage(builder.buildPartial()); 3942 } 3943 return builder.buildPartial(); 3944 } 3945 }; 3946 parser()3947 public static com.google.protobuf.Parser<ConnectivityTest> parser() { 3948 return PARSER; 3949 } 3950 3951 @java.lang.Override getParserForType()3952 public com.google.protobuf.Parser<ConnectivityTest> getParserForType() { 3953 return PARSER; 3954 } 3955 3956 @java.lang.Override getDefaultInstanceForType()3957 public com.google.cloud.networkmanagement.v1beta1.ConnectivityTest getDefaultInstanceForType() { 3958 return DEFAULT_INSTANCE; 3959 } 3960 } 3961