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