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