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