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