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/securitycenter/v1/indicator.proto 18 19 package com.google.cloud.securitycenter.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Represents what's commonly known as an _indicator of compromise_ (IoC) in 26 * computer forensics. This is an artifact observed on a network or in an 27 * operating system that, with high confidence, indicates a computer intrusion. 28 * For more information, see [Indicator of 29 * compromise](https://en.wikipedia.org/wiki/Indicator_of_compromise). 30 * </pre> 31 * 32 * Protobuf type {@code google.cloud.securitycenter.v1.Indicator} 33 */ 34 public final class Indicator extends com.google.protobuf.GeneratedMessageV3 35 implements 36 // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Indicator) 37 IndicatorOrBuilder { 38 private static final long serialVersionUID = 0L; 39 // Use Indicator.newBuilder() to construct. Indicator(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)40 private Indicator(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 41 super(builder); 42 } 43 Indicator()44 private Indicator() { 45 ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; 46 domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; 47 signatures_ = java.util.Collections.emptyList(); 48 uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; 49 } 50 51 @java.lang.Override 52 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)53 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 54 return new Indicator(); 55 } 56 57 @java.lang.Override getUnknownFields()58 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 59 return this.unknownFields; 60 } 61 getDescriptor()62 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 63 return com.google.cloud.securitycenter.v1.IndicatorProto 64 .internal_static_google_cloud_securitycenter_v1_Indicator_descriptor; 65 } 66 67 @java.lang.Override 68 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()69 internalGetFieldAccessorTable() { 70 return com.google.cloud.securitycenter.v1.IndicatorProto 71 .internal_static_google_cloud_securitycenter_v1_Indicator_fieldAccessorTable 72 .ensureFieldAccessorsInitialized( 73 com.google.cloud.securitycenter.v1.Indicator.class, 74 com.google.cloud.securitycenter.v1.Indicator.Builder.class); 75 } 76 77 public interface ProcessSignatureOrBuilder 78 extends 79 // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Indicator.ProcessSignature) 80 com.google.protobuf.MessageOrBuilder { 81 82 /** 83 * 84 * 85 * <pre> 86 * Signature indicating that a binary family was matched. 87 * </pre> 88 * 89 * <code> 90 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature memory_hash_signature = 6; 91 * </code> 92 * 93 * @return Whether the memoryHashSignature field is set. 94 */ hasMemoryHashSignature()95 boolean hasMemoryHashSignature(); 96 /** 97 * 98 * 99 * <pre> 100 * Signature indicating that a binary family was matched. 101 * </pre> 102 * 103 * <code> 104 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature memory_hash_signature = 6; 105 * </code> 106 * 107 * @return The memoryHashSignature. 108 */ 109 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature getMemoryHashSignature()110 getMemoryHashSignature(); 111 /** 112 * 113 * 114 * <pre> 115 * Signature indicating that a binary family was matched. 116 * </pre> 117 * 118 * <code> 119 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature memory_hash_signature = 6; 120 * </code> 121 */ 122 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignatureOrBuilder getMemoryHashSignatureOrBuilder()123 getMemoryHashSignatureOrBuilder(); 124 125 /** 126 * 127 * 128 * <pre> 129 * Signature indicating that a YARA rule was matched. 130 * </pre> 131 * 132 * <code> 133 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature yara_rule_signature = 7; 134 * </code> 135 * 136 * @return Whether the yaraRuleSignature field is set. 137 */ hasYaraRuleSignature()138 boolean hasYaraRuleSignature(); 139 /** 140 * 141 * 142 * <pre> 143 * Signature indicating that a YARA rule was matched. 144 * </pre> 145 * 146 * <code> 147 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature yara_rule_signature = 7; 148 * </code> 149 * 150 * @return The yaraRuleSignature. 151 */ 152 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature getYaraRuleSignature()153 getYaraRuleSignature(); 154 /** 155 * 156 * 157 * <pre> 158 * Signature indicating that a YARA rule was matched. 159 * </pre> 160 * 161 * <code> 162 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature yara_rule_signature = 7; 163 * </code> 164 */ 165 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignatureOrBuilder getYaraRuleSignatureOrBuilder()166 getYaraRuleSignatureOrBuilder(); 167 168 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.SignatureCase getSignatureCase()169 getSignatureCase(); 170 } 171 /** 172 * 173 * 174 * <pre> 175 * Indicates what signature matched this process. 176 * </pre> 177 * 178 * Protobuf type {@code google.cloud.securitycenter.v1.Indicator.ProcessSignature} 179 */ 180 public static final class ProcessSignature extends com.google.protobuf.GeneratedMessageV3 181 implements 182 // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Indicator.ProcessSignature) 183 ProcessSignatureOrBuilder { 184 private static final long serialVersionUID = 0L; 185 // Use ProcessSignature.newBuilder() to construct. ProcessSignature(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)186 private ProcessSignature(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 187 super(builder); 188 } 189 ProcessSignature()190 private ProcessSignature() {} 191 192 @java.lang.Override 193 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)194 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 195 return new ProcessSignature(); 196 } 197 198 @java.lang.Override getUnknownFields()199 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 200 return this.unknownFields; 201 } 202 getDescriptor()203 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 204 return com.google.cloud.securitycenter.v1.IndicatorProto 205 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_descriptor; 206 } 207 208 @java.lang.Override 209 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()210 internalGetFieldAccessorTable() { 211 return com.google.cloud.securitycenter.v1.IndicatorProto 212 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_fieldAccessorTable 213 .ensureFieldAccessorsInitialized( 214 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.class, 215 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.Builder.class); 216 } 217 218 public interface MemoryHashSignatureOrBuilder 219 extends 220 // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature) 221 com.google.protobuf.MessageOrBuilder { 222 223 /** 224 * 225 * 226 * <pre> 227 * The binary family. 228 * </pre> 229 * 230 * <code>string binary_family = 1;</code> 231 * 232 * @return The binaryFamily. 233 */ getBinaryFamily()234 java.lang.String getBinaryFamily(); 235 /** 236 * 237 * 238 * <pre> 239 * The binary family. 240 * </pre> 241 * 242 * <code>string binary_family = 1;</code> 243 * 244 * @return The bytes for binaryFamily. 245 */ getBinaryFamilyBytes()246 com.google.protobuf.ByteString getBinaryFamilyBytes(); 247 248 /** 249 * 250 * 251 * <pre> 252 * The list of memory hash detections contributing to the binary family 253 * match. 254 * </pre> 255 * 256 * <code> 257 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 258 * </code> 259 */ 260 java.util.List< 261 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 262 .Detection> getDetectionsList()263 getDetectionsList(); 264 /** 265 * 266 * 267 * <pre> 268 * The list of memory hash detections contributing to the binary family 269 * match. 270 * </pre> 271 * 272 * <code> 273 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 274 * </code> 275 */ 276 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection getDetections(int index)277 getDetections(int index); 278 /** 279 * 280 * 281 * <pre> 282 * The list of memory hash detections contributing to the binary family 283 * match. 284 * </pre> 285 * 286 * <code> 287 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 288 * </code> 289 */ getDetectionsCount()290 int getDetectionsCount(); 291 /** 292 * 293 * 294 * <pre> 295 * The list of memory hash detections contributing to the binary family 296 * match. 297 * </pre> 298 * 299 * <code> 300 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 301 * </code> 302 */ 303 java.util.List< 304 ? extends 305 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 306 .DetectionOrBuilder> getDetectionsOrBuilderList()307 getDetectionsOrBuilderList(); 308 /** 309 * 310 * 311 * <pre> 312 * The list of memory hash detections contributing to the binary family 313 * match. 314 * </pre> 315 * 316 * <code> 317 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 318 * </code> 319 */ 320 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 321 .DetectionOrBuilder getDetectionsOrBuilder(int index)322 getDetectionsOrBuilder(int index); 323 } 324 /** 325 * 326 * 327 * <pre> 328 * A signature corresponding to memory page hashes. 329 * </pre> 330 * 331 * Protobuf type {@code 332 * google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature} 333 */ 334 public static final class MemoryHashSignature extends com.google.protobuf.GeneratedMessageV3 335 implements 336 // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature) 337 MemoryHashSignatureOrBuilder { 338 private static final long serialVersionUID = 0L; 339 // Use MemoryHashSignature.newBuilder() to construct. MemoryHashSignature(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)340 private MemoryHashSignature(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 341 super(builder); 342 } 343 MemoryHashSignature()344 private MemoryHashSignature() { 345 binaryFamily_ = ""; 346 detections_ = java.util.Collections.emptyList(); 347 } 348 349 @java.lang.Override 350 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)351 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 352 return new MemoryHashSignature(); 353 } 354 355 @java.lang.Override getUnknownFields()356 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 357 return this.unknownFields; 358 } 359 getDescriptor()360 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 361 return com.google.cloud.securitycenter.v1.IndicatorProto 362 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_MemoryHashSignature_descriptor; 363 } 364 365 @java.lang.Override 366 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()367 internalGetFieldAccessorTable() { 368 return com.google.cloud.securitycenter.v1.IndicatorProto 369 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_MemoryHashSignature_fieldAccessorTable 370 .ensureFieldAccessorsInitialized( 371 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 372 .class, 373 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 374 .Builder.class); 375 } 376 377 public interface DetectionOrBuilder 378 extends 379 // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection) 380 com.google.protobuf.MessageOrBuilder { 381 382 /** 383 * 384 * 385 * <pre> 386 * The name of the binary associated with the memory hash 387 * signature detection. 388 * </pre> 389 * 390 * <code>string binary = 2;</code> 391 * 392 * @return The binary. 393 */ getBinary()394 java.lang.String getBinary(); 395 /** 396 * 397 * 398 * <pre> 399 * The name of the binary associated with the memory hash 400 * signature detection. 401 * </pre> 402 * 403 * <code>string binary = 2;</code> 404 * 405 * @return The bytes for binary. 406 */ getBinaryBytes()407 com.google.protobuf.ByteString getBinaryBytes(); 408 409 /** 410 * 411 * 412 * <pre> 413 * The percentage of memory page hashes in the signature 414 * that were matched. 415 * </pre> 416 * 417 * <code>double percent_pages_matched = 3;</code> 418 * 419 * @return The percentPagesMatched. 420 */ getPercentPagesMatched()421 double getPercentPagesMatched(); 422 } 423 /** 424 * 425 * 426 * <pre> 427 * Memory hash detection contributing to the binary family match. 428 * </pre> 429 * 430 * Protobuf type {@code 431 * google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection} 432 */ 433 public static final class Detection extends com.google.protobuf.GeneratedMessageV3 434 implements 435 // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection) 436 DetectionOrBuilder { 437 private static final long serialVersionUID = 0L; 438 // Use Detection.newBuilder() to construct. Detection(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)439 private Detection(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 440 super(builder); 441 } 442 Detection()443 private Detection() { 444 binary_ = ""; 445 } 446 447 @java.lang.Override 448 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)449 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 450 return new Detection(); 451 } 452 453 @java.lang.Override getUnknownFields()454 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 455 return this.unknownFields; 456 } 457 getDescriptor()458 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 459 return com.google.cloud.securitycenter.v1.IndicatorProto 460 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_MemoryHashSignature_Detection_descriptor; 461 } 462 463 @java.lang.Override 464 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()465 internalGetFieldAccessorTable() { 466 return com.google.cloud.securitycenter.v1.IndicatorProto 467 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_MemoryHashSignature_Detection_fieldAccessorTable 468 .ensureFieldAccessorsInitialized( 469 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 470 .Detection.class, 471 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 472 .Detection.Builder.class); 473 } 474 475 public static final int BINARY_FIELD_NUMBER = 2; 476 477 @SuppressWarnings("serial") 478 private volatile java.lang.Object binary_ = ""; 479 /** 480 * 481 * 482 * <pre> 483 * The name of the binary associated with the memory hash 484 * signature detection. 485 * </pre> 486 * 487 * <code>string binary = 2;</code> 488 * 489 * @return The binary. 490 */ 491 @java.lang.Override getBinary()492 public java.lang.String getBinary() { 493 java.lang.Object ref = binary_; 494 if (ref instanceof java.lang.String) { 495 return (java.lang.String) ref; 496 } else { 497 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 498 java.lang.String s = bs.toStringUtf8(); 499 binary_ = s; 500 return s; 501 } 502 } 503 /** 504 * 505 * 506 * <pre> 507 * The name of the binary associated with the memory hash 508 * signature detection. 509 * </pre> 510 * 511 * <code>string binary = 2;</code> 512 * 513 * @return The bytes for binary. 514 */ 515 @java.lang.Override getBinaryBytes()516 public com.google.protobuf.ByteString getBinaryBytes() { 517 java.lang.Object ref = binary_; 518 if (ref instanceof java.lang.String) { 519 com.google.protobuf.ByteString b = 520 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 521 binary_ = b; 522 return b; 523 } else { 524 return (com.google.protobuf.ByteString) ref; 525 } 526 } 527 528 public static final int PERCENT_PAGES_MATCHED_FIELD_NUMBER = 3; 529 private double percentPagesMatched_ = 0D; 530 /** 531 * 532 * 533 * <pre> 534 * The percentage of memory page hashes in the signature 535 * that were matched. 536 * </pre> 537 * 538 * <code>double percent_pages_matched = 3;</code> 539 * 540 * @return The percentPagesMatched. 541 */ 542 @java.lang.Override getPercentPagesMatched()543 public double getPercentPagesMatched() { 544 return percentPagesMatched_; 545 } 546 547 private byte memoizedIsInitialized = -1; 548 549 @java.lang.Override isInitialized()550 public final boolean isInitialized() { 551 byte isInitialized = memoizedIsInitialized; 552 if (isInitialized == 1) return true; 553 if (isInitialized == 0) return false; 554 555 memoizedIsInitialized = 1; 556 return true; 557 } 558 559 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)560 public void writeTo(com.google.protobuf.CodedOutputStream output) 561 throws java.io.IOException { 562 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(binary_)) { 563 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, binary_); 564 } 565 if (java.lang.Double.doubleToRawLongBits(percentPagesMatched_) != 0) { 566 output.writeDouble(3, percentPagesMatched_); 567 } 568 getUnknownFields().writeTo(output); 569 } 570 571 @java.lang.Override getSerializedSize()572 public int getSerializedSize() { 573 int size = memoizedSize; 574 if (size != -1) return size; 575 576 size = 0; 577 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(binary_)) { 578 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, binary_); 579 } 580 if (java.lang.Double.doubleToRawLongBits(percentPagesMatched_) != 0) { 581 size += 582 com.google.protobuf.CodedOutputStream.computeDoubleSize(3, percentPagesMatched_); 583 } 584 size += getUnknownFields().getSerializedSize(); 585 memoizedSize = size; 586 return size; 587 } 588 589 @java.lang.Override equals(final java.lang.Object obj)590 public boolean equals(final java.lang.Object obj) { 591 if (obj == this) { 592 return true; 593 } 594 if (!(obj 595 instanceof 596 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 597 .Detection)) { 598 return super.equals(obj); 599 } 600 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 601 .Detection 602 other = 603 (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 604 .Detection) 605 obj; 606 607 if (!getBinary().equals(other.getBinary())) return false; 608 if (java.lang.Double.doubleToLongBits(getPercentPagesMatched()) 609 != java.lang.Double.doubleToLongBits(other.getPercentPagesMatched())) return false; 610 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 611 return true; 612 } 613 614 @java.lang.Override hashCode()615 public int hashCode() { 616 if (memoizedHashCode != 0) { 617 return memoizedHashCode; 618 } 619 int hash = 41; 620 hash = (19 * hash) + getDescriptor().hashCode(); 621 hash = (37 * hash) + BINARY_FIELD_NUMBER; 622 hash = (53 * hash) + getBinary().hashCode(); 623 hash = (37 * hash) + PERCENT_PAGES_MATCHED_FIELD_NUMBER; 624 hash = 625 (53 * hash) 626 + com.google.protobuf.Internal.hashLong( 627 java.lang.Double.doubleToLongBits(getPercentPagesMatched())); 628 hash = (29 * hash) + getUnknownFields().hashCode(); 629 memoizedHashCode = hash; 630 return hash; 631 } 632 633 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 634 .MemoryHashSignature.Detection parseFrom(java.nio.ByteBuffer data)635 parseFrom(java.nio.ByteBuffer data) 636 throws com.google.protobuf.InvalidProtocolBufferException { 637 return PARSER.parseFrom(data); 638 } 639 640 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 641 .MemoryHashSignature.Detection parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)642 parseFrom( 643 java.nio.ByteBuffer data, 644 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 645 throws com.google.protobuf.InvalidProtocolBufferException { 646 return PARSER.parseFrom(data, extensionRegistry); 647 } 648 649 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 650 .MemoryHashSignature.Detection parseFrom(com.google.protobuf.ByteString data)651 parseFrom(com.google.protobuf.ByteString data) 652 throws com.google.protobuf.InvalidProtocolBufferException { 653 return PARSER.parseFrom(data); 654 } 655 656 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 657 .MemoryHashSignature.Detection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)658 parseFrom( 659 com.google.protobuf.ByteString data, 660 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 661 throws com.google.protobuf.InvalidProtocolBufferException { 662 return PARSER.parseFrom(data, extensionRegistry); 663 } 664 665 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 666 .MemoryHashSignature.Detection parseFrom(byte[] data)667 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { 668 return PARSER.parseFrom(data); 669 } 670 671 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 672 .MemoryHashSignature.Detection parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)673 parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 674 throws com.google.protobuf.InvalidProtocolBufferException { 675 return PARSER.parseFrom(data, extensionRegistry); 676 } 677 678 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 679 .MemoryHashSignature.Detection parseFrom(java.io.InputStream input)680 parseFrom(java.io.InputStream input) throws java.io.IOException { 681 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 682 } 683 684 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 685 .MemoryHashSignature.Detection parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)686 parseFrom( 687 java.io.InputStream input, 688 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 689 throws java.io.IOException { 690 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 691 PARSER, input, extensionRegistry); 692 } 693 694 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 695 .MemoryHashSignature.Detection parseDelimitedFrom(java.io.InputStream input)696 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { 697 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 698 PARSER, input); 699 } 700 701 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 702 .MemoryHashSignature.Detection parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)703 parseDelimitedFrom( 704 java.io.InputStream input, 705 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 706 throws java.io.IOException { 707 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 708 PARSER, input, extensionRegistry); 709 } 710 711 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 712 .MemoryHashSignature.Detection parseFrom(com.google.protobuf.CodedInputStream input)713 parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { 714 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 715 } 716 717 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 718 .MemoryHashSignature.Detection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)719 parseFrom( 720 com.google.protobuf.CodedInputStream input, 721 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 722 throws java.io.IOException { 723 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 724 PARSER, input, extensionRegistry); 725 } 726 727 @java.lang.Override newBuilderForType()728 public Builder newBuilderForType() { 729 return newBuilder(); 730 } 731 newBuilder()732 public static Builder newBuilder() { 733 return DEFAULT_INSTANCE.toBuilder(); 734 } 735 newBuilder( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature .Detection prototype)736 public static Builder newBuilder( 737 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 738 .Detection 739 prototype) { 740 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 741 } 742 743 @java.lang.Override toBuilder()744 public Builder toBuilder() { 745 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 746 } 747 748 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)749 protected Builder newBuilderForType( 750 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 751 Builder builder = new Builder(parent); 752 return builder; 753 } 754 /** 755 * 756 * 757 * <pre> 758 * Memory hash detection contributing to the binary family match. 759 * </pre> 760 * 761 * Protobuf type {@code 762 * google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection} 763 */ 764 public static final class Builder 765 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 766 implements 767 // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection) 768 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 769 .DetectionOrBuilder { getDescriptor()770 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 771 return com.google.cloud.securitycenter.v1.IndicatorProto 772 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_MemoryHashSignature_Detection_descriptor; 773 } 774 775 @java.lang.Override 776 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()777 internalGetFieldAccessorTable() { 778 return com.google.cloud.securitycenter.v1.IndicatorProto 779 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_MemoryHashSignature_Detection_fieldAccessorTable 780 .ensureFieldAccessorsInitialized( 781 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 782 .MemoryHashSignature.Detection.class, 783 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 784 .MemoryHashSignature.Detection.Builder.class); 785 } 786 787 // Construct using 788 // com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection.newBuilder() Builder()789 private Builder() {} 790 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)791 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 792 super(parent); 793 } 794 795 @java.lang.Override clear()796 public Builder clear() { 797 super.clear(); 798 bitField0_ = 0; 799 binary_ = ""; 800 percentPagesMatched_ = 0D; 801 return this; 802 } 803 804 @java.lang.Override getDescriptorForType()805 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 806 return com.google.cloud.securitycenter.v1.IndicatorProto 807 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_MemoryHashSignature_Detection_descriptor; 808 } 809 810 @java.lang.Override 811 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 812 .Detection getDefaultInstanceForType()813 getDefaultInstanceForType() { 814 return com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 815 .Detection.getDefaultInstance(); 816 } 817 818 @java.lang.Override 819 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 820 .Detection build()821 build() { 822 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 823 .Detection 824 result = buildPartial(); 825 if (!result.isInitialized()) { 826 throw newUninitializedMessageException(result); 827 } 828 return result; 829 } 830 831 @java.lang.Override 832 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 833 .Detection buildPartial()834 buildPartial() { 835 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 836 .Detection 837 result = 838 new com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 839 .MemoryHashSignature.Detection(this); 840 if (bitField0_ != 0) { 841 buildPartial0(result); 842 } 843 onBuilt(); 844 return result; 845 } 846 buildPartial0( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature .Detection result)847 private void buildPartial0( 848 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 849 .Detection 850 result) { 851 int from_bitField0_ = bitField0_; 852 if (((from_bitField0_ & 0x00000001) != 0)) { 853 result.binary_ = binary_; 854 } 855 if (((from_bitField0_ & 0x00000002) != 0)) { 856 result.percentPagesMatched_ = percentPagesMatched_; 857 } 858 } 859 860 @java.lang.Override clone()861 public Builder clone() { 862 return super.clone(); 863 } 864 865 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)866 public Builder setField( 867 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 868 return super.setField(field, value); 869 } 870 871 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)872 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 873 return super.clearField(field); 874 } 875 876 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)877 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 878 return super.clearOneof(oneof); 879 } 880 881 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)882 public Builder setRepeatedField( 883 com.google.protobuf.Descriptors.FieldDescriptor field, 884 int index, 885 java.lang.Object value) { 886 return super.setRepeatedField(field, index, value); 887 } 888 889 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)890 public Builder addRepeatedField( 891 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 892 return super.addRepeatedField(field, value); 893 } 894 895 @java.lang.Override mergeFrom(com.google.protobuf.Message other)896 public Builder mergeFrom(com.google.protobuf.Message other) { 897 if (other 898 instanceof 899 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 900 .Detection) { 901 return mergeFrom( 902 (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 903 .Detection) 904 other); 905 } else { 906 super.mergeFrom(other); 907 return this; 908 } 909 } 910 mergeFrom( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature .Detection other)911 public Builder mergeFrom( 912 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 913 .Detection 914 other) { 915 if (other 916 == com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 917 .Detection.getDefaultInstance()) return this; 918 if (!other.getBinary().isEmpty()) { 919 binary_ = other.binary_; 920 bitField0_ |= 0x00000001; 921 onChanged(); 922 } 923 if (other.getPercentPagesMatched() != 0D) { 924 setPercentPagesMatched(other.getPercentPagesMatched()); 925 } 926 this.mergeUnknownFields(other.getUnknownFields()); 927 onChanged(); 928 return this; 929 } 930 931 @java.lang.Override isInitialized()932 public final boolean isInitialized() { 933 return true; 934 } 935 936 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)937 public Builder mergeFrom( 938 com.google.protobuf.CodedInputStream input, 939 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 940 throws java.io.IOException { 941 if (extensionRegistry == null) { 942 throw new java.lang.NullPointerException(); 943 } 944 try { 945 boolean done = false; 946 while (!done) { 947 int tag = input.readTag(); 948 switch (tag) { 949 case 0: 950 done = true; 951 break; 952 case 18: 953 { 954 binary_ = input.readStringRequireUtf8(); 955 bitField0_ |= 0x00000001; 956 break; 957 } // case 18 958 case 25: 959 { 960 percentPagesMatched_ = input.readDouble(); 961 bitField0_ |= 0x00000002; 962 break; 963 } // case 25 964 default: 965 { 966 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 967 done = true; // was an endgroup tag 968 } 969 break; 970 } // default: 971 } // switch (tag) 972 } // while (!done) 973 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 974 throw e.unwrapIOException(); 975 } finally { 976 onChanged(); 977 } // finally 978 return this; 979 } 980 981 private int bitField0_; 982 983 private java.lang.Object binary_ = ""; 984 /** 985 * 986 * 987 * <pre> 988 * The name of the binary associated with the memory hash 989 * signature detection. 990 * </pre> 991 * 992 * <code>string binary = 2;</code> 993 * 994 * @return The binary. 995 */ getBinary()996 public java.lang.String getBinary() { 997 java.lang.Object ref = binary_; 998 if (!(ref instanceof java.lang.String)) { 999 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1000 java.lang.String s = bs.toStringUtf8(); 1001 binary_ = s; 1002 return s; 1003 } else { 1004 return (java.lang.String) ref; 1005 } 1006 } 1007 /** 1008 * 1009 * 1010 * <pre> 1011 * The name of the binary associated with the memory hash 1012 * signature detection. 1013 * </pre> 1014 * 1015 * <code>string binary = 2;</code> 1016 * 1017 * @return The bytes for binary. 1018 */ getBinaryBytes()1019 public com.google.protobuf.ByteString getBinaryBytes() { 1020 java.lang.Object ref = binary_; 1021 if (ref instanceof String) { 1022 com.google.protobuf.ByteString b = 1023 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1024 binary_ = b; 1025 return b; 1026 } else { 1027 return (com.google.protobuf.ByteString) ref; 1028 } 1029 } 1030 /** 1031 * 1032 * 1033 * <pre> 1034 * The name of the binary associated with the memory hash 1035 * signature detection. 1036 * </pre> 1037 * 1038 * <code>string binary = 2;</code> 1039 * 1040 * @param value The binary to set. 1041 * @return This builder for chaining. 1042 */ setBinary(java.lang.String value)1043 public Builder setBinary(java.lang.String value) { 1044 if (value == null) { 1045 throw new NullPointerException(); 1046 } 1047 binary_ = value; 1048 bitField0_ |= 0x00000001; 1049 onChanged(); 1050 return this; 1051 } 1052 /** 1053 * 1054 * 1055 * <pre> 1056 * The name of the binary associated with the memory hash 1057 * signature detection. 1058 * </pre> 1059 * 1060 * <code>string binary = 2;</code> 1061 * 1062 * @return This builder for chaining. 1063 */ clearBinary()1064 public Builder clearBinary() { 1065 binary_ = getDefaultInstance().getBinary(); 1066 bitField0_ = (bitField0_ & ~0x00000001); 1067 onChanged(); 1068 return this; 1069 } 1070 /** 1071 * 1072 * 1073 * <pre> 1074 * The name of the binary associated with the memory hash 1075 * signature detection. 1076 * </pre> 1077 * 1078 * <code>string binary = 2;</code> 1079 * 1080 * @param value The bytes for binary to set. 1081 * @return This builder for chaining. 1082 */ setBinaryBytes(com.google.protobuf.ByteString value)1083 public Builder setBinaryBytes(com.google.protobuf.ByteString value) { 1084 if (value == null) { 1085 throw new NullPointerException(); 1086 } 1087 checkByteStringIsUtf8(value); 1088 binary_ = value; 1089 bitField0_ |= 0x00000001; 1090 onChanged(); 1091 return this; 1092 } 1093 1094 private double percentPagesMatched_; 1095 /** 1096 * 1097 * 1098 * <pre> 1099 * The percentage of memory page hashes in the signature 1100 * that were matched. 1101 * </pre> 1102 * 1103 * <code>double percent_pages_matched = 3;</code> 1104 * 1105 * @return The percentPagesMatched. 1106 */ 1107 @java.lang.Override getPercentPagesMatched()1108 public double getPercentPagesMatched() { 1109 return percentPagesMatched_; 1110 } 1111 /** 1112 * 1113 * 1114 * <pre> 1115 * The percentage of memory page hashes in the signature 1116 * that were matched. 1117 * </pre> 1118 * 1119 * <code>double percent_pages_matched = 3;</code> 1120 * 1121 * @param value The percentPagesMatched to set. 1122 * @return This builder for chaining. 1123 */ setPercentPagesMatched(double value)1124 public Builder setPercentPagesMatched(double value) { 1125 1126 percentPagesMatched_ = value; 1127 bitField0_ |= 0x00000002; 1128 onChanged(); 1129 return this; 1130 } 1131 /** 1132 * 1133 * 1134 * <pre> 1135 * The percentage of memory page hashes in the signature 1136 * that were matched. 1137 * </pre> 1138 * 1139 * <code>double percent_pages_matched = 3;</code> 1140 * 1141 * @return This builder for chaining. 1142 */ clearPercentPagesMatched()1143 public Builder clearPercentPagesMatched() { 1144 bitField0_ = (bitField0_ & ~0x00000002); 1145 percentPagesMatched_ = 0D; 1146 onChanged(); 1147 return this; 1148 } 1149 1150 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1151 public final Builder setUnknownFields( 1152 final com.google.protobuf.UnknownFieldSet unknownFields) { 1153 return super.setUnknownFields(unknownFields); 1154 } 1155 1156 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1157 public final Builder mergeUnknownFields( 1158 final com.google.protobuf.UnknownFieldSet unknownFields) { 1159 return super.mergeUnknownFields(unknownFields); 1160 } 1161 1162 // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection) 1163 } 1164 1165 // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection) 1166 private static final com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 1167 .MemoryHashSignature.Detection 1168 DEFAULT_INSTANCE; 1169 1170 static { 1171 DEFAULT_INSTANCE = 1172 new com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1173 .Detection(); 1174 } 1175 1176 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 1177 .MemoryHashSignature.Detection getDefaultInstance()1178 getDefaultInstance() { 1179 return DEFAULT_INSTANCE; 1180 } 1181 1182 private static final com.google.protobuf.Parser<Detection> PARSER = 1183 new com.google.protobuf.AbstractParser<Detection>() { 1184 @java.lang.Override 1185 public Detection parsePartialFrom( 1186 com.google.protobuf.CodedInputStream input, 1187 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1188 throws com.google.protobuf.InvalidProtocolBufferException { 1189 Builder builder = newBuilder(); 1190 try { 1191 builder.mergeFrom(input, extensionRegistry); 1192 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1193 throw e.setUnfinishedMessage(builder.buildPartial()); 1194 } catch (com.google.protobuf.UninitializedMessageException e) { 1195 throw e.asInvalidProtocolBufferException() 1196 .setUnfinishedMessage(builder.buildPartial()); 1197 } catch (java.io.IOException e) { 1198 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1199 .setUnfinishedMessage(builder.buildPartial()); 1200 } 1201 return builder.buildPartial(); 1202 } 1203 }; 1204 parser()1205 public static com.google.protobuf.Parser<Detection> parser() { 1206 return PARSER; 1207 } 1208 1209 @java.lang.Override getParserForType()1210 public com.google.protobuf.Parser<Detection> getParserForType() { 1211 return PARSER; 1212 } 1213 1214 @java.lang.Override 1215 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1216 .Detection getDefaultInstanceForType()1217 getDefaultInstanceForType() { 1218 return DEFAULT_INSTANCE; 1219 } 1220 } 1221 1222 public static final int BINARY_FAMILY_FIELD_NUMBER = 1; 1223 1224 @SuppressWarnings("serial") 1225 private volatile java.lang.Object binaryFamily_ = ""; 1226 /** 1227 * 1228 * 1229 * <pre> 1230 * The binary family. 1231 * </pre> 1232 * 1233 * <code>string binary_family = 1;</code> 1234 * 1235 * @return The binaryFamily. 1236 */ 1237 @java.lang.Override getBinaryFamily()1238 public java.lang.String getBinaryFamily() { 1239 java.lang.Object ref = binaryFamily_; 1240 if (ref instanceof java.lang.String) { 1241 return (java.lang.String) ref; 1242 } else { 1243 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1244 java.lang.String s = bs.toStringUtf8(); 1245 binaryFamily_ = s; 1246 return s; 1247 } 1248 } 1249 /** 1250 * 1251 * 1252 * <pre> 1253 * The binary family. 1254 * </pre> 1255 * 1256 * <code>string binary_family = 1;</code> 1257 * 1258 * @return The bytes for binaryFamily. 1259 */ 1260 @java.lang.Override getBinaryFamilyBytes()1261 public com.google.protobuf.ByteString getBinaryFamilyBytes() { 1262 java.lang.Object ref = binaryFamily_; 1263 if (ref instanceof java.lang.String) { 1264 com.google.protobuf.ByteString b = 1265 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1266 binaryFamily_ = b; 1267 return b; 1268 } else { 1269 return (com.google.protobuf.ByteString) ref; 1270 } 1271 } 1272 1273 public static final int DETECTIONS_FIELD_NUMBER = 4; 1274 1275 @SuppressWarnings("serial") 1276 private java.util.List< 1277 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1278 .Detection> 1279 detections_; 1280 /** 1281 * 1282 * 1283 * <pre> 1284 * The list of memory hash detections contributing to the binary family 1285 * match. 1286 * </pre> 1287 * 1288 * <code> 1289 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 1290 * </code> 1291 */ 1292 @java.lang.Override 1293 public java.util.List< 1294 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1295 .Detection> getDetectionsList()1296 getDetectionsList() { 1297 return detections_; 1298 } 1299 /** 1300 * 1301 * 1302 * <pre> 1303 * The list of memory hash detections contributing to the binary family 1304 * match. 1305 * </pre> 1306 * 1307 * <code> 1308 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 1309 * </code> 1310 */ 1311 @java.lang.Override 1312 public java.util.List< 1313 ? extends 1314 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1315 .DetectionOrBuilder> getDetectionsOrBuilderList()1316 getDetectionsOrBuilderList() { 1317 return detections_; 1318 } 1319 /** 1320 * 1321 * 1322 * <pre> 1323 * The list of memory hash detections contributing to the binary family 1324 * match. 1325 * </pre> 1326 * 1327 * <code> 1328 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 1329 * </code> 1330 */ 1331 @java.lang.Override getDetectionsCount()1332 public int getDetectionsCount() { 1333 return detections_.size(); 1334 } 1335 /** 1336 * 1337 * 1338 * <pre> 1339 * The list of memory hash detections contributing to the binary family 1340 * match. 1341 * </pre> 1342 * 1343 * <code> 1344 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 1345 * </code> 1346 */ 1347 @java.lang.Override 1348 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1349 .Detection getDetections(int index)1350 getDetections(int index) { 1351 return detections_.get(index); 1352 } 1353 /** 1354 * 1355 * 1356 * <pre> 1357 * The list of memory hash detections contributing to the binary family 1358 * match. 1359 * </pre> 1360 * 1361 * <code> 1362 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 1363 * </code> 1364 */ 1365 @java.lang.Override 1366 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1367 .DetectionOrBuilder getDetectionsOrBuilder(int index)1368 getDetectionsOrBuilder(int index) { 1369 return detections_.get(index); 1370 } 1371 1372 private byte memoizedIsInitialized = -1; 1373 1374 @java.lang.Override isInitialized()1375 public final boolean isInitialized() { 1376 byte isInitialized = memoizedIsInitialized; 1377 if (isInitialized == 1) return true; 1378 if (isInitialized == 0) return false; 1379 1380 memoizedIsInitialized = 1; 1381 return true; 1382 } 1383 1384 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1385 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1386 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(binaryFamily_)) { 1387 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, binaryFamily_); 1388 } 1389 for (int i = 0; i < detections_.size(); i++) { 1390 output.writeMessage(4, detections_.get(i)); 1391 } 1392 getUnknownFields().writeTo(output); 1393 } 1394 1395 @java.lang.Override getSerializedSize()1396 public int getSerializedSize() { 1397 int size = memoizedSize; 1398 if (size != -1) return size; 1399 1400 size = 0; 1401 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(binaryFamily_)) { 1402 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, binaryFamily_); 1403 } 1404 for (int i = 0; i < detections_.size(); i++) { 1405 size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, detections_.get(i)); 1406 } 1407 size += getUnknownFields().getSerializedSize(); 1408 memoizedSize = size; 1409 return size; 1410 } 1411 1412 @java.lang.Override equals(final java.lang.Object obj)1413 public boolean equals(final java.lang.Object obj) { 1414 if (obj == this) { 1415 return true; 1416 } 1417 if (!(obj 1418 instanceof 1419 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature)) { 1420 return super.equals(obj); 1421 } 1422 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature other = 1423 (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature) obj; 1424 1425 if (!getBinaryFamily().equals(other.getBinaryFamily())) return false; 1426 if (!getDetectionsList().equals(other.getDetectionsList())) return false; 1427 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1428 return true; 1429 } 1430 1431 @java.lang.Override hashCode()1432 public int hashCode() { 1433 if (memoizedHashCode != 0) { 1434 return memoizedHashCode; 1435 } 1436 int hash = 41; 1437 hash = (19 * hash) + getDescriptor().hashCode(); 1438 hash = (37 * hash) + BINARY_FAMILY_FIELD_NUMBER; 1439 hash = (53 * hash) + getBinaryFamily().hashCode(); 1440 if (getDetectionsCount() > 0) { 1441 hash = (37 * hash) + DETECTIONS_FIELD_NUMBER; 1442 hash = (53 * hash) + getDetectionsList().hashCode(); 1443 } 1444 hash = (29 * hash) + getUnknownFields().hashCode(); 1445 memoizedHashCode = hash; 1446 return hash; 1447 } 1448 1449 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 1450 .MemoryHashSignature parseFrom(java.nio.ByteBuffer data)1451 parseFrom(java.nio.ByteBuffer data) 1452 throws com.google.protobuf.InvalidProtocolBufferException { 1453 return PARSER.parseFrom(data); 1454 } 1455 1456 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 1457 .MemoryHashSignature parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1458 parseFrom( 1459 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1460 throws com.google.protobuf.InvalidProtocolBufferException { 1461 return PARSER.parseFrom(data, extensionRegistry); 1462 } 1463 1464 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 1465 .MemoryHashSignature parseFrom(com.google.protobuf.ByteString data)1466 parseFrom(com.google.protobuf.ByteString data) 1467 throws com.google.protobuf.InvalidProtocolBufferException { 1468 return PARSER.parseFrom(data); 1469 } 1470 1471 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 1472 .MemoryHashSignature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1473 parseFrom( 1474 com.google.protobuf.ByteString data, 1475 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1476 throws com.google.protobuf.InvalidProtocolBufferException { 1477 return PARSER.parseFrom(data, extensionRegistry); 1478 } 1479 1480 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 1481 .MemoryHashSignature parseFrom(byte[] data)1482 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { 1483 return PARSER.parseFrom(data); 1484 } 1485 1486 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 1487 .MemoryHashSignature parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1488 parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1489 throws com.google.protobuf.InvalidProtocolBufferException { 1490 return PARSER.parseFrom(data, extensionRegistry); 1491 } 1492 1493 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 1494 .MemoryHashSignature parseFrom(java.io.InputStream input)1495 parseFrom(java.io.InputStream input) throws java.io.IOException { 1496 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1497 } 1498 1499 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 1500 .MemoryHashSignature parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1501 parseFrom( 1502 java.io.InputStream input, 1503 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1504 throws java.io.IOException { 1505 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1506 PARSER, input, extensionRegistry); 1507 } 1508 1509 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 1510 .MemoryHashSignature parseDelimitedFrom(java.io.InputStream input)1511 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { 1512 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 1513 } 1514 1515 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 1516 .MemoryHashSignature parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1517 parseDelimitedFrom( 1518 java.io.InputStream input, 1519 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1520 throws java.io.IOException { 1521 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 1522 PARSER, input, extensionRegistry); 1523 } 1524 1525 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 1526 .MemoryHashSignature parseFrom(com.google.protobuf.CodedInputStream input)1527 parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { 1528 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1529 } 1530 1531 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 1532 .MemoryHashSignature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1533 parseFrom( 1534 com.google.protobuf.CodedInputStream input, 1535 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1536 throws java.io.IOException { 1537 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1538 PARSER, input, extensionRegistry); 1539 } 1540 1541 @java.lang.Override newBuilderForType()1542 public Builder newBuilderForType() { 1543 return newBuilder(); 1544 } 1545 newBuilder()1546 public static Builder newBuilder() { 1547 return DEFAULT_INSTANCE.toBuilder(); 1548 } 1549 newBuilder( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature prototype)1550 public static Builder newBuilder( 1551 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1552 prototype) { 1553 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1554 } 1555 1556 @java.lang.Override toBuilder()1557 public Builder toBuilder() { 1558 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 1559 } 1560 1561 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1562 protected Builder newBuilderForType( 1563 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1564 Builder builder = new Builder(parent); 1565 return builder; 1566 } 1567 /** 1568 * 1569 * 1570 * <pre> 1571 * A signature corresponding to memory page hashes. 1572 * </pre> 1573 * 1574 * Protobuf type {@code 1575 * google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature} 1576 */ 1577 public static final class Builder 1578 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 1579 implements 1580 // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature) 1581 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 1582 .MemoryHashSignatureOrBuilder { getDescriptor()1583 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1584 return com.google.cloud.securitycenter.v1.IndicatorProto 1585 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_MemoryHashSignature_descriptor; 1586 } 1587 1588 @java.lang.Override 1589 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1590 internalGetFieldAccessorTable() { 1591 return com.google.cloud.securitycenter.v1.IndicatorProto 1592 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_MemoryHashSignature_fieldAccessorTable 1593 .ensureFieldAccessorsInitialized( 1594 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1595 .class, 1596 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1597 .Builder.class); 1598 } 1599 1600 // Construct using 1601 // com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.newBuilder() Builder()1602 private Builder() {} 1603 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1604 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1605 super(parent); 1606 } 1607 1608 @java.lang.Override clear()1609 public Builder clear() { 1610 super.clear(); 1611 bitField0_ = 0; 1612 binaryFamily_ = ""; 1613 if (detectionsBuilder_ == null) { 1614 detections_ = java.util.Collections.emptyList(); 1615 } else { 1616 detections_ = null; 1617 detectionsBuilder_.clear(); 1618 } 1619 bitField0_ = (bitField0_ & ~0x00000002); 1620 return this; 1621 } 1622 1623 @java.lang.Override getDescriptorForType()1624 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1625 return com.google.cloud.securitycenter.v1.IndicatorProto 1626 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_MemoryHashSignature_descriptor; 1627 } 1628 1629 @java.lang.Override 1630 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature getDefaultInstanceForType()1631 getDefaultInstanceForType() { 1632 return com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1633 .getDefaultInstance(); 1634 } 1635 1636 @java.lang.Override 1637 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature build()1638 build() { 1639 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature result = 1640 buildPartial(); 1641 if (!result.isInitialized()) { 1642 throw newUninitializedMessageException(result); 1643 } 1644 return result; 1645 } 1646 1647 @java.lang.Override 1648 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature buildPartial()1649 buildPartial() { 1650 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature result = 1651 new com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature( 1652 this); 1653 buildPartialRepeatedFields(result); 1654 if (bitField0_ != 0) { 1655 buildPartial0(result); 1656 } 1657 onBuilt(); 1658 return result; 1659 } 1660 buildPartialRepeatedFields( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature result)1661 private void buildPartialRepeatedFields( 1662 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1663 result) { 1664 if (detectionsBuilder_ == null) { 1665 if (((bitField0_ & 0x00000002) != 0)) { 1666 detections_ = java.util.Collections.unmodifiableList(detections_); 1667 bitField0_ = (bitField0_ & ~0x00000002); 1668 } 1669 result.detections_ = detections_; 1670 } else { 1671 result.detections_ = detectionsBuilder_.build(); 1672 } 1673 } 1674 buildPartial0( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature result)1675 private void buildPartial0( 1676 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1677 result) { 1678 int from_bitField0_ = bitField0_; 1679 if (((from_bitField0_ & 0x00000001) != 0)) { 1680 result.binaryFamily_ = binaryFamily_; 1681 } 1682 } 1683 1684 @java.lang.Override clone()1685 public Builder clone() { 1686 return super.clone(); 1687 } 1688 1689 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1690 public Builder setField( 1691 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1692 return super.setField(field, value); 1693 } 1694 1695 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1696 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1697 return super.clearField(field); 1698 } 1699 1700 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1701 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1702 return super.clearOneof(oneof); 1703 } 1704 1705 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1706 public Builder setRepeatedField( 1707 com.google.protobuf.Descriptors.FieldDescriptor field, 1708 int index, 1709 java.lang.Object value) { 1710 return super.setRepeatedField(field, index, value); 1711 } 1712 1713 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1714 public Builder addRepeatedField( 1715 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1716 return super.addRepeatedField(field, value); 1717 } 1718 1719 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1720 public Builder mergeFrom(com.google.protobuf.Message other) { 1721 if (other 1722 instanceof 1723 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature) { 1724 return mergeFrom( 1725 (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature) 1726 other); 1727 } else { 1728 super.mergeFrom(other); 1729 return this; 1730 } 1731 } 1732 mergeFrom( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature other)1733 public Builder mergeFrom( 1734 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1735 other) { 1736 if (other 1737 == com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1738 .getDefaultInstance()) return this; 1739 if (!other.getBinaryFamily().isEmpty()) { 1740 binaryFamily_ = other.binaryFamily_; 1741 bitField0_ |= 0x00000001; 1742 onChanged(); 1743 } 1744 if (detectionsBuilder_ == null) { 1745 if (!other.detections_.isEmpty()) { 1746 if (detections_.isEmpty()) { 1747 detections_ = other.detections_; 1748 bitField0_ = (bitField0_ & ~0x00000002); 1749 } else { 1750 ensureDetectionsIsMutable(); 1751 detections_.addAll(other.detections_); 1752 } 1753 onChanged(); 1754 } 1755 } else { 1756 if (!other.detections_.isEmpty()) { 1757 if (detectionsBuilder_.isEmpty()) { 1758 detectionsBuilder_.dispose(); 1759 detectionsBuilder_ = null; 1760 detections_ = other.detections_; 1761 bitField0_ = (bitField0_ & ~0x00000002); 1762 detectionsBuilder_ = 1763 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 1764 ? getDetectionsFieldBuilder() 1765 : null; 1766 } else { 1767 detectionsBuilder_.addAllMessages(other.detections_); 1768 } 1769 } 1770 } 1771 this.mergeUnknownFields(other.getUnknownFields()); 1772 onChanged(); 1773 return this; 1774 } 1775 1776 @java.lang.Override isInitialized()1777 public final boolean isInitialized() { 1778 return true; 1779 } 1780 1781 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1782 public Builder mergeFrom( 1783 com.google.protobuf.CodedInputStream input, 1784 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1785 throws java.io.IOException { 1786 if (extensionRegistry == null) { 1787 throw new java.lang.NullPointerException(); 1788 } 1789 try { 1790 boolean done = false; 1791 while (!done) { 1792 int tag = input.readTag(); 1793 switch (tag) { 1794 case 0: 1795 done = true; 1796 break; 1797 case 10: 1798 { 1799 binaryFamily_ = input.readStringRequireUtf8(); 1800 bitField0_ |= 0x00000001; 1801 break; 1802 } // case 10 1803 case 34: 1804 { 1805 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 1806 .MemoryHashSignature.Detection 1807 m = 1808 input.readMessage( 1809 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 1810 .MemoryHashSignature.Detection.parser(), 1811 extensionRegistry); 1812 if (detectionsBuilder_ == null) { 1813 ensureDetectionsIsMutable(); 1814 detections_.add(m); 1815 } else { 1816 detectionsBuilder_.addMessage(m); 1817 } 1818 break; 1819 } // case 34 1820 default: 1821 { 1822 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1823 done = true; // was an endgroup tag 1824 } 1825 break; 1826 } // default: 1827 } // switch (tag) 1828 } // while (!done) 1829 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1830 throw e.unwrapIOException(); 1831 } finally { 1832 onChanged(); 1833 } // finally 1834 return this; 1835 } 1836 1837 private int bitField0_; 1838 1839 private java.lang.Object binaryFamily_ = ""; 1840 /** 1841 * 1842 * 1843 * <pre> 1844 * The binary family. 1845 * </pre> 1846 * 1847 * <code>string binary_family = 1;</code> 1848 * 1849 * @return The binaryFamily. 1850 */ getBinaryFamily()1851 public java.lang.String getBinaryFamily() { 1852 java.lang.Object ref = binaryFamily_; 1853 if (!(ref instanceof java.lang.String)) { 1854 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1855 java.lang.String s = bs.toStringUtf8(); 1856 binaryFamily_ = s; 1857 return s; 1858 } else { 1859 return (java.lang.String) ref; 1860 } 1861 } 1862 /** 1863 * 1864 * 1865 * <pre> 1866 * The binary family. 1867 * </pre> 1868 * 1869 * <code>string binary_family = 1;</code> 1870 * 1871 * @return The bytes for binaryFamily. 1872 */ getBinaryFamilyBytes()1873 public com.google.protobuf.ByteString getBinaryFamilyBytes() { 1874 java.lang.Object ref = binaryFamily_; 1875 if (ref instanceof String) { 1876 com.google.protobuf.ByteString b = 1877 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1878 binaryFamily_ = b; 1879 return b; 1880 } else { 1881 return (com.google.protobuf.ByteString) ref; 1882 } 1883 } 1884 /** 1885 * 1886 * 1887 * <pre> 1888 * The binary family. 1889 * </pre> 1890 * 1891 * <code>string binary_family = 1;</code> 1892 * 1893 * @param value The binaryFamily to set. 1894 * @return This builder for chaining. 1895 */ setBinaryFamily(java.lang.String value)1896 public Builder setBinaryFamily(java.lang.String value) { 1897 if (value == null) { 1898 throw new NullPointerException(); 1899 } 1900 binaryFamily_ = value; 1901 bitField0_ |= 0x00000001; 1902 onChanged(); 1903 return this; 1904 } 1905 /** 1906 * 1907 * 1908 * <pre> 1909 * The binary family. 1910 * </pre> 1911 * 1912 * <code>string binary_family = 1;</code> 1913 * 1914 * @return This builder for chaining. 1915 */ clearBinaryFamily()1916 public Builder clearBinaryFamily() { 1917 binaryFamily_ = getDefaultInstance().getBinaryFamily(); 1918 bitField0_ = (bitField0_ & ~0x00000001); 1919 onChanged(); 1920 return this; 1921 } 1922 /** 1923 * 1924 * 1925 * <pre> 1926 * The binary family. 1927 * </pre> 1928 * 1929 * <code>string binary_family = 1;</code> 1930 * 1931 * @param value The bytes for binaryFamily to set. 1932 * @return This builder for chaining. 1933 */ setBinaryFamilyBytes(com.google.protobuf.ByteString value)1934 public Builder setBinaryFamilyBytes(com.google.protobuf.ByteString value) { 1935 if (value == null) { 1936 throw new NullPointerException(); 1937 } 1938 checkByteStringIsUtf8(value); 1939 binaryFamily_ = value; 1940 bitField0_ |= 0x00000001; 1941 onChanged(); 1942 return this; 1943 } 1944 1945 private java.util.List< 1946 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1947 .Detection> 1948 detections_ = java.util.Collections.emptyList(); 1949 ensureDetectionsIsMutable()1950 private void ensureDetectionsIsMutable() { 1951 if (!((bitField0_ & 0x00000002) != 0)) { 1952 detections_ = 1953 new java.util.ArrayList< 1954 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 1955 .MemoryHashSignature.Detection>(detections_); 1956 bitField0_ |= 0x00000002; 1957 } 1958 } 1959 1960 private com.google.protobuf.RepeatedFieldBuilderV3< 1961 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1962 .Detection, 1963 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1964 .Detection.Builder, 1965 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1966 .DetectionOrBuilder> 1967 detectionsBuilder_; 1968 1969 /** 1970 * 1971 * 1972 * <pre> 1973 * The list of memory hash detections contributing to the binary family 1974 * match. 1975 * </pre> 1976 * 1977 * <code> 1978 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 1979 * </code> 1980 */ 1981 public java.util.List< 1982 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 1983 .Detection> getDetectionsList()1984 getDetectionsList() { 1985 if (detectionsBuilder_ == null) { 1986 return java.util.Collections.unmodifiableList(detections_); 1987 } else { 1988 return detectionsBuilder_.getMessageList(); 1989 } 1990 } 1991 /** 1992 * 1993 * 1994 * <pre> 1995 * The list of memory hash detections contributing to the binary family 1996 * match. 1997 * </pre> 1998 * 1999 * <code> 2000 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 2001 * </code> 2002 */ getDetectionsCount()2003 public int getDetectionsCount() { 2004 if (detectionsBuilder_ == null) { 2005 return detections_.size(); 2006 } else { 2007 return detectionsBuilder_.getCount(); 2008 } 2009 } 2010 /** 2011 * 2012 * 2013 * <pre> 2014 * The list of memory hash detections contributing to the binary family 2015 * match. 2016 * </pre> 2017 * 2018 * <code> 2019 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 2020 * </code> 2021 */ 2022 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 2023 .Detection getDetections(int index)2024 getDetections(int index) { 2025 if (detectionsBuilder_ == null) { 2026 return detections_.get(index); 2027 } else { 2028 return detectionsBuilder_.getMessage(index); 2029 } 2030 } 2031 /** 2032 * 2033 * 2034 * <pre> 2035 * The list of memory hash detections contributing to the binary family 2036 * match. 2037 * </pre> 2038 * 2039 * <code> 2040 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 2041 * </code> 2042 */ setDetections( int index, com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature .Detection value)2043 public Builder setDetections( 2044 int index, 2045 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 2046 .Detection 2047 value) { 2048 if (detectionsBuilder_ == null) { 2049 if (value == null) { 2050 throw new NullPointerException(); 2051 } 2052 ensureDetectionsIsMutable(); 2053 detections_.set(index, value); 2054 onChanged(); 2055 } else { 2056 detectionsBuilder_.setMessage(index, value); 2057 } 2058 return this; 2059 } 2060 /** 2061 * 2062 * 2063 * <pre> 2064 * The list of memory hash detections contributing to the binary family 2065 * match. 2066 * </pre> 2067 * 2068 * <code> 2069 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 2070 * </code> 2071 */ setDetections( int index, com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature .Detection.Builder builderForValue)2072 public Builder setDetections( 2073 int index, 2074 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 2075 .Detection.Builder 2076 builderForValue) { 2077 if (detectionsBuilder_ == null) { 2078 ensureDetectionsIsMutable(); 2079 detections_.set(index, builderForValue.build()); 2080 onChanged(); 2081 } else { 2082 detectionsBuilder_.setMessage(index, builderForValue.build()); 2083 } 2084 return this; 2085 } 2086 /** 2087 * 2088 * 2089 * <pre> 2090 * The list of memory hash detections contributing to the binary family 2091 * match. 2092 * </pre> 2093 * 2094 * <code> 2095 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 2096 * </code> 2097 */ addDetections( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature .Detection value)2098 public Builder addDetections( 2099 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 2100 .Detection 2101 value) { 2102 if (detectionsBuilder_ == null) { 2103 if (value == null) { 2104 throw new NullPointerException(); 2105 } 2106 ensureDetectionsIsMutable(); 2107 detections_.add(value); 2108 onChanged(); 2109 } else { 2110 detectionsBuilder_.addMessage(value); 2111 } 2112 return this; 2113 } 2114 /** 2115 * 2116 * 2117 * <pre> 2118 * The list of memory hash detections contributing to the binary family 2119 * match. 2120 * </pre> 2121 * 2122 * <code> 2123 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 2124 * </code> 2125 */ addDetections( int index, com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature .Detection value)2126 public Builder addDetections( 2127 int index, 2128 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 2129 .Detection 2130 value) { 2131 if (detectionsBuilder_ == null) { 2132 if (value == null) { 2133 throw new NullPointerException(); 2134 } 2135 ensureDetectionsIsMutable(); 2136 detections_.add(index, value); 2137 onChanged(); 2138 } else { 2139 detectionsBuilder_.addMessage(index, value); 2140 } 2141 return this; 2142 } 2143 /** 2144 * 2145 * 2146 * <pre> 2147 * The list of memory hash detections contributing to the binary family 2148 * match. 2149 * </pre> 2150 * 2151 * <code> 2152 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 2153 * </code> 2154 */ addDetections( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature .Detection.Builder builderForValue)2155 public Builder addDetections( 2156 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 2157 .Detection.Builder 2158 builderForValue) { 2159 if (detectionsBuilder_ == null) { 2160 ensureDetectionsIsMutable(); 2161 detections_.add(builderForValue.build()); 2162 onChanged(); 2163 } else { 2164 detectionsBuilder_.addMessage(builderForValue.build()); 2165 } 2166 return this; 2167 } 2168 /** 2169 * 2170 * 2171 * <pre> 2172 * The list of memory hash detections contributing to the binary family 2173 * match. 2174 * </pre> 2175 * 2176 * <code> 2177 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 2178 * </code> 2179 */ addDetections( int index, com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature .Detection.Builder builderForValue)2180 public Builder addDetections( 2181 int index, 2182 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 2183 .Detection.Builder 2184 builderForValue) { 2185 if (detectionsBuilder_ == null) { 2186 ensureDetectionsIsMutable(); 2187 detections_.add(index, builderForValue.build()); 2188 onChanged(); 2189 } else { 2190 detectionsBuilder_.addMessage(index, builderForValue.build()); 2191 } 2192 return this; 2193 } 2194 /** 2195 * 2196 * 2197 * <pre> 2198 * The list of memory hash detections contributing to the binary family 2199 * match. 2200 * </pre> 2201 * 2202 * <code> 2203 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 2204 * </code> 2205 */ addAllDetections( java.lang.Iterable< ? extends com.google.cloud.securitycenter.v1.Indicator.ProcessSignature .MemoryHashSignature.Detection> values)2206 public Builder addAllDetections( 2207 java.lang.Iterable< 2208 ? extends 2209 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 2210 .MemoryHashSignature.Detection> 2211 values) { 2212 if (detectionsBuilder_ == null) { 2213 ensureDetectionsIsMutable(); 2214 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, detections_); 2215 onChanged(); 2216 } else { 2217 detectionsBuilder_.addAllMessages(values); 2218 } 2219 return this; 2220 } 2221 /** 2222 * 2223 * 2224 * <pre> 2225 * The list of memory hash detections contributing to the binary family 2226 * match. 2227 * </pre> 2228 * 2229 * <code> 2230 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 2231 * </code> 2232 */ clearDetections()2233 public Builder clearDetections() { 2234 if (detectionsBuilder_ == null) { 2235 detections_ = java.util.Collections.emptyList(); 2236 bitField0_ = (bitField0_ & ~0x00000002); 2237 onChanged(); 2238 } else { 2239 detectionsBuilder_.clear(); 2240 } 2241 return this; 2242 } 2243 /** 2244 * 2245 * 2246 * <pre> 2247 * The list of memory hash detections contributing to the binary family 2248 * match. 2249 * </pre> 2250 * 2251 * <code> 2252 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 2253 * </code> 2254 */ removeDetections(int index)2255 public Builder removeDetections(int index) { 2256 if (detectionsBuilder_ == null) { 2257 ensureDetectionsIsMutable(); 2258 detections_.remove(index); 2259 onChanged(); 2260 } else { 2261 detectionsBuilder_.remove(index); 2262 } 2263 return this; 2264 } 2265 /** 2266 * 2267 * 2268 * <pre> 2269 * The list of memory hash detections contributing to the binary family 2270 * match. 2271 * </pre> 2272 * 2273 * <code> 2274 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 2275 * </code> 2276 */ 2277 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 2278 .Detection.Builder getDetectionsBuilder(int index)2279 getDetectionsBuilder(int index) { 2280 return getDetectionsFieldBuilder().getBuilder(index); 2281 } 2282 /** 2283 * 2284 * 2285 * <pre> 2286 * The list of memory hash detections contributing to the binary family 2287 * match. 2288 * </pre> 2289 * 2290 * <code> 2291 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 2292 * </code> 2293 */ 2294 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 2295 .DetectionOrBuilder getDetectionsOrBuilder(int index)2296 getDetectionsOrBuilder(int index) { 2297 if (detectionsBuilder_ == null) { 2298 return detections_.get(index); 2299 } else { 2300 return detectionsBuilder_.getMessageOrBuilder(index); 2301 } 2302 } 2303 /** 2304 * 2305 * 2306 * <pre> 2307 * The list of memory hash detections contributing to the binary family 2308 * match. 2309 * </pre> 2310 * 2311 * <code> 2312 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 2313 * </code> 2314 */ 2315 public java.util.List< 2316 ? extends 2317 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 2318 .MemoryHashSignature.DetectionOrBuilder> getDetectionsOrBuilderList()2319 getDetectionsOrBuilderList() { 2320 if (detectionsBuilder_ != null) { 2321 return detectionsBuilder_.getMessageOrBuilderList(); 2322 } else { 2323 return java.util.Collections.unmodifiableList(detections_); 2324 } 2325 } 2326 /** 2327 * 2328 * 2329 * <pre> 2330 * The list of memory hash detections contributing to the binary family 2331 * match. 2332 * </pre> 2333 * 2334 * <code> 2335 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 2336 * </code> 2337 */ 2338 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 2339 .Detection.Builder addDetectionsBuilder()2340 addDetectionsBuilder() { 2341 return getDetectionsFieldBuilder() 2342 .addBuilder( 2343 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 2344 .Detection.getDefaultInstance()); 2345 } 2346 /** 2347 * 2348 * 2349 * <pre> 2350 * The list of memory hash detections contributing to the binary family 2351 * match. 2352 * </pre> 2353 * 2354 * <code> 2355 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 2356 * </code> 2357 */ 2358 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 2359 .Detection.Builder addDetectionsBuilder(int index)2360 addDetectionsBuilder(int index) { 2361 return getDetectionsFieldBuilder() 2362 .addBuilder( 2363 index, 2364 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 2365 .Detection.getDefaultInstance()); 2366 } 2367 /** 2368 * 2369 * 2370 * <pre> 2371 * The list of memory hash detections contributing to the binary family 2372 * match. 2373 * </pre> 2374 * 2375 * <code> 2376 * repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection detections = 4; 2377 * </code> 2378 */ 2379 public java.util.List< 2380 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 2381 .Detection.Builder> getDetectionsBuilderList()2382 getDetectionsBuilderList() { 2383 return getDetectionsFieldBuilder().getBuilderList(); 2384 } 2385 2386 private com.google.protobuf.RepeatedFieldBuilderV3< 2387 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 2388 .Detection, 2389 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 2390 .Detection.Builder, 2391 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 2392 .DetectionOrBuilder> getDetectionsFieldBuilder()2393 getDetectionsFieldBuilder() { 2394 if (detectionsBuilder_ == null) { 2395 detectionsBuilder_ = 2396 new com.google.protobuf.RepeatedFieldBuilderV3< 2397 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 2398 .MemoryHashSignature.Detection, 2399 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 2400 .MemoryHashSignature.Detection.Builder, 2401 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 2402 .MemoryHashSignature.DetectionOrBuilder>( 2403 detections_, 2404 ((bitField0_ & 0x00000002) != 0), 2405 getParentForChildren(), 2406 isClean()); 2407 detections_ = null; 2408 } 2409 return detectionsBuilder_; 2410 } 2411 2412 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2413 public final Builder setUnknownFields( 2414 final com.google.protobuf.UnknownFieldSet unknownFields) { 2415 return super.setUnknownFields(unknownFields); 2416 } 2417 2418 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2419 public final Builder mergeUnknownFields( 2420 final com.google.protobuf.UnknownFieldSet unknownFields) { 2421 return super.mergeUnknownFields(unknownFields); 2422 } 2423 2424 // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature) 2425 } 2426 2427 // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature) 2428 private static final com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 2429 .MemoryHashSignature 2430 DEFAULT_INSTANCE; 2431 2432 static { 2433 DEFAULT_INSTANCE = 2434 new com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature(); 2435 } 2436 2437 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 2438 .MemoryHashSignature getDefaultInstance()2439 getDefaultInstance() { 2440 return DEFAULT_INSTANCE; 2441 } 2442 2443 private static final com.google.protobuf.Parser<MemoryHashSignature> PARSER = 2444 new com.google.protobuf.AbstractParser<MemoryHashSignature>() { 2445 @java.lang.Override 2446 public MemoryHashSignature parsePartialFrom( 2447 com.google.protobuf.CodedInputStream input, 2448 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2449 throws com.google.protobuf.InvalidProtocolBufferException { 2450 Builder builder = newBuilder(); 2451 try { 2452 builder.mergeFrom(input, extensionRegistry); 2453 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2454 throw e.setUnfinishedMessage(builder.buildPartial()); 2455 } catch (com.google.protobuf.UninitializedMessageException e) { 2456 throw e.asInvalidProtocolBufferException() 2457 .setUnfinishedMessage(builder.buildPartial()); 2458 } catch (java.io.IOException e) { 2459 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2460 .setUnfinishedMessage(builder.buildPartial()); 2461 } 2462 return builder.buildPartial(); 2463 } 2464 }; 2465 parser()2466 public static com.google.protobuf.Parser<MemoryHashSignature> parser() { 2467 return PARSER; 2468 } 2469 2470 @java.lang.Override getParserForType()2471 public com.google.protobuf.Parser<MemoryHashSignature> getParserForType() { 2472 return PARSER; 2473 } 2474 2475 @java.lang.Override 2476 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature getDefaultInstanceForType()2477 getDefaultInstanceForType() { 2478 return DEFAULT_INSTANCE; 2479 } 2480 } 2481 2482 public interface YaraRuleSignatureOrBuilder 2483 extends 2484 // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature) 2485 com.google.protobuf.MessageOrBuilder { 2486 2487 /** 2488 * 2489 * 2490 * <pre> 2491 * The name of the YARA rule. 2492 * </pre> 2493 * 2494 * <code>string yara_rule = 5;</code> 2495 * 2496 * @return The yaraRule. 2497 */ getYaraRule()2498 java.lang.String getYaraRule(); 2499 /** 2500 * 2501 * 2502 * <pre> 2503 * The name of the YARA rule. 2504 * </pre> 2505 * 2506 * <code>string yara_rule = 5;</code> 2507 * 2508 * @return The bytes for yaraRule. 2509 */ getYaraRuleBytes()2510 com.google.protobuf.ByteString getYaraRuleBytes(); 2511 } 2512 /** 2513 * 2514 * 2515 * <pre> 2516 * A signature corresponding to a YARA rule. 2517 * </pre> 2518 * 2519 * Protobuf type {@code 2520 * google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature} 2521 */ 2522 public static final class YaraRuleSignature extends com.google.protobuf.GeneratedMessageV3 2523 implements 2524 // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature) 2525 YaraRuleSignatureOrBuilder { 2526 private static final long serialVersionUID = 0L; 2527 // Use YaraRuleSignature.newBuilder() to construct. YaraRuleSignature(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)2528 private YaraRuleSignature(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 2529 super(builder); 2530 } 2531 YaraRuleSignature()2532 private YaraRuleSignature() { 2533 yaraRule_ = ""; 2534 } 2535 2536 @java.lang.Override 2537 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)2538 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 2539 return new YaraRuleSignature(); 2540 } 2541 2542 @java.lang.Override getUnknownFields()2543 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 2544 return this.unknownFields; 2545 } 2546 getDescriptor()2547 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 2548 return com.google.cloud.securitycenter.v1.IndicatorProto 2549 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_YaraRuleSignature_descriptor; 2550 } 2551 2552 @java.lang.Override 2553 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()2554 internalGetFieldAccessorTable() { 2555 return com.google.cloud.securitycenter.v1.IndicatorProto 2556 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_YaraRuleSignature_fieldAccessorTable 2557 .ensureFieldAccessorsInitialized( 2558 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 2559 .class, 2560 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 2561 .Builder.class); 2562 } 2563 2564 public static final int YARA_RULE_FIELD_NUMBER = 5; 2565 2566 @SuppressWarnings("serial") 2567 private volatile java.lang.Object yaraRule_ = ""; 2568 /** 2569 * 2570 * 2571 * <pre> 2572 * The name of the YARA rule. 2573 * </pre> 2574 * 2575 * <code>string yara_rule = 5;</code> 2576 * 2577 * @return The yaraRule. 2578 */ 2579 @java.lang.Override getYaraRule()2580 public java.lang.String getYaraRule() { 2581 java.lang.Object ref = yaraRule_; 2582 if (ref instanceof java.lang.String) { 2583 return (java.lang.String) ref; 2584 } else { 2585 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2586 java.lang.String s = bs.toStringUtf8(); 2587 yaraRule_ = s; 2588 return s; 2589 } 2590 } 2591 /** 2592 * 2593 * 2594 * <pre> 2595 * The name of the YARA rule. 2596 * </pre> 2597 * 2598 * <code>string yara_rule = 5;</code> 2599 * 2600 * @return The bytes for yaraRule. 2601 */ 2602 @java.lang.Override getYaraRuleBytes()2603 public com.google.protobuf.ByteString getYaraRuleBytes() { 2604 java.lang.Object ref = yaraRule_; 2605 if (ref instanceof java.lang.String) { 2606 com.google.protobuf.ByteString b = 2607 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2608 yaraRule_ = b; 2609 return b; 2610 } else { 2611 return (com.google.protobuf.ByteString) ref; 2612 } 2613 } 2614 2615 private byte memoizedIsInitialized = -1; 2616 2617 @java.lang.Override isInitialized()2618 public final boolean isInitialized() { 2619 byte isInitialized = memoizedIsInitialized; 2620 if (isInitialized == 1) return true; 2621 if (isInitialized == 0) return false; 2622 2623 memoizedIsInitialized = 1; 2624 return true; 2625 } 2626 2627 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)2628 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 2629 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(yaraRule_)) { 2630 com.google.protobuf.GeneratedMessageV3.writeString(output, 5, yaraRule_); 2631 } 2632 getUnknownFields().writeTo(output); 2633 } 2634 2635 @java.lang.Override getSerializedSize()2636 public int getSerializedSize() { 2637 int size = memoizedSize; 2638 if (size != -1) return size; 2639 2640 size = 0; 2641 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(yaraRule_)) { 2642 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, yaraRule_); 2643 } 2644 size += getUnknownFields().getSerializedSize(); 2645 memoizedSize = size; 2646 return size; 2647 } 2648 2649 @java.lang.Override equals(final java.lang.Object obj)2650 public boolean equals(final java.lang.Object obj) { 2651 if (obj == this) { 2652 return true; 2653 } 2654 if (!(obj 2655 instanceof 2656 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature)) { 2657 return super.equals(obj); 2658 } 2659 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature other = 2660 (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature) obj; 2661 2662 if (!getYaraRule().equals(other.getYaraRule())) return false; 2663 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 2664 return true; 2665 } 2666 2667 @java.lang.Override hashCode()2668 public int hashCode() { 2669 if (memoizedHashCode != 0) { 2670 return memoizedHashCode; 2671 } 2672 int hash = 41; 2673 hash = (19 * hash) + getDescriptor().hashCode(); 2674 hash = (37 * hash) + YARA_RULE_FIELD_NUMBER; 2675 hash = (53 * hash) + getYaraRule().hashCode(); 2676 hash = (29 * hash) + getUnknownFields().hashCode(); 2677 memoizedHashCode = hash; 2678 return hash; 2679 } 2680 2681 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature parseFrom(java.nio.ByteBuffer data)2682 parseFrom(java.nio.ByteBuffer data) 2683 throws com.google.protobuf.InvalidProtocolBufferException { 2684 return PARSER.parseFrom(data); 2685 } 2686 2687 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2688 parseFrom( 2689 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2690 throws com.google.protobuf.InvalidProtocolBufferException { 2691 return PARSER.parseFrom(data, extensionRegistry); 2692 } 2693 2694 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature parseFrom(com.google.protobuf.ByteString data)2695 parseFrom(com.google.protobuf.ByteString data) 2696 throws com.google.protobuf.InvalidProtocolBufferException { 2697 return PARSER.parseFrom(data); 2698 } 2699 2700 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2701 parseFrom( 2702 com.google.protobuf.ByteString data, 2703 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2704 throws com.google.protobuf.InvalidProtocolBufferException { 2705 return PARSER.parseFrom(data, extensionRegistry); 2706 } 2707 2708 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature parseFrom(byte[] data)2709 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { 2710 return PARSER.parseFrom(data); 2711 } 2712 2713 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2714 parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2715 throws com.google.protobuf.InvalidProtocolBufferException { 2716 return PARSER.parseFrom(data, extensionRegistry); 2717 } 2718 2719 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature parseFrom(java.io.InputStream input)2720 parseFrom(java.io.InputStream input) throws java.io.IOException { 2721 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2722 } 2723 2724 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2725 parseFrom( 2726 java.io.InputStream input, 2727 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2728 throws java.io.IOException { 2729 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2730 PARSER, input, extensionRegistry); 2731 } 2732 2733 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature parseDelimitedFrom(java.io.InputStream input)2734 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { 2735 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 2736 } 2737 2738 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2739 parseDelimitedFrom( 2740 java.io.InputStream input, 2741 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2742 throws java.io.IOException { 2743 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 2744 PARSER, input, extensionRegistry); 2745 } 2746 2747 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature parseFrom(com.google.protobuf.CodedInputStream input)2748 parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { 2749 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2750 } 2751 2752 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2753 parseFrom( 2754 com.google.protobuf.CodedInputStream input, 2755 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2756 throws java.io.IOException { 2757 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2758 PARSER, input, extensionRegistry); 2759 } 2760 2761 @java.lang.Override newBuilderForType()2762 public Builder newBuilderForType() { 2763 return newBuilder(); 2764 } 2765 newBuilder()2766 public static Builder newBuilder() { 2767 return DEFAULT_INSTANCE.toBuilder(); 2768 } 2769 newBuilder( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature prototype)2770 public static Builder newBuilder( 2771 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 2772 prototype) { 2773 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2774 } 2775 2776 @java.lang.Override toBuilder()2777 public Builder toBuilder() { 2778 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 2779 } 2780 2781 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2782 protected Builder newBuilderForType( 2783 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2784 Builder builder = new Builder(parent); 2785 return builder; 2786 } 2787 /** 2788 * 2789 * 2790 * <pre> 2791 * A signature corresponding to a YARA rule. 2792 * </pre> 2793 * 2794 * Protobuf type {@code 2795 * google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature} 2796 */ 2797 public static final class Builder 2798 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 2799 implements 2800 // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature) 2801 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignatureOrBuilder { getDescriptor()2802 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 2803 return com.google.cloud.securitycenter.v1.IndicatorProto 2804 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_YaraRuleSignature_descriptor; 2805 } 2806 2807 @java.lang.Override 2808 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()2809 internalGetFieldAccessorTable() { 2810 return com.google.cloud.securitycenter.v1.IndicatorProto 2811 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_YaraRuleSignature_fieldAccessorTable 2812 .ensureFieldAccessorsInitialized( 2813 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 2814 .class, 2815 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 2816 .Builder.class); 2817 } 2818 2819 // Construct using 2820 // com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature.newBuilder() Builder()2821 private Builder() {} 2822 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2823 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2824 super(parent); 2825 } 2826 2827 @java.lang.Override clear()2828 public Builder clear() { 2829 super.clear(); 2830 bitField0_ = 0; 2831 yaraRule_ = ""; 2832 return this; 2833 } 2834 2835 @java.lang.Override getDescriptorForType()2836 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 2837 return com.google.cloud.securitycenter.v1.IndicatorProto 2838 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_YaraRuleSignature_descriptor; 2839 } 2840 2841 @java.lang.Override 2842 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature getDefaultInstanceForType()2843 getDefaultInstanceForType() { 2844 return com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 2845 .getDefaultInstance(); 2846 } 2847 2848 @java.lang.Override 2849 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature build()2850 build() { 2851 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature result = 2852 buildPartial(); 2853 if (!result.isInitialized()) { 2854 throw newUninitializedMessageException(result); 2855 } 2856 return result; 2857 } 2858 2859 @java.lang.Override 2860 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature buildPartial()2861 buildPartial() { 2862 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature result = 2863 new com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature( 2864 this); 2865 if (bitField0_ != 0) { 2866 buildPartial0(result); 2867 } 2868 onBuilt(); 2869 return result; 2870 } 2871 buildPartial0( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature result)2872 private void buildPartial0( 2873 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 2874 result) { 2875 int from_bitField0_ = bitField0_; 2876 if (((from_bitField0_ & 0x00000001) != 0)) { 2877 result.yaraRule_ = yaraRule_; 2878 } 2879 } 2880 2881 @java.lang.Override clone()2882 public Builder clone() { 2883 return super.clone(); 2884 } 2885 2886 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2887 public Builder setField( 2888 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2889 return super.setField(field, value); 2890 } 2891 2892 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2893 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 2894 return super.clearField(field); 2895 } 2896 2897 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2898 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 2899 return super.clearOneof(oneof); 2900 } 2901 2902 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2903 public Builder setRepeatedField( 2904 com.google.protobuf.Descriptors.FieldDescriptor field, 2905 int index, 2906 java.lang.Object value) { 2907 return super.setRepeatedField(field, index, value); 2908 } 2909 2910 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2911 public Builder addRepeatedField( 2912 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2913 return super.addRepeatedField(field, value); 2914 } 2915 2916 @java.lang.Override mergeFrom(com.google.protobuf.Message other)2917 public Builder mergeFrom(com.google.protobuf.Message other) { 2918 if (other 2919 instanceof 2920 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature) { 2921 return mergeFrom( 2922 (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature) 2923 other); 2924 } else { 2925 super.mergeFrom(other); 2926 return this; 2927 } 2928 } 2929 mergeFrom( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature other)2930 public Builder mergeFrom( 2931 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature other) { 2932 if (other 2933 == com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 2934 .getDefaultInstance()) return this; 2935 if (!other.getYaraRule().isEmpty()) { 2936 yaraRule_ = other.yaraRule_; 2937 bitField0_ |= 0x00000001; 2938 onChanged(); 2939 } 2940 this.mergeUnknownFields(other.getUnknownFields()); 2941 onChanged(); 2942 return this; 2943 } 2944 2945 @java.lang.Override isInitialized()2946 public final boolean isInitialized() { 2947 return true; 2948 } 2949 2950 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2951 public Builder mergeFrom( 2952 com.google.protobuf.CodedInputStream input, 2953 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2954 throws java.io.IOException { 2955 if (extensionRegistry == null) { 2956 throw new java.lang.NullPointerException(); 2957 } 2958 try { 2959 boolean done = false; 2960 while (!done) { 2961 int tag = input.readTag(); 2962 switch (tag) { 2963 case 0: 2964 done = true; 2965 break; 2966 case 42: 2967 { 2968 yaraRule_ = input.readStringRequireUtf8(); 2969 bitField0_ |= 0x00000001; 2970 break; 2971 } // case 42 2972 default: 2973 { 2974 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 2975 done = true; // was an endgroup tag 2976 } 2977 break; 2978 } // default: 2979 } // switch (tag) 2980 } // while (!done) 2981 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2982 throw e.unwrapIOException(); 2983 } finally { 2984 onChanged(); 2985 } // finally 2986 return this; 2987 } 2988 2989 private int bitField0_; 2990 2991 private java.lang.Object yaraRule_ = ""; 2992 /** 2993 * 2994 * 2995 * <pre> 2996 * The name of the YARA rule. 2997 * </pre> 2998 * 2999 * <code>string yara_rule = 5;</code> 3000 * 3001 * @return The yaraRule. 3002 */ getYaraRule()3003 public java.lang.String getYaraRule() { 3004 java.lang.Object ref = yaraRule_; 3005 if (!(ref instanceof java.lang.String)) { 3006 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3007 java.lang.String s = bs.toStringUtf8(); 3008 yaraRule_ = s; 3009 return s; 3010 } else { 3011 return (java.lang.String) ref; 3012 } 3013 } 3014 /** 3015 * 3016 * 3017 * <pre> 3018 * The name of the YARA rule. 3019 * </pre> 3020 * 3021 * <code>string yara_rule = 5;</code> 3022 * 3023 * @return The bytes for yaraRule. 3024 */ getYaraRuleBytes()3025 public com.google.protobuf.ByteString getYaraRuleBytes() { 3026 java.lang.Object ref = yaraRule_; 3027 if (ref instanceof String) { 3028 com.google.protobuf.ByteString b = 3029 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3030 yaraRule_ = b; 3031 return b; 3032 } else { 3033 return (com.google.protobuf.ByteString) ref; 3034 } 3035 } 3036 /** 3037 * 3038 * 3039 * <pre> 3040 * The name of the YARA rule. 3041 * </pre> 3042 * 3043 * <code>string yara_rule = 5;</code> 3044 * 3045 * @param value The yaraRule to set. 3046 * @return This builder for chaining. 3047 */ setYaraRule(java.lang.String value)3048 public Builder setYaraRule(java.lang.String value) { 3049 if (value == null) { 3050 throw new NullPointerException(); 3051 } 3052 yaraRule_ = value; 3053 bitField0_ |= 0x00000001; 3054 onChanged(); 3055 return this; 3056 } 3057 /** 3058 * 3059 * 3060 * <pre> 3061 * The name of the YARA rule. 3062 * </pre> 3063 * 3064 * <code>string yara_rule = 5;</code> 3065 * 3066 * @return This builder for chaining. 3067 */ clearYaraRule()3068 public Builder clearYaraRule() { 3069 yaraRule_ = getDefaultInstance().getYaraRule(); 3070 bitField0_ = (bitField0_ & ~0x00000001); 3071 onChanged(); 3072 return this; 3073 } 3074 /** 3075 * 3076 * 3077 * <pre> 3078 * The name of the YARA rule. 3079 * </pre> 3080 * 3081 * <code>string yara_rule = 5;</code> 3082 * 3083 * @param value The bytes for yaraRule to set. 3084 * @return This builder for chaining. 3085 */ setYaraRuleBytes(com.google.protobuf.ByteString value)3086 public Builder setYaraRuleBytes(com.google.protobuf.ByteString value) { 3087 if (value == null) { 3088 throw new NullPointerException(); 3089 } 3090 checkByteStringIsUtf8(value); 3091 yaraRule_ = value; 3092 bitField0_ |= 0x00000001; 3093 onChanged(); 3094 return this; 3095 } 3096 3097 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3098 public final Builder setUnknownFields( 3099 final com.google.protobuf.UnknownFieldSet unknownFields) { 3100 return super.setUnknownFields(unknownFields); 3101 } 3102 3103 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3104 public final Builder mergeUnknownFields( 3105 final com.google.protobuf.UnknownFieldSet unknownFields) { 3106 return super.mergeUnknownFields(unknownFields); 3107 } 3108 3109 // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature) 3110 } 3111 3112 // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature) 3113 private static final com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 3114 .YaraRuleSignature 3115 DEFAULT_INSTANCE; 3116 3117 static { 3118 DEFAULT_INSTANCE = 3119 new com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature(); 3120 } 3121 3122 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature getDefaultInstance()3123 getDefaultInstance() { 3124 return DEFAULT_INSTANCE; 3125 } 3126 3127 private static final com.google.protobuf.Parser<YaraRuleSignature> PARSER = 3128 new com.google.protobuf.AbstractParser<YaraRuleSignature>() { 3129 @java.lang.Override 3130 public YaraRuleSignature parsePartialFrom( 3131 com.google.protobuf.CodedInputStream input, 3132 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3133 throws com.google.protobuf.InvalidProtocolBufferException { 3134 Builder builder = newBuilder(); 3135 try { 3136 builder.mergeFrom(input, extensionRegistry); 3137 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3138 throw e.setUnfinishedMessage(builder.buildPartial()); 3139 } catch (com.google.protobuf.UninitializedMessageException e) { 3140 throw e.asInvalidProtocolBufferException() 3141 .setUnfinishedMessage(builder.buildPartial()); 3142 } catch (java.io.IOException e) { 3143 throw new com.google.protobuf.InvalidProtocolBufferException(e) 3144 .setUnfinishedMessage(builder.buildPartial()); 3145 } 3146 return builder.buildPartial(); 3147 } 3148 }; 3149 parser()3150 public static com.google.protobuf.Parser<YaraRuleSignature> parser() { 3151 return PARSER; 3152 } 3153 3154 @java.lang.Override getParserForType()3155 public com.google.protobuf.Parser<YaraRuleSignature> getParserForType() { 3156 return PARSER; 3157 } 3158 3159 @java.lang.Override 3160 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature getDefaultInstanceForType()3161 getDefaultInstanceForType() { 3162 return DEFAULT_INSTANCE; 3163 } 3164 } 3165 3166 private int signatureCase_ = 0; 3167 private java.lang.Object signature_; 3168 3169 public enum SignatureCase 3170 implements 3171 com.google.protobuf.Internal.EnumLite, 3172 com.google.protobuf.AbstractMessage.InternalOneOfEnum { 3173 MEMORY_HASH_SIGNATURE(6), 3174 YARA_RULE_SIGNATURE(7), 3175 SIGNATURE_NOT_SET(0); 3176 private final int value; 3177 SignatureCase(int value)3178 private SignatureCase(int value) { 3179 this.value = value; 3180 } 3181 /** 3182 * @param value The number of the enum to look for. 3183 * @return The enum associated with the given number. 3184 * @deprecated Use {@link #forNumber(int)} instead. 3185 */ 3186 @java.lang.Deprecated valueOf(int value)3187 public static SignatureCase valueOf(int value) { 3188 return forNumber(value); 3189 } 3190 forNumber(int value)3191 public static SignatureCase forNumber(int value) { 3192 switch (value) { 3193 case 6: 3194 return MEMORY_HASH_SIGNATURE; 3195 case 7: 3196 return YARA_RULE_SIGNATURE; 3197 case 0: 3198 return SIGNATURE_NOT_SET; 3199 default: 3200 return null; 3201 } 3202 } 3203 getNumber()3204 public int getNumber() { 3205 return this.value; 3206 } 3207 }; 3208 getSignatureCase()3209 public SignatureCase getSignatureCase() { 3210 return SignatureCase.forNumber(signatureCase_); 3211 } 3212 3213 public static final int MEMORY_HASH_SIGNATURE_FIELD_NUMBER = 6; 3214 /** 3215 * 3216 * 3217 * <pre> 3218 * Signature indicating that a binary family was matched. 3219 * </pre> 3220 * 3221 * <code> 3222 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature memory_hash_signature = 6; 3223 * </code> 3224 * 3225 * @return Whether the memoryHashSignature field is set. 3226 */ 3227 @java.lang.Override hasMemoryHashSignature()3228 public boolean hasMemoryHashSignature() { 3229 return signatureCase_ == 6; 3230 } 3231 /** 3232 * 3233 * 3234 * <pre> 3235 * Signature indicating that a binary family was matched. 3236 * </pre> 3237 * 3238 * <code> 3239 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature memory_hash_signature = 6; 3240 * </code> 3241 * 3242 * @return The memoryHashSignature. 3243 */ 3244 @java.lang.Override 3245 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature getMemoryHashSignature()3246 getMemoryHashSignature() { 3247 if (signatureCase_ == 6) { 3248 return (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature) 3249 signature_; 3250 } 3251 return com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 3252 .getDefaultInstance(); 3253 } 3254 /** 3255 * 3256 * 3257 * <pre> 3258 * Signature indicating that a binary family was matched. 3259 * </pre> 3260 * 3261 * <code> 3262 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature memory_hash_signature = 6; 3263 * </code> 3264 */ 3265 @java.lang.Override 3266 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 3267 .MemoryHashSignatureOrBuilder getMemoryHashSignatureOrBuilder()3268 getMemoryHashSignatureOrBuilder() { 3269 if (signatureCase_ == 6) { 3270 return (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature) 3271 signature_; 3272 } 3273 return com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 3274 .getDefaultInstance(); 3275 } 3276 3277 public static final int YARA_RULE_SIGNATURE_FIELD_NUMBER = 7; 3278 /** 3279 * 3280 * 3281 * <pre> 3282 * Signature indicating that a YARA rule was matched. 3283 * </pre> 3284 * 3285 * <code> 3286 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature yara_rule_signature = 7; 3287 * </code> 3288 * 3289 * @return Whether the yaraRuleSignature field is set. 3290 */ 3291 @java.lang.Override hasYaraRuleSignature()3292 public boolean hasYaraRuleSignature() { 3293 return signatureCase_ == 7; 3294 } 3295 /** 3296 * 3297 * 3298 * <pre> 3299 * Signature indicating that a YARA rule was matched. 3300 * </pre> 3301 * 3302 * <code> 3303 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature yara_rule_signature = 7; 3304 * </code> 3305 * 3306 * @return The yaraRuleSignature. 3307 */ 3308 @java.lang.Override 3309 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature getYaraRuleSignature()3310 getYaraRuleSignature() { 3311 if (signatureCase_ == 7) { 3312 return (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature) 3313 signature_; 3314 } 3315 return com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 3316 .getDefaultInstance(); 3317 } 3318 /** 3319 * 3320 * 3321 * <pre> 3322 * Signature indicating that a YARA rule was matched. 3323 * </pre> 3324 * 3325 * <code> 3326 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature yara_rule_signature = 7; 3327 * </code> 3328 */ 3329 @java.lang.Override 3330 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignatureOrBuilder getYaraRuleSignatureOrBuilder()3331 getYaraRuleSignatureOrBuilder() { 3332 if (signatureCase_ == 7) { 3333 return (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature) 3334 signature_; 3335 } 3336 return com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 3337 .getDefaultInstance(); 3338 } 3339 3340 private byte memoizedIsInitialized = -1; 3341 3342 @java.lang.Override isInitialized()3343 public final boolean isInitialized() { 3344 byte isInitialized = memoizedIsInitialized; 3345 if (isInitialized == 1) return true; 3346 if (isInitialized == 0) return false; 3347 3348 memoizedIsInitialized = 1; 3349 return true; 3350 } 3351 3352 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)3353 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 3354 if (signatureCase_ == 6) { 3355 output.writeMessage( 3356 6, 3357 (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature) 3358 signature_); 3359 } 3360 if (signatureCase_ == 7) { 3361 output.writeMessage( 3362 7, 3363 (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature) 3364 signature_); 3365 } 3366 getUnknownFields().writeTo(output); 3367 } 3368 3369 @java.lang.Override getSerializedSize()3370 public int getSerializedSize() { 3371 int size = memoizedSize; 3372 if (size != -1) return size; 3373 3374 size = 0; 3375 if (signatureCase_ == 6) { 3376 size += 3377 com.google.protobuf.CodedOutputStream.computeMessageSize( 3378 6, 3379 (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature) 3380 signature_); 3381 } 3382 if (signatureCase_ == 7) { 3383 size += 3384 com.google.protobuf.CodedOutputStream.computeMessageSize( 3385 7, 3386 (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature) 3387 signature_); 3388 } 3389 size += getUnknownFields().getSerializedSize(); 3390 memoizedSize = size; 3391 return size; 3392 } 3393 3394 @java.lang.Override equals(final java.lang.Object obj)3395 public boolean equals(final java.lang.Object obj) { 3396 if (obj == this) { 3397 return true; 3398 } 3399 if (!(obj instanceof com.google.cloud.securitycenter.v1.Indicator.ProcessSignature)) { 3400 return super.equals(obj); 3401 } 3402 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature other = 3403 (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature) obj; 3404 3405 if (!getSignatureCase().equals(other.getSignatureCase())) return false; 3406 switch (signatureCase_) { 3407 case 6: 3408 if (!getMemoryHashSignature().equals(other.getMemoryHashSignature())) return false; 3409 break; 3410 case 7: 3411 if (!getYaraRuleSignature().equals(other.getYaraRuleSignature())) return false; 3412 break; 3413 case 0: 3414 default: 3415 } 3416 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 3417 return true; 3418 } 3419 3420 @java.lang.Override hashCode()3421 public int hashCode() { 3422 if (memoizedHashCode != 0) { 3423 return memoizedHashCode; 3424 } 3425 int hash = 41; 3426 hash = (19 * hash) + getDescriptor().hashCode(); 3427 switch (signatureCase_) { 3428 case 6: 3429 hash = (37 * hash) + MEMORY_HASH_SIGNATURE_FIELD_NUMBER; 3430 hash = (53 * hash) + getMemoryHashSignature().hashCode(); 3431 break; 3432 case 7: 3433 hash = (37 * hash) + YARA_RULE_SIGNATURE_FIELD_NUMBER; 3434 hash = (53 * hash) + getYaraRuleSignature().hashCode(); 3435 break; 3436 case 0: 3437 default: 3438 } 3439 hash = (29 * hash) + getUnknownFields().hashCode(); 3440 memoizedHashCode = hash; 3441 return hash; 3442 } 3443 parseFrom( java.nio.ByteBuffer data)3444 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature parseFrom( 3445 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 3446 return PARSER.parseFrom(data); 3447 } 3448 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3449 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature parseFrom( 3450 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3451 throws com.google.protobuf.InvalidProtocolBufferException { 3452 return PARSER.parseFrom(data, extensionRegistry); 3453 } 3454 parseFrom( com.google.protobuf.ByteString data)3455 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature parseFrom( 3456 com.google.protobuf.ByteString data) 3457 throws com.google.protobuf.InvalidProtocolBufferException { 3458 return PARSER.parseFrom(data); 3459 } 3460 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3461 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature parseFrom( 3462 com.google.protobuf.ByteString data, 3463 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3464 throws com.google.protobuf.InvalidProtocolBufferException { 3465 return PARSER.parseFrom(data, extensionRegistry); 3466 } 3467 parseFrom( byte[] data)3468 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature parseFrom( 3469 byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { 3470 return PARSER.parseFrom(data); 3471 } 3472 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3473 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature parseFrom( 3474 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3475 throws com.google.protobuf.InvalidProtocolBufferException { 3476 return PARSER.parseFrom(data, extensionRegistry); 3477 } 3478 parseFrom( java.io.InputStream input)3479 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature parseFrom( 3480 java.io.InputStream input) throws java.io.IOException { 3481 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 3482 } 3483 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3484 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature parseFrom( 3485 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3486 throws java.io.IOException { 3487 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 3488 PARSER, input, extensionRegistry); 3489 } 3490 parseDelimitedFrom( java.io.InputStream input)3491 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature parseDelimitedFrom( 3492 java.io.InputStream input) throws java.io.IOException { 3493 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 3494 } 3495 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3496 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature parseDelimitedFrom( 3497 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3498 throws java.io.IOException { 3499 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 3500 PARSER, input, extensionRegistry); 3501 } 3502 parseFrom( com.google.protobuf.CodedInputStream input)3503 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature parseFrom( 3504 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 3505 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 3506 } 3507 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3508 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature parseFrom( 3509 com.google.protobuf.CodedInputStream input, 3510 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3511 throws java.io.IOException { 3512 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 3513 PARSER, input, extensionRegistry); 3514 } 3515 3516 @java.lang.Override newBuilderForType()3517 public Builder newBuilderForType() { 3518 return newBuilder(); 3519 } 3520 newBuilder()3521 public static Builder newBuilder() { 3522 return DEFAULT_INSTANCE.toBuilder(); 3523 } 3524 newBuilder( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature prototype)3525 public static Builder newBuilder( 3526 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature prototype) { 3527 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 3528 } 3529 3530 @java.lang.Override toBuilder()3531 public Builder toBuilder() { 3532 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 3533 } 3534 3535 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3536 protected Builder newBuilderForType( 3537 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 3538 Builder builder = new Builder(parent); 3539 return builder; 3540 } 3541 /** 3542 * 3543 * 3544 * <pre> 3545 * Indicates what signature matched this process. 3546 * </pre> 3547 * 3548 * Protobuf type {@code google.cloud.securitycenter.v1.Indicator.ProcessSignature} 3549 */ 3550 public static final class Builder 3551 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 3552 implements 3553 // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Indicator.ProcessSignature) 3554 com.google.cloud.securitycenter.v1.Indicator.ProcessSignatureOrBuilder { getDescriptor()3555 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 3556 return com.google.cloud.securitycenter.v1.IndicatorProto 3557 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_descriptor; 3558 } 3559 3560 @java.lang.Override 3561 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()3562 internalGetFieldAccessorTable() { 3563 return com.google.cloud.securitycenter.v1.IndicatorProto 3564 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_fieldAccessorTable 3565 .ensureFieldAccessorsInitialized( 3566 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.class, 3567 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.Builder.class); 3568 } 3569 3570 // Construct using com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.newBuilder() Builder()3571 private Builder() {} 3572 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3573 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 3574 super(parent); 3575 } 3576 3577 @java.lang.Override clear()3578 public Builder clear() { 3579 super.clear(); 3580 bitField0_ = 0; 3581 if (memoryHashSignatureBuilder_ != null) { 3582 memoryHashSignatureBuilder_.clear(); 3583 } 3584 if (yaraRuleSignatureBuilder_ != null) { 3585 yaraRuleSignatureBuilder_.clear(); 3586 } 3587 signatureCase_ = 0; 3588 signature_ = null; 3589 return this; 3590 } 3591 3592 @java.lang.Override getDescriptorForType()3593 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 3594 return com.google.cloud.securitycenter.v1.IndicatorProto 3595 .internal_static_google_cloud_securitycenter_v1_Indicator_ProcessSignature_descriptor; 3596 } 3597 3598 @java.lang.Override 3599 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature getDefaultInstanceForType()3600 getDefaultInstanceForType() { 3601 return com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.getDefaultInstance(); 3602 } 3603 3604 @java.lang.Override build()3605 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature build() { 3606 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature result = buildPartial(); 3607 if (!result.isInitialized()) { 3608 throw newUninitializedMessageException(result); 3609 } 3610 return result; 3611 } 3612 3613 @java.lang.Override buildPartial()3614 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature buildPartial() { 3615 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature result = 3616 new com.google.cloud.securitycenter.v1.Indicator.ProcessSignature(this); 3617 if (bitField0_ != 0) { 3618 buildPartial0(result); 3619 } 3620 buildPartialOneofs(result); 3621 onBuilt(); 3622 return result; 3623 } 3624 buildPartial0( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature result)3625 private void buildPartial0( 3626 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature result) { 3627 int from_bitField0_ = bitField0_; 3628 } 3629 buildPartialOneofs( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature result)3630 private void buildPartialOneofs( 3631 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature result) { 3632 result.signatureCase_ = signatureCase_; 3633 result.signature_ = this.signature_; 3634 if (signatureCase_ == 6 && memoryHashSignatureBuilder_ != null) { 3635 result.signature_ = memoryHashSignatureBuilder_.build(); 3636 } 3637 if (signatureCase_ == 7 && yaraRuleSignatureBuilder_ != null) { 3638 result.signature_ = yaraRuleSignatureBuilder_.build(); 3639 } 3640 } 3641 3642 @java.lang.Override clone()3643 public Builder clone() { 3644 return super.clone(); 3645 } 3646 3647 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3648 public Builder setField( 3649 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 3650 return super.setField(field, value); 3651 } 3652 3653 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)3654 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 3655 return super.clearField(field); 3656 } 3657 3658 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)3659 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 3660 return super.clearOneof(oneof); 3661 } 3662 3663 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)3664 public Builder setRepeatedField( 3665 com.google.protobuf.Descriptors.FieldDescriptor field, 3666 int index, 3667 java.lang.Object value) { 3668 return super.setRepeatedField(field, index, value); 3669 } 3670 3671 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3672 public Builder addRepeatedField( 3673 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 3674 return super.addRepeatedField(field, value); 3675 } 3676 3677 @java.lang.Override mergeFrom(com.google.protobuf.Message other)3678 public Builder mergeFrom(com.google.protobuf.Message other) { 3679 if (other instanceof com.google.cloud.securitycenter.v1.Indicator.ProcessSignature) { 3680 return mergeFrom((com.google.cloud.securitycenter.v1.Indicator.ProcessSignature) other); 3681 } else { 3682 super.mergeFrom(other); 3683 return this; 3684 } 3685 } 3686 mergeFrom( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature other)3687 public Builder mergeFrom( 3688 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature other) { 3689 if (other 3690 == com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.getDefaultInstance()) 3691 return this; 3692 switch (other.getSignatureCase()) { 3693 case MEMORY_HASH_SIGNATURE: 3694 { 3695 mergeMemoryHashSignature(other.getMemoryHashSignature()); 3696 break; 3697 } 3698 case YARA_RULE_SIGNATURE: 3699 { 3700 mergeYaraRuleSignature(other.getYaraRuleSignature()); 3701 break; 3702 } 3703 case SIGNATURE_NOT_SET: 3704 { 3705 break; 3706 } 3707 } 3708 this.mergeUnknownFields(other.getUnknownFields()); 3709 onChanged(); 3710 return this; 3711 } 3712 3713 @java.lang.Override isInitialized()3714 public final boolean isInitialized() { 3715 return true; 3716 } 3717 3718 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3719 public Builder mergeFrom( 3720 com.google.protobuf.CodedInputStream input, 3721 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3722 throws java.io.IOException { 3723 if (extensionRegistry == null) { 3724 throw new java.lang.NullPointerException(); 3725 } 3726 try { 3727 boolean done = false; 3728 while (!done) { 3729 int tag = input.readTag(); 3730 switch (tag) { 3731 case 0: 3732 done = true; 3733 break; 3734 case 50: 3735 { 3736 input.readMessage( 3737 getMemoryHashSignatureFieldBuilder().getBuilder(), extensionRegistry); 3738 signatureCase_ = 6; 3739 break; 3740 } // case 50 3741 case 58: 3742 { 3743 input.readMessage( 3744 getYaraRuleSignatureFieldBuilder().getBuilder(), extensionRegistry); 3745 signatureCase_ = 7; 3746 break; 3747 } // case 58 3748 default: 3749 { 3750 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 3751 done = true; // was an endgroup tag 3752 } 3753 break; 3754 } // default: 3755 } // switch (tag) 3756 } // while (!done) 3757 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3758 throw e.unwrapIOException(); 3759 } finally { 3760 onChanged(); 3761 } // finally 3762 return this; 3763 } 3764 3765 private int signatureCase_ = 0; 3766 private java.lang.Object signature_; 3767 getSignatureCase()3768 public SignatureCase getSignatureCase() { 3769 return SignatureCase.forNumber(signatureCase_); 3770 } 3771 clearSignature()3772 public Builder clearSignature() { 3773 signatureCase_ = 0; 3774 signature_ = null; 3775 onChanged(); 3776 return this; 3777 } 3778 3779 private int bitField0_; 3780 3781 private com.google.protobuf.SingleFieldBuilderV3< 3782 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature, 3783 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 3784 .Builder, 3785 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 3786 .MemoryHashSignatureOrBuilder> 3787 memoryHashSignatureBuilder_; 3788 /** 3789 * 3790 * 3791 * <pre> 3792 * Signature indicating that a binary family was matched. 3793 * </pre> 3794 * 3795 * <code> 3796 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature memory_hash_signature = 6; 3797 * </code> 3798 * 3799 * @return Whether the memoryHashSignature field is set. 3800 */ 3801 @java.lang.Override hasMemoryHashSignature()3802 public boolean hasMemoryHashSignature() { 3803 return signatureCase_ == 6; 3804 } 3805 /** 3806 * 3807 * 3808 * <pre> 3809 * Signature indicating that a binary family was matched. 3810 * </pre> 3811 * 3812 * <code> 3813 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature memory_hash_signature = 6; 3814 * </code> 3815 * 3816 * @return The memoryHashSignature. 3817 */ 3818 @java.lang.Override 3819 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature getMemoryHashSignature()3820 getMemoryHashSignature() { 3821 if (memoryHashSignatureBuilder_ == null) { 3822 if (signatureCase_ == 6) { 3823 return (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 3824 .MemoryHashSignature) 3825 signature_; 3826 } 3827 return com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 3828 .getDefaultInstance(); 3829 } else { 3830 if (signatureCase_ == 6) { 3831 return memoryHashSignatureBuilder_.getMessage(); 3832 } 3833 return com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 3834 .getDefaultInstance(); 3835 } 3836 } 3837 /** 3838 * 3839 * 3840 * <pre> 3841 * Signature indicating that a binary family was matched. 3842 * </pre> 3843 * 3844 * <code> 3845 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature memory_hash_signature = 6; 3846 * </code> 3847 */ setMemoryHashSignature( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature value)3848 public Builder setMemoryHashSignature( 3849 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature value) { 3850 if (memoryHashSignatureBuilder_ == null) { 3851 if (value == null) { 3852 throw new NullPointerException(); 3853 } 3854 signature_ = value; 3855 onChanged(); 3856 } else { 3857 memoryHashSignatureBuilder_.setMessage(value); 3858 } 3859 signatureCase_ = 6; 3860 return this; 3861 } 3862 /** 3863 * 3864 * 3865 * <pre> 3866 * Signature indicating that a binary family was matched. 3867 * </pre> 3868 * 3869 * <code> 3870 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature memory_hash_signature = 6; 3871 * </code> 3872 */ setMemoryHashSignature( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Builder builderForValue)3873 public Builder setMemoryHashSignature( 3874 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Builder 3875 builderForValue) { 3876 if (memoryHashSignatureBuilder_ == null) { 3877 signature_ = builderForValue.build(); 3878 onChanged(); 3879 } else { 3880 memoryHashSignatureBuilder_.setMessage(builderForValue.build()); 3881 } 3882 signatureCase_ = 6; 3883 return this; 3884 } 3885 /** 3886 * 3887 * 3888 * <pre> 3889 * Signature indicating that a binary family was matched. 3890 * </pre> 3891 * 3892 * <code> 3893 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature memory_hash_signature = 6; 3894 * </code> 3895 */ mergeMemoryHashSignature( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature value)3896 public Builder mergeMemoryHashSignature( 3897 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature value) { 3898 if (memoryHashSignatureBuilder_ == null) { 3899 if (signatureCase_ == 6 3900 && signature_ 3901 != com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 3902 .MemoryHashSignature.getDefaultInstance()) { 3903 signature_ = 3904 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 3905 .newBuilder( 3906 (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 3907 .MemoryHashSignature) 3908 signature_) 3909 .mergeFrom(value) 3910 .buildPartial(); 3911 } else { 3912 signature_ = value; 3913 } 3914 onChanged(); 3915 } else { 3916 if (signatureCase_ == 6) { 3917 memoryHashSignatureBuilder_.mergeFrom(value); 3918 } else { 3919 memoryHashSignatureBuilder_.setMessage(value); 3920 } 3921 } 3922 signatureCase_ = 6; 3923 return this; 3924 } 3925 /** 3926 * 3927 * 3928 * <pre> 3929 * Signature indicating that a binary family was matched. 3930 * </pre> 3931 * 3932 * <code> 3933 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature memory_hash_signature = 6; 3934 * </code> 3935 */ clearMemoryHashSignature()3936 public Builder clearMemoryHashSignature() { 3937 if (memoryHashSignatureBuilder_ == null) { 3938 if (signatureCase_ == 6) { 3939 signatureCase_ = 0; 3940 signature_ = null; 3941 onChanged(); 3942 } 3943 } else { 3944 if (signatureCase_ == 6) { 3945 signatureCase_ = 0; 3946 signature_ = null; 3947 } 3948 memoryHashSignatureBuilder_.clear(); 3949 } 3950 return this; 3951 } 3952 /** 3953 * 3954 * 3955 * <pre> 3956 * Signature indicating that a binary family was matched. 3957 * </pre> 3958 * 3959 * <code> 3960 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature memory_hash_signature = 6; 3961 * </code> 3962 */ 3963 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 3964 .Builder getMemoryHashSignatureBuilder()3965 getMemoryHashSignatureBuilder() { 3966 return getMemoryHashSignatureFieldBuilder().getBuilder(); 3967 } 3968 /** 3969 * 3970 * 3971 * <pre> 3972 * Signature indicating that a binary family was matched. 3973 * </pre> 3974 * 3975 * <code> 3976 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature memory_hash_signature = 6; 3977 * </code> 3978 */ 3979 @java.lang.Override 3980 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 3981 .MemoryHashSignatureOrBuilder getMemoryHashSignatureOrBuilder()3982 getMemoryHashSignatureOrBuilder() { 3983 if ((signatureCase_ == 6) && (memoryHashSignatureBuilder_ != null)) { 3984 return memoryHashSignatureBuilder_.getMessageOrBuilder(); 3985 } else { 3986 if (signatureCase_ == 6) { 3987 return (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 3988 .MemoryHashSignature) 3989 signature_; 3990 } 3991 return com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 3992 .getDefaultInstance(); 3993 } 3994 } 3995 /** 3996 * 3997 * 3998 * <pre> 3999 * Signature indicating that a binary family was matched. 4000 * </pre> 4001 * 4002 * <code> 4003 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature memory_hash_signature = 6; 4004 * </code> 4005 */ 4006 private com.google.protobuf.SingleFieldBuilderV3< 4007 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature, 4008 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 4009 .Builder, 4010 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 4011 .MemoryHashSignatureOrBuilder> getMemoryHashSignatureFieldBuilder()4012 getMemoryHashSignatureFieldBuilder() { 4013 if (memoryHashSignatureBuilder_ == null) { 4014 if (!(signatureCase_ == 6)) { 4015 signature_ = 4016 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 4017 .getDefaultInstance(); 4018 } 4019 memoryHashSignatureBuilder_ = 4020 new com.google.protobuf.SingleFieldBuilderV3< 4021 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature, 4022 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature 4023 .Builder, 4024 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 4025 .MemoryHashSignatureOrBuilder>( 4026 (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 4027 .MemoryHashSignature) 4028 signature_, 4029 getParentForChildren(), 4030 isClean()); 4031 signature_ = null; 4032 } 4033 signatureCase_ = 6; 4034 onChanged(); 4035 return memoryHashSignatureBuilder_; 4036 } 4037 4038 private com.google.protobuf.SingleFieldBuilderV3< 4039 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature, 4040 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 4041 .Builder, 4042 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 4043 .YaraRuleSignatureOrBuilder> 4044 yaraRuleSignatureBuilder_; 4045 /** 4046 * 4047 * 4048 * <pre> 4049 * Signature indicating that a YARA rule was matched. 4050 * </pre> 4051 * 4052 * <code> 4053 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature yara_rule_signature = 7; 4054 * </code> 4055 * 4056 * @return Whether the yaraRuleSignature field is set. 4057 */ 4058 @java.lang.Override hasYaraRuleSignature()4059 public boolean hasYaraRuleSignature() { 4060 return signatureCase_ == 7; 4061 } 4062 /** 4063 * 4064 * 4065 * <pre> 4066 * Signature indicating that a YARA rule was matched. 4067 * </pre> 4068 * 4069 * <code> 4070 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature yara_rule_signature = 7; 4071 * </code> 4072 * 4073 * @return The yaraRuleSignature. 4074 */ 4075 @java.lang.Override 4076 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature getYaraRuleSignature()4077 getYaraRuleSignature() { 4078 if (yaraRuleSignatureBuilder_ == null) { 4079 if (signatureCase_ == 7) { 4080 return (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature) 4081 signature_; 4082 } 4083 return com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 4084 .getDefaultInstance(); 4085 } else { 4086 if (signatureCase_ == 7) { 4087 return yaraRuleSignatureBuilder_.getMessage(); 4088 } 4089 return com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 4090 .getDefaultInstance(); 4091 } 4092 } 4093 /** 4094 * 4095 * 4096 * <pre> 4097 * Signature indicating that a YARA rule was matched. 4098 * </pre> 4099 * 4100 * <code> 4101 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature yara_rule_signature = 7; 4102 * </code> 4103 */ setYaraRuleSignature( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature value)4104 public Builder setYaraRuleSignature( 4105 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature value) { 4106 if (yaraRuleSignatureBuilder_ == null) { 4107 if (value == null) { 4108 throw new NullPointerException(); 4109 } 4110 signature_ = value; 4111 onChanged(); 4112 } else { 4113 yaraRuleSignatureBuilder_.setMessage(value); 4114 } 4115 signatureCase_ = 7; 4116 return this; 4117 } 4118 /** 4119 * 4120 * 4121 * <pre> 4122 * Signature indicating that a YARA rule was matched. 4123 * </pre> 4124 * 4125 * <code> 4126 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature yara_rule_signature = 7; 4127 * </code> 4128 */ setYaraRuleSignature( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature.Builder builderForValue)4129 public Builder setYaraRuleSignature( 4130 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature.Builder 4131 builderForValue) { 4132 if (yaraRuleSignatureBuilder_ == null) { 4133 signature_ = builderForValue.build(); 4134 onChanged(); 4135 } else { 4136 yaraRuleSignatureBuilder_.setMessage(builderForValue.build()); 4137 } 4138 signatureCase_ = 7; 4139 return this; 4140 } 4141 /** 4142 * 4143 * 4144 * <pre> 4145 * Signature indicating that a YARA rule was matched. 4146 * </pre> 4147 * 4148 * <code> 4149 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature yara_rule_signature = 7; 4150 * </code> 4151 */ mergeYaraRuleSignature( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature value)4152 public Builder mergeYaraRuleSignature( 4153 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature value) { 4154 if (yaraRuleSignatureBuilder_ == null) { 4155 if (signatureCase_ == 7 4156 && signature_ 4157 != com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 4158 .getDefaultInstance()) { 4159 signature_ = 4160 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 4161 .newBuilder( 4162 (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 4163 .YaraRuleSignature) 4164 signature_) 4165 .mergeFrom(value) 4166 .buildPartial(); 4167 } else { 4168 signature_ = value; 4169 } 4170 onChanged(); 4171 } else { 4172 if (signatureCase_ == 7) { 4173 yaraRuleSignatureBuilder_.mergeFrom(value); 4174 } else { 4175 yaraRuleSignatureBuilder_.setMessage(value); 4176 } 4177 } 4178 signatureCase_ = 7; 4179 return this; 4180 } 4181 /** 4182 * 4183 * 4184 * <pre> 4185 * Signature indicating that a YARA rule was matched. 4186 * </pre> 4187 * 4188 * <code> 4189 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature yara_rule_signature = 7; 4190 * </code> 4191 */ clearYaraRuleSignature()4192 public Builder clearYaraRuleSignature() { 4193 if (yaraRuleSignatureBuilder_ == null) { 4194 if (signatureCase_ == 7) { 4195 signatureCase_ = 0; 4196 signature_ = null; 4197 onChanged(); 4198 } 4199 } else { 4200 if (signatureCase_ == 7) { 4201 signatureCase_ = 0; 4202 signature_ = null; 4203 } 4204 yaraRuleSignatureBuilder_.clear(); 4205 } 4206 return this; 4207 } 4208 /** 4209 * 4210 * 4211 * <pre> 4212 * Signature indicating that a YARA rule was matched. 4213 * </pre> 4214 * 4215 * <code> 4216 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature yara_rule_signature = 7; 4217 * </code> 4218 */ 4219 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature.Builder getYaraRuleSignatureBuilder()4220 getYaraRuleSignatureBuilder() { 4221 return getYaraRuleSignatureFieldBuilder().getBuilder(); 4222 } 4223 /** 4224 * 4225 * 4226 * <pre> 4227 * Signature indicating that a YARA rule was matched. 4228 * </pre> 4229 * 4230 * <code> 4231 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature yara_rule_signature = 7; 4232 * </code> 4233 */ 4234 @java.lang.Override 4235 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 4236 .YaraRuleSignatureOrBuilder getYaraRuleSignatureOrBuilder()4237 getYaraRuleSignatureOrBuilder() { 4238 if ((signatureCase_ == 7) && (yaraRuleSignatureBuilder_ != null)) { 4239 return yaraRuleSignatureBuilder_.getMessageOrBuilder(); 4240 } else { 4241 if (signatureCase_ == 7) { 4242 return (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature) 4243 signature_; 4244 } 4245 return com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 4246 .getDefaultInstance(); 4247 } 4248 } 4249 /** 4250 * 4251 * 4252 * <pre> 4253 * Signature indicating that a YARA rule was matched. 4254 * </pre> 4255 * 4256 * <code> 4257 * .google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature yara_rule_signature = 7; 4258 * </code> 4259 */ 4260 private com.google.protobuf.SingleFieldBuilderV3< 4261 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature, 4262 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 4263 .Builder, 4264 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 4265 .YaraRuleSignatureOrBuilder> getYaraRuleSignatureFieldBuilder()4266 getYaraRuleSignatureFieldBuilder() { 4267 if (yaraRuleSignatureBuilder_ == null) { 4268 if (!(signatureCase_ == 7)) { 4269 signature_ = 4270 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 4271 .getDefaultInstance(); 4272 } 4273 yaraRuleSignatureBuilder_ = 4274 new com.google.protobuf.SingleFieldBuilderV3< 4275 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature, 4276 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature 4277 .Builder, 4278 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 4279 .YaraRuleSignatureOrBuilder>( 4280 (com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature) 4281 signature_, 4282 getParentForChildren(), 4283 isClean()); 4284 signature_ = null; 4285 } 4286 signatureCase_ = 7; 4287 onChanged(); 4288 return yaraRuleSignatureBuilder_; 4289 } 4290 4291 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4292 public final Builder setUnknownFields( 4293 final com.google.protobuf.UnknownFieldSet unknownFields) { 4294 return super.setUnknownFields(unknownFields); 4295 } 4296 4297 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4298 public final Builder mergeUnknownFields( 4299 final com.google.protobuf.UnknownFieldSet unknownFields) { 4300 return super.mergeUnknownFields(unknownFields); 4301 } 4302 4303 // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Indicator.ProcessSignature) 4304 } 4305 4306 // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Indicator.ProcessSignature) 4307 private static final com.google.cloud.securitycenter.v1.Indicator.ProcessSignature 4308 DEFAULT_INSTANCE; 4309 4310 static { 4311 DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Indicator.ProcessSignature(); 4312 } 4313 4314 public static com.google.cloud.securitycenter.v1.Indicator.ProcessSignature getDefaultInstance()4315 getDefaultInstance() { 4316 return DEFAULT_INSTANCE; 4317 } 4318 4319 private static final com.google.protobuf.Parser<ProcessSignature> PARSER = 4320 new com.google.protobuf.AbstractParser<ProcessSignature>() { 4321 @java.lang.Override 4322 public ProcessSignature parsePartialFrom( 4323 com.google.protobuf.CodedInputStream input, 4324 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4325 throws com.google.protobuf.InvalidProtocolBufferException { 4326 Builder builder = newBuilder(); 4327 try { 4328 builder.mergeFrom(input, extensionRegistry); 4329 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4330 throw e.setUnfinishedMessage(builder.buildPartial()); 4331 } catch (com.google.protobuf.UninitializedMessageException e) { 4332 throw e.asInvalidProtocolBufferException() 4333 .setUnfinishedMessage(builder.buildPartial()); 4334 } catch (java.io.IOException e) { 4335 throw new com.google.protobuf.InvalidProtocolBufferException(e) 4336 .setUnfinishedMessage(builder.buildPartial()); 4337 } 4338 return builder.buildPartial(); 4339 } 4340 }; 4341 parser()4342 public static com.google.protobuf.Parser<ProcessSignature> parser() { 4343 return PARSER; 4344 } 4345 4346 @java.lang.Override getParserForType()4347 public com.google.protobuf.Parser<ProcessSignature> getParserForType() { 4348 return PARSER; 4349 } 4350 4351 @java.lang.Override 4352 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature getDefaultInstanceForType()4353 getDefaultInstanceForType() { 4354 return DEFAULT_INSTANCE; 4355 } 4356 } 4357 4358 public static final int IP_ADDRESSES_FIELD_NUMBER = 1; 4359 4360 @SuppressWarnings("serial") 4361 private com.google.protobuf.LazyStringList ipAddresses_; 4362 /** 4363 * 4364 * 4365 * <pre> 4366 * The list of IP addresses that are associated with the finding. 4367 * </pre> 4368 * 4369 * <code>repeated string ip_addresses = 1;</code> 4370 * 4371 * @return A list containing the ipAddresses. 4372 */ getIpAddressesList()4373 public com.google.protobuf.ProtocolStringList getIpAddressesList() { 4374 return ipAddresses_; 4375 } 4376 /** 4377 * 4378 * 4379 * <pre> 4380 * The list of IP addresses that are associated with the finding. 4381 * </pre> 4382 * 4383 * <code>repeated string ip_addresses = 1;</code> 4384 * 4385 * @return The count of ipAddresses. 4386 */ getIpAddressesCount()4387 public int getIpAddressesCount() { 4388 return ipAddresses_.size(); 4389 } 4390 /** 4391 * 4392 * 4393 * <pre> 4394 * The list of IP addresses that are associated with the finding. 4395 * </pre> 4396 * 4397 * <code>repeated string ip_addresses = 1;</code> 4398 * 4399 * @param index The index of the element to return. 4400 * @return The ipAddresses at the given index. 4401 */ getIpAddresses(int index)4402 public java.lang.String getIpAddresses(int index) { 4403 return ipAddresses_.get(index); 4404 } 4405 /** 4406 * 4407 * 4408 * <pre> 4409 * The list of IP addresses that are associated with the finding. 4410 * </pre> 4411 * 4412 * <code>repeated string ip_addresses = 1;</code> 4413 * 4414 * @param index The index of the value to return. 4415 * @return The bytes of the ipAddresses at the given index. 4416 */ getIpAddressesBytes(int index)4417 public com.google.protobuf.ByteString getIpAddressesBytes(int index) { 4418 return ipAddresses_.getByteString(index); 4419 } 4420 4421 public static final int DOMAINS_FIELD_NUMBER = 2; 4422 4423 @SuppressWarnings("serial") 4424 private com.google.protobuf.LazyStringList domains_; 4425 /** 4426 * 4427 * 4428 * <pre> 4429 * List of domains associated to the Finding. 4430 * </pre> 4431 * 4432 * <code>repeated string domains = 2;</code> 4433 * 4434 * @return A list containing the domains. 4435 */ getDomainsList()4436 public com.google.protobuf.ProtocolStringList getDomainsList() { 4437 return domains_; 4438 } 4439 /** 4440 * 4441 * 4442 * <pre> 4443 * List of domains associated to the Finding. 4444 * </pre> 4445 * 4446 * <code>repeated string domains = 2;</code> 4447 * 4448 * @return The count of domains. 4449 */ getDomainsCount()4450 public int getDomainsCount() { 4451 return domains_.size(); 4452 } 4453 /** 4454 * 4455 * 4456 * <pre> 4457 * List of domains associated to the Finding. 4458 * </pre> 4459 * 4460 * <code>repeated string domains = 2;</code> 4461 * 4462 * @param index The index of the element to return. 4463 * @return The domains at the given index. 4464 */ getDomains(int index)4465 public java.lang.String getDomains(int index) { 4466 return domains_.get(index); 4467 } 4468 /** 4469 * 4470 * 4471 * <pre> 4472 * List of domains associated to the Finding. 4473 * </pre> 4474 * 4475 * <code>repeated string domains = 2;</code> 4476 * 4477 * @param index The index of the value to return. 4478 * @return The bytes of the domains at the given index. 4479 */ getDomainsBytes(int index)4480 public com.google.protobuf.ByteString getDomainsBytes(int index) { 4481 return domains_.getByteString(index); 4482 } 4483 4484 public static final int SIGNATURES_FIELD_NUMBER = 3; 4485 4486 @SuppressWarnings("serial") 4487 private java.util.List<com.google.cloud.securitycenter.v1.Indicator.ProcessSignature> signatures_; 4488 /** 4489 * 4490 * 4491 * <pre> 4492 * The list of matched signatures indicating that the given 4493 * process is present in the environment. 4494 * </pre> 4495 * 4496 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 4497 * </code> 4498 */ 4499 @java.lang.Override 4500 public java.util.List<com.google.cloud.securitycenter.v1.Indicator.ProcessSignature> getSignaturesList()4501 getSignaturesList() { 4502 return signatures_; 4503 } 4504 /** 4505 * 4506 * 4507 * <pre> 4508 * The list of matched signatures indicating that the given 4509 * process is present in the environment. 4510 * </pre> 4511 * 4512 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 4513 * </code> 4514 */ 4515 @java.lang.Override 4516 public java.util.List< 4517 ? extends com.google.cloud.securitycenter.v1.Indicator.ProcessSignatureOrBuilder> getSignaturesOrBuilderList()4518 getSignaturesOrBuilderList() { 4519 return signatures_; 4520 } 4521 /** 4522 * 4523 * 4524 * <pre> 4525 * The list of matched signatures indicating that the given 4526 * process is present in the environment. 4527 * </pre> 4528 * 4529 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 4530 * </code> 4531 */ 4532 @java.lang.Override getSignaturesCount()4533 public int getSignaturesCount() { 4534 return signatures_.size(); 4535 } 4536 /** 4537 * 4538 * 4539 * <pre> 4540 * The list of matched signatures indicating that the given 4541 * process is present in the environment. 4542 * </pre> 4543 * 4544 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 4545 * </code> 4546 */ 4547 @java.lang.Override getSignatures(int index)4548 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature getSignatures(int index) { 4549 return signatures_.get(index); 4550 } 4551 /** 4552 * 4553 * 4554 * <pre> 4555 * The list of matched signatures indicating that the given 4556 * process is present in the environment. 4557 * </pre> 4558 * 4559 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 4560 * </code> 4561 */ 4562 @java.lang.Override 4563 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignatureOrBuilder getSignaturesOrBuilder(int index)4564 getSignaturesOrBuilder(int index) { 4565 return signatures_.get(index); 4566 } 4567 4568 public static final int URIS_FIELD_NUMBER = 4; 4569 4570 @SuppressWarnings("serial") 4571 private com.google.protobuf.LazyStringList uris_; 4572 /** 4573 * 4574 * 4575 * <pre> 4576 * The list of URIs associated to the Findings. 4577 * </pre> 4578 * 4579 * <code>repeated string uris = 4;</code> 4580 * 4581 * @return A list containing the uris. 4582 */ getUrisList()4583 public com.google.protobuf.ProtocolStringList getUrisList() { 4584 return uris_; 4585 } 4586 /** 4587 * 4588 * 4589 * <pre> 4590 * The list of URIs associated to the Findings. 4591 * </pre> 4592 * 4593 * <code>repeated string uris = 4;</code> 4594 * 4595 * @return The count of uris. 4596 */ getUrisCount()4597 public int getUrisCount() { 4598 return uris_.size(); 4599 } 4600 /** 4601 * 4602 * 4603 * <pre> 4604 * The list of URIs associated to the Findings. 4605 * </pre> 4606 * 4607 * <code>repeated string uris = 4;</code> 4608 * 4609 * @param index The index of the element to return. 4610 * @return The uris at the given index. 4611 */ getUris(int index)4612 public java.lang.String getUris(int index) { 4613 return uris_.get(index); 4614 } 4615 /** 4616 * 4617 * 4618 * <pre> 4619 * The list of URIs associated to the Findings. 4620 * </pre> 4621 * 4622 * <code>repeated string uris = 4;</code> 4623 * 4624 * @param index The index of the value to return. 4625 * @return The bytes of the uris at the given index. 4626 */ getUrisBytes(int index)4627 public com.google.protobuf.ByteString getUrisBytes(int index) { 4628 return uris_.getByteString(index); 4629 } 4630 4631 private byte memoizedIsInitialized = -1; 4632 4633 @java.lang.Override isInitialized()4634 public final boolean isInitialized() { 4635 byte isInitialized = memoizedIsInitialized; 4636 if (isInitialized == 1) return true; 4637 if (isInitialized == 0) return false; 4638 4639 memoizedIsInitialized = 1; 4640 return true; 4641 } 4642 4643 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)4644 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 4645 for (int i = 0; i < ipAddresses_.size(); i++) { 4646 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipAddresses_.getRaw(i)); 4647 } 4648 for (int i = 0; i < domains_.size(); i++) { 4649 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domains_.getRaw(i)); 4650 } 4651 for (int i = 0; i < signatures_.size(); i++) { 4652 output.writeMessage(3, signatures_.get(i)); 4653 } 4654 for (int i = 0; i < uris_.size(); i++) { 4655 com.google.protobuf.GeneratedMessageV3.writeString(output, 4, uris_.getRaw(i)); 4656 } 4657 getUnknownFields().writeTo(output); 4658 } 4659 4660 @java.lang.Override getSerializedSize()4661 public int getSerializedSize() { 4662 int size = memoizedSize; 4663 if (size != -1) return size; 4664 4665 size = 0; 4666 { 4667 int dataSize = 0; 4668 for (int i = 0; i < ipAddresses_.size(); i++) { 4669 dataSize += computeStringSizeNoTag(ipAddresses_.getRaw(i)); 4670 } 4671 size += dataSize; 4672 size += 1 * getIpAddressesList().size(); 4673 } 4674 { 4675 int dataSize = 0; 4676 for (int i = 0; i < domains_.size(); i++) { 4677 dataSize += computeStringSizeNoTag(domains_.getRaw(i)); 4678 } 4679 size += dataSize; 4680 size += 1 * getDomainsList().size(); 4681 } 4682 for (int i = 0; i < signatures_.size(); i++) { 4683 size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, signatures_.get(i)); 4684 } 4685 { 4686 int dataSize = 0; 4687 for (int i = 0; i < uris_.size(); i++) { 4688 dataSize += computeStringSizeNoTag(uris_.getRaw(i)); 4689 } 4690 size += dataSize; 4691 size += 1 * getUrisList().size(); 4692 } 4693 size += getUnknownFields().getSerializedSize(); 4694 memoizedSize = size; 4695 return size; 4696 } 4697 4698 @java.lang.Override equals(final java.lang.Object obj)4699 public boolean equals(final java.lang.Object obj) { 4700 if (obj == this) { 4701 return true; 4702 } 4703 if (!(obj instanceof com.google.cloud.securitycenter.v1.Indicator)) { 4704 return super.equals(obj); 4705 } 4706 com.google.cloud.securitycenter.v1.Indicator other = 4707 (com.google.cloud.securitycenter.v1.Indicator) obj; 4708 4709 if (!getIpAddressesList().equals(other.getIpAddressesList())) return false; 4710 if (!getDomainsList().equals(other.getDomainsList())) return false; 4711 if (!getSignaturesList().equals(other.getSignaturesList())) return false; 4712 if (!getUrisList().equals(other.getUrisList())) return false; 4713 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 4714 return true; 4715 } 4716 4717 @java.lang.Override hashCode()4718 public int hashCode() { 4719 if (memoizedHashCode != 0) { 4720 return memoizedHashCode; 4721 } 4722 int hash = 41; 4723 hash = (19 * hash) + getDescriptor().hashCode(); 4724 if (getIpAddressesCount() > 0) { 4725 hash = (37 * hash) + IP_ADDRESSES_FIELD_NUMBER; 4726 hash = (53 * hash) + getIpAddressesList().hashCode(); 4727 } 4728 if (getDomainsCount() > 0) { 4729 hash = (37 * hash) + DOMAINS_FIELD_NUMBER; 4730 hash = (53 * hash) + getDomainsList().hashCode(); 4731 } 4732 if (getSignaturesCount() > 0) { 4733 hash = (37 * hash) + SIGNATURES_FIELD_NUMBER; 4734 hash = (53 * hash) + getSignaturesList().hashCode(); 4735 } 4736 if (getUrisCount() > 0) { 4737 hash = (37 * hash) + URIS_FIELD_NUMBER; 4738 hash = (53 * hash) + getUrisList().hashCode(); 4739 } 4740 hash = (29 * hash) + getUnknownFields().hashCode(); 4741 memoizedHashCode = hash; 4742 return hash; 4743 } 4744 parseFrom(java.nio.ByteBuffer data)4745 public static com.google.cloud.securitycenter.v1.Indicator parseFrom(java.nio.ByteBuffer data) 4746 throws com.google.protobuf.InvalidProtocolBufferException { 4747 return PARSER.parseFrom(data); 4748 } 4749 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4750 public static com.google.cloud.securitycenter.v1.Indicator parseFrom( 4751 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4752 throws com.google.protobuf.InvalidProtocolBufferException { 4753 return PARSER.parseFrom(data, extensionRegistry); 4754 } 4755 parseFrom( com.google.protobuf.ByteString data)4756 public static com.google.cloud.securitycenter.v1.Indicator parseFrom( 4757 com.google.protobuf.ByteString data) 4758 throws com.google.protobuf.InvalidProtocolBufferException { 4759 return PARSER.parseFrom(data); 4760 } 4761 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4762 public static com.google.cloud.securitycenter.v1.Indicator parseFrom( 4763 com.google.protobuf.ByteString data, 4764 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4765 throws com.google.protobuf.InvalidProtocolBufferException { 4766 return PARSER.parseFrom(data, extensionRegistry); 4767 } 4768 parseFrom(byte[] data)4769 public static com.google.cloud.securitycenter.v1.Indicator parseFrom(byte[] data) 4770 throws com.google.protobuf.InvalidProtocolBufferException { 4771 return PARSER.parseFrom(data); 4772 } 4773 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4774 public static com.google.cloud.securitycenter.v1.Indicator parseFrom( 4775 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4776 throws com.google.protobuf.InvalidProtocolBufferException { 4777 return PARSER.parseFrom(data, extensionRegistry); 4778 } 4779 parseFrom(java.io.InputStream input)4780 public static com.google.cloud.securitycenter.v1.Indicator parseFrom(java.io.InputStream input) 4781 throws java.io.IOException { 4782 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 4783 } 4784 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4785 public static com.google.cloud.securitycenter.v1.Indicator parseFrom( 4786 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4787 throws java.io.IOException { 4788 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 4789 PARSER, input, extensionRegistry); 4790 } 4791 parseDelimitedFrom( java.io.InputStream input)4792 public static com.google.cloud.securitycenter.v1.Indicator parseDelimitedFrom( 4793 java.io.InputStream input) throws java.io.IOException { 4794 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 4795 } 4796 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4797 public static com.google.cloud.securitycenter.v1.Indicator parseDelimitedFrom( 4798 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4799 throws java.io.IOException { 4800 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 4801 PARSER, input, extensionRegistry); 4802 } 4803 parseFrom( com.google.protobuf.CodedInputStream input)4804 public static com.google.cloud.securitycenter.v1.Indicator parseFrom( 4805 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 4806 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 4807 } 4808 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4809 public static com.google.cloud.securitycenter.v1.Indicator parseFrom( 4810 com.google.protobuf.CodedInputStream input, 4811 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4812 throws java.io.IOException { 4813 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 4814 PARSER, input, extensionRegistry); 4815 } 4816 4817 @java.lang.Override newBuilderForType()4818 public Builder newBuilderForType() { 4819 return newBuilder(); 4820 } 4821 newBuilder()4822 public static Builder newBuilder() { 4823 return DEFAULT_INSTANCE.toBuilder(); 4824 } 4825 newBuilder(com.google.cloud.securitycenter.v1.Indicator prototype)4826 public static Builder newBuilder(com.google.cloud.securitycenter.v1.Indicator prototype) { 4827 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 4828 } 4829 4830 @java.lang.Override toBuilder()4831 public Builder toBuilder() { 4832 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 4833 } 4834 4835 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)4836 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 4837 Builder builder = new Builder(parent); 4838 return builder; 4839 } 4840 /** 4841 * 4842 * 4843 * <pre> 4844 * Represents what's commonly known as an _indicator of compromise_ (IoC) in 4845 * computer forensics. This is an artifact observed on a network or in an 4846 * operating system that, with high confidence, indicates a computer intrusion. 4847 * For more information, see [Indicator of 4848 * compromise](https://en.wikipedia.org/wiki/Indicator_of_compromise). 4849 * </pre> 4850 * 4851 * Protobuf type {@code google.cloud.securitycenter.v1.Indicator} 4852 */ 4853 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 4854 implements 4855 // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Indicator) 4856 com.google.cloud.securitycenter.v1.IndicatorOrBuilder { getDescriptor()4857 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 4858 return com.google.cloud.securitycenter.v1.IndicatorProto 4859 .internal_static_google_cloud_securitycenter_v1_Indicator_descriptor; 4860 } 4861 4862 @java.lang.Override 4863 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()4864 internalGetFieldAccessorTable() { 4865 return com.google.cloud.securitycenter.v1.IndicatorProto 4866 .internal_static_google_cloud_securitycenter_v1_Indicator_fieldAccessorTable 4867 .ensureFieldAccessorsInitialized( 4868 com.google.cloud.securitycenter.v1.Indicator.class, 4869 com.google.cloud.securitycenter.v1.Indicator.Builder.class); 4870 } 4871 4872 // Construct using com.google.cloud.securitycenter.v1.Indicator.newBuilder() Builder()4873 private Builder() {} 4874 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)4875 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 4876 super(parent); 4877 } 4878 4879 @java.lang.Override clear()4880 public Builder clear() { 4881 super.clear(); 4882 bitField0_ = 0; 4883 ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; 4884 bitField0_ = (bitField0_ & ~0x00000001); 4885 domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; 4886 bitField0_ = (bitField0_ & ~0x00000002); 4887 if (signaturesBuilder_ == null) { 4888 signatures_ = java.util.Collections.emptyList(); 4889 } else { 4890 signatures_ = null; 4891 signaturesBuilder_.clear(); 4892 } 4893 bitField0_ = (bitField0_ & ~0x00000004); 4894 uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; 4895 bitField0_ = (bitField0_ & ~0x00000008); 4896 return this; 4897 } 4898 4899 @java.lang.Override getDescriptorForType()4900 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 4901 return com.google.cloud.securitycenter.v1.IndicatorProto 4902 .internal_static_google_cloud_securitycenter_v1_Indicator_descriptor; 4903 } 4904 4905 @java.lang.Override getDefaultInstanceForType()4906 public com.google.cloud.securitycenter.v1.Indicator getDefaultInstanceForType() { 4907 return com.google.cloud.securitycenter.v1.Indicator.getDefaultInstance(); 4908 } 4909 4910 @java.lang.Override build()4911 public com.google.cloud.securitycenter.v1.Indicator build() { 4912 com.google.cloud.securitycenter.v1.Indicator result = buildPartial(); 4913 if (!result.isInitialized()) { 4914 throw newUninitializedMessageException(result); 4915 } 4916 return result; 4917 } 4918 4919 @java.lang.Override buildPartial()4920 public com.google.cloud.securitycenter.v1.Indicator buildPartial() { 4921 com.google.cloud.securitycenter.v1.Indicator result = 4922 new com.google.cloud.securitycenter.v1.Indicator(this); 4923 buildPartialRepeatedFields(result); 4924 if (bitField0_ != 0) { 4925 buildPartial0(result); 4926 } 4927 onBuilt(); 4928 return result; 4929 } 4930 buildPartialRepeatedFields(com.google.cloud.securitycenter.v1.Indicator result)4931 private void buildPartialRepeatedFields(com.google.cloud.securitycenter.v1.Indicator result) { 4932 if (((bitField0_ & 0x00000001) != 0)) { 4933 ipAddresses_ = ipAddresses_.getUnmodifiableView(); 4934 bitField0_ = (bitField0_ & ~0x00000001); 4935 } 4936 result.ipAddresses_ = ipAddresses_; 4937 if (((bitField0_ & 0x00000002) != 0)) { 4938 domains_ = domains_.getUnmodifiableView(); 4939 bitField0_ = (bitField0_ & ~0x00000002); 4940 } 4941 result.domains_ = domains_; 4942 if (signaturesBuilder_ == null) { 4943 if (((bitField0_ & 0x00000004) != 0)) { 4944 signatures_ = java.util.Collections.unmodifiableList(signatures_); 4945 bitField0_ = (bitField0_ & ~0x00000004); 4946 } 4947 result.signatures_ = signatures_; 4948 } else { 4949 result.signatures_ = signaturesBuilder_.build(); 4950 } 4951 if (((bitField0_ & 0x00000008) != 0)) { 4952 uris_ = uris_.getUnmodifiableView(); 4953 bitField0_ = (bitField0_ & ~0x00000008); 4954 } 4955 result.uris_ = uris_; 4956 } 4957 buildPartial0(com.google.cloud.securitycenter.v1.Indicator result)4958 private void buildPartial0(com.google.cloud.securitycenter.v1.Indicator result) { 4959 int from_bitField0_ = bitField0_; 4960 } 4961 4962 @java.lang.Override clone()4963 public Builder clone() { 4964 return super.clone(); 4965 } 4966 4967 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)4968 public Builder setField( 4969 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 4970 return super.setField(field, value); 4971 } 4972 4973 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)4974 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 4975 return super.clearField(field); 4976 } 4977 4978 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)4979 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 4980 return super.clearOneof(oneof); 4981 } 4982 4983 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)4984 public Builder setRepeatedField( 4985 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 4986 return super.setRepeatedField(field, index, value); 4987 } 4988 4989 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)4990 public Builder addRepeatedField( 4991 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 4992 return super.addRepeatedField(field, value); 4993 } 4994 4995 @java.lang.Override mergeFrom(com.google.protobuf.Message other)4996 public Builder mergeFrom(com.google.protobuf.Message other) { 4997 if (other instanceof com.google.cloud.securitycenter.v1.Indicator) { 4998 return mergeFrom((com.google.cloud.securitycenter.v1.Indicator) other); 4999 } else { 5000 super.mergeFrom(other); 5001 return this; 5002 } 5003 } 5004 mergeFrom(com.google.cloud.securitycenter.v1.Indicator other)5005 public Builder mergeFrom(com.google.cloud.securitycenter.v1.Indicator other) { 5006 if (other == com.google.cloud.securitycenter.v1.Indicator.getDefaultInstance()) return this; 5007 if (!other.ipAddresses_.isEmpty()) { 5008 if (ipAddresses_.isEmpty()) { 5009 ipAddresses_ = other.ipAddresses_; 5010 bitField0_ = (bitField0_ & ~0x00000001); 5011 } else { 5012 ensureIpAddressesIsMutable(); 5013 ipAddresses_.addAll(other.ipAddresses_); 5014 } 5015 onChanged(); 5016 } 5017 if (!other.domains_.isEmpty()) { 5018 if (domains_.isEmpty()) { 5019 domains_ = other.domains_; 5020 bitField0_ = (bitField0_ & ~0x00000002); 5021 } else { 5022 ensureDomainsIsMutable(); 5023 domains_.addAll(other.domains_); 5024 } 5025 onChanged(); 5026 } 5027 if (signaturesBuilder_ == null) { 5028 if (!other.signatures_.isEmpty()) { 5029 if (signatures_.isEmpty()) { 5030 signatures_ = other.signatures_; 5031 bitField0_ = (bitField0_ & ~0x00000004); 5032 } else { 5033 ensureSignaturesIsMutable(); 5034 signatures_.addAll(other.signatures_); 5035 } 5036 onChanged(); 5037 } 5038 } else { 5039 if (!other.signatures_.isEmpty()) { 5040 if (signaturesBuilder_.isEmpty()) { 5041 signaturesBuilder_.dispose(); 5042 signaturesBuilder_ = null; 5043 signatures_ = other.signatures_; 5044 bitField0_ = (bitField0_ & ~0x00000004); 5045 signaturesBuilder_ = 5046 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 5047 ? getSignaturesFieldBuilder() 5048 : null; 5049 } else { 5050 signaturesBuilder_.addAllMessages(other.signatures_); 5051 } 5052 } 5053 } 5054 if (!other.uris_.isEmpty()) { 5055 if (uris_.isEmpty()) { 5056 uris_ = other.uris_; 5057 bitField0_ = (bitField0_ & ~0x00000008); 5058 } else { 5059 ensureUrisIsMutable(); 5060 uris_.addAll(other.uris_); 5061 } 5062 onChanged(); 5063 } 5064 this.mergeUnknownFields(other.getUnknownFields()); 5065 onChanged(); 5066 return this; 5067 } 5068 5069 @java.lang.Override isInitialized()5070 public final boolean isInitialized() { 5071 return true; 5072 } 5073 5074 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5075 public Builder mergeFrom( 5076 com.google.protobuf.CodedInputStream input, 5077 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5078 throws java.io.IOException { 5079 if (extensionRegistry == null) { 5080 throw new java.lang.NullPointerException(); 5081 } 5082 try { 5083 boolean done = false; 5084 while (!done) { 5085 int tag = input.readTag(); 5086 switch (tag) { 5087 case 0: 5088 done = true; 5089 break; 5090 case 10: 5091 { 5092 java.lang.String s = input.readStringRequireUtf8(); 5093 ensureIpAddressesIsMutable(); 5094 ipAddresses_.add(s); 5095 break; 5096 } // case 10 5097 case 18: 5098 { 5099 java.lang.String s = input.readStringRequireUtf8(); 5100 ensureDomainsIsMutable(); 5101 domains_.add(s); 5102 break; 5103 } // case 18 5104 case 26: 5105 { 5106 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature m = 5107 input.readMessage( 5108 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.parser(), 5109 extensionRegistry); 5110 if (signaturesBuilder_ == null) { 5111 ensureSignaturesIsMutable(); 5112 signatures_.add(m); 5113 } else { 5114 signaturesBuilder_.addMessage(m); 5115 } 5116 break; 5117 } // case 26 5118 case 34: 5119 { 5120 java.lang.String s = input.readStringRequireUtf8(); 5121 ensureUrisIsMutable(); 5122 uris_.add(s); 5123 break; 5124 } // case 34 5125 default: 5126 { 5127 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 5128 done = true; // was an endgroup tag 5129 } 5130 break; 5131 } // default: 5132 } // switch (tag) 5133 } // while (!done) 5134 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5135 throw e.unwrapIOException(); 5136 } finally { 5137 onChanged(); 5138 } // finally 5139 return this; 5140 } 5141 5142 private int bitField0_; 5143 5144 private com.google.protobuf.LazyStringList ipAddresses_ = 5145 com.google.protobuf.LazyStringArrayList.EMPTY; 5146 ensureIpAddressesIsMutable()5147 private void ensureIpAddressesIsMutable() { 5148 if (!((bitField0_ & 0x00000001) != 0)) { 5149 ipAddresses_ = new com.google.protobuf.LazyStringArrayList(ipAddresses_); 5150 bitField0_ |= 0x00000001; 5151 } 5152 } 5153 /** 5154 * 5155 * 5156 * <pre> 5157 * The list of IP addresses that are associated with the finding. 5158 * </pre> 5159 * 5160 * <code>repeated string ip_addresses = 1;</code> 5161 * 5162 * @return A list containing the ipAddresses. 5163 */ getIpAddressesList()5164 public com.google.protobuf.ProtocolStringList getIpAddressesList() { 5165 return ipAddresses_.getUnmodifiableView(); 5166 } 5167 /** 5168 * 5169 * 5170 * <pre> 5171 * The list of IP addresses that are associated with the finding. 5172 * </pre> 5173 * 5174 * <code>repeated string ip_addresses = 1;</code> 5175 * 5176 * @return The count of ipAddresses. 5177 */ getIpAddressesCount()5178 public int getIpAddressesCount() { 5179 return ipAddresses_.size(); 5180 } 5181 /** 5182 * 5183 * 5184 * <pre> 5185 * The list of IP addresses that are associated with the finding. 5186 * </pre> 5187 * 5188 * <code>repeated string ip_addresses = 1;</code> 5189 * 5190 * @param index The index of the element to return. 5191 * @return The ipAddresses at the given index. 5192 */ getIpAddresses(int index)5193 public java.lang.String getIpAddresses(int index) { 5194 return ipAddresses_.get(index); 5195 } 5196 /** 5197 * 5198 * 5199 * <pre> 5200 * The list of IP addresses that are associated with the finding. 5201 * </pre> 5202 * 5203 * <code>repeated string ip_addresses = 1;</code> 5204 * 5205 * @param index The index of the value to return. 5206 * @return The bytes of the ipAddresses at the given index. 5207 */ getIpAddressesBytes(int index)5208 public com.google.protobuf.ByteString getIpAddressesBytes(int index) { 5209 return ipAddresses_.getByteString(index); 5210 } 5211 /** 5212 * 5213 * 5214 * <pre> 5215 * The list of IP addresses that are associated with the finding. 5216 * </pre> 5217 * 5218 * <code>repeated string ip_addresses = 1;</code> 5219 * 5220 * @param index The index to set the value at. 5221 * @param value The ipAddresses to set. 5222 * @return This builder for chaining. 5223 */ setIpAddresses(int index, java.lang.String value)5224 public Builder setIpAddresses(int index, java.lang.String value) { 5225 if (value == null) { 5226 throw new NullPointerException(); 5227 } 5228 ensureIpAddressesIsMutable(); 5229 ipAddresses_.set(index, value); 5230 onChanged(); 5231 return this; 5232 } 5233 /** 5234 * 5235 * 5236 * <pre> 5237 * The list of IP addresses that are associated with the finding. 5238 * </pre> 5239 * 5240 * <code>repeated string ip_addresses = 1;</code> 5241 * 5242 * @param value The ipAddresses to add. 5243 * @return This builder for chaining. 5244 */ addIpAddresses(java.lang.String value)5245 public Builder addIpAddresses(java.lang.String value) { 5246 if (value == null) { 5247 throw new NullPointerException(); 5248 } 5249 ensureIpAddressesIsMutable(); 5250 ipAddresses_.add(value); 5251 onChanged(); 5252 return this; 5253 } 5254 /** 5255 * 5256 * 5257 * <pre> 5258 * The list of IP addresses that are associated with the finding. 5259 * </pre> 5260 * 5261 * <code>repeated string ip_addresses = 1;</code> 5262 * 5263 * @param values The ipAddresses to add. 5264 * @return This builder for chaining. 5265 */ addAllIpAddresses(java.lang.Iterable<java.lang.String> values)5266 public Builder addAllIpAddresses(java.lang.Iterable<java.lang.String> values) { 5267 ensureIpAddressesIsMutable(); 5268 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipAddresses_); 5269 onChanged(); 5270 return this; 5271 } 5272 /** 5273 * 5274 * 5275 * <pre> 5276 * The list of IP addresses that are associated with the finding. 5277 * </pre> 5278 * 5279 * <code>repeated string ip_addresses = 1;</code> 5280 * 5281 * @return This builder for chaining. 5282 */ clearIpAddresses()5283 public Builder clearIpAddresses() { 5284 ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; 5285 bitField0_ = (bitField0_ & ~0x00000001); 5286 onChanged(); 5287 return this; 5288 } 5289 /** 5290 * 5291 * 5292 * <pre> 5293 * The list of IP addresses that are associated with the finding. 5294 * </pre> 5295 * 5296 * <code>repeated string ip_addresses = 1;</code> 5297 * 5298 * @param value The bytes of the ipAddresses to add. 5299 * @return This builder for chaining. 5300 */ addIpAddressesBytes(com.google.protobuf.ByteString value)5301 public Builder addIpAddressesBytes(com.google.protobuf.ByteString value) { 5302 if (value == null) { 5303 throw new NullPointerException(); 5304 } 5305 checkByteStringIsUtf8(value); 5306 ensureIpAddressesIsMutable(); 5307 ipAddresses_.add(value); 5308 onChanged(); 5309 return this; 5310 } 5311 5312 private com.google.protobuf.LazyStringList domains_ = 5313 com.google.protobuf.LazyStringArrayList.EMPTY; 5314 ensureDomainsIsMutable()5315 private void ensureDomainsIsMutable() { 5316 if (!((bitField0_ & 0x00000002) != 0)) { 5317 domains_ = new com.google.protobuf.LazyStringArrayList(domains_); 5318 bitField0_ |= 0x00000002; 5319 } 5320 } 5321 /** 5322 * 5323 * 5324 * <pre> 5325 * List of domains associated to the Finding. 5326 * </pre> 5327 * 5328 * <code>repeated string domains = 2;</code> 5329 * 5330 * @return A list containing the domains. 5331 */ getDomainsList()5332 public com.google.protobuf.ProtocolStringList getDomainsList() { 5333 return domains_.getUnmodifiableView(); 5334 } 5335 /** 5336 * 5337 * 5338 * <pre> 5339 * List of domains associated to the Finding. 5340 * </pre> 5341 * 5342 * <code>repeated string domains = 2;</code> 5343 * 5344 * @return The count of domains. 5345 */ getDomainsCount()5346 public int getDomainsCount() { 5347 return domains_.size(); 5348 } 5349 /** 5350 * 5351 * 5352 * <pre> 5353 * List of domains associated to the Finding. 5354 * </pre> 5355 * 5356 * <code>repeated string domains = 2;</code> 5357 * 5358 * @param index The index of the element to return. 5359 * @return The domains at the given index. 5360 */ getDomains(int index)5361 public java.lang.String getDomains(int index) { 5362 return domains_.get(index); 5363 } 5364 /** 5365 * 5366 * 5367 * <pre> 5368 * List of domains associated to the Finding. 5369 * </pre> 5370 * 5371 * <code>repeated string domains = 2;</code> 5372 * 5373 * @param index The index of the value to return. 5374 * @return The bytes of the domains at the given index. 5375 */ getDomainsBytes(int index)5376 public com.google.protobuf.ByteString getDomainsBytes(int index) { 5377 return domains_.getByteString(index); 5378 } 5379 /** 5380 * 5381 * 5382 * <pre> 5383 * List of domains associated to the Finding. 5384 * </pre> 5385 * 5386 * <code>repeated string domains = 2;</code> 5387 * 5388 * @param index The index to set the value at. 5389 * @param value The domains to set. 5390 * @return This builder for chaining. 5391 */ setDomains(int index, java.lang.String value)5392 public Builder setDomains(int index, java.lang.String value) { 5393 if (value == null) { 5394 throw new NullPointerException(); 5395 } 5396 ensureDomainsIsMutable(); 5397 domains_.set(index, value); 5398 onChanged(); 5399 return this; 5400 } 5401 /** 5402 * 5403 * 5404 * <pre> 5405 * List of domains associated to the Finding. 5406 * </pre> 5407 * 5408 * <code>repeated string domains = 2;</code> 5409 * 5410 * @param value The domains to add. 5411 * @return This builder for chaining. 5412 */ addDomains(java.lang.String value)5413 public Builder addDomains(java.lang.String value) { 5414 if (value == null) { 5415 throw new NullPointerException(); 5416 } 5417 ensureDomainsIsMutable(); 5418 domains_.add(value); 5419 onChanged(); 5420 return this; 5421 } 5422 /** 5423 * 5424 * 5425 * <pre> 5426 * List of domains associated to the Finding. 5427 * </pre> 5428 * 5429 * <code>repeated string domains = 2;</code> 5430 * 5431 * @param values The domains to add. 5432 * @return This builder for chaining. 5433 */ addAllDomains(java.lang.Iterable<java.lang.String> values)5434 public Builder addAllDomains(java.lang.Iterable<java.lang.String> values) { 5435 ensureDomainsIsMutable(); 5436 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, domains_); 5437 onChanged(); 5438 return this; 5439 } 5440 /** 5441 * 5442 * 5443 * <pre> 5444 * List of domains associated to the Finding. 5445 * </pre> 5446 * 5447 * <code>repeated string domains = 2;</code> 5448 * 5449 * @return This builder for chaining. 5450 */ clearDomains()5451 public Builder clearDomains() { 5452 domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; 5453 bitField0_ = (bitField0_ & ~0x00000002); 5454 onChanged(); 5455 return this; 5456 } 5457 /** 5458 * 5459 * 5460 * <pre> 5461 * List of domains associated to the Finding. 5462 * </pre> 5463 * 5464 * <code>repeated string domains = 2;</code> 5465 * 5466 * @param value The bytes of the domains to add. 5467 * @return This builder for chaining. 5468 */ addDomainsBytes(com.google.protobuf.ByteString value)5469 public Builder addDomainsBytes(com.google.protobuf.ByteString value) { 5470 if (value == null) { 5471 throw new NullPointerException(); 5472 } 5473 checkByteStringIsUtf8(value); 5474 ensureDomainsIsMutable(); 5475 domains_.add(value); 5476 onChanged(); 5477 return this; 5478 } 5479 5480 private java.util.List<com.google.cloud.securitycenter.v1.Indicator.ProcessSignature> 5481 signatures_ = java.util.Collections.emptyList(); 5482 ensureSignaturesIsMutable()5483 private void ensureSignaturesIsMutable() { 5484 if (!((bitField0_ & 0x00000004) != 0)) { 5485 signatures_ = 5486 new java.util.ArrayList<com.google.cloud.securitycenter.v1.Indicator.ProcessSignature>( 5487 signatures_); 5488 bitField0_ |= 0x00000004; 5489 } 5490 } 5491 5492 private com.google.protobuf.RepeatedFieldBuilderV3< 5493 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature, 5494 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.Builder, 5495 com.google.cloud.securitycenter.v1.Indicator.ProcessSignatureOrBuilder> 5496 signaturesBuilder_; 5497 5498 /** 5499 * 5500 * 5501 * <pre> 5502 * The list of matched signatures indicating that the given 5503 * process is present in the environment. 5504 * </pre> 5505 * 5506 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 5507 * </code> 5508 */ 5509 public java.util.List<com.google.cloud.securitycenter.v1.Indicator.ProcessSignature> getSignaturesList()5510 getSignaturesList() { 5511 if (signaturesBuilder_ == null) { 5512 return java.util.Collections.unmodifiableList(signatures_); 5513 } else { 5514 return signaturesBuilder_.getMessageList(); 5515 } 5516 } 5517 /** 5518 * 5519 * 5520 * <pre> 5521 * The list of matched signatures indicating that the given 5522 * process is present in the environment. 5523 * </pre> 5524 * 5525 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 5526 * </code> 5527 */ getSignaturesCount()5528 public int getSignaturesCount() { 5529 if (signaturesBuilder_ == null) { 5530 return signatures_.size(); 5531 } else { 5532 return signaturesBuilder_.getCount(); 5533 } 5534 } 5535 /** 5536 * 5537 * 5538 * <pre> 5539 * The list of matched signatures indicating that the given 5540 * process is present in the environment. 5541 * </pre> 5542 * 5543 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 5544 * </code> 5545 */ getSignatures(int index)5546 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature getSignatures(int index) { 5547 if (signaturesBuilder_ == null) { 5548 return signatures_.get(index); 5549 } else { 5550 return signaturesBuilder_.getMessage(index); 5551 } 5552 } 5553 /** 5554 * 5555 * 5556 * <pre> 5557 * The list of matched signatures indicating that the given 5558 * process is present in the environment. 5559 * </pre> 5560 * 5561 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 5562 * </code> 5563 */ setSignatures( int index, com.google.cloud.securitycenter.v1.Indicator.ProcessSignature value)5564 public Builder setSignatures( 5565 int index, com.google.cloud.securitycenter.v1.Indicator.ProcessSignature value) { 5566 if (signaturesBuilder_ == null) { 5567 if (value == null) { 5568 throw new NullPointerException(); 5569 } 5570 ensureSignaturesIsMutable(); 5571 signatures_.set(index, value); 5572 onChanged(); 5573 } else { 5574 signaturesBuilder_.setMessage(index, value); 5575 } 5576 return this; 5577 } 5578 /** 5579 * 5580 * 5581 * <pre> 5582 * The list of matched signatures indicating that the given 5583 * process is present in the environment. 5584 * </pre> 5585 * 5586 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 5587 * </code> 5588 */ setSignatures( int index, com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.Builder builderForValue)5589 public Builder setSignatures( 5590 int index, 5591 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.Builder builderForValue) { 5592 if (signaturesBuilder_ == null) { 5593 ensureSignaturesIsMutable(); 5594 signatures_.set(index, builderForValue.build()); 5595 onChanged(); 5596 } else { 5597 signaturesBuilder_.setMessage(index, builderForValue.build()); 5598 } 5599 return this; 5600 } 5601 /** 5602 * 5603 * 5604 * <pre> 5605 * The list of matched signatures indicating that the given 5606 * process is present in the environment. 5607 * </pre> 5608 * 5609 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 5610 * </code> 5611 */ addSignatures( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature value)5612 public Builder addSignatures( 5613 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature value) { 5614 if (signaturesBuilder_ == null) { 5615 if (value == null) { 5616 throw new NullPointerException(); 5617 } 5618 ensureSignaturesIsMutable(); 5619 signatures_.add(value); 5620 onChanged(); 5621 } else { 5622 signaturesBuilder_.addMessage(value); 5623 } 5624 return this; 5625 } 5626 /** 5627 * 5628 * 5629 * <pre> 5630 * The list of matched signatures indicating that the given 5631 * process is present in the environment. 5632 * </pre> 5633 * 5634 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 5635 * </code> 5636 */ addSignatures( int index, com.google.cloud.securitycenter.v1.Indicator.ProcessSignature value)5637 public Builder addSignatures( 5638 int index, com.google.cloud.securitycenter.v1.Indicator.ProcessSignature value) { 5639 if (signaturesBuilder_ == null) { 5640 if (value == null) { 5641 throw new NullPointerException(); 5642 } 5643 ensureSignaturesIsMutable(); 5644 signatures_.add(index, value); 5645 onChanged(); 5646 } else { 5647 signaturesBuilder_.addMessage(index, value); 5648 } 5649 return this; 5650 } 5651 /** 5652 * 5653 * 5654 * <pre> 5655 * The list of matched signatures indicating that the given 5656 * process is present in the environment. 5657 * </pre> 5658 * 5659 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 5660 * </code> 5661 */ addSignatures( com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.Builder builderForValue)5662 public Builder addSignatures( 5663 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.Builder builderForValue) { 5664 if (signaturesBuilder_ == null) { 5665 ensureSignaturesIsMutable(); 5666 signatures_.add(builderForValue.build()); 5667 onChanged(); 5668 } else { 5669 signaturesBuilder_.addMessage(builderForValue.build()); 5670 } 5671 return this; 5672 } 5673 /** 5674 * 5675 * 5676 * <pre> 5677 * The list of matched signatures indicating that the given 5678 * process is present in the environment. 5679 * </pre> 5680 * 5681 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 5682 * </code> 5683 */ addSignatures( int index, com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.Builder builderForValue)5684 public Builder addSignatures( 5685 int index, 5686 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.Builder builderForValue) { 5687 if (signaturesBuilder_ == null) { 5688 ensureSignaturesIsMutable(); 5689 signatures_.add(index, builderForValue.build()); 5690 onChanged(); 5691 } else { 5692 signaturesBuilder_.addMessage(index, builderForValue.build()); 5693 } 5694 return this; 5695 } 5696 /** 5697 * 5698 * 5699 * <pre> 5700 * The list of matched signatures indicating that the given 5701 * process is present in the environment. 5702 * </pre> 5703 * 5704 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 5705 * </code> 5706 */ addAllSignatures( java.lang.Iterable<? extends com.google.cloud.securitycenter.v1.Indicator.ProcessSignature> values)5707 public Builder addAllSignatures( 5708 java.lang.Iterable<? extends com.google.cloud.securitycenter.v1.Indicator.ProcessSignature> 5709 values) { 5710 if (signaturesBuilder_ == null) { 5711 ensureSignaturesIsMutable(); 5712 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, signatures_); 5713 onChanged(); 5714 } else { 5715 signaturesBuilder_.addAllMessages(values); 5716 } 5717 return this; 5718 } 5719 /** 5720 * 5721 * 5722 * <pre> 5723 * The list of matched signatures indicating that the given 5724 * process is present in the environment. 5725 * </pre> 5726 * 5727 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 5728 * </code> 5729 */ clearSignatures()5730 public Builder clearSignatures() { 5731 if (signaturesBuilder_ == null) { 5732 signatures_ = java.util.Collections.emptyList(); 5733 bitField0_ = (bitField0_ & ~0x00000004); 5734 onChanged(); 5735 } else { 5736 signaturesBuilder_.clear(); 5737 } 5738 return this; 5739 } 5740 /** 5741 * 5742 * 5743 * <pre> 5744 * The list of matched signatures indicating that the given 5745 * process is present in the environment. 5746 * </pre> 5747 * 5748 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 5749 * </code> 5750 */ removeSignatures(int index)5751 public Builder removeSignatures(int index) { 5752 if (signaturesBuilder_ == null) { 5753 ensureSignaturesIsMutable(); 5754 signatures_.remove(index); 5755 onChanged(); 5756 } else { 5757 signaturesBuilder_.remove(index); 5758 } 5759 return this; 5760 } 5761 /** 5762 * 5763 * 5764 * <pre> 5765 * The list of matched signatures indicating that the given 5766 * process is present in the environment. 5767 * </pre> 5768 * 5769 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 5770 * </code> 5771 */ 5772 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.Builder getSignaturesBuilder(int index)5773 getSignaturesBuilder(int index) { 5774 return getSignaturesFieldBuilder().getBuilder(index); 5775 } 5776 /** 5777 * 5778 * 5779 * <pre> 5780 * The list of matched signatures indicating that the given 5781 * process is present in the environment. 5782 * </pre> 5783 * 5784 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 5785 * </code> 5786 */ 5787 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignatureOrBuilder getSignaturesOrBuilder(int index)5788 getSignaturesOrBuilder(int index) { 5789 if (signaturesBuilder_ == null) { 5790 return signatures_.get(index); 5791 } else { 5792 return signaturesBuilder_.getMessageOrBuilder(index); 5793 } 5794 } 5795 /** 5796 * 5797 * 5798 * <pre> 5799 * The list of matched signatures indicating that the given 5800 * process is present in the environment. 5801 * </pre> 5802 * 5803 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 5804 * </code> 5805 */ 5806 public java.util.List< 5807 ? extends com.google.cloud.securitycenter.v1.Indicator.ProcessSignatureOrBuilder> getSignaturesOrBuilderList()5808 getSignaturesOrBuilderList() { 5809 if (signaturesBuilder_ != null) { 5810 return signaturesBuilder_.getMessageOrBuilderList(); 5811 } else { 5812 return java.util.Collections.unmodifiableList(signatures_); 5813 } 5814 } 5815 /** 5816 * 5817 * 5818 * <pre> 5819 * The list of matched signatures indicating that the given 5820 * process is present in the environment. 5821 * </pre> 5822 * 5823 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 5824 * </code> 5825 */ 5826 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.Builder addSignaturesBuilder()5827 addSignaturesBuilder() { 5828 return getSignaturesFieldBuilder() 5829 .addBuilder( 5830 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.getDefaultInstance()); 5831 } 5832 /** 5833 * 5834 * 5835 * <pre> 5836 * The list of matched signatures indicating that the given 5837 * process is present in the environment. 5838 * </pre> 5839 * 5840 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 5841 * </code> 5842 */ 5843 public com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.Builder addSignaturesBuilder(int index)5844 addSignaturesBuilder(int index) { 5845 return getSignaturesFieldBuilder() 5846 .addBuilder( 5847 index, 5848 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.getDefaultInstance()); 5849 } 5850 /** 5851 * 5852 * 5853 * <pre> 5854 * The list of matched signatures indicating that the given 5855 * process is present in the environment. 5856 * </pre> 5857 * 5858 * <code>repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3; 5859 * </code> 5860 */ 5861 public java.util.List<com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.Builder> getSignaturesBuilderList()5862 getSignaturesBuilderList() { 5863 return getSignaturesFieldBuilder().getBuilderList(); 5864 } 5865 5866 private com.google.protobuf.RepeatedFieldBuilderV3< 5867 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature, 5868 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.Builder, 5869 com.google.cloud.securitycenter.v1.Indicator.ProcessSignatureOrBuilder> getSignaturesFieldBuilder()5870 getSignaturesFieldBuilder() { 5871 if (signaturesBuilder_ == null) { 5872 signaturesBuilder_ = 5873 new com.google.protobuf.RepeatedFieldBuilderV3< 5874 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature, 5875 com.google.cloud.securitycenter.v1.Indicator.ProcessSignature.Builder, 5876 com.google.cloud.securitycenter.v1.Indicator.ProcessSignatureOrBuilder>( 5877 signatures_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); 5878 signatures_ = null; 5879 } 5880 return signaturesBuilder_; 5881 } 5882 5883 private com.google.protobuf.LazyStringList uris_ = 5884 com.google.protobuf.LazyStringArrayList.EMPTY; 5885 ensureUrisIsMutable()5886 private void ensureUrisIsMutable() { 5887 if (!((bitField0_ & 0x00000008) != 0)) { 5888 uris_ = new com.google.protobuf.LazyStringArrayList(uris_); 5889 bitField0_ |= 0x00000008; 5890 } 5891 } 5892 /** 5893 * 5894 * 5895 * <pre> 5896 * The list of URIs associated to the Findings. 5897 * </pre> 5898 * 5899 * <code>repeated string uris = 4;</code> 5900 * 5901 * @return A list containing the uris. 5902 */ getUrisList()5903 public com.google.protobuf.ProtocolStringList getUrisList() { 5904 return uris_.getUnmodifiableView(); 5905 } 5906 /** 5907 * 5908 * 5909 * <pre> 5910 * The list of URIs associated to the Findings. 5911 * </pre> 5912 * 5913 * <code>repeated string uris = 4;</code> 5914 * 5915 * @return The count of uris. 5916 */ getUrisCount()5917 public int getUrisCount() { 5918 return uris_.size(); 5919 } 5920 /** 5921 * 5922 * 5923 * <pre> 5924 * The list of URIs associated to the Findings. 5925 * </pre> 5926 * 5927 * <code>repeated string uris = 4;</code> 5928 * 5929 * @param index The index of the element to return. 5930 * @return The uris at the given index. 5931 */ getUris(int index)5932 public java.lang.String getUris(int index) { 5933 return uris_.get(index); 5934 } 5935 /** 5936 * 5937 * 5938 * <pre> 5939 * The list of URIs associated to the Findings. 5940 * </pre> 5941 * 5942 * <code>repeated string uris = 4;</code> 5943 * 5944 * @param index The index of the value to return. 5945 * @return The bytes of the uris at the given index. 5946 */ getUrisBytes(int index)5947 public com.google.protobuf.ByteString getUrisBytes(int index) { 5948 return uris_.getByteString(index); 5949 } 5950 /** 5951 * 5952 * 5953 * <pre> 5954 * The list of URIs associated to the Findings. 5955 * </pre> 5956 * 5957 * <code>repeated string uris = 4;</code> 5958 * 5959 * @param index The index to set the value at. 5960 * @param value The uris to set. 5961 * @return This builder for chaining. 5962 */ setUris(int index, java.lang.String value)5963 public Builder setUris(int index, java.lang.String value) { 5964 if (value == null) { 5965 throw new NullPointerException(); 5966 } 5967 ensureUrisIsMutable(); 5968 uris_.set(index, value); 5969 onChanged(); 5970 return this; 5971 } 5972 /** 5973 * 5974 * 5975 * <pre> 5976 * The list of URIs associated to the Findings. 5977 * </pre> 5978 * 5979 * <code>repeated string uris = 4;</code> 5980 * 5981 * @param value The uris to add. 5982 * @return This builder for chaining. 5983 */ addUris(java.lang.String value)5984 public Builder addUris(java.lang.String value) { 5985 if (value == null) { 5986 throw new NullPointerException(); 5987 } 5988 ensureUrisIsMutable(); 5989 uris_.add(value); 5990 onChanged(); 5991 return this; 5992 } 5993 /** 5994 * 5995 * 5996 * <pre> 5997 * The list of URIs associated to the Findings. 5998 * </pre> 5999 * 6000 * <code>repeated string uris = 4;</code> 6001 * 6002 * @param values The uris to add. 6003 * @return This builder for chaining. 6004 */ addAllUris(java.lang.Iterable<java.lang.String> values)6005 public Builder addAllUris(java.lang.Iterable<java.lang.String> values) { 6006 ensureUrisIsMutable(); 6007 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); 6008 onChanged(); 6009 return this; 6010 } 6011 /** 6012 * 6013 * 6014 * <pre> 6015 * The list of URIs associated to the Findings. 6016 * </pre> 6017 * 6018 * <code>repeated string uris = 4;</code> 6019 * 6020 * @return This builder for chaining. 6021 */ clearUris()6022 public Builder clearUris() { 6023 uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; 6024 bitField0_ = (bitField0_ & ~0x00000008); 6025 onChanged(); 6026 return this; 6027 } 6028 /** 6029 * 6030 * 6031 * <pre> 6032 * The list of URIs associated to the Findings. 6033 * </pre> 6034 * 6035 * <code>repeated string uris = 4;</code> 6036 * 6037 * @param value The bytes of the uris to add. 6038 * @return This builder for chaining. 6039 */ addUrisBytes(com.google.protobuf.ByteString value)6040 public Builder addUrisBytes(com.google.protobuf.ByteString value) { 6041 if (value == null) { 6042 throw new NullPointerException(); 6043 } 6044 checkByteStringIsUtf8(value); 6045 ensureUrisIsMutable(); 6046 uris_.add(value); 6047 onChanged(); 6048 return this; 6049 } 6050 6051 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)6052 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 6053 return super.setUnknownFields(unknownFields); 6054 } 6055 6056 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)6057 public final Builder mergeUnknownFields( 6058 final com.google.protobuf.UnknownFieldSet unknownFields) { 6059 return super.mergeUnknownFields(unknownFields); 6060 } 6061 6062 // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Indicator) 6063 } 6064 6065 // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Indicator) 6066 private static final com.google.cloud.securitycenter.v1.Indicator DEFAULT_INSTANCE; 6067 6068 static { 6069 DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Indicator(); 6070 } 6071 getDefaultInstance()6072 public static com.google.cloud.securitycenter.v1.Indicator getDefaultInstance() { 6073 return DEFAULT_INSTANCE; 6074 } 6075 6076 private static final com.google.protobuf.Parser<Indicator> PARSER = 6077 new com.google.protobuf.AbstractParser<Indicator>() { 6078 @java.lang.Override 6079 public Indicator parsePartialFrom( 6080 com.google.protobuf.CodedInputStream input, 6081 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6082 throws com.google.protobuf.InvalidProtocolBufferException { 6083 Builder builder = newBuilder(); 6084 try { 6085 builder.mergeFrom(input, extensionRegistry); 6086 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 6087 throw e.setUnfinishedMessage(builder.buildPartial()); 6088 } catch (com.google.protobuf.UninitializedMessageException e) { 6089 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 6090 } catch (java.io.IOException e) { 6091 throw new com.google.protobuf.InvalidProtocolBufferException(e) 6092 .setUnfinishedMessage(builder.buildPartial()); 6093 } 6094 return builder.buildPartial(); 6095 } 6096 }; 6097 parser()6098 public static com.google.protobuf.Parser<Indicator> parser() { 6099 return PARSER; 6100 } 6101 6102 @java.lang.Override getParserForType()6103 public com.google.protobuf.Parser<Indicator> getParserForType() { 6104 return PARSER; 6105 } 6106 6107 @java.lang.Override getDefaultInstanceForType()6108 public com.google.cloud.securitycenter.v1.Indicator getDefaultInstanceForType() { 6109 return DEFAULT_INSTANCE; 6110 } 6111 } 6112