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