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/asset/v1/asset_service.proto 18 19 package com.google.cloud.asset.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * A response message for 26 * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]. 27 * </pre> 28 * 29 * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyResponse} 30 */ 31 public final class AnalyzeIamPolicyResponse extends com.google.protobuf.GeneratedMessageV3 32 implements 33 // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeIamPolicyResponse) 34 AnalyzeIamPolicyResponseOrBuilder { 35 private static final long serialVersionUID = 0L; 36 // Use AnalyzeIamPolicyResponse.newBuilder() to construct. AnalyzeIamPolicyResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37 private AnalyzeIamPolicyResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 38 super(builder); 39 } 40 AnalyzeIamPolicyResponse()41 private AnalyzeIamPolicyResponse() { 42 serviceAccountImpersonationAnalysis_ = java.util.Collections.emptyList(); 43 } 44 45 @java.lang.Override 46 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)47 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 48 return new AnalyzeIamPolicyResponse(); 49 } 50 51 @java.lang.Override getUnknownFields()52 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 53 return this.unknownFields; 54 } 55 getDescriptor()56 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 57 return com.google.cloud.asset.v1.AssetServiceProto 58 .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; 59 } 60 61 @java.lang.Override 62 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()63 internalGetFieldAccessorTable() { 64 return com.google.cloud.asset.v1.AssetServiceProto 65 .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable 66 .ensureFieldAccessorsInitialized( 67 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.class, 68 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.Builder.class); 69 } 70 71 public interface IamPolicyAnalysisOrBuilder 72 extends 73 // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) 74 com.google.protobuf.MessageOrBuilder { 75 76 /** 77 * 78 * 79 * <pre> 80 * The analysis query. 81 * </pre> 82 * 83 * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code> 84 * 85 * @return Whether the analysisQuery field is set. 86 */ hasAnalysisQuery()87 boolean hasAnalysisQuery(); 88 /** 89 * 90 * 91 * <pre> 92 * The analysis query. 93 * </pre> 94 * 95 * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code> 96 * 97 * @return The analysisQuery. 98 */ getAnalysisQuery()99 com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery(); 100 /** 101 * 102 * 103 * <pre> 104 * The analysis query. 105 * </pre> 106 * 107 * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code> 108 */ getAnalysisQueryOrBuilder()109 com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder(); 110 111 /** 112 * 113 * 114 * <pre> 115 * A list of 116 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 117 * that matches the analysis query, or empty if no result is found. 118 * </pre> 119 * 120 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 121 */ getAnalysisResultsList()122 java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult> getAnalysisResultsList(); 123 /** 124 * 125 * 126 * <pre> 127 * A list of 128 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 129 * that matches the analysis query, or empty if no result is found. 130 * </pre> 131 * 132 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 133 */ getAnalysisResults(int index)134 com.google.cloud.asset.v1.IamPolicyAnalysisResult getAnalysisResults(int index); 135 /** 136 * 137 * 138 * <pre> 139 * A list of 140 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 141 * that matches the analysis query, or empty if no result is found. 142 * </pre> 143 * 144 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 145 */ getAnalysisResultsCount()146 int getAnalysisResultsCount(); 147 /** 148 * 149 * 150 * <pre> 151 * A list of 152 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 153 * that matches the analysis query, or empty if no result is found. 154 * </pre> 155 * 156 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 157 */ 158 java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder> getAnalysisResultsOrBuilderList()159 getAnalysisResultsOrBuilderList(); 160 /** 161 * 162 * 163 * <pre> 164 * A list of 165 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 166 * that matches the analysis query, or empty if no result is found. 167 * </pre> 168 * 169 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 170 */ getAnalysisResultsOrBuilder( int index)171 com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisResultsOrBuilder( 172 int index); 173 174 /** 175 * 176 * 177 * <pre> 178 * Represents whether all entries in the 179 * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] 180 * have been fully explored to answer the query. 181 * </pre> 182 * 183 * <code>bool fully_explored = 3;</code> 184 * 185 * @return The fullyExplored. 186 */ getFullyExplored()187 boolean getFullyExplored(); 188 189 /** 190 * 191 * 192 * <pre> 193 * A list of non-critical errors happened during the query handling. 194 * </pre> 195 * 196 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code> 197 */ getNonCriticalErrorsList()198 java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisState> getNonCriticalErrorsList(); 199 /** 200 * 201 * 202 * <pre> 203 * A list of non-critical errors happened during the query handling. 204 * </pre> 205 * 206 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code> 207 */ getNonCriticalErrors(int index)208 com.google.cloud.asset.v1.IamPolicyAnalysisState getNonCriticalErrors(int index); 209 /** 210 * 211 * 212 * <pre> 213 * A list of non-critical errors happened during the query handling. 214 * </pre> 215 * 216 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code> 217 */ getNonCriticalErrorsCount()218 int getNonCriticalErrorsCount(); 219 /** 220 * 221 * 222 * <pre> 223 * A list of non-critical errors happened during the query handling. 224 * </pre> 225 * 226 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code> 227 */ 228 java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> getNonCriticalErrorsOrBuilderList()229 getNonCriticalErrorsOrBuilderList(); 230 /** 231 * 232 * 233 * <pre> 234 * A list of non-critical errors happened during the query handling. 235 * </pre> 236 * 237 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code> 238 */ getNonCriticalErrorsOrBuilder( int index)239 com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getNonCriticalErrorsOrBuilder( 240 int index); 241 } 242 /** 243 * 244 * 245 * <pre> 246 * An analysis message to group the query and results. 247 * </pre> 248 * 249 * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis} 250 */ 251 public static final class IamPolicyAnalysis extends com.google.protobuf.GeneratedMessageV3 252 implements 253 // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) 254 IamPolicyAnalysisOrBuilder { 255 private static final long serialVersionUID = 0L; 256 // Use IamPolicyAnalysis.newBuilder() to construct. IamPolicyAnalysis(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)257 private IamPolicyAnalysis(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 258 super(builder); 259 } 260 IamPolicyAnalysis()261 private IamPolicyAnalysis() { 262 analysisResults_ = java.util.Collections.emptyList(); 263 nonCriticalErrors_ = java.util.Collections.emptyList(); 264 } 265 266 @java.lang.Override 267 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)268 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 269 return new IamPolicyAnalysis(); 270 } 271 272 @java.lang.Override getUnknownFields()273 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 274 return this.unknownFields; 275 } 276 getDescriptor()277 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 278 return com.google.cloud.asset.v1.AssetServiceProto 279 .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; 280 } 281 282 @java.lang.Override 283 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()284 internalGetFieldAccessorTable() { 285 return com.google.cloud.asset.v1.AssetServiceProto 286 .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable 287 .ensureFieldAccessorsInitialized( 288 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.class, 289 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder.class); 290 } 291 292 public static final int ANALYSIS_QUERY_FIELD_NUMBER = 1; 293 private com.google.cloud.asset.v1.IamPolicyAnalysisQuery analysisQuery_; 294 /** 295 * 296 * 297 * <pre> 298 * The analysis query. 299 * </pre> 300 * 301 * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code> 302 * 303 * @return Whether the analysisQuery field is set. 304 */ 305 @java.lang.Override hasAnalysisQuery()306 public boolean hasAnalysisQuery() { 307 return analysisQuery_ != null; 308 } 309 /** 310 * 311 * 312 * <pre> 313 * The analysis query. 314 * </pre> 315 * 316 * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code> 317 * 318 * @return The analysisQuery. 319 */ 320 @java.lang.Override getAnalysisQuery()321 public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery() { 322 return analysisQuery_ == null 323 ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() 324 : analysisQuery_; 325 } 326 /** 327 * 328 * 329 * <pre> 330 * The analysis query. 331 * </pre> 332 * 333 * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code> 334 */ 335 @java.lang.Override getAnalysisQueryOrBuilder()336 public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder() { 337 return analysisQuery_ == null 338 ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() 339 : analysisQuery_; 340 } 341 342 public static final int ANALYSIS_RESULTS_FIELD_NUMBER = 2; 343 344 @SuppressWarnings("serial") 345 private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult> analysisResults_; 346 /** 347 * 348 * 349 * <pre> 350 * A list of 351 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 352 * that matches the analysis query, or empty if no result is found. 353 * </pre> 354 * 355 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 356 */ 357 @java.lang.Override 358 public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult> getAnalysisResultsList()359 getAnalysisResultsList() { 360 return analysisResults_; 361 } 362 /** 363 * 364 * 365 * <pre> 366 * A list of 367 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 368 * that matches the analysis query, or empty if no result is found. 369 * </pre> 370 * 371 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 372 */ 373 @java.lang.Override 374 public java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder> getAnalysisResultsOrBuilderList()375 getAnalysisResultsOrBuilderList() { 376 return analysisResults_; 377 } 378 /** 379 * 380 * 381 * <pre> 382 * A list of 383 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 384 * that matches the analysis query, or empty if no result is found. 385 * </pre> 386 * 387 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 388 */ 389 @java.lang.Override getAnalysisResultsCount()390 public int getAnalysisResultsCount() { 391 return analysisResults_.size(); 392 } 393 /** 394 * 395 * 396 * <pre> 397 * A list of 398 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 399 * that matches the analysis query, or empty if no result is found. 400 * </pre> 401 * 402 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 403 */ 404 @java.lang.Override getAnalysisResults(int index)405 public com.google.cloud.asset.v1.IamPolicyAnalysisResult getAnalysisResults(int index) { 406 return analysisResults_.get(index); 407 } 408 /** 409 * 410 * 411 * <pre> 412 * A list of 413 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 414 * that matches the analysis query, or empty if no result is found. 415 * </pre> 416 * 417 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 418 */ 419 @java.lang.Override getAnalysisResultsOrBuilder( int index)420 public com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisResultsOrBuilder( 421 int index) { 422 return analysisResults_.get(index); 423 } 424 425 public static final int FULLY_EXPLORED_FIELD_NUMBER = 3; 426 private boolean fullyExplored_ = false; 427 /** 428 * 429 * 430 * <pre> 431 * Represents whether all entries in the 432 * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] 433 * have been fully explored to answer the query. 434 * </pre> 435 * 436 * <code>bool fully_explored = 3;</code> 437 * 438 * @return The fullyExplored. 439 */ 440 @java.lang.Override getFullyExplored()441 public boolean getFullyExplored() { 442 return fullyExplored_; 443 } 444 445 public static final int NON_CRITICAL_ERRORS_FIELD_NUMBER = 5; 446 447 @SuppressWarnings("serial") 448 private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisState> nonCriticalErrors_; 449 /** 450 * 451 * 452 * <pre> 453 * A list of non-critical errors happened during the query handling. 454 * </pre> 455 * 456 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code> 457 */ 458 @java.lang.Override 459 public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisState> getNonCriticalErrorsList()460 getNonCriticalErrorsList() { 461 return nonCriticalErrors_; 462 } 463 /** 464 * 465 * 466 * <pre> 467 * A list of non-critical errors happened during the query handling. 468 * </pre> 469 * 470 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code> 471 */ 472 @java.lang.Override 473 public java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> getNonCriticalErrorsOrBuilderList()474 getNonCriticalErrorsOrBuilderList() { 475 return nonCriticalErrors_; 476 } 477 /** 478 * 479 * 480 * <pre> 481 * A list of non-critical errors happened during the query handling. 482 * </pre> 483 * 484 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code> 485 */ 486 @java.lang.Override getNonCriticalErrorsCount()487 public int getNonCriticalErrorsCount() { 488 return nonCriticalErrors_.size(); 489 } 490 /** 491 * 492 * 493 * <pre> 494 * A list of non-critical errors happened during the query handling. 495 * </pre> 496 * 497 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code> 498 */ 499 @java.lang.Override getNonCriticalErrors(int index)500 public com.google.cloud.asset.v1.IamPolicyAnalysisState getNonCriticalErrors(int index) { 501 return nonCriticalErrors_.get(index); 502 } 503 /** 504 * 505 * 506 * <pre> 507 * A list of non-critical errors happened during the query handling. 508 * </pre> 509 * 510 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code> 511 */ 512 @java.lang.Override getNonCriticalErrorsOrBuilder( int index)513 public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getNonCriticalErrorsOrBuilder( 514 int index) { 515 return nonCriticalErrors_.get(index); 516 } 517 518 private byte memoizedIsInitialized = -1; 519 520 @java.lang.Override isInitialized()521 public final boolean isInitialized() { 522 byte isInitialized = memoizedIsInitialized; 523 if (isInitialized == 1) return true; 524 if (isInitialized == 0) return false; 525 526 memoizedIsInitialized = 1; 527 return true; 528 } 529 530 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)531 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 532 if (analysisQuery_ != null) { 533 output.writeMessage(1, getAnalysisQuery()); 534 } 535 for (int i = 0; i < analysisResults_.size(); i++) { 536 output.writeMessage(2, analysisResults_.get(i)); 537 } 538 if (fullyExplored_ != false) { 539 output.writeBool(3, fullyExplored_); 540 } 541 for (int i = 0; i < nonCriticalErrors_.size(); i++) { 542 output.writeMessage(5, nonCriticalErrors_.get(i)); 543 } 544 getUnknownFields().writeTo(output); 545 } 546 547 @java.lang.Override getSerializedSize()548 public int getSerializedSize() { 549 int size = memoizedSize; 550 if (size != -1) return size; 551 552 size = 0; 553 if (analysisQuery_ != null) { 554 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnalysisQuery()); 555 } 556 for (int i = 0; i < analysisResults_.size(); i++) { 557 size += 558 com.google.protobuf.CodedOutputStream.computeMessageSize(2, analysisResults_.get(i)); 559 } 560 if (fullyExplored_ != false) { 561 size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, fullyExplored_); 562 } 563 for (int i = 0; i < nonCriticalErrors_.size(); i++) { 564 size += 565 com.google.protobuf.CodedOutputStream.computeMessageSize(5, nonCriticalErrors_.get(i)); 566 } 567 size += getUnknownFields().getSerializedSize(); 568 memoizedSize = size; 569 return size; 570 } 571 572 @java.lang.Override equals(final java.lang.Object obj)573 public boolean equals(final java.lang.Object obj) { 574 if (obj == this) { 575 return true; 576 } 577 if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis)) { 578 return super.equals(obj); 579 } 580 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis other = 581 (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) obj; 582 583 if (hasAnalysisQuery() != other.hasAnalysisQuery()) return false; 584 if (hasAnalysisQuery()) { 585 if (!getAnalysisQuery().equals(other.getAnalysisQuery())) return false; 586 } 587 if (!getAnalysisResultsList().equals(other.getAnalysisResultsList())) return false; 588 if (getFullyExplored() != other.getFullyExplored()) return false; 589 if (!getNonCriticalErrorsList().equals(other.getNonCriticalErrorsList())) return false; 590 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 591 return true; 592 } 593 594 @java.lang.Override hashCode()595 public int hashCode() { 596 if (memoizedHashCode != 0) { 597 return memoizedHashCode; 598 } 599 int hash = 41; 600 hash = (19 * hash) + getDescriptor().hashCode(); 601 if (hasAnalysisQuery()) { 602 hash = (37 * hash) + ANALYSIS_QUERY_FIELD_NUMBER; 603 hash = (53 * hash) + getAnalysisQuery().hashCode(); 604 } 605 if (getAnalysisResultsCount() > 0) { 606 hash = (37 * hash) + ANALYSIS_RESULTS_FIELD_NUMBER; 607 hash = (53 * hash) + getAnalysisResultsList().hashCode(); 608 } 609 hash = (37 * hash) + FULLY_EXPLORED_FIELD_NUMBER; 610 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullyExplored()); 611 if (getNonCriticalErrorsCount() > 0) { 612 hash = (37 * hash) + NON_CRITICAL_ERRORS_FIELD_NUMBER; 613 hash = (53 * hash) + getNonCriticalErrorsList().hashCode(); 614 } 615 hash = (29 * hash) + getUnknownFields().hashCode(); 616 memoizedHashCode = hash; 617 return hash; 618 } 619 parseFrom( java.nio.ByteBuffer data)620 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( 621 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 622 return PARSER.parseFrom(data); 623 } 624 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)625 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( 626 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 627 throws com.google.protobuf.InvalidProtocolBufferException { 628 return PARSER.parseFrom(data, extensionRegistry); 629 } 630 parseFrom( com.google.protobuf.ByteString data)631 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( 632 com.google.protobuf.ByteString data) 633 throws com.google.protobuf.InvalidProtocolBufferException { 634 return PARSER.parseFrom(data); 635 } 636 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)637 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( 638 com.google.protobuf.ByteString data, 639 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 640 throws com.google.protobuf.InvalidProtocolBufferException { 641 return PARSER.parseFrom(data, extensionRegistry); 642 } 643 parseFrom( byte[] data)644 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( 645 byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { 646 return PARSER.parseFrom(data); 647 } 648 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)649 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( 650 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 651 throws com.google.protobuf.InvalidProtocolBufferException { 652 return PARSER.parseFrom(data, extensionRegistry); 653 } 654 parseFrom( java.io.InputStream input)655 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( 656 java.io.InputStream input) throws java.io.IOException { 657 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 658 } 659 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)660 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( 661 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 662 throws java.io.IOException { 663 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 664 PARSER, input, extensionRegistry); 665 } 666 667 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseDelimitedFrom(java.io.InputStream input)668 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { 669 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 670 } 671 672 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)673 parseDelimitedFrom( 674 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 675 throws java.io.IOException { 676 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 677 PARSER, input, extensionRegistry); 678 } 679 parseFrom( com.google.protobuf.CodedInputStream input)680 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( 681 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 682 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 683 } 684 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)685 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( 686 com.google.protobuf.CodedInputStream input, 687 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 688 throws java.io.IOException { 689 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 690 PARSER, input, extensionRegistry); 691 } 692 693 @java.lang.Override newBuilderForType()694 public Builder newBuilderForType() { 695 return newBuilder(); 696 } 697 newBuilder()698 public static Builder newBuilder() { 699 return DEFAULT_INSTANCE.toBuilder(); 700 } 701 newBuilder( com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis prototype)702 public static Builder newBuilder( 703 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis prototype) { 704 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 705 } 706 707 @java.lang.Override toBuilder()708 public Builder toBuilder() { 709 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 710 } 711 712 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)713 protected Builder newBuilderForType( 714 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 715 Builder builder = new Builder(parent); 716 return builder; 717 } 718 /** 719 * 720 * 721 * <pre> 722 * An analysis message to group the query and results. 723 * </pre> 724 * 725 * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis} 726 */ 727 public static final class Builder 728 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 729 implements 730 // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) 731 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder { getDescriptor()732 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 733 return com.google.cloud.asset.v1.AssetServiceProto 734 .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; 735 } 736 737 @java.lang.Override 738 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()739 internalGetFieldAccessorTable() { 740 return com.google.cloud.asset.v1.AssetServiceProto 741 .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable 742 .ensureFieldAccessorsInitialized( 743 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.class, 744 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder.class); 745 } 746 747 // Construct using 748 // com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.newBuilder() Builder()749 private Builder() {} 750 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)751 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 752 super(parent); 753 } 754 755 @java.lang.Override clear()756 public Builder clear() { 757 super.clear(); 758 bitField0_ = 0; 759 analysisQuery_ = null; 760 if (analysisQueryBuilder_ != null) { 761 analysisQueryBuilder_.dispose(); 762 analysisQueryBuilder_ = null; 763 } 764 if (analysisResultsBuilder_ == null) { 765 analysisResults_ = java.util.Collections.emptyList(); 766 } else { 767 analysisResults_ = null; 768 analysisResultsBuilder_.clear(); 769 } 770 bitField0_ = (bitField0_ & ~0x00000002); 771 fullyExplored_ = false; 772 if (nonCriticalErrorsBuilder_ == null) { 773 nonCriticalErrors_ = java.util.Collections.emptyList(); 774 } else { 775 nonCriticalErrors_ = null; 776 nonCriticalErrorsBuilder_.clear(); 777 } 778 bitField0_ = (bitField0_ & ~0x00000008); 779 return this; 780 } 781 782 @java.lang.Override getDescriptorForType()783 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 784 return com.google.cloud.asset.v1.AssetServiceProto 785 .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; 786 } 787 788 @java.lang.Override 789 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getDefaultInstanceForType()790 getDefaultInstanceForType() { 791 return com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis 792 .getDefaultInstance(); 793 } 794 795 @java.lang.Override build()796 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis build() { 797 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis result = 798 buildPartial(); 799 if (!result.isInitialized()) { 800 throw newUninitializedMessageException(result); 801 } 802 return result; 803 } 804 805 @java.lang.Override buildPartial()806 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis buildPartial() { 807 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis result = 808 new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis(this); 809 buildPartialRepeatedFields(result); 810 if (bitField0_ != 0) { 811 buildPartial0(result); 812 } 813 onBuilt(); 814 return result; 815 } 816 buildPartialRepeatedFields( com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis result)817 private void buildPartialRepeatedFields( 818 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis result) { 819 if (analysisResultsBuilder_ == null) { 820 if (((bitField0_ & 0x00000002) != 0)) { 821 analysisResults_ = java.util.Collections.unmodifiableList(analysisResults_); 822 bitField0_ = (bitField0_ & ~0x00000002); 823 } 824 result.analysisResults_ = analysisResults_; 825 } else { 826 result.analysisResults_ = analysisResultsBuilder_.build(); 827 } 828 if (nonCriticalErrorsBuilder_ == null) { 829 if (((bitField0_ & 0x00000008) != 0)) { 830 nonCriticalErrors_ = java.util.Collections.unmodifiableList(nonCriticalErrors_); 831 bitField0_ = (bitField0_ & ~0x00000008); 832 } 833 result.nonCriticalErrors_ = nonCriticalErrors_; 834 } else { 835 result.nonCriticalErrors_ = nonCriticalErrorsBuilder_.build(); 836 } 837 } 838 buildPartial0( com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis result)839 private void buildPartial0( 840 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis result) { 841 int from_bitField0_ = bitField0_; 842 if (((from_bitField0_ & 0x00000001) != 0)) { 843 result.analysisQuery_ = 844 analysisQueryBuilder_ == null ? analysisQuery_ : analysisQueryBuilder_.build(); 845 } 846 if (((from_bitField0_ & 0x00000004) != 0)) { 847 result.fullyExplored_ = fullyExplored_; 848 } 849 } 850 851 @java.lang.Override clone()852 public Builder clone() { 853 return super.clone(); 854 } 855 856 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)857 public Builder setField( 858 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 859 return super.setField(field, value); 860 } 861 862 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)863 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 864 return super.clearField(field); 865 } 866 867 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)868 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 869 return super.clearOneof(oneof); 870 } 871 872 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)873 public Builder setRepeatedField( 874 com.google.protobuf.Descriptors.FieldDescriptor field, 875 int index, 876 java.lang.Object value) { 877 return super.setRepeatedField(field, index, value); 878 } 879 880 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)881 public Builder addRepeatedField( 882 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 883 return super.addRepeatedField(field, value); 884 } 885 886 @java.lang.Override mergeFrom(com.google.protobuf.Message other)887 public Builder mergeFrom(com.google.protobuf.Message other) { 888 if (other instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) { 889 return mergeFrom( 890 (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) other); 891 } else { 892 super.mergeFrom(other); 893 return this; 894 } 895 } 896 mergeFrom( com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis other)897 public Builder mergeFrom( 898 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis other) { 899 if (other 900 == com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis 901 .getDefaultInstance()) return this; 902 if (other.hasAnalysisQuery()) { 903 mergeAnalysisQuery(other.getAnalysisQuery()); 904 } 905 if (analysisResultsBuilder_ == null) { 906 if (!other.analysisResults_.isEmpty()) { 907 if (analysisResults_.isEmpty()) { 908 analysisResults_ = other.analysisResults_; 909 bitField0_ = (bitField0_ & ~0x00000002); 910 } else { 911 ensureAnalysisResultsIsMutable(); 912 analysisResults_.addAll(other.analysisResults_); 913 } 914 onChanged(); 915 } 916 } else { 917 if (!other.analysisResults_.isEmpty()) { 918 if (analysisResultsBuilder_.isEmpty()) { 919 analysisResultsBuilder_.dispose(); 920 analysisResultsBuilder_ = null; 921 analysisResults_ = other.analysisResults_; 922 bitField0_ = (bitField0_ & ~0x00000002); 923 analysisResultsBuilder_ = 924 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 925 ? getAnalysisResultsFieldBuilder() 926 : null; 927 } else { 928 analysisResultsBuilder_.addAllMessages(other.analysisResults_); 929 } 930 } 931 } 932 if (other.getFullyExplored() != false) { 933 setFullyExplored(other.getFullyExplored()); 934 } 935 if (nonCriticalErrorsBuilder_ == null) { 936 if (!other.nonCriticalErrors_.isEmpty()) { 937 if (nonCriticalErrors_.isEmpty()) { 938 nonCriticalErrors_ = other.nonCriticalErrors_; 939 bitField0_ = (bitField0_ & ~0x00000008); 940 } else { 941 ensureNonCriticalErrorsIsMutable(); 942 nonCriticalErrors_.addAll(other.nonCriticalErrors_); 943 } 944 onChanged(); 945 } 946 } else { 947 if (!other.nonCriticalErrors_.isEmpty()) { 948 if (nonCriticalErrorsBuilder_.isEmpty()) { 949 nonCriticalErrorsBuilder_.dispose(); 950 nonCriticalErrorsBuilder_ = null; 951 nonCriticalErrors_ = other.nonCriticalErrors_; 952 bitField0_ = (bitField0_ & ~0x00000008); 953 nonCriticalErrorsBuilder_ = 954 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 955 ? getNonCriticalErrorsFieldBuilder() 956 : null; 957 } else { 958 nonCriticalErrorsBuilder_.addAllMessages(other.nonCriticalErrors_); 959 } 960 } 961 } 962 this.mergeUnknownFields(other.getUnknownFields()); 963 onChanged(); 964 return this; 965 } 966 967 @java.lang.Override isInitialized()968 public final boolean isInitialized() { 969 return true; 970 } 971 972 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)973 public Builder mergeFrom( 974 com.google.protobuf.CodedInputStream input, 975 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 976 throws java.io.IOException { 977 if (extensionRegistry == null) { 978 throw new java.lang.NullPointerException(); 979 } 980 try { 981 boolean done = false; 982 while (!done) { 983 int tag = input.readTag(); 984 switch (tag) { 985 case 0: 986 done = true; 987 break; 988 case 10: 989 { 990 input.readMessage(getAnalysisQueryFieldBuilder().getBuilder(), extensionRegistry); 991 bitField0_ |= 0x00000001; 992 break; 993 } // case 10 994 case 18: 995 { 996 com.google.cloud.asset.v1.IamPolicyAnalysisResult m = 997 input.readMessage( 998 com.google.cloud.asset.v1.IamPolicyAnalysisResult.parser(), 999 extensionRegistry); 1000 if (analysisResultsBuilder_ == null) { 1001 ensureAnalysisResultsIsMutable(); 1002 analysisResults_.add(m); 1003 } else { 1004 analysisResultsBuilder_.addMessage(m); 1005 } 1006 break; 1007 } // case 18 1008 case 24: 1009 { 1010 fullyExplored_ = input.readBool(); 1011 bitField0_ |= 0x00000004; 1012 break; 1013 } // case 24 1014 case 42: 1015 { 1016 com.google.cloud.asset.v1.IamPolicyAnalysisState m = 1017 input.readMessage( 1018 com.google.cloud.asset.v1.IamPolicyAnalysisState.parser(), 1019 extensionRegistry); 1020 if (nonCriticalErrorsBuilder_ == null) { 1021 ensureNonCriticalErrorsIsMutable(); 1022 nonCriticalErrors_.add(m); 1023 } else { 1024 nonCriticalErrorsBuilder_.addMessage(m); 1025 } 1026 break; 1027 } // case 42 1028 default: 1029 { 1030 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1031 done = true; // was an endgroup tag 1032 } 1033 break; 1034 } // default: 1035 } // switch (tag) 1036 } // while (!done) 1037 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1038 throw e.unwrapIOException(); 1039 } finally { 1040 onChanged(); 1041 } // finally 1042 return this; 1043 } 1044 1045 private int bitField0_; 1046 1047 private com.google.cloud.asset.v1.IamPolicyAnalysisQuery analysisQuery_; 1048 private com.google.protobuf.SingleFieldBuilderV3< 1049 com.google.cloud.asset.v1.IamPolicyAnalysisQuery, 1050 com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, 1051 com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> 1052 analysisQueryBuilder_; 1053 /** 1054 * 1055 * 1056 * <pre> 1057 * The analysis query. 1058 * </pre> 1059 * 1060 * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code> 1061 * 1062 * @return Whether the analysisQuery field is set. 1063 */ hasAnalysisQuery()1064 public boolean hasAnalysisQuery() { 1065 return ((bitField0_ & 0x00000001) != 0); 1066 } 1067 /** 1068 * 1069 * 1070 * <pre> 1071 * The analysis query. 1072 * </pre> 1073 * 1074 * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code> 1075 * 1076 * @return The analysisQuery. 1077 */ getAnalysisQuery()1078 public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery() { 1079 if (analysisQueryBuilder_ == null) { 1080 return analysisQuery_ == null 1081 ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() 1082 : analysisQuery_; 1083 } else { 1084 return analysisQueryBuilder_.getMessage(); 1085 } 1086 } 1087 /** 1088 * 1089 * 1090 * <pre> 1091 * The analysis query. 1092 * </pre> 1093 * 1094 * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code> 1095 */ setAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery value)1096 public Builder setAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) { 1097 if (analysisQueryBuilder_ == null) { 1098 if (value == null) { 1099 throw new NullPointerException(); 1100 } 1101 analysisQuery_ = value; 1102 } else { 1103 analysisQueryBuilder_.setMessage(value); 1104 } 1105 bitField0_ |= 0x00000001; 1106 onChanged(); 1107 return this; 1108 } 1109 /** 1110 * 1111 * 1112 * <pre> 1113 * The analysis query. 1114 * </pre> 1115 * 1116 * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code> 1117 */ setAnalysisQuery( com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder builderForValue)1118 public Builder setAnalysisQuery( 1119 com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder builderForValue) { 1120 if (analysisQueryBuilder_ == null) { 1121 analysisQuery_ = builderForValue.build(); 1122 } else { 1123 analysisQueryBuilder_.setMessage(builderForValue.build()); 1124 } 1125 bitField0_ |= 0x00000001; 1126 onChanged(); 1127 return this; 1128 } 1129 /** 1130 * 1131 * 1132 * <pre> 1133 * The analysis query. 1134 * </pre> 1135 * 1136 * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code> 1137 */ mergeAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery value)1138 public Builder mergeAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) { 1139 if (analysisQueryBuilder_ == null) { 1140 if (((bitField0_ & 0x00000001) != 0) 1141 && analysisQuery_ != null 1142 && analysisQuery_ 1143 != com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance()) { 1144 getAnalysisQueryBuilder().mergeFrom(value); 1145 } else { 1146 analysisQuery_ = value; 1147 } 1148 } else { 1149 analysisQueryBuilder_.mergeFrom(value); 1150 } 1151 bitField0_ |= 0x00000001; 1152 onChanged(); 1153 return this; 1154 } 1155 /** 1156 * 1157 * 1158 * <pre> 1159 * The analysis query. 1160 * </pre> 1161 * 1162 * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code> 1163 */ clearAnalysisQuery()1164 public Builder clearAnalysisQuery() { 1165 bitField0_ = (bitField0_ & ~0x00000001); 1166 analysisQuery_ = null; 1167 if (analysisQueryBuilder_ != null) { 1168 analysisQueryBuilder_.dispose(); 1169 analysisQueryBuilder_ = null; 1170 } 1171 onChanged(); 1172 return this; 1173 } 1174 /** 1175 * 1176 * 1177 * <pre> 1178 * The analysis query. 1179 * </pre> 1180 * 1181 * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code> 1182 */ getAnalysisQueryBuilder()1183 public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder getAnalysisQueryBuilder() { 1184 bitField0_ |= 0x00000001; 1185 onChanged(); 1186 return getAnalysisQueryFieldBuilder().getBuilder(); 1187 } 1188 /** 1189 * 1190 * 1191 * <pre> 1192 * The analysis query. 1193 * </pre> 1194 * 1195 * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code> 1196 */ getAnalysisQueryOrBuilder()1197 public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder() { 1198 if (analysisQueryBuilder_ != null) { 1199 return analysisQueryBuilder_.getMessageOrBuilder(); 1200 } else { 1201 return analysisQuery_ == null 1202 ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() 1203 : analysisQuery_; 1204 } 1205 } 1206 /** 1207 * 1208 * 1209 * <pre> 1210 * The analysis query. 1211 * </pre> 1212 * 1213 * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code> 1214 */ 1215 private com.google.protobuf.SingleFieldBuilderV3< 1216 com.google.cloud.asset.v1.IamPolicyAnalysisQuery, 1217 com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, 1218 com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> getAnalysisQueryFieldBuilder()1219 getAnalysisQueryFieldBuilder() { 1220 if (analysisQueryBuilder_ == null) { 1221 analysisQueryBuilder_ = 1222 new com.google.protobuf.SingleFieldBuilderV3< 1223 com.google.cloud.asset.v1.IamPolicyAnalysisQuery, 1224 com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, 1225 com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>( 1226 getAnalysisQuery(), getParentForChildren(), isClean()); 1227 analysisQuery_ = null; 1228 } 1229 return analysisQueryBuilder_; 1230 } 1231 1232 private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult> analysisResults_ = 1233 java.util.Collections.emptyList(); 1234 ensureAnalysisResultsIsMutable()1235 private void ensureAnalysisResultsIsMutable() { 1236 if (!((bitField0_ & 0x00000002) != 0)) { 1237 analysisResults_ = 1238 new java.util.ArrayList<com.google.cloud.asset.v1.IamPolicyAnalysisResult>( 1239 analysisResults_); 1240 bitField0_ |= 0x00000002; 1241 } 1242 } 1243 1244 private com.google.protobuf.RepeatedFieldBuilderV3< 1245 com.google.cloud.asset.v1.IamPolicyAnalysisResult, 1246 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder, 1247 com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder> 1248 analysisResultsBuilder_; 1249 1250 /** 1251 * 1252 * 1253 * <pre> 1254 * A list of 1255 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 1256 * that matches the analysis query, or empty if no result is found. 1257 * </pre> 1258 * 1259 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 1260 */ 1261 public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult> getAnalysisResultsList()1262 getAnalysisResultsList() { 1263 if (analysisResultsBuilder_ == null) { 1264 return java.util.Collections.unmodifiableList(analysisResults_); 1265 } else { 1266 return analysisResultsBuilder_.getMessageList(); 1267 } 1268 } 1269 /** 1270 * 1271 * 1272 * <pre> 1273 * A list of 1274 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 1275 * that matches the analysis query, or empty if no result is found. 1276 * </pre> 1277 * 1278 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 1279 */ getAnalysisResultsCount()1280 public int getAnalysisResultsCount() { 1281 if (analysisResultsBuilder_ == null) { 1282 return analysisResults_.size(); 1283 } else { 1284 return analysisResultsBuilder_.getCount(); 1285 } 1286 } 1287 /** 1288 * 1289 * 1290 * <pre> 1291 * A list of 1292 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 1293 * that matches the analysis query, or empty if no result is found. 1294 * </pre> 1295 * 1296 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 1297 */ getAnalysisResults(int index)1298 public com.google.cloud.asset.v1.IamPolicyAnalysisResult getAnalysisResults(int index) { 1299 if (analysisResultsBuilder_ == null) { 1300 return analysisResults_.get(index); 1301 } else { 1302 return analysisResultsBuilder_.getMessage(index); 1303 } 1304 } 1305 /** 1306 * 1307 * 1308 * <pre> 1309 * A list of 1310 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 1311 * that matches the analysis query, or empty if no result is found. 1312 * </pre> 1313 * 1314 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 1315 */ setAnalysisResults( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult value)1316 public Builder setAnalysisResults( 1317 int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult value) { 1318 if (analysisResultsBuilder_ == null) { 1319 if (value == null) { 1320 throw new NullPointerException(); 1321 } 1322 ensureAnalysisResultsIsMutable(); 1323 analysisResults_.set(index, value); 1324 onChanged(); 1325 } else { 1326 analysisResultsBuilder_.setMessage(index, value); 1327 } 1328 return this; 1329 } 1330 /** 1331 * 1332 * 1333 * <pre> 1334 * A list of 1335 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 1336 * that matches the analysis query, or empty if no result is found. 1337 * </pre> 1338 * 1339 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 1340 */ setAnalysisResults( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder builderForValue)1341 public Builder setAnalysisResults( 1342 int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder builderForValue) { 1343 if (analysisResultsBuilder_ == null) { 1344 ensureAnalysisResultsIsMutable(); 1345 analysisResults_.set(index, builderForValue.build()); 1346 onChanged(); 1347 } else { 1348 analysisResultsBuilder_.setMessage(index, builderForValue.build()); 1349 } 1350 return this; 1351 } 1352 /** 1353 * 1354 * 1355 * <pre> 1356 * A list of 1357 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 1358 * that matches the analysis query, or empty if no result is found. 1359 * </pre> 1360 * 1361 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 1362 */ addAnalysisResults(com.google.cloud.asset.v1.IamPolicyAnalysisResult value)1363 public Builder addAnalysisResults(com.google.cloud.asset.v1.IamPolicyAnalysisResult value) { 1364 if (analysisResultsBuilder_ == null) { 1365 if (value == null) { 1366 throw new NullPointerException(); 1367 } 1368 ensureAnalysisResultsIsMutable(); 1369 analysisResults_.add(value); 1370 onChanged(); 1371 } else { 1372 analysisResultsBuilder_.addMessage(value); 1373 } 1374 return this; 1375 } 1376 /** 1377 * 1378 * 1379 * <pre> 1380 * A list of 1381 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 1382 * that matches the analysis query, or empty if no result is found. 1383 * </pre> 1384 * 1385 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 1386 */ addAnalysisResults( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult value)1387 public Builder addAnalysisResults( 1388 int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult value) { 1389 if (analysisResultsBuilder_ == null) { 1390 if (value == null) { 1391 throw new NullPointerException(); 1392 } 1393 ensureAnalysisResultsIsMutable(); 1394 analysisResults_.add(index, value); 1395 onChanged(); 1396 } else { 1397 analysisResultsBuilder_.addMessage(index, value); 1398 } 1399 return this; 1400 } 1401 /** 1402 * 1403 * 1404 * <pre> 1405 * A list of 1406 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 1407 * that matches the analysis query, or empty if no result is found. 1408 * </pre> 1409 * 1410 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 1411 */ addAnalysisResults( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder builderForValue)1412 public Builder addAnalysisResults( 1413 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder builderForValue) { 1414 if (analysisResultsBuilder_ == null) { 1415 ensureAnalysisResultsIsMutable(); 1416 analysisResults_.add(builderForValue.build()); 1417 onChanged(); 1418 } else { 1419 analysisResultsBuilder_.addMessage(builderForValue.build()); 1420 } 1421 return this; 1422 } 1423 /** 1424 * 1425 * 1426 * <pre> 1427 * A list of 1428 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 1429 * that matches the analysis query, or empty if no result is found. 1430 * </pre> 1431 * 1432 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 1433 */ addAnalysisResults( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder builderForValue)1434 public Builder addAnalysisResults( 1435 int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder builderForValue) { 1436 if (analysisResultsBuilder_ == null) { 1437 ensureAnalysisResultsIsMutable(); 1438 analysisResults_.add(index, builderForValue.build()); 1439 onChanged(); 1440 } else { 1441 analysisResultsBuilder_.addMessage(index, builderForValue.build()); 1442 } 1443 return this; 1444 } 1445 /** 1446 * 1447 * 1448 * <pre> 1449 * A list of 1450 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 1451 * that matches the analysis query, or empty if no result is found. 1452 * </pre> 1453 * 1454 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 1455 */ addAllAnalysisResults( java.lang.Iterable<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult> values)1456 public Builder addAllAnalysisResults( 1457 java.lang.Iterable<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult> values) { 1458 if (analysisResultsBuilder_ == null) { 1459 ensureAnalysisResultsIsMutable(); 1460 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, analysisResults_); 1461 onChanged(); 1462 } else { 1463 analysisResultsBuilder_.addAllMessages(values); 1464 } 1465 return this; 1466 } 1467 /** 1468 * 1469 * 1470 * <pre> 1471 * A list of 1472 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 1473 * that matches the analysis query, or empty if no result is found. 1474 * </pre> 1475 * 1476 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 1477 */ clearAnalysisResults()1478 public Builder clearAnalysisResults() { 1479 if (analysisResultsBuilder_ == null) { 1480 analysisResults_ = java.util.Collections.emptyList(); 1481 bitField0_ = (bitField0_ & ~0x00000002); 1482 onChanged(); 1483 } else { 1484 analysisResultsBuilder_.clear(); 1485 } 1486 return this; 1487 } 1488 /** 1489 * 1490 * 1491 * <pre> 1492 * A list of 1493 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 1494 * that matches the analysis query, or empty if no result is found. 1495 * </pre> 1496 * 1497 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 1498 */ removeAnalysisResults(int index)1499 public Builder removeAnalysisResults(int index) { 1500 if (analysisResultsBuilder_ == null) { 1501 ensureAnalysisResultsIsMutable(); 1502 analysisResults_.remove(index); 1503 onChanged(); 1504 } else { 1505 analysisResultsBuilder_.remove(index); 1506 } 1507 return this; 1508 } 1509 /** 1510 * 1511 * 1512 * <pre> 1513 * A list of 1514 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 1515 * that matches the analysis query, or empty if no result is found. 1516 * </pre> 1517 * 1518 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 1519 */ getAnalysisResultsBuilder( int index)1520 public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder getAnalysisResultsBuilder( 1521 int index) { 1522 return getAnalysisResultsFieldBuilder().getBuilder(index); 1523 } 1524 /** 1525 * 1526 * 1527 * <pre> 1528 * A list of 1529 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 1530 * that matches the analysis query, or empty if no result is found. 1531 * </pre> 1532 * 1533 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 1534 */ getAnalysisResultsOrBuilder( int index)1535 public com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisResultsOrBuilder( 1536 int index) { 1537 if (analysisResultsBuilder_ == null) { 1538 return analysisResults_.get(index); 1539 } else { 1540 return analysisResultsBuilder_.getMessageOrBuilder(index); 1541 } 1542 } 1543 /** 1544 * 1545 * 1546 * <pre> 1547 * A list of 1548 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 1549 * that matches the analysis query, or empty if no result is found. 1550 * </pre> 1551 * 1552 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 1553 */ 1554 public java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder> getAnalysisResultsOrBuilderList()1555 getAnalysisResultsOrBuilderList() { 1556 if (analysisResultsBuilder_ != null) { 1557 return analysisResultsBuilder_.getMessageOrBuilderList(); 1558 } else { 1559 return java.util.Collections.unmodifiableList(analysisResults_); 1560 } 1561 } 1562 /** 1563 * 1564 * 1565 * <pre> 1566 * A list of 1567 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 1568 * that matches the analysis query, or empty if no result is found. 1569 * </pre> 1570 * 1571 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 1572 */ addAnalysisResultsBuilder()1573 public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder addAnalysisResultsBuilder() { 1574 return getAnalysisResultsFieldBuilder() 1575 .addBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult.getDefaultInstance()); 1576 } 1577 /** 1578 * 1579 * 1580 * <pre> 1581 * A list of 1582 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 1583 * that matches the analysis query, or empty if no result is found. 1584 * </pre> 1585 * 1586 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 1587 */ addAnalysisResultsBuilder( int index)1588 public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder addAnalysisResultsBuilder( 1589 int index) { 1590 return getAnalysisResultsFieldBuilder() 1591 .addBuilder( 1592 index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.getDefaultInstance()); 1593 } 1594 /** 1595 * 1596 * 1597 * <pre> 1598 * A list of 1599 * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] 1600 * that matches the analysis query, or empty if no result is found. 1601 * </pre> 1602 * 1603 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code> 1604 */ 1605 public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder> getAnalysisResultsBuilderList()1606 getAnalysisResultsBuilderList() { 1607 return getAnalysisResultsFieldBuilder().getBuilderList(); 1608 } 1609 1610 private com.google.protobuf.RepeatedFieldBuilderV3< 1611 com.google.cloud.asset.v1.IamPolicyAnalysisResult, 1612 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder, 1613 com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder> getAnalysisResultsFieldBuilder()1614 getAnalysisResultsFieldBuilder() { 1615 if (analysisResultsBuilder_ == null) { 1616 analysisResultsBuilder_ = 1617 new com.google.protobuf.RepeatedFieldBuilderV3< 1618 com.google.cloud.asset.v1.IamPolicyAnalysisResult, 1619 com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder, 1620 com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder>( 1621 analysisResults_, 1622 ((bitField0_ & 0x00000002) != 0), 1623 getParentForChildren(), 1624 isClean()); 1625 analysisResults_ = null; 1626 } 1627 return analysisResultsBuilder_; 1628 } 1629 1630 private boolean fullyExplored_; 1631 /** 1632 * 1633 * 1634 * <pre> 1635 * Represents whether all entries in the 1636 * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] 1637 * have been fully explored to answer the query. 1638 * </pre> 1639 * 1640 * <code>bool fully_explored = 3;</code> 1641 * 1642 * @return The fullyExplored. 1643 */ 1644 @java.lang.Override getFullyExplored()1645 public boolean getFullyExplored() { 1646 return fullyExplored_; 1647 } 1648 /** 1649 * 1650 * 1651 * <pre> 1652 * Represents whether all entries in the 1653 * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] 1654 * have been fully explored to answer the query. 1655 * </pre> 1656 * 1657 * <code>bool fully_explored = 3;</code> 1658 * 1659 * @param value The fullyExplored to set. 1660 * @return This builder for chaining. 1661 */ setFullyExplored(boolean value)1662 public Builder setFullyExplored(boolean value) { 1663 1664 fullyExplored_ = value; 1665 bitField0_ |= 0x00000004; 1666 onChanged(); 1667 return this; 1668 } 1669 /** 1670 * 1671 * 1672 * <pre> 1673 * Represents whether all entries in the 1674 * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] 1675 * have been fully explored to answer the query. 1676 * </pre> 1677 * 1678 * <code>bool fully_explored = 3;</code> 1679 * 1680 * @return This builder for chaining. 1681 */ clearFullyExplored()1682 public Builder clearFullyExplored() { 1683 bitField0_ = (bitField0_ & ~0x00000004); 1684 fullyExplored_ = false; 1685 onChanged(); 1686 return this; 1687 } 1688 1689 private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisState> nonCriticalErrors_ = 1690 java.util.Collections.emptyList(); 1691 ensureNonCriticalErrorsIsMutable()1692 private void ensureNonCriticalErrorsIsMutable() { 1693 if (!((bitField0_ & 0x00000008) != 0)) { 1694 nonCriticalErrors_ = 1695 new java.util.ArrayList<com.google.cloud.asset.v1.IamPolicyAnalysisState>( 1696 nonCriticalErrors_); 1697 bitField0_ |= 0x00000008; 1698 } 1699 } 1700 1701 private com.google.protobuf.RepeatedFieldBuilderV3< 1702 com.google.cloud.asset.v1.IamPolicyAnalysisState, 1703 com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, 1704 com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> 1705 nonCriticalErrorsBuilder_; 1706 1707 /** 1708 * 1709 * 1710 * <pre> 1711 * A list of non-critical errors happened during the query handling. 1712 * </pre> 1713 * 1714 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; 1715 * </code> 1716 */ 1717 public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisState> getNonCriticalErrorsList()1718 getNonCriticalErrorsList() { 1719 if (nonCriticalErrorsBuilder_ == null) { 1720 return java.util.Collections.unmodifiableList(nonCriticalErrors_); 1721 } else { 1722 return nonCriticalErrorsBuilder_.getMessageList(); 1723 } 1724 } 1725 /** 1726 * 1727 * 1728 * <pre> 1729 * A list of non-critical errors happened during the query handling. 1730 * </pre> 1731 * 1732 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; 1733 * </code> 1734 */ getNonCriticalErrorsCount()1735 public int getNonCriticalErrorsCount() { 1736 if (nonCriticalErrorsBuilder_ == null) { 1737 return nonCriticalErrors_.size(); 1738 } else { 1739 return nonCriticalErrorsBuilder_.getCount(); 1740 } 1741 } 1742 /** 1743 * 1744 * 1745 * <pre> 1746 * A list of non-critical errors happened during the query handling. 1747 * </pre> 1748 * 1749 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; 1750 * </code> 1751 */ getNonCriticalErrors(int index)1752 public com.google.cloud.asset.v1.IamPolicyAnalysisState getNonCriticalErrors(int index) { 1753 if (nonCriticalErrorsBuilder_ == null) { 1754 return nonCriticalErrors_.get(index); 1755 } else { 1756 return nonCriticalErrorsBuilder_.getMessage(index); 1757 } 1758 } 1759 /** 1760 * 1761 * 1762 * <pre> 1763 * A list of non-critical errors happened during the query handling. 1764 * </pre> 1765 * 1766 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; 1767 * </code> 1768 */ setNonCriticalErrors( int index, com.google.cloud.asset.v1.IamPolicyAnalysisState value)1769 public Builder setNonCriticalErrors( 1770 int index, com.google.cloud.asset.v1.IamPolicyAnalysisState value) { 1771 if (nonCriticalErrorsBuilder_ == null) { 1772 if (value == null) { 1773 throw new NullPointerException(); 1774 } 1775 ensureNonCriticalErrorsIsMutable(); 1776 nonCriticalErrors_.set(index, value); 1777 onChanged(); 1778 } else { 1779 nonCriticalErrorsBuilder_.setMessage(index, value); 1780 } 1781 return this; 1782 } 1783 /** 1784 * 1785 * 1786 * <pre> 1787 * A list of non-critical errors happened during the query handling. 1788 * </pre> 1789 * 1790 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; 1791 * </code> 1792 */ setNonCriticalErrors( int index, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue)1793 public Builder setNonCriticalErrors( 1794 int index, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue) { 1795 if (nonCriticalErrorsBuilder_ == null) { 1796 ensureNonCriticalErrorsIsMutable(); 1797 nonCriticalErrors_.set(index, builderForValue.build()); 1798 onChanged(); 1799 } else { 1800 nonCriticalErrorsBuilder_.setMessage(index, builderForValue.build()); 1801 } 1802 return this; 1803 } 1804 /** 1805 * 1806 * 1807 * <pre> 1808 * A list of non-critical errors happened during the query handling. 1809 * </pre> 1810 * 1811 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; 1812 * </code> 1813 */ addNonCriticalErrors(com.google.cloud.asset.v1.IamPolicyAnalysisState value)1814 public Builder addNonCriticalErrors(com.google.cloud.asset.v1.IamPolicyAnalysisState value) { 1815 if (nonCriticalErrorsBuilder_ == null) { 1816 if (value == null) { 1817 throw new NullPointerException(); 1818 } 1819 ensureNonCriticalErrorsIsMutable(); 1820 nonCriticalErrors_.add(value); 1821 onChanged(); 1822 } else { 1823 nonCriticalErrorsBuilder_.addMessage(value); 1824 } 1825 return this; 1826 } 1827 /** 1828 * 1829 * 1830 * <pre> 1831 * A list of non-critical errors happened during the query handling. 1832 * </pre> 1833 * 1834 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; 1835 * </code> 1836 */ addNonCriticalErrors( int index, com.google.cloud.asset.v1.IamPolicyAnalysisState value)1837 public Builder addNonCriticalErrors( 1838 int index, com.google.cloud.asset.v1.IamPolicyAnalysisState value) { 1839 if (nonCriticalErrorsBuilder_ == null) { 1840 if (value == null) { 1841 throw new NullPointerException(); 1842 } 1843 ensureNonCriticalErrorsIsMutable(); 1844 nonCriticalErrors_.add(index, value); 1845 onChanged(); 1846 } else { 1847 nonCriticalErrorsBuilder_.addMessage(index, value); 1848 } 1849 return this; 1850 } 1851 /** 1852 * 1853 * 1854 * <pre> 1855 * A list of non-critical errors happened during the query handling. 1856 * </pre> 1857 * 1858 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; 1859 * </code> 1860 */ addNonCriticalErrors( com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue)1861 public Builder addNonCriticalErrors( 1862 com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue) { 1863 if (nonCriticalErrorsBuilder_ == null) { 1864 ensureNonCriticalErrorsIsMutable(); 1865 nonCriticalErrors_.add(builderForValue.build()); 1866 onChanged(); 1867 } else { 1868 nonCriticalErrorsBuilder_.addMessage(builderForValue.build()); 1869 } 1870 return this; 1871 } 1872 /** 1873 * 1874 * 1875 * <pre> 1876 * A list of non-critical errors happened during the query handling. 1877 * </pre> 1878 * 1879 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; 1880 * </code> 1881 */ addNonCriticalErrors( int index, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue)1882 public Builder addNonCriticalErrors( 1883 int index, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue) { 1884 if (nonCriticalErrorsBuilder_ == null) { 1885 ensureNonCriticalErrorsIsMutable(); 1886 nonCriticalErrors_.add(index, builderForValue.build()); 1887 onChanged(); 1888 } else { 1889 nonCriticalErrorsBuilder_.addMessage(index, builderForValue.build()); 1890 } 1891 return this; 1892 } 1893 /** 1894 * 1895 * 1896 * <pre> 1897 * A list of non-critical errors happened during the query handling. 1898 * </pre> 1899 * 1900 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; 1901 * </code> 1902 */ addAllNonCriticalErrors( java.lang.Iterable<? extends com.google.cloud.asset.v1.IamPolicyAnalysisState> values)1903 public Builder addAllNonCriticalErrors( 1904 java.lang.Iterable<? extends com.google.cloud.asset.v1.IamPolicyAnalysisState> values) { 1905 if (nonCriticalErrorsBuilder_ == null) { 1906 ensureNonCriticalErrorsIsMutable(); 1907 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nonCriticalErrors_); 1908 onChanged(); 1909 } else { 1910 nonCriticalErrorsBuilder_.addAllMessages(values); 1911 } 1912 return this; 1913 } 1914 /** 1915 * 1916 * 1917 * <pre> 1918 * A list of non-critical errors happened during the query handling. 1919 * </pre> 1920 * 1921 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; 1922 * </code> 1923 */ clearNonCriticalErrors()1924 public Builder clearNonCriticalErrors() { 1925 if (nonCriticalErrorsBuilder_ == null) { 1926 nonCriticalErrors_ = java.util.Collections.emptyList(); 1927 bitField0_ = (bitField0_ & ~0x00000008); 1928 onChanged(); 1929 } else { 1930 nonCriticalErrorsBuilder_.clear(); 1931 } 1932 return this; 1933 } 1934 /** 1935 * 1936 * 1937 * <pre> 1938 * A list of non-critical errors happened during the query handling. 1939 * </pre> 1940 * 1941 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; 1942 * </code> 1943 */ removeNonCriticalErrors(int index)1944 public Builder removeNonCriticalErrors(int index) { 1945 if (nonCriticalErrorsBuilder_ == null) { 1946 ensureNonCriticalErrorsIsMutable(); 1947 nonCriticalErrors_.remove(index); 1948 onChanged(); 1949 } else { 1950 nonCriticalErrorsBuilder_.remove(index); 1951 } 1952 return this; 1953 } 1954 /** 1955 * 1956 * 1957 * <pre> 1958 * A list of non-critical errors happened during the query handling. 1959 * </pre> 1960 * 1961 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; 1962 * </code> 1963 */ getNonCriticalErrorsBuilder( int index)1964 public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder getNonCriticalErrorsBuilder( 1965 int index) { 1966 return getNonCriticalErrorsFieldBuilder().getBuilder(index); 1967 } 1968 /** 1969 * 1970 * 1971 * <pre> 1972 * A list of non-critical errors happened during the query handling. 1973 * </pre> 1974 * 1975 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; 1976 * </code> 1977 */ 1978 public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getNonCriticalErrorsOrBuilder(int index)1979 getNonCriticalErrorsOrBuilder(int index) { 1980 if (nonCriticalErrorsBuilder_ == null) { 1981 return nonCriticalErrors_.get(index); 1982 } else { 1983 return nonCriticalErrorsBuilder_.getMessageOrBuilder(index); 1984 } 1985 } 1986 /** 1987 * 1988 * 1989 * <pre> 1990 * A list of non-critical errors happened during the query handling. 1991 * </pre> 1992 * 1993 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; 1994 * </code> 1995 */ 1996 public java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> getNonCriticalErrorsOrBuilderList()1997 getNonCriticalErrorsOrBuilderList() { 1998 if (nonCriticalErrorsBuilder_ != null) { 1999 return nonCriticalErrorsBuilder_.getMessageOrBuilderList(); 2000 } else { 2001 return java.util.Collections.unmodifiableList(nonCriticalErrors_); 2002 } 2003 } 2004 /** 2005 * 2006 * 2007 * <pre> 2008 * A list of non-critical errors happened during the query handling. 2009 * </pre> 2010 * 2011 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; 2012 * </code> 2013 */ 2014 public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder addNonCriticalErrorsBuilder()2015 addNonCriticalErrorsBuilder() { 2016 return getNonCriticalErrorsFieldBuilder() 2017 .addBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()); 2018 } 2019 /** 2020 * 2021 * 2022 * <pre> 2023 * A list of non-critical errors happened during the query handling. 2024 * </pre> 2025 * 2026 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; 2027 * </code> 2028 */ addNonCriticalErrorsBuilder( int index)2029 public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder addNonCriticalErrorsBuilder( 2030 int index) { 2031 return getNonCriticalErrorsFieldBuilder() 2032 .addBuilder( 2033 index, com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()); 2034 } 2035 /** 2036 * 2037 * 2038 * <pre> 2039 * A list of non-critical errors happened during the query handling. 2040 * </pre> 2041 * 2042 * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; 2043 * </code> 2044 */ 2045 public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder> getNonCriticalErrorsBuilderList()2046 getNonCriticalErrorsBuilderList() { 2047 return getNonCriticalErrorsFieldBuilder().getBuilderList(); 2048 } 2049 2050 private com.google.protobuf.RepeatedFieldBuilderV3< 2051 com.google.cloud.asset.v1.IamPolicyAnalysisState, 2052 com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, 2053 com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> getNonCriticalErrorsFieldBuilder()2054 getNonCriticalErrorsFieldBuilder() { 2055 if (nonCriticalErrorsBuilder_ == null) { 2056 nonCriticalErrorsBuilder_ = 2057 new com.google.protobuf.RepeatedFieldBuilderV3< 2058 com.google.cloud.asset.v1.IamPolicyAnalysisState, 2059 com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, 2060 com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>( 2061 nonCriticalErrors_, 2062 ((bitField0_ & 0x00000008) != 0), 2063 getParentForChildren(), 2064 isClean()); 2065 nonCriticalErrors_ = null; 2066 } 2067 return nonCriticalErrorsBuilder_; 2068 } 2069 2070 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2071 public final Builder setUnknownFields( 2072 final com.google.protobuf.UnknownFieldSet unknownFields) { 2073 return super.setUnknownFields(unknownFields); 2074 } 2075 2076 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2077 public final Builder mergeUnknownFields( 2078 final com.google.protobuf.UnknownFieldSet unknownFields) { 2079 return super.mergeUnknownFields(unknownFields); 2080 } 2081 2082 // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) 2083 } 2084 2085 // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) 2086 private static final com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis 2087 DEFAULT_INSTANCE; 2088 2089 static { 2090 DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis(); 2091 } 2092 2093 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getDefaultInstance()2094 getDefaultInstance() { 2095 return DEFAULT_INSTANCE; 2096 } 2097 2098 private static final com.google.protobuf.Parser<IamPolicyAnalysis> PARSER = 2099 new com.google.protobuf.AbstractParser<IamPolicyAnalysis>() { 2100 @java.lang.Override 2101 public IamPolicyAnalysis parsePartialFrom( 2102 com.google.protobuf.CodedInputStream input, 2103 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2104 throws com.google.protobuf.InvalidProtocolBufferException { 2105 Builder builder = newBuilder(); 2106 try { 2107 builder.mergeFrom(input, extensionRegistry); 2108 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2109 throw e.setUnfinishedMessage(builder.buildPartial()); 2110 } catch (com.google.protobuf.UninitializedMessageException e) { 2111 throw e.asInvalidProtocolBufferException() 2112 .setUnfinishedMessage(builder.buildPartial()); 2113 } catch (java.io.IOException e) { 2114 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2115 .setUnfinishedMessage(builder.buildPartial()); 2116 } 2117 return builder.buildPartial(); 2118 } 2119 }; 2120 parser()2121 public static com.google.protobuf.Parser<IamPolicyAnalysis> parser() { 2122 return PARSER; 2123 } 2124 2125 @java.lang.Override getParserForType()2126 public com.google.protobuf.Parser<IamPolicyAnalysis> getParserForType() { 2127 return PARSER; 2128 } 2129 2130 @java.lang.Override 2131 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getDefaultInstanceForType()2132 getDefaultInstanceForType() { 2133 return DEFAULT_INSTANCE; 2134 } 2135 } 2136 2137 public static final int MAIN_ANALYSIS_FIELD_NUMBER = 1; 2138 private com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis mainAnalysis_; 2139 /** 2140 * 2141 * 2142 * <pre> 2143 * The main analysis that matches the original request. 2144 * </pre> 2145 * 2146 * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; 2147 * </code> 2148 * 2149 * @return Whether the mainAnalysis field is set. 2150 */ 2151 @java.lang.Override hasMainAnalysis()2152 public boolean hasMainAnalysis() { 2153 return mainAnalysis_ != null; 2154 } 2155 /** 2156 * 2157 * 2158 * <pre> 2159 * The main analysis that matches the original request. 2160 * </pre> 2161 * 2162 * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; 2163 * </code> 2164 * 2165 * @return The mainAnalysis. 2166 */ 2167 @java.lang.Override getMainAnalysis()2168 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getMainAnalysis() { 2169 return mainAnalysis_ == null 2170 ? com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance() 2171 : mainAnalysis_; 2172 } 2173 /** 2174 * 2175 * 2176 * <pre> 2177 * The main analysis that matches the original request. 2178 * </pre> 2179 * 2180 * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; 2181 * </code> 2182 */ 2183 @java.lang.Override 2184 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder getMainAnalysisOrBuilder()2185 getMainAnalysisOrBuilder() { 2186 return mainAnalysis_ == null 2187 ? com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance() 2188 : mainAnalysis_; 2189 } 2190 2191 public static final int SERVICE_ACCOUNT_IMPERSONATION_ANALYSIS_FIELD_NUMBER = 2; 2192 2193 @SuppressWarnings("serial") 2194 private java.util.List<com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis> 2195 serviceAccountImpersonationAnalysis_; 2196 /** 2197 * 2198 * 2199 * <pre> 2200 * The service account impersonation analysis if 2201 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 2202 * enabled. 2203 * </pre> 2204 * 2205 * <code> 2206 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 2207 * </code> 2208 */ 2209 @java.lang.Override 2210 public java.util.List<com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis> getServiceAccountImpersonationAnalysisList()2211 getServiceAccountImpersonationAnalysisList() { 2212 return serviceAccountImpersonationAnalysis_; 2213 } 2214 /** 2215 * 2216 * 2217 * <pre> 2218 * The service account impersonation analysis if 2219 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 2220 * enabled. 2221 * </pre> 2222 * 2223 * <code> 2224 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 2225 * </code> 2226 */ 2227 @java.lang.Override 2228 public java.util.List< 2229 ? extends com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> getServiceAccountImpersonationAnalysisOrBuilderList()2230 getServiceAccountImpersonationAnalysisOrBuilderList() { 2231 return serviceAccountImpersonationAnalysis_; 2232 } 2233 /** 2234 * 2235 * 2236 * <pre> 2237 * The service account impersonation analysis if 2238 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 2239 * enabled. 2240 * </pre> 2241 * 2242 * <code> 2243 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 2244 * </code> 2245 */ 2246 @java.lang.Override getServiceAccountImpersonationAnalysisCount()2247 public int getServiceAccountImpersonationAnalysisCount() { 2248 return serviceAccountImpersonationAnalysis_.size(); 2249 } 2250 /** 2251 * 2252 * 2253 * <pre> 2254 * The service account impersonation analysis if 2255 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 2256 * enabled. 2257 * </pre> 2258 * 2259 * <code> 2260 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 2261 * </code> 2262 */ 2263 @java.lang.Override 2264 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getServiceAccountImpersonationAnalysis(int index)2265 getServiceAccountImpersonationAnalysis(int index) { 2266 return serviceAccountImpersonationAnalysis_.get(index); 2267 } 2268 /** 2269 * 2270 * 2271 * <pre> 2272 * The service account impersonation analysis if 2273 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 2274 * enabled. 2275 * </pre> 2276 * 2277 * <code> 2278 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 2279 * </code> 2280 */ 2281 @java.lang.Override 2282 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder getServiceAccountImpersonationAnalysisOrBuilder(int index)2283 getServiceAccountImpersonationAnalysisOrBuilder(int index) { 2284 return serviceAccountImpersonationAnalysis_.get(index); 2285 } 2286 2287 public static final int FULLY_EXPLORED_FIELD_NUMBER = 3; 2288 private boolean fullyExplored_ = false; 2289 /** 2290 * 2291 * 2292 * <pre> 2293 * Represents whether all entries in the 2294 * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] 2295 * and 2296 * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] 2297 * have been fully explored to answer the query in the request. 2298 * </pre> 2299 * 2300 * <code>bool fully_explored = 3;</code> 2301 * 2302 * @return The fullyExplored. 2303 */ 2304 @java.lang.Override getFullyExplored()2305 public boolean getFullyExplored() { 2306 return fullyExplored_; 2307 } 2308 2309 private byte memoizedIsInitialized = -1; 2310 2311 @java.lang.Override isInitialized()2312 public final boolean isInitialized() { 2313 byte isInitialized = memoizedIsInitialized; 2314 if (isInitialized == 1) return true; 2315 if (isInitialized == 0) return false; 2316 2317 memoizedIsInitialized = 1; 2318 return true; 2319 } 2320 2321 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)2322 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 2323 if (mainAnalysis_ != null) { 2324 output.writeMessage(1, getMainAnalysis()); 2325 } 2326 for (int i = 0; i < serviceAccountImpersonationAnalysis_.size(); i++) { 2327 output.writeMessage(2, serviceAccountImpersonationAnalysis_.get(i)); 2328 } 2329 if (fullyExplored_ != false) { 2330 output.writeBool(3, fullyExplored_); 2331 } 2332 getUnknownFields().writeTo(output); 2333 } 2334 2335 @java.lang.Override getSerializedSize()2336 public int getSerializedSize() { 2337 int size = memoizedSize; 2338 if (size != -1) return size; 2339 2340 size = 0; 2341 if (mainAnalysis_ != null) { 2342 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMainAnalysis()); 2343 } 2344 for (int i = 0; i < serviceAccountImpersonationAnalysis_.size(); i++) { 2345 size += 2346 com.google.protobuf.CodedOutputStream.computeMessageSize( 2347 2, serviceAccountImpersonationAnalysis_.get(i)); 2348 } 2349 if (fullyExplored_ != false) { 2350 size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, fullyExplored_); 2351 } 2352 size += getUnknownFields().getSerializedSize(); 2353 memoizedSize = size; 2354 return size; 2355 } 2356 2357 @java.lang.Override equals(final java.lang.Object obj)2358 public boolean equals(final java.lang.Object obj) { 2359 if (obj == this) { 2360 return true; 2361 } 2362 if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyResponse)) { 2363 return super.equals(obj); 2364 } 2365 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse other = 2366 (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse) obj; 2367 2368 if (hasMainAnalysis() != other.hasMainAnalysis()) return false; 2369 if (hasMainAnalysis()) { 2370 if (!getMainAnalysis().equals(other.getMainAnalysis())) return false; 2371 } 2372 if (!getServiceAccountImpersonationAnalysisList() 2373 .equals(other.getServiceAccountImpersonationAnalysisList())) return false; 2374 if (getFullyExplored() != other.getFullyExplored()) return false; 2375 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 2376 return true; 2377 } 2378 2379 @java.lang.Override hashCode()2380 public int hashCode() { 2381 if (memoizedHashCode != 0) { 2382 return memoizedHashCode; 2383 } 2384 int hash = 41; 2385 hash = (19 * hash) + getDescriptor().hashCode(); 2386 if (hasMainAnalysis()) { 2387 hash = (37 * hash) + MAIN_ANALYSIS_FIELD_NUMBER; 2388 hash = (53 * hash) + getMainAnalysis().hashCode(); 2389 } 2390 if (getServiceAccountImpersonationAnalysisCount() > 0) { 2391 hash = (37 * hash) + SERVICE_ACCOUNT_IMPERSONATION_ANALYSIS_FIELD_NUMBER; 2392 hash = (53 * hash) + getServiceAccountImpersonationAnalysisList().hashCode(); 2393 } 2394 hash = (37 * hash) + FULLY_EXPLORED_FIELD_NUMBER; 2395 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullyExplored()); 2396 hash = (29 * hash) + getUnknownFields().hashCode(); 2397 memoizedHashCode = hash; 2398 return hash; 2399 } 2400 parseFrom( java.nio.ByteBuffer data)2401 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( 2402 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 2403 return PARSER.parseFrom(data); 2404 } 2405 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2406 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( 2407 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2408 throws com.google.protobuf.InvalidProtocolBufferException { 2409 return PARSER.parseFrom(data, extensionRegistry); 2410 } 2411 parseFrom( com.google.protobuf.ByteString data)2412 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( 2413 com.google.protobuf.ByteString data) 2414 throws com.google.protobuf.InvalidProtocolBufferException { 2415 return PARSER.parseFrom(data); 2416 } 2417 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2418 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( 2419 com.google.protobuf.ByteString data, 2420 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2421 throws com.google.protobuf.InvalidProtocolBufferException { 2422 return PARSER.parseFrom(data, extensionRegistry); 2423 } 2424 parseFrom(byte[] data)2425 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom(byte[] data) 2426 throws com.google.protobuf.InvalidProtocolBufferException { 2427 return PARSER.parseFrom(data); 2428 } 2429 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2430 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( 2431 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2432 throws com.google.protobuf.InvalidProtocolBufferException { 2433 return PARSER.parseFrom(data, extensionRegistry); 2434 } 2435 parseFrom( java.io.InputStream input)2436 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( 2437 java.io.InputStream input) throws java.io.IOException { 2438 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2439 } 2440 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2441 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( 2442 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2443 throws java.io.IOException { 2444 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2445 PARSER, input, extensionRegistry); 2446 } 2447 parseDelimitedFrom( java.io.InputStream input)2448 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseDelimitedFrom( 2449 java.io.InputStream input) throws java.io.IOException { 2450 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 2451 } 2452 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2453 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseDelimitedFrom( 2454 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2455 throws java.io.IOException { 2456 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 2457 PARSER, input, extensionRegistry); 2458 } 2459 parseFrom( com.google.protobuf.CodedInputStream input)2460 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( 2461 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 2462 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2463 } 2464 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2465 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( 2466 com.google.protobuf.CodedInputStream input, 2467 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2468 throws java.io.IOException { 2469 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2470 PARSER, input, extensionRegistry); 2471 } 2472 2473 @java.lang.Override newBuilderForType()2474 public Builder newBuilderForType() { 2475 return newBuilder(); 2476 } 2477 newBuilder()2478 public static Builder newBuilder() { 2479 return DEFAULT_INSTANCE.toBuilder(); 2480 } 2481 newBuilder(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse prototype)2482 public static Builder newBuilder(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse prototype) { 2483 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2484 } 2485 2486 @java.lang.Override toBuilder()2487 public Builder toBuilder() { 2488 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 2489 } 2490 2491 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2492 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2493 Builder builder = new Builder(parent); 2494 return builder; 2495 } 2496 /** 2497 * 2498 * 2499 * <pre> 2500 * A response message for 2501 * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]. 2502 * </pre> 2503 * 2504 * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyResponse} 2505 */ 2506 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 2507 implements 2508 // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeIamPolicyResponse) 2509 com.google.cloud.asset.v1.AnalyzeIamPolicyResponseOrBuilder { getDescriptor()2510 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 2511 return com.google.cloud.asset.v1.AssetServiceProto 2512 .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; 2513 } 2514 2515 @java.lang.Override 2516 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()2517 internalGetFieldAccessorTable() { 2518 return com.google.cloud.asset.v1.AssetServiceProto 2519 .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable 2520 .ensureFieldAccessorsInitialized( 2521 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.class, 2522 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.Builder.class); 2523 } 2524 2525 // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.newBuilder() Builder()2526 private Builder() {} 2527 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2528 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2529 super(parent); 2530 } 2531 2532 @java.lang.Override clear()2533 public Builder clear() { 2534 super.clear(); 2535 bitField0_ = 0; 2536 mainAnalysis_ = null; 2537 if (mainAnalysisBuilder_ != null) { 2538 mainAnalysisBuilder_.dispose(); 2539 mainAnalysisBuilder_ = null; 2540 } 2541 if (serviceAccountImpersonationAnalysisBuilder_ == null) { 2542 serviceAccountImpersonationAnalysis_ = java.util.Collections.emptyList(); 2543 } else { 2544 serviceAccountImpersonationAnalysis_ = null; 2545 serviceAccountImpersonationAnalysisBuilder_.clear(); 2546 } 2547 bitField0_ = (bitField0_ & ~0x00000002); 2548 fullyExplored_ = false; 2549 return this; 2550 } 2551 2552 @java.lang.Override getDescriptorForType()2553 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 2554 return com.google.cloud.asset.v1.AssetServiceProto 2555 .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; 2556 } 2557 2558 @java.lang.Override getDefaultInstanceForType()2559 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse getDefaultInstanceForType() { 2560 return com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.getDefaultInstance(); 2561 } 2562 2563 @java.lang.Override build()2564 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse build() { 2565 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse result = buildPartial(); 2566 if (!result.isInitialized()) { 2567 throw newUninitializedMessageException(result); 2568 } 2569 return result; 2570 } 2571 2572 @java.lang.Override buildPartial()2573 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse buildPartial() { 2574 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse result = 2575 new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse(this); 2576 buildPartialRepeatedFields(result); 2577 if (bitField0_ != 0) { 2578 buildPartial0(result); 2579 } 2580 onBuilt(); 2581 return result; 2582 } 2583 buildPartialRepeatedFields( com.google.cloud.asset.v1.AnalyzeIamPolicyResponse result)2584 private void buildPartialRepeatedFields( 2585 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse result) { 2586 if (serviceAccountImpersonationAnalysisBuilder_ == null) { 2587 if (((bitField0_ & 0x00000002) != 0)) { 2588 serviceAccountImpersonationAnalysis_ = 2589 java.util.Collections.unmodifiableList(serviceAccountImpersonationAnalysis_); 2590 bitField0_ = (bitField0_ & ~0x00000002); 2591 } 2592 result.serviceAccountImpersonationAnalysis_ = serviceAccountImpersonationAnalysis_; 2593 } else { 2594 result.serviceAccountImpersonationAnalysis_ = 2595 serviceAccountImpersonationAnalysisBuilder_.build(); 2596 } 2597 } 2598 buildPartial0(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse result)2599 private void buildPartial0(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse result) { 2600 int from_bitField0_ = bitField0_; 2601 if (((from_bitField0_ & 0x00000001) != 0)) { 2602 result.mainAnalysis_ = 2603 mainAnalysisBuilder_ == null ? mainAnalysis_ : mainAnalysisBuilder_.build(); 2604 } 2605 if (((from_bitField0_ & 0x00000004) != 0)) { 2606 result.fullyExplored_ = fullyExplored_; 2607 } 2608 } 2609 2610 @java.lang.Override clone()2611 public Builder clone() { 2612 return super.clone(); 2613 } 2614 2615 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2616 public Builder setField( 2617 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2618 return super.setField(field, value); 2619 } 2620 2621 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2622 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 2623 return super.clearField(field); 2624 } 2625 2626 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2627 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 2628 return super.clearOneof(oneof); 2629 } 2630 2631 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2632 public Builder setRepeatedField( 2633 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 2634 return super.setRepeatedField(field, index, value); 2635 } 2636 2637 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2638 public Builder addRepeatedField( 2639 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2640 return super.addRepeatedField(field, value); 2641 } 2642 2643 @java.lang.Override mergeFrom(com.google.protobuf.Message other)2644 public Builder mergeFrom(com.google.protobuf.Message other) { 2645 if (other instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyResponse) { 2646 return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyResponse) other); 2647 } else { 2648 super.mergeFrom(other); 2649 return this; 2650 } 2651 } 2652 mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse other)2653 public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse other) { 2654 if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.getDefaultInstance()) 2655 return this; 2656 if (other.hasMainAnalysis()) { 2657 mergeMainAnalysis(other.getMainAnalysis()); 2658 } 2659 if (serviceAccountImpersonationAnalysisBuilder_ == null) { 2660 if (!other.serviceAccountImpersonationAnalysis_.isEmpty()) { 2661 if (serviceAccountImpersonationAnalysis_.isEmpty()) { 2662 serviceAccountImpersonationAnalysis_ = other.serviceAccountImpersonationAnalysis_; 2663 bitField0_ = (bitField0_ & ~0x00000002); 2664 } else { 2665 ensureServiceAccountImpersonationAnalysisIsMutable(); 2666 serviceAccountImpersonationAnalysis_.addAll(other.serviceAccountImpersonationAnalysis_); 2667 } 2668 onChanged(); 2669 } 2670 } else { 2671 if (!other.serviceAccountImpersonationAnalysis_.isEmpty()) { 2672 if (serviceAccountImpersonationAnalysisBuilder_.isEmpty()) { 2673 serviceAccountImpersonationAnalysisBuilder_.dispose(); 2674 serviceAccountImpersonationAnalysisBuilder_ = null; 2675 serviceAccountImpersonationAnalysis_ = other.serviceAccountImpersonationAnalysis_; 2676 bitField0_ = (bitField0_ & ~0x00000002); 2677 serviceAccountImpersonationAnalysisBuilder_ = 2678 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 2679 ? getServiceAccountImpersonationAnalysisFieldBuilder() 2680 : null; 2681 } else { 2682 serviceAccountImpersonationAnalysisBuilder_.addAllMessages( 2683 other.serviceAccountImpersonationAnalysis_); 2684 } 2685 } 2686 } 2687 if (other.getFullyExplored() != false) { 2688 setFullyExplored(other.getFullyExplored()); 2689 } 2690 this.mergeUnknownFields(other.getUnknownFields()); 2691 onChanged(); 2692 return this; 2693 } 2694 2695 @java.lang.Override isInitialized()2696 public final boolean isInitialized() { 2697 return true; 2698 } 2699 2700 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2701 public Builder mergeFrom( 2702 com.google.protobuf.CodedInputStream input, 2703 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2704 throws java.io.IOException { 2705 if (extensionRegistry == null) { 2706 throw new java.lang.NullPointerException(); 2707 } 2708 try { 2709 boolean done = false; 2710 while (!done) { 2711 int tag = input.readTag(); 2712 switch (tag) { 2713 case 0: 2714 done = true; 2715 break; 2716 case 10: 2717 { 2718 input.readMessage(getMainAnalysisFieldBuilder().getBuilder(), extensionRegistry); 2719 bitField0_ |= 0x00000001; 2720 break; 2721 } // case 10 2722 case 18: 2723 { 2724 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis m = 2725 input.readMessage( 2726 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis 2727 .parser(), 2728 extensionRegistry); 2729 if (serviceAccountImpersonationAnalysisBuilder_ == null) { 2730 ensureServiceAccountImpersonationAnalysisIsMutable(); 2731 serviceAccountImpersonationAnalysis_.add(m); 2732 } else { 2733 serviceAccountImpersonationAnalysisBuilder_.addMessage(m); 2734 } 2735 break; 2736 } // case 18 2737 case 24: 2738 { 2739 fullyExplored_ = input.readBool(); 2740 bitField0_ |= 0x00000004; 2741 break; 2742 } // case 24 2743 default: 2744 { 2745 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 2746 done = true; // was an endgroup tag 2747 } 2748 break; 2749 } // default: 2750 } // switch (tag) 2751 } // while (!done) 2752 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2753 throw e.unwrapIOException(); 2754 } finally { 2755 onChanged(); 2756 } // finally 2757 return this; 2758 } 2759 2760 private int bitField0_; 2761 2762 private com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis mainAnalysis_; 2763 private com.google.protobuf.SingleFieldBuilderV3< 2764 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, 2765 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, 2766 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> 2767 mainAnalysisBuilder_; 2768 /** 2769 * 2770 * 2771 * <pre> 2772 * The main analysis that matches the original request. 2773 * </pre> 2774 * 2775 * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; 2776 * </code> 2777 * 2778 * @return Whether the mainAnalysis field is set. 2779 */ hasMainAnalysis()2780 public boolean hasMainAnalysis() { 2781 return ((bitField0_ & 0x00000001) != 0); 2782 } 2783 /** 2784 * 2785 * 2786 * <pre> 2787 * The main analysis that matches the original request. 2788 * </pre> 2789 * 2790 * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; 2791 * </code> 2792 * 2793 * @return The mainAnalysis. 2794 */ getMainAnalysis()2795 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getMainAnalysis() { 2796 if (mainAnalysisBuilder_ == null) { 2797 return mainAnalysis_ == null 2798 ? com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis 2799 .getDefaultInstance() 2800 : mainAnalysis_; 2801 } else { 2802 return mainAnalysisBuilder_.getMessage(); 2803 } 2804 } 2805 /** 2806 * 2807 * 2808 * <pre> 2809 * The main analysis that matches the original request. 2810 * </pre> 2811 * 2812 * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; 2813 * </code> 2814 */ setMainAnalysis( com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value)2815 public Builder setMainAnalysis( 2816 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { 2817 if (mainAnalysisBuilder_ == null) { 2818 if (value == null) { 2819 throw new NullPointerException(); 2820 } 2821 mainAnalysis_ = value; 2822 } else { 2823 mainAnalysisBuilder_.setMessage(value); 2824 } 2825 bitField0_ |= 0x00000001; 2826 onChanged(); 2827 return this; 2828 } 2829 /** 2830 * 2831 * 2832 * <pre> 2833 * The main analysis that matches the original request. 2834 * </pre> 2835 * 2836 * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; 2837 * </code> 2838 */ setMainAnalysis( com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue)2839 public Builder setMainAnalysis( 2840 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder 2841 builderForValue) { 2842 if (mainAnalysisBuilder_ == null) { 2843 mainAnalysis_ = builderForValue.build(); 2844 } else { 2845 mainAnalysisBuilder_.setMessage(builderForValue.build()); 2846 } 2847 bitField0_ |= 0x00000001; 2848 onChanged(); 2849 return this; 2850 } 2851 /** 2852 * 2853 * 2854 * <pre> 2855 * The main analysis that matches the original request. 2856 * </pre> 2857 * 2858 * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; 2859 * </code> 2860 */ mergeMainAnalysis( com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value)2861 public Builder mergeMainAnalysis( 2862 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { 2863 if (mainAnalysisBuilder_ == null) { 2864 if (((bitField0_ & 0x00000001) != 0) 2865 && mainAnalysis_ != null 2866 && mainAnalysis_ 2867 != com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis 2868 .getDefaultInstance()) { 2869 getMainAnalysisBuilder().mergeFrom(value); 2870 } else { 2871 mainAnalysis_ = value; 2872 } 2873 } else { 2874 mainAnalysisBuilder_.mergeFrom(value); 2875 } 2876 bitField0_ |= 0x00000001; 2877 onChanged(); 2878 return this; 2879 } 2880 /** 2881 * 2882 * 2883 * <pre> 2884 * The main analysis that matches the original request. 2885 * </pre> 2886 * 2887 * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; 2888 * </code> 2889 */ clearMainAnalysis()2890 public Builder clearMainAnalysis() { 2891 bitField0_ = (bitField0_ & ~0x00000001); 2892 mainAnalysis_ = null; 2893 if (mainAnalysisBuilder_ != null) { 2894 mainAnalysisBuilder_.dispose(); 2895 mainAnalysisBuilder_ = null; 2896 } 2897 onChanged(); 2898 return this; 2899 } 2900 /** 2901 * 2902 * 2903 * <pre> 2904 * The main analysis that matches the original request. 2905 * </pre> 2906 * 2907 * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; 2908 * </code> 2909 */ 2910 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder getMainAnalysisBuilder()2911 getMainAnalysisBuilder() { 2912 bitField0_ |= 0x00000001; 2913 onChanged(); 2914 return getMainAnalysisFieldBuilder().getBuilder(); 2915 } 2916 /** 2917 * 2918 * 2919 * <pre> 2920 * The main analysis that matches the original request. 2921 * </pre> 2922 * 2923 * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; 2924 * </code> 2925 */ 2926 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder getMainAnalysisOrBuilder()2927 getMainAnalysisOrBuilder() { 2928 if (mainAnalysisBuilder_ != null) { 2929 return mainAnalysisBuilder_.getMessageOrBuilder(); 2930 } else { 2931 return mainAnalysis_ == null 2932 ? com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis 2933 .getDefaultInstance() 2934 : mainAnalysis_; 2935 } 2936 } 2937 /** 2938 * 2939 * 2940 * <pre> 2941 * The main analysis that matches the original request. 2942 * </pre> 2943 * 2944 * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; 2945 * </code> 2946 */ 2947 private com.google.protobuf.SingleFieldBuilderV3< 2948 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, 2949 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, 2950 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> getMainAnalysisFieldBuilder()2951 getMainAnalysisFieldBuilder() { 2952 if (mainAnalysisBuilder_ == null) { 2953 mainAnalysisBuilder_ = 2954 new com.google.protobuf.SingleFieldBuilderV3< 2955 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, 2956 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, 2957 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder>( 2958 getMainAnalysis(), getParentForChildren(), isClean()); 2959 mainAnalysis_ = null; 2960 } 2961 return mainAnalysisBuilder_; 2962 } 2963 2964 private java.util.List<com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis> 2965 serviceAccountImpersonationAnalysis_ = java.util.Collections.emptyList(); 2966 ensureServiceAccountImpersonationAnalysisIsMutable()2967 private void ensureServiceAccountImpersonationAnalysisIsMutable() { 2968 if (!((bitField0_ & 0x00000002) != 0)) { 2969 serviceAccountImpersonationAnalysis_ = 2970 new java.util.ArrayList< 2971 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis>( 2972 serviceAccountImpersonationAnalysis_); 2973 bitField0_ |= 0x00000002; 2974 } 2975 } 2976 2977 private com.google.protobuf.RepeatedFieldBuilderV3< 2978 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, 2979 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, 2980 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> 2981 serviceAccountImpersonationAnalysisBuilder_; 2982 2983 /** 2984 * 2985 * 2986 * <pre> 2987 * The service account impersonation analysis if 2988 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 2989 * enabled. 2990 * </pre> 2991 * 2992 * <code> 2993 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 2994 * </code> 2995 */ 2996 public java.util.List<com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis> getServiceAccountImpersonationAnalysisList()2997 getServiceAccountImpersonationAnalysisList() { 2998 if (serviceAccountImpersonationAnalysisBuilder_ == null) { 2999 return java.util.Collections.unmodifiableList(serviceAccountImpersonationAnalysis_); 3000 } else { 3001 return serviceAccountImpersonationAnalysisBuilder_.getMessageList(); 3002 } 3003 } 3004 /** 3005 * 3006 * 3007 * <pre> 3008 * The service account impersonation analysis if 3009 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 3010 * enabled. 3011 * </pre> 3012 * 3013 * <code> 3014 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 3015 * </code> 3016 */ getServiceAccountImpersonationAnalysisCount()3017 public int getServiceAccountImpersonationAnalysisCount() { 3018 if (serviceAccountImpersonationAnalysisBuilder_ == null) { 3019 return serviceAccountImpersonationAnalysis_.size(); 3020 } else { 3021 return serviceAccountImpersonationAnalysisBuilder_.getCount(); 3022 } 3023 } 3024 /** 3025 * 3026 * 3027 * <pre> 3028 * The service account impersonation analysis if 3029 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 3030 * enabled. 3031 * </pre> 3032 * 3033 * <code> 3034 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 3035 * </code> 3036 */ 3037 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getServiceAccountImpersonationAnalysis(int index)3038 getServiceAccountImpersonationAnalysis(int index) { 3039 if (serviceAccountImpersonationAnalysisBuilder_ == null) { 3040 return serviceAccountImpersonationAnalysis_.get(index); 3041 } else { 3042 return serviceAccountImpersonationAnalysisBuilder_.getMessage(index); 3043 } 3044 } 3045 /** 3046 * 3047 * 3048 * <pre> 3049 * The service account impersonation analysis if 3050 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 3051 * enabled. 3052 * </pre> 3053 * 3054 * <code> 3055 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 3056 * </code> 3057 */ setServiceAccountImpersonationAnalysis( int index, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value)3058 public Builder setServiceAccountImpersonationAnalysis( 3059 int index, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { 3060 if (serviceAccountImpersonationAnalysisBuilder_ == null) { 3061 if (value == null) { 3062 throw new NullPointerException(); 3063 } 3064 ensureServiceAccountImpersonationAnalysisIsMutable(); 3065 serviceAccountImpersonationAnalysis_.set(index, value); 3066 onChanged(); 3067 } else { 3068 serviceAccountImpersonationAnalysisBuilder_.setMessage(index, value); 3069 } 3070 return this; 3071 } 3072 /** 3073 * 3074 * 3075 * <pre> 3076 * The service account impersonation analysis if 3077 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 3078 * enabled. 3079 * </pre> 3080 * 3081 * <code> 3082 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 3083 * </code> 3084 */ setServiceAccountImpersonationAnalysis( int index, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue)3085 public Builder setServiceAccountImpersonationAnalysis( 3086 int index, 3087 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder 3088 builderForValue) { 3089 if (serviceAccountImpersonationAnalysisBuilder_ == null) { 3090 ensureServiceAccountImpersonationAnalysisIsMutable(); 3091 serviceAccountImpersonationAnalysis_.set(index, builderForValue.build()); 3092 onChanged(); 3093 } else { 3094 serviceAccountImpersonationAnalysisBuilder_.setMessage(index, builderForValue.build()); 3095 } 3096 return this; 3097 } 3098 /** 3099 * 3100 * 3101 * <pre> 3102 * The service account impersonation analysis if 3103 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 3104 * enabled. 3105 * </pre> 3106 * 3107 * <code> 3108 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 3109 * </code> 3110 */ addServiceAccountImpersonationAnalysis( com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value)3111 public Builder addServiceAccountImpersonationAnalysis( 3112 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { 3113 if (serviceAccountImpersonationAnalysisBuilder_ == null) { 3114 if (value == null) { 3115 throw new NullPointerException(); 3116 } 3117 ensureServiceAccountImpersonationAnalysisIsMutable(); 3118 serviceAccountImpersonationAnalysis_.add(value); 3119 onChanged(); 3120 } else { 3121 serviceAccountImpersonationAnalysisBuilder_.addMessage(value); 3122 } 3123 return this; 3124 } 3125 /** 3126 * 3127 * 3128 * <pre> 3129 * The service account impersonation analysis if 3130 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 3131 * enabled. 3132 * </pre> 3133 * 3134 * <code> 3135 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 3136 * </code> 3137 */ addServiceAccountImpersonationAnalysis( int index, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value)3138 public Builder addServiceAccountImpersonationAnalysis( 3139 int index, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { 3140 if (serviceAccountImpersonationAnalysisBuilder_ == null) { 3141 if (value == null) { 3142 throw new NullPointerException(); 3143 } 3144 ensureServiceAccountImpersonationAnalysisIsMutable(); 3145 serviceAccountImpersonationAnalysis_.add(index, value); 3146 onChanged(); 3147 } else { 3148 serviceAccountImpersonationAnalysisBuilder_.addMessage(index, value); 3149 } 3150 return this; 3151 } 3152 /** 3153 * 3154 * 3155 * <pre> 3156 * The service account impersonation analysis if 3157 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 3158 * enabled. 3159 * </pre> 3160 * 3161 * <code> 3162 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 3163 * </code> 3164 */ addServiceAccountImpersonationAnalysis( com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue)3165 public Builder addServiceAccountImpersonationAnalysis( 3166 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder 3167 builderForValue) { 3168 if (serviceAccountImpersonationAnalysisBuilder_ == null) { 3169 ensureServiceAccountImpersonationAnalysisIsMutable(); 3170 serviceAccountImpersonationAnalysis_.add(builderForValue.build()); 3171 onChanged(); 3172 } else { 3173 serviceAccountImpersonationAnalysisBuilder_.addMessage(builderForValue.build()); 3174 } 3175 return this; 3176 } 3177 /** 3178 * 3179 * 3180 * <pre> 3181 * The service account impersonation analysis if 3182 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 3183 * enabled. 3184 * </pre> 3185 * 3186 * <code> 3187 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 3188 * </code> 3189 */ addServiceAccountImpersonationAnalysis( int index, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue)3190 public Builder addServiceAccountImpersonationAnalysis( 3191 int index, 3192 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder 3193 builderForValue) { 3194 if (serviceAccountImpersonationAnalysisBuilder_ == null) { 3195 ensureServiceAccountImpersonationAnalysisIsMutable(); 3196 serviceAccountImpersonationAnalysis_.add(index, builderForValue.build()); 3197 onChanged(); 3198 } else { 3199 serviceAccountImpersonationAnalysisBuilder_.addMessage(index, builderForValue.build()); 3200 } 3201 return this; 3202 } 3203 /** 3204 * 3205 * 3206 * <pre> 3207 * The service account impersonation analysis if 3208 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 3209 * enabled. 3210 * </pre> 3211 * 3212 * <code> 3213 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 3214 * </code> 3215 */ addAllServiceAccountImpersonationAnalysis( java.lang.Iterable< ? extends com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis> values)3216 public Builder addAllServiceAccountImpersonationAnalysis( 3217 java.lang.Iterable< 3218 ? extends com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis> 3219 values) { 3220 if (serviceAccountImpersonationAnalysisBuilder_ == null) { 3221 ensureServiceAccountImpersonationAnalysisIsMutable(); 3222 com.google.protobuf.AbstractMessageLite.Builder.addAll( 3223 values, serviceAccountImpersonationAnalysis_); 3224 onChanged(); 3225 } else { 3226 serviceAccountImpersonationAnalysisBuilder_.addAllMessages(values); 3227 } 3228 return this; 3229 } 3230 /** 3231 * 3232 * 3233 * <pre> 3234 * The service account impersonation analysis if 3235 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 3236 * enabled. 3237 * </pre> 3238 * 3239 * <code> 3240 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 3241 * </code> 3242 */ clearServiceAccountImpersonationAnalysis()3243 public Builder clearServiceAccountImpersonationAnalysis() { 3244 if (serviceAccountImpersonationAnalysisBuilder_ == null) { 3245 serviceAccountImpersonationAnalysis_ = java.util.Collections.emptyList(); 3246 bitField0_ = (bitField0_ & ~0x00000002); 3247 onChanged(); 3248 } else { 3249 serviceAccountImpersonationAnalysisBuilder_.clear(); 3250 } 3251 return this; 3252 } 3253 /** 3254 * 3255 * 3256 * <pre> 3257 * The service account impersonation analysis if 3258 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 3259 * enabled. 3260 * </pre> 3261 * 3262 * <code> 3263 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 3264 * </code> 3265 */ removeServiceAccountImpersonationAnalysis(int index)3266 public Builder removeServiceAccountImpersonationAnalysis(int index) { 3267 if (serviceAccountImpersonationAnalysisBuilder_ == null) { 3268 ensureServiceAccountImpersonationAnalysisIsMutable(); 3269 serviceAccountImpersonationAnalysis_.remove(index); 3270 onChanged(); 3271 } else { 3272 serviceAccountImpersonationAnalysisBuilder_.remove(index); 3273 } 3274 return this; 3275 } 3276 /** 3277 * 3278 * 3279 * <pre> 3280 * The service account impersonation analysis if 3281 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 3282 * enabled. 3283 * </pre> 3284 * 3285 * <code> 3286 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 3287 * </code> 3288 */ 3289 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder getServiceAccountImpersonationAnalysisBuilder(int index)3290 getServiceAccountImpersonationAnalysisBuilder(int index) { 3291 return getServiceAccountImpersonationAnalysisFieldBuilder().getBuilder(index); 3292 } 3293 /** 3294 * 3295 * 3296 * <pre> 3297 * The service account impersonation analysis if 3298 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 3299 * enabled. 3300 * </pre> 3301 * 3302 * <code> 3303 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 3304 * </code> 3305 */ 3306 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder getServiceAccountImpersonationAnalysisOrBuilder(int index)3307 getServiceAccountImpersonationAnalysisOrBuilder(int index) { 3308 if (serviceAccountImpersonationAnalysisBuilder_ == null) { 3309 return serviceAccountImpersonationAnalysis_.get(index); 3310 } else { 3311 return serviceAccountImpersonationAnalysisBuilder_.getMessageOrBuilder(index); 3312 } 3313 } 3314 /** 3315 * 3316 * 3317 * <pre> 3318 * The service account impersonation analysis if 3319 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 3320 * enabled. 3321 * </pre> 3322 * 3323 * <code> 3324 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 3325 * </code> 3326 */ 3327 public java.util.List< 3328 ? extends com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> getServiceAccountImpersonationAnalysisOrBuilderList()3329 getServiceAccountImpersonationAnalysisOrBuilderList() { 3330 if (serviceAccountImpersonationAnalysisBuilder_ != null) { 3331 return serviceAccountImpersonationAnalysisBuilder_.getMessageOrBuilderList(); 3332 } else { 3333 return java.util.Collections.unmodifiableList(serviceAccountImpersonationAnalysis_); 3334 } 3335 } 3336 /** 3337 * 3338 * 3339 * <pre> 3340 * The service account impersonation analysis if 3341 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 3342 * enabled. 3343 * </pre> 3344 * 3345 * <code> 3346 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 3347 * </code> 3348 */ 3349 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder addServiceAccountImpersonationAnalysisBuilder()3350 addServiceAccountImpersonationAnalysisBuilder() { 3351 return getServiceAccountImpersonationAnalysisFieldBuilder() 3352 .addBuilder( 3353 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis 3354 .getDefaultInstance()); 3355 } 3356 /** 3357 * 3358 * 3359 * <pre> 3360 * The service account impersonation analysis if 3361 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 3362 * enabled. 3363 * </pre> 3364 * 3365 * <code> 3366 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 3367 * </code> 3368 */ 3369 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder addServiceAccountImpersonationAnalysisBuilder(int index)3370 addServiceAccountImpersonationAnalysisBuilder(int index) { 3371 return getServiceAccountImpersonationAnalysisFieldBuilder() 3372 .addBuilder( 3373 index, 3374 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis 3375 .getDefaultInstance()); 3376 } 3377 /** 3378 * 3379 * 3380 * <pre> 3381 * The service account impersonation analysis if 3382 * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is 3383 * enabled. 3384 * </pre> 3385 * 3386 * <code> 3387 * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; 3388 * </code> 3389 */ 3390 public java.util.List< 3391 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder> getServiceAccountImpersonationAnalysisBuilderList()3392 getServiceAccountImpersonationAnalysisBuilderList() { 3393 return getServiceAccountImpersonationAnalysisFieldBuilder().getBuilderList(); 3394 } 3395 3396 private com.google.protobuf.RepeatedFieldBuilderV3< 3397 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, 3398 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, 3399 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> getServiceAccountImpersonationAnalysisFieldBuilder()3400 getServiceAccountImpersonationAnalysisFieldBuilder() { 3401 if (serviceAccountImpersonationAnalysisBuilder_ == null) { 3402 serviceAccountImpersonationAnalysisBuilder_ = 3403 new com.google.protobuf.RepeatedFieldBuilderV3< 3404 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, 3405 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, 3406 com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder>( 3407 serviceAccountImpersonationAnalysis_, 3408 ((bitField0_ & 0x00000002) != 0), 3409 getParentForChildren(), 3410 isClean()); 3411 serviceAccountImpersonationAnalysis_ = null; 3412 } 3413 return serviceAccountImpersonationAnalysisBuilder_; 3414 } 3415 3416 private boolean fullyExplored_; 3417 /** 3418 * 3419 * 3420 * <pre> 3421 * Represents whether all entries in the 3422 * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] 3423 * and 3424 * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] 3425 * have been fully explored to answer the query in the request. 3426 * </pre> 3427 * 3428 * <code>bool fully_explored = 3;</code> 3429 * 3430 * @return The fullyExplored. 3431 */ 3432 @java.lang.Override getFullyExplored()3433 public boolean getFullyExplored() { 3434 return fullyExplored_; 3435 } 3436 /** 3437 * 3438 * 3439 * <pre> 3440 * Represents whether all entries in the 3441 * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] 3442 * and 3443 * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] 3444 * have been fully explored to answer the query in the request. 3445 * </pre> 3446 * 3447 * <code>bool fully_explored = 3;</code> 3448 * 3449 * @param value The fullyExplored to set. 3450 * @return This builder for chaining. 3451 */ setFullyExplored(boolean value)3452 public Builder setFullyExplored(boolean value) { 3453 3454 fullyExplored_ = value; 3455 bitField0_ |= 0x00000004; 3456 onChanged(); 3457 return this; 3458 } 3459 /** 3460 * 3461 * 3462 * <pre> 3463 * Represents whether all entries in the 3464 * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] 3465 * and 3466 * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] 3467 * have been fully explored to answer the query in the request. 3468 * </pre> 3469 * 3470 * <code>bool fully_explored = 3;</code> 3471 * 3472 * @return This builder for chaining. 3473 */ clearFullyExplored()3474 public Builder clearFullyExplored() { 3475 bitField0_ = (bitField0_ & ~0x00000004); 3476 fullyExplored_ = false; 3477 onChanged(); 3478 return this; 3479 } 3480 3481 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3482 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 3483 return super.setUnknownFields(unknownFields); 3484 } 3485 3486 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3487 public final Builder mergeUnknownFields( 3488 final com.google.protobuf.UnknownFieldSet unknownFields) { 3489 return super.mergeUnknownFields(unknownFields); 3490 } 3491 3492 // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeIamPolicyResponse) 3493 } 3494 3495 // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeIamPolicyResponse) 3496 private static final com.google.cloud.asset.v1.AnalyzeIamPolicyResponse DEFAULT_INSTANCE; 3497 3498 static { 3499 DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse(); 3500 } 3501 getDefaultInstance()3502 public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse getDefaultInstance() { 3503 return DEFAULT_INSTANCE; 3504 } 3505 3506 private static final com.google.protobuf.Parser<AnalyzeIamPolicyResponse> PARSER = 3507 new com.google.protobuf.AbstractParser<AnalyzeIamPolicyResponse>() { 3508 @java.lang.Override 3509 public AnalyzeIamPolicyResponse parsePartialFrom( 3510 com.google.protobuf.CodedInputStream input, 3511 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3512 throws com.google.protobuf.InvalidProtocolBufferException { 3513 Builder builder = newBuilder(); 3514 try { 3515 builder.mergeFrom(input, extensionRegistry); 3516 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3517 throw e.setUnfinishedMessage(builder.buildPartial()); 3518 } catch (com.google.protobuf.UninitializedMessageException e) { 3519 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 3520 } catch (java.io.IOException e) { 3521 throw new com.google.protobuf.InvalidProtocolBufferException(e) 3522 .setUnfinishedMessage(builder.buildPartial()); 3523 } 3524 return builder.buildPartial(); 3525 } 3526 }; 3527 parser()3528 public static com.google.protobuf.Parser<AnalyzeIamPolicyResponse> parser() { 3529 return PARSER; 3530 } 3531 3532 @java.lang.Override getParserForType()3533 public com.google.protobuf.Parser<AnalyzeIamPolicyResponse> getParserForType() { 3534 return PARSER; 3535 } 3536 3537 @java.lang.Override getDefaultInstanceForType()3538 public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse getDefaultInstanceForType() { 3539 return DEFAULT_INSTANCE; 3540 } 3541 } 3542