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