All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.grpc.alts.internal.StartClientHandshakeReq Maven / Gradle / Ivy

There is a newer version: 1.68.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: grpc/gcp/handshaker.proto

// Protobuf Java Version: 3.25.1
package io.grpc.alts.internal;

/**
 * Protobuf type {@code grpc.gcp.StartClientHandshakeReq}
 */
public final class StartClientHandshakeReq extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:grpc.gcp.StartClientHandshakeReq)
    StartClientHandshakeReqOrBuilder {
private static final long serialVersionUID = 0L;
  // Use StartClientHandshakeReq.newBuilder() to construct.
  private StartClientHandshakeReq(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private StartClientHandshakeReq() {
    handshakeSecurityProtocol_ = 0;
    applicationProtocols_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    recordProtocols_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    targetIdentities_ = java.util.Collections.emptyList();
    targetName_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new StartClientHandshakeReq();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_StartClientHandshakeReq_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_StartClientHandshakeReq_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grpc.alts.internal.StartClientHandshakeReq.class, io.grpc.alts.internal.StartClientHandshakeReq.Builder.class);
  }

  private int bitField0_;
  public static final int HANDSHAKE_SECURITY_PROTOCOL_FIELD_NUMBER = 1;
  private int handshakeSecurityProtocol_ = 0;
  /**
   * 
   * Handshake security protocol requested by the client.
   * 
* * .grpc.gcp.HandshakeProtocol handshake_security_protocol = 1; * @return The enum numeric value on the wire for handshakeSecurityProtocol. */ @java.lang.Override public int getHandshakeSecurityProtocolValue() { return handshakeSecurityProtocol_; } /** *
   * Handshake security protocol requested by the client.
   * 
* * .grpc.gcp.HandshakeProtocol handshake_security_protocol = 1; * @return The handshakeSecurityProtocol. */ @java.lang.Override public io.grpc.alts.internal.HandshakeProtocol getHandshakeSecurityProtocol() { io.grpc.alts.internal.HandshakeProtocol result = io.grpc.alts.internal.HandshakeProtocol.forNumber(handshakeSecurityProtocol_); return result == null ? io.grpc.alts.internal.HandshakeProtocol.UNRECOGNIZED : result; } public static final int APPLICATION_PROTOCOLS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList applicationProtocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * The application protocols supported by the client, e.g., "h2" (for http2),
   * "grpc".
   * 
* * repeated string application_protocols = 2; * @return A list containing the applicationProtocols. */ public com.google.protobuf.ProtocolStringList getApplicationProtocolsList() { return applicationProtocols_; } /** *
   * The application protocols supported by the client, e.g., "h2" (for http2),
   * "grpc".
   * 
* * repeated string application_protocols = 2; * @return The count of applicationProtocols. */ public int getApplicationProtocolsCount() { return applicationProtocols_.size(); } /** *
   * The application protocols supported by the client, e.g., "h2" (for http2),
   * "grpc".
   * 
* * repeated string application_protocols = 2; * @param index The index of the element to return. * @return The applicationProtocols at the given index. */ public java.lang.String getApplicationProtocols(int index) { return applicationProtocols_.get(index); } /** *
   * The application protocols supported by the client, e.g., "h2" (for http2),
   * "grpc".
   * 
* * repeated string application_protocols = 2; * @param index The index of the value to return. * @return The bytes of the applicationProtocols at the given index. */ public com.google.protobuf.ByteString getApplicationProtocolsBytes(int index) { return applicationProtocols_.getByteString(index); } public static final int RECORD_PROTOCOLS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList recordProtocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * The record protocols supported by the client, e.g.,
   * "ALTSRP_GCM_AES128".
   * 
* * repeated string record_protocols = 3; * @return A list containing the recordProtocols. */ public com.google.protobuf.ProtocolStringList getRecordProtocolsList() { return recordProtocols_; } /** *
   * The record protocols supported by the client, e.g.,
   * "ALTSRP_GCM_AES128".
   * 
* * repeated string record_protocols = 3; * @return The count of recordProtocols. */ public int getRecordProtocolsCount() { return recordProtocols_.size(); } /** *
   * The record protocols supported by the client, e.g.,
   * "ALTSRP_GCM_AES128".
   * 
* * repeated string record_protocols = 3; * @param index The index of the element to return. * @return The recordProtocols at the given index. */ public java.lang.String getRecordProtocols(int index) { return recordProtocols_.get(index); } /** *
   * The record protocols supported by the client, e.g.,
   * "ALTSRP_GCM_AES128".
   * 
* * repeated string record_protocols = 3; * @param index The index of the value to return. * @return The bytes of the recordProtocols at the given index. */ public com.google.protobuf.ByteString getRecordProtocolsBytes(int index) { return recordProtocols_.getByteString(index); } public static final int TARGET_IDENTITIES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List targetIdentities_; /** *
   * (Optional) Describes which server identities are acceptable by the client.
   * If target identities are provided and none of them matches the peer
   * identity of the server, handshake will fail.
   * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ @java.lang.Override public java.util.List getTargetIdentitiesList() { return targetIdentities_; } /** *
   * (Optional) Describes which server identities are acceptable by the client.
   * If target identities are provided and none of them matches the peer
   * identity of the server, handshake will fail.
   * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ @java.lang.Override public java.util.List getTargetIdentitiesOrBuilderList() { return targetIdentities_; } /** *
   * (Optional) Describes which server identities are acceptable by the client.
   * If target identities are provided and none of them matches the peer
   * identity of the server, handshake will fail.
   * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ @java.lang.Override public int getTargetIdentitiesCount() { return targetIdentities_.size(); } /** *
   * (Optional) Describes which server identities are acceptable by the client.
   * If target identities are provided and none of them matches the peer
   * identity of the server, handshake will fail.
   * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ @java.lang.Override public io.grpc.alts.internal.Identity getTargetIdentities(int index) { return targetIdentities_.get(index); } /** *
   * (Optional) Describes which server identities are acceptable by the client.
   * If target identities are provided and none of them matches the peer
   * identity of the server, handshake will fail.
   * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ @java.lang.Override public io.grpc.alts.internal.IdentityOrBuilder getTargetIdentitiesOrBuilder( int index) { return targetIdentities_.get(index); } public static final int LOCAL_IDENTITY_FIELD_NUMBER = 5; private io.grpc.alts.internal.Identity localIdentity_; /** *
   * (Optional) Application may specify a local identity. Otherwise, the
   * handshaker chooses a default local identity.
   * 
* * .grpc.gcp.Identity local_identity = 5; * @return Whether the localIdentity field is set. */ @java.lang.Override public boolean hasLocalIdentity() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * (Optional) Application may specify a local identity. Otherwise, the
   * handshaker chooses a default local identity.
   * 
* * .grpc.gcp.Identity local_identity = 5; * @return The localIdentity. */ @java.lang.Override public io.grpc.alts.internal.Identity getLocalIdentity() { return localIdentity_ == null ? io.grpc.alts.internal.Identity.getDefaultInstance() : localIdentity_; } /** *
   * (Optional) Application may specify a local identity. Otherwise, the
   * handshaker chooses a default local identity.
   * 
* * .grpc.gcp.Identity local_identity = 5; */ @java.lang.Override public io.grpc.alts.internal.IdentityOrBuilder getLocalIdentityOrBuilder() { return localIdentity_ == null ? io.grpc.alts.internal.Identity.getDefaultInstance() : localIdentity_; } public static final int LOCAL_ENDPOINT_FIELD_NUMBER = 6; private io.grpc.alts.internal.Endpoint localEndpoint_; /** *
   * (Optional) Local endpoint information of the connection to the server,
   * such as local IP address, port number, and network protocol.
   * 
* * .grpc.gcp.Endpoint local_endpoint = 6; * @return Whether the localEndpoint field is set. */ @java.lang.Override public boolean hasLocalEndpoint() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * (Optional) Local endpoint information of the connection to the server,
   * such as local IP address, port number, and network protocol.
   * 
* * .grpc.gcp.Endpoint local_endpoint = 6; * @return The localEndpoint. */ @java.lang.Override public io.grpc.alts.internal.Endpoint getLocalEndpoint() { return localEndpoint_ == null ? io.grpc.alts.internal.Endpoint.getDefaultInstance() : localEndpoint_; } /** *
   * (Optional) Local endpoint information of the connection to the server,
   * such as local IP address, port number, and network protocol.
   * 
* * .grpc.gcp.Endpoint local_endpoint = 6; */ @java.lang.Override public io.grpc.alts.internal.EndpointOrBuilder getLocalEndpointOrBuilder() { return localEndpoint_ == null ? io.grpc.alts.internal.Endpoint.getDefaultInstance() : localEndpoint_; } public static final int REMOTE_ENDPOINT_FIELD_NUMBER = 7; private io.grpc.alts.internal.Endpoint remoteEndpoint_; /** *
   * (Optional) Endpoint information of the remote server, such as IP address,
   * port number, and network protocol.
   * 
* * .grpc.gcp.Endpoint remote_endpoint = 7; * @return Whether the remoteEndpoint field is set. */ @java.lang.Override public boolean hasRemoteEndpoint() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * (Optional) Endpoint information of the remote server, such as IP address,
   * port number, and network protocol.
   * 
* * .grpc.gcp.Endpoint remote_endpoint = 7; * @return The remoteEndpoint. */ @java.lang.Override public io.grpc.alts.internal.Endpoint getRemoteEndpoint() { return remoteEndpoint_ == null ? io.grpc.alts.internal.Endpoint.getDefaultInstance() : remoteEndpoint_; } /** *
   * (Optional) Endpoint information of the remote server, such as IP address,
   * port number, and network protocol.
   * 
* * .grpc.gcp.Endpoint remote_endpoint = 7; */ @java.lang.Override public io.grpc.alts.internal.EndpointOrBuilder getRemoteEndpointOrBuilder() { return remoteEndpoint_ == null ? io.grpc.alts.internal.Endpoint.getDefaultInstance() : remoteEndpoint_; } public static final int TARGET_NAME_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object targetName_ = ""; /** *
   * (Optional) If target name is provided, a secure naming check is performed
   * to verify that the peer authenticated identity is indeed authorized to run
   * the target name.
   * 
* * string target_name = 8; * @return The targetName. */ @java.lang.Override public java.lang.String getTargetName() { java.lang.Object ref = targetName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetName_ = s; return s; } } /** *
   * (Optional) If target name is provided, a secure naming check is performed
   * to verify that the peer authenticated identity is indeed authorized to run
   * the target name.
   * 
* * string target_name = 8; * @return The bytes for targetName. */ @java.lang.Override public com.google.protobuf.ByteString getTargetNameBytes() { java.lang.Object ref = targetName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RPC_VERSIONS_FIELD_NUMBER = 9; private io.grpc.alts.internal.RpcProtocolVersions rpcVersions_; /** *
   * (Optional) RPC protocol versions supported by the client.
   * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 9; * @return Whether the rpcVersions field is set. */ @java.lang.Override public boolean hasRpcVersions() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * (Optional) RPC protocol versions supported by the client.
   * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 9; * @return The rpcVersions. */ @java.lang.Override public io.grpc.alts.internal.RpcProtocolVersions getRpcVersions() { return rpcVersions_ == null ? io.grpc.alts.internal.RpcProtocolVersions.getDefaultInstance() : rpcVersions_; } /** *
   * (Optional) RPC protocol versions supported by the client.
   * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 9; */ @java.lang.Override public io.grpc.alts.internal.RpcProtocolVersionsOrBuilder getRpcVersionsOrBuilder() { return rpcVersions_ == null ? io.grpc.alts.internal.RpcProtocolVersions.getDefaultInstance() : rpcVersions_; } public static final int MAX_FRAME_SIZE_FIELD_NUMBER = 10; private int maxFrameSize_ = 0; /** *
   * (Optional) Maximum frame size supported by the client.
   * 
* * uint32 max_frame_size = 10; * @return The maxFrameSize. */ @java.lang.Override public int getMaxFrameSize() { return maxFrameSize_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (handshakeSecurityProtocol_ != io.grpc.alts.internal.HandshakeProtocol.HANDSHAKE_PROTOCOL_UNSPECIFIED.getNumber()) { output.writeEnum(1, handshakeSecurityProtocol_); } for (int i = 0; i < applicationProtocols_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, applicationProtocols_.getRaw(i)); } for (int i = 0; i < recordProtocols_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, recordProtocols_.getRaw(i)); } for (int i = 0; i < targetIdentities_.size(); i++) { output.writeMessage(4, targetIdentities_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getLocalIdentity()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getLocalEndpoint()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getRemoteEndpoint()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, targetName_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(9, getRpcVersions()); } if (maxFrameSize_ != 0) { output.writeUInt32(10, maxFrameSize_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (handshakeSecurityProtocol_ != io.grpc.alts.internal.HandshakeProtocol.HANDSHAKE_PROTOCOL_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, handshakeSecurityProtocol_); } { int dataSize = 0; for (int i = 0; i < applicationProtocols_.size(); i++) { dataSize += computeStringSizeNoTag(applicationProtocols_.getRaw(i)); } size += dataSize; size += 1 * getApplicationProtocolsList().size(); } { int dataSize = 0; for (int i = 0; i < recordProtocols_.size(); i++) { dataSize += computeStringSizeNoTag(recordProtocols_.getRaw(i)); } size += dataSize; size += 1 * getRecordProtocolsList().size(); } for (int i = 0; i < targetIdentities_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, targetIdentities_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getLocalIdentity()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getLocalEndpoint()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getRemoteEndpoint()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, targetName_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getRpcVersions()); } if (maxFrameSize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(10, maxFrameSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.grpc.alts.internal.StartClientHandshakeReq)) { return super.equals(obj); } io.grpc.alts.internal.StartClientHandshakeReq other = (io.grpc.alts.internal.StartClientHandshakeReq) obj; if (handshakeSecurityProtocol_ != other.handshakeSecurityProtocol_) return false; if (!getApplicationProtocolsList() .equals(other.getApplicationProtocolsList())) return false; if (!getRecordProtocolsList() .equals(other.getRecordProtocolsList())) return false; if (!getTargetIdentitiesList() .equals(other.getTargetIdentitiesList())) return false; if (hasLocalIdentity() != other.hasLocalIdentity()) return false; if (hasLocalIdentity()) { if (!getLocalIdentity() .equals(other.getLocalIdentity())) return false; } if (hasLocalEndpoint() != other.hasLocalEndpoint()) return false; if (hasLocalEndpoint()) { if (!getLocalEndpoint() .equals(other.getLocalEndpoint())) return false; } if (hasRemoteEndpoint() != other.hasRemoteEndpoint()) return false; if (hasRemoteEndpoint()) { if (!getRemoteEndpoint() .equals(other.getRemoteEndpoint())) return false; } if (!getTargetName() .equals(other.getTargetName())) return false; if (hasRpcVersions() != other.hasRpcVersions()) return false; if (hasRpcVersions()) { if (!getRpcVersions() .equals(other.getRpcVersions())) return false; } if (getMaxFrameSize() != other.getMaxFrameSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + HANDSHAKE_SECURITY_PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + handshakeSecurityProtocol_; if (getApplicationProtocolsCount() > 0) { hash = (37 * hash) + APPLICATION_PROTOCOLS_FIELD_NUMBER; hash = (53 * hash) + getApplicationProtocolsList().hashCode(); } if (getRecordProtocolsCount() > 0) { hash = (37 * hash) + RECORD_PROTOCOLS_FIELD_NUMBER; hash = (53 * hash) + getRecordProtocolsList().hashCode(); } if (getTargetIdentitiesCount() > 0) { hash = (37 * hash) + TARGET_IDENTITIES_FIELD_NUMBER; hash = (53 * hash) + getTargetIdentitiesList().hashCode(); } if (hasLocalIdentity()) { hash = (37 * hash) + LOCAL_IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getLocalIdentity().hashCode(); } if (hasLocalEndpoint()) { hash = (37 * hash) + LOCAL_ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getLocalEndpoint().hashCode(); } if (hasRemoteEndpoint()) { hash = (37 * hash) + REMOTE_ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getRemoteEndpoint().hashCode(); } hash = (37 * hash) + TARGET_NAME_FIELD_NUMBER; hash = (53 * hash) + getTargetName().hashCode(); if (hasRpcVersions()) { hash = (37 * hash) + RPC_VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getRpcVersions().hashCode(); } hash = (37 * hash) + MAX_FRAME_SIZE_FIELD_NUMBER; hash = (53 * hash) + getMaxFrameSize(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.alts.internal.StartClientHandshakeReq parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.alts.internal.StartClientHandshakeReq parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.alts.internal.StartClientHandshakeReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.alts.internal.StartClientHandshakeReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.alts.internal.StartClientHandshakeReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.alts.internal.StartClientHandshakeReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.alts.internal.StartClientHandshakeReq parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.alts.internal.StartClientHandshakeReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.alts.internal.StartClientHandshakeReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.alts.internal.StartClientHandshakeReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.alts.internal.StartClientHandshakeReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.alts.internal.StartClientHandshakeReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.grpc.alts.internal.StartClientHandshakeReq prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code grpc.gcp.StartClientHandshakeReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gcp.StartClientHandshakeReq) io.grpc.alts.internal.StartClientHandshakeReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_StartClientHandshakeReq_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_StartClientHandshakeReq_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.alts.internal.StartClientHandshakeReq.class, io.grpc.alts.internal.StartClientHandshakeReq.Builder.class); } // Construct using io.grpc.alts.internal.StartClientHandshakeReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTargetIdentitiesFieldBuilder(); getLocalIdentityFieldBuilder(); getLocalEndpointFieldBuilder(); getRemoteEndpointFieldBuilder(); getRpcVersionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; handshakeSecurityProtocol_ = 0; applicationProtocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); recordProtocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (targetIdentitiesBuilder_ == null) { targetIdentities_ = java.util.Collections.emptyList(); } else { targetIdentities_ = null; targetIdentitiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); localIdentity_ = null; if (localIdentityBuilder_ != null) { localIdentityBuilder_.dispose(); localIdentityBuilder_ = null; } localEndpoint_ = null; if (localEndpointBuilder_ != null) { localEndpointBuilder_.dispose(); localEndpointBuilder_ = null; } remoteEndpoint_ = null; if (remoteEndpointBuilder_ != null) { remoteEndpointBuilder_.dispose(); remoteEndpointBuilder_ = null; } targetName_ = ""; rpcVersions_ = null; if (rpcVersionsBuilder_ != null) { rpcVersionsBuilder_.dispose(); rpcVersionsBuilder_ = null; } maxFrameSize_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_StartClientHandshakeReq_descriptor; } @java.lang.Override public io.grpc.alts.internal.StartClientHandshakeReq getDefaultInstanceForType() { return io.grpc.alts.internal.StartClientHandshakeReq.getDefaultInstance(); } @java.lang.Override public io.grpc.alts.internal.StartClientHandshakeReq build() { io.grpc.alts.internal.StartClientHandshakeReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.alts.internal.StartClientHandshakeReq buildPartial() { io.grpc.alts.internal.StartClientHandshakeReq result = new io.grpc.alts.internal.StartClientHandshakeReq(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.grpc.alts.internal.StartClientHandshakeReq result) { if (targetIdentitiesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { targetIdentities_ = java.util.Collections.unmodifiableList(targetIdentities_); bitField0_ = (bitField0_ & ~0x00000008); } result.targetIdentities_ = targetIdentities_; } else { result.targetIdentities_ = targetIdentitiesBuilder_.build(); } } private void buildPartial0(io.grpc.alts.internal.StartClientHandshakeReq result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.handshakeSecurityProtocol_ = handshakeSecurityProtocol_; } if (((from_bitField0_ & 0x00000002) != 0)) { applicationProtocols_.makeImmutable(); result.applicationProtocols_ = applicationProtocols_; } if (((from_bitField0_ & 0x00000004) != 0)) { recordProtocols_.makeImmutable(); result.recordProtocols_ = recordProtocols_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.localIdentity_ = localIdentityBuilder_ == null ? localIdentity_ : localIdentityBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { result.localEndpoint_ = localEndpointBuilder_ == null ? localEndpoint_ : localEndpointBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000040) != 0)) { result.remoteEndpoint_ = remoteEndpointBuilder_ == null ? remoteEndpoint_ : remoteEndpointBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000080) != 0)) { result.targetName_ = targetName_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.rpcVersions_ = rpcVersionsBuilder_ == null ? rpcVersions_ : rpcVersionsBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000200) != 0)) { result.maxFrameSize_ = maxFrameSize_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.grpc.alts.internal.StartClientHandshakeReq) { return mergeFrom((io.grpc.alts.internal.StartClientHandshakeReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.alts.internal.StartClientHandshakeReq other) { if (other == io.grpc.alts.internal.StartClientHandshakeReq.getDefaultInstance()) return this; if (other.handshakeSecurityProtocol_ != 0) { setHandshakeSecurityProtocolValue(other.getHandshakeSecurityProtocolValue()); } if (!other.applicationProtocols_.isEmpty()) { if (applicationProtocols_.isEmpty()) { applicationProtocols_ = other.applicationProtocols_; bitField0_ |= 0x00000002; } else { ensureApplicationProtocolsIsMutable(); applicationProtocols_.addAll(other.applicationProtocols_); } onChanged(); } if (!other.recordProtocols_.isEmpty()) { if (recordProtocols_.isEmpty()) { recordProtocols_ = other.recordProtocols_; bitField0_ |= 0x00000004; } else { ensureRecordProtocolsIsMutable(); recordProtocols_.addAll(other.recordProtocols_); } onChanged(); } if (targetIdentitiesBuilder_ == null) { if (!other.targetIdentities_.isEmpty()) { if (targetIdentities_.isEmpty()) { targetIdentities_ = other.targetIdentities_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureTargetIdentitiesIsMutable(); targetIdentities_.addAll(other.targetIdentities_); } onChanged(); } } else { if (!other.targetIdentities_.isEmpty()) { if (targetIdentitiesBuilder_.isEmpty()) { targetIdentitiesBuilder_.dispose(); targetIdentitiesBuilder_ = null; targetIdentities_ = other.targetIdentities_; bitField0_ = (bitField0_ & ~0x00000008); targetIdentitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTargetIdentitiesFieldBuilder() : null; } else { targetIdentitiesBuilder_.addAllMessages(other.targetIdentities_); } } } if (other.hasLocalIdentity()) { mergeLocalIdentity(other.getLocalIdentity()); } if (other.hasLocalEndpoint()) { mergeLocalEndpoint(other.getLocalEndpoint()); } if (other.hasRemoteEndpoint()) { mergeRemoteEndpoint(other.getRemoteEndpoint()); } if (!other.getTargetName().isEmpty()) { targetName_ = other.targetName_; bitField0_ |= 0x00000080; onChanged(); } if (other.hasRpcVersions()) { mergeRpcVersions(other.getRpcVersions()); } if (other.getMaxFrameSize() != 0) { setMaxFrameSize(other.getMaxFrameSize()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { handshakeSecurityProtocol_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureApplicationProtocolsIsMutable(); applicationProtocols_.add(s); break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureRecordProtocolsIsMutable(); recordProtocols_.add(s); break; } // case 26 case 34: { io.grpc.alts.internal.Identity m = input.readMessage( io.grpc.alts.internal.Identity.parser(), extensionRegistry); if (targetIdentitiesBuilder_ == null) { ensureTargetIdentitiesIsMutable(); targetIdentities_.add(m); } else { targetIdentitiesBuilder_.addMessage(m); } break; } // case 34 case 42: { input.readMessage( getLocalIdentityFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getLocalEndpointFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getRemoteEndpointFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 66: { targetName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 74: { input.readMessage( getRpcVersionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 80: { maxFrameSize_ = input.readUInt32(); bitField0_ |= 0x00000200; break; } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int handshakeSecurityProtocol_ = 0; /** *
     * Handshake security protocol requested by the client.
     * 
* * .grpc.gcp.HandshakeProtocol handshake_security_protocol = 1; * @return The enum numeric value on the wire for handshakeSecurityProtocol. */ @java.lang.Override public int getHandshakeSecurityProtocolValue() { return handshakeSecurityProtocol_; } /** *
     * Handshake security protocol requested by the client.
     * 
* * .grpc.gcp.HandshakeProtocol handshake_security_protocol = 1; * @param value The enum numeric value on the wire for handshakeSecurityProtocol to set. * @return This builder for chaining. */ public Builder setHandshakeSecurityProtocolValue(int value) { handshakeSecurityProtocol_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Handshake security protocol requested by the client.
     * 
* * .grpc.gcp.HandshakeProtocol handshake_security_protocol = 1; * @return The handshakeSecurityProtocol. */ @java.lang.Override public io.grpc.alts.internal.HandshakeProtocol getHandshakeSecurityProtocol() { io.grpc.alts.internal.HandshakeProtocol result = io.grpc.alts.internal.HandshakeProtocol.forNumber(handshakeSecurityProtocol_); return result == null ? io.grpc.alts.internal.HandshakeProtocol.UNRECOGNIZED : result; } /** *
     * Handshake security protocol requested by the client.
     * 
* * .grpc.gcp.HandshakeProtocol handshake_security_protocol = 1; * @param value The handshakeSecurityProtocol to set. * @return This builder for chaining. */ public Builder setHandshakeSecurityProtocol(io.grpc.alts.internal.HandshakeProtocol value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; handshakeSecurityProtocol_ = value.getNumber(); onChanged(); return this; } /** *
     * Handshake security protocol requested by the client.
     * 
* * .grpc.gcp.HandshakeProtocol handshake_security_protocol = 1; * @return This builder for chaining. */ public Builder clearHandshakeSecurityProtocol() { bitField0_ = (bitField0_ & ~0x00000001); handshakeSecurityProtocol_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList applicationProtocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureApplicationProtocolsIsMutable() { if (!applicationProtocols_.isModifiable()) { applicationProtocols_ = new com.google.protobuf.LazyStringArrayList(applicationProtocols_); } bitField0_ |= 0x00000002; } /** *
     * The application protocols supported by the client, e.g., "h2" (for http2),
     * "grpc".
     * 
* * repeated string application_protocols = 2; * @return A list containing the applicationProtocols. */ public com.google.protobuf.ProtocolStringList getApplicationProtocolsList() { applicationProtocols_.makeImmutable(); return applicationProtocols_; } /** *
     * The application protocols supported by the client, e.g., "h2" (for http2),
     * "grpc".
     * 
* * repeated string application_protocols = 2; * @return The count of applicationProtocols. */ public int getApplicationProtocolsCount() { return applicationProtocols_.size(); } /** *
     * The application protocols supported by the client, e.g., "h2" (for http2),
     * "grpc".
     * 
* * repeated string application_protocols = 2; * @param index The index of the element to return. * @return The applicationProtocols at the given index. */ public java.lang.String getApplicationProtocols(int index) { return applicationProtocols_.get(index); } /** *
     * The application protocols supported by the client, e.g., "h2" (for http2),
     * "grpc".
     * 
* * repeated string application_protocols = 2; * @param index The index of the value to return. * @return The bytes of the applicationProtocols at the given index. */ public com.google.protobuf.ByteString getApplicationProtocolsBytes(int index) { return applicationProtocols_.getByteString(index); } /** *
     * The application protocols supported by the client, e.g., "h2" (for http2),
     * "grpc".
     * 
* * repeated string application_protocols = 2; * @param index The index to set the value at. * @param value The applicationProtocols to set. * @return This builder for chaining. */ public Builder setApplicationProtocols( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureApplicationProtocolsIsMutable(); applicationProtocols_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The application protocols supported by the client, e.g., "h2" (for http2),
     * "grpc".
     * 
* * repeated string application_protocols = 2; * @param value The applicationProtocols to add. * @return This builder for chaining. */ public Builder addApplicationProtocols( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureApplicationProtocolsIsMutable(); applicationProtocols_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The application protocols supported by the client, e.g., "h2" (for http2),
     * "grpc".
     * 
* * repeated string application_protocols = 2; * @param values The applicationProtocols to add. * @return This builder for chaining. */ public Builder addAllApplicationProtocols( java.lang.Iterable values) { ensureApplicationProtocolsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, applicationProtocols_); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The application protocols supported by the client, e.g., "h2" (for http2),
     * "grpc".
     * 
* * repeated string application_protocols = 2; * @return This builder for chaining. */ public Builder clearApplicationProtocols() { applicationProtocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** *
     * The application protocols supported by the client, e.g., "h2" (for http2),
     * "grpc".
     * 
* * repeated string application_protocols = 2; * @param value The bytes of the applicationProtocols to add. * @return This builder for chaining. */ public Builder addApplicationProtocolsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureApplicationProtocolsIsMutable(); applicationProtocols_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList recordProtocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureRecordProtocolsIsMutable() { if (!recordProtocols_.isModifiable()) { recordProtocols_ = new com.google.protobuf.LazyStringArrayList(recordProtocols_); } bitField0_ |= 0x00000004; } /** *
     * The record protocols supported by the client, e.g.,
     * "ALTSRP_GCM_AES128".
     * 
* * repeated string record_protocols = 3; * @return A list containing the recordProtocols. */ public com.google.protobuf.ProtocolStringList getRecordProtocolsList() { recordProtocols_.makeImmutable(); return recordProtocols_; } /** *
     * The record protocols supported by the client, e.g.,
     * "ALTSRP_GCM_AES128".
     * 
* * repeated string record_protocols = 3; * @return The count of recordProtocols. */ public int getRecordProtocolsCount() { return recordProtocols_.size(); } /** *
     * The record protocols supported by the client, e.g.,
     * "ALTSRP_GCM_AES128".
     * 
* * repeated string record_protocols = 3; * @param index The index of the element to return. * @return The recordProtocols at the given index. */ public java.lang.String getRecordProtocols(int index) { return recordProtocols_.get(index); } /** *
     * The record protocols supported by the client, e.g.,
     * "ALTSRP_GCM_AES128".
     * 
* * repeated string record_protocols = 3; * @param index The index of the value to return. * @return The bytes of the recordProtocols at the given index. */ public com.google.protobuf.ByteString getRecordProtocolsBytes(int index) { return recordProtocols_.getByteString(index); } /** *
     * The record protocols supported by the client, e.g.,
     * "ALTSRP_GCM_AES128".
     * 
* * repeated string record_protocols = 3; * @param index The index to set the value at. * @param value The recordProtocols to set. * @return This builder for chaining. */ public Builder setRecordProtocols( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRecordProtocolsIsMutable(); recordProtocols_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The record protocols supported by the client, e.g.,
     * "ALTSRP_GCM_AES128".
     * 
* * repeated string record_protocols = 3; * @param value The recordProtocols to add. * @return This builder for chaining. */ public Builder addRecordProtocols( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRecordProtocolsIsMutable(); recordProtocols_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The record protocols supported by the client, e.g.,
     * "ALTSRP_GCM_AES128".
     * 
* * repeated string record_protocols = 3; * @param values The recordProtocols to add. * @return This builder for chaining. */ public Builder addAllRecordProtocols( java.lang.Iterable values) { ensureRecordProtocolsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, recordProtocols_); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The record protocols supported by the client, e.g.,
     * "ALTSRP_GCM_AES128".
     * 
* * repeated string record_protocols = 3; * @return This builder for chaining. */ public Builder clearRecordProtocols() { recordProtocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** *
     * The record protocols supported by the client, e.g.,
     * "ALTSRP_GCM_AES128".
     * 
* * repeated string record_protocols = 3; * @param value The bytes of the recordProtocols to add. * @return This builder for chaining. */ public Builder addRecordProtocolsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRecordProtocolsIsMutable(); recordProtocols_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } private java.util.List targetIdentities_ = java.util.Collections.emptyList(); private void ensureTargetIdentitiesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { targetIdentities_ = new java.util.ArrayList(targetIdentities_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.alts.internal.Identity, io.grpc.alts.internal.Identity.Builder, io.grpc.alts.internal.IdentityOrBuilder> targetIdentitiesBuilder_; /** *
     * (Optional) Describes which server identities are acceptable by the client.
     * If target identities are provided and none of them matches the peer
     * identity of the server, handshake will fail.
     * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ public java.util.List getTargetIdentitiesList() { if (targetIdentitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(targetIdentities_); } else { return targetIdentitiesBuilder_.getMessageList(); } } /** *
     * (Optional) Describes which server identities are acceptable by the client.
     * If target identities are provided and none of them matches the peer
     * identity of the server, handshake will fail.
     * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ public int getTargetIdentitiesCount() { if (targetIdentitiesBuilder_ == null) { return targetIdentities_.size(); } else { return targetIdentitiesBuilder_.getCount(); } } /** *
     * (Optional) Describes which server identities are acceptable by the client.
     * If target identities are provided and none of them matches the peer
     * identity of the server, handshake will fail.
     * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ public io.grpc.alts.internal.Identity getTargetIdentities(int index) { if (targetIdentitiesBuilder_ == null) { return targetIdentities_.get(index); } else { return targetIdentitiesBuilder_.getMessage(index); } } /** *
     * (Optional) Describes which server identities are acceptable by the client.
     * If target identities are provided and none of them matches the peer
     * identity of the server, handshake will fail.
     * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ public Builder setTargetIdentities( int index, io.grpc.alts.internal.Identity value) { if (targetIdentitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTargetIdentitiesIsMutable(); targetIdentities_.set(index, value); onChanged(); } else { targetIdentitiesBuilder_.setMessage(index, value); } return this; } /** *
     * (Optional) Describes which server identities are acceptable by the client.
     * If target identities are provided and none of them matches the peer
     * identity of the server, handshake will fail.
     * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ public Builder setTargetIdentities( int index, io.grpc.alts.internal.Identity.Builder builderForValue) { if (targetIdentitiesBuilder_ == null) { ensureTargetIdentitiesIsMutable(); targetIdentities_.set(index, builderForValue.build()); onChanged(); } else { targetIdentitiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * (Optional) Describes which server identities are acceptable by the client.
     * If target identities are provided and none of them matches the peer
     * identity of the server, handshake will fail.
     * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ public Builder addTargetIdentities(io.grpc.alts.internal.Identity value) { if (targetIdentitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTargetIdentitiesIsMutable(); targetIdentities_.add(value); onChanged(); } else { targetIdentitiesBuilder_.addMessage(value); } return this; } /** *
     * (Optional) Describes which server identities are acceptable by the client.
     * If target identities are provided and none of them matches the peer
     * identity of the server, handshake will fail.
     * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ public Builder addTargetIdentities( int index, io.grpc.alts.internal.Identity value) { if (targetIdentitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTargetIdentitiesIsMutable(); targetIdentities_.add(index, value); onChanged(); } else { targetIdentitiesBuilder_.addMessage(index, value); } return this; } /** *
     * (Optional) Describes which server identities are acceptable by the client.
     * If target identities are provided and none of them matches the peer
     * identity of the server, handshake will fail.
     * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ public Builder addTargetIdentities( io.grpc.alts.internal.Identity.Builder builderForValue) { if (targetIdentitiesBuilder_ == null) { ensureTargetIdentitiesIsMutable(); targetIdentities_.add(builderForValue.build()); onChanged(); } else { targetIdentitiesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * (Optional) Describes which server identities are acceptable by the client.
     * If target identities are provided and none of them matches the peer
     * identity of the server, handshake will fail.
     * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ public Builder addTargetIdentities( int index, io.grpc.alts.internal.Identity.Builder builderForValue) { if (targetIdentitiesBuilder_ == null) { ensureTargetIdentitiesIsMutable(); targetIdentities_.add(index, builderForValue.build()); onChanged(); } else { targetIdentitiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * (Optional) Describes which server identities are acceptable by the client.
     * If target identities are provided and none of them matches the peer
     * identity of the server, handshake will fail.
     * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ public Builder addAllTargetIdentities( java.lang.Iterable values) { if (targetIdentitiesBuilder_ == null) { ensureTargetIdentitiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, targetIdentities_); onChanged(); } else { targetIdentitiesBuilder_.addAllMessages(values); } return this; } /** *
     * (Optional) Describes which server identities are acceptable by the client.
     * If target identities are provided and none of them matches the peer
     * identity of the server, handshake will fail.
     * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ public Builder clearTargetIdentities() { if (targetIdentitiesBuilder_ == null) { targetIdentities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { targetIdentitiesBuilder_.clear(); } return this; } /** *
     * (Optional) Describes which server identities are acceptable by the client.
     * If target identities are provided and none of them matches the peer
     * identity of the server, handshake will fail.
     * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ public Builder removeTargetIdentities(int index) { if (targetIdentitiesBuilder_ == null) { ensureTargetIdentitiesIsMutable(); targetIdentities_.remove(index); onChanged(); } else { targetIdentitiesBuilder_.remove(index); } return this; } /** *
     * (Optional) Describes which server identities are acceptable by the client.
     * If target identities are provided and none of them matches the peer
     * identity of the server, handshake will fail.
     * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ public io.grpc.alts.internal.Identity.Builder getTargetIdentitiesBuilder( int index) { return getTargetIdentitiesFieldBuilder().getBuilder(index); } /** *
     * (Optional) Describes which server identities are acceptable by the client.
     * If target identities are provided and none of them matches the peer
     * identity of the server, handshake will fail.
     * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ public io.grpc.alts.internal.IdentityOrBuilder getTargetIdentitiesOrBuilder( int index) { if (targetIdentitiesBuilder_ == null) { return targetIdentities_.get(index); } else { return targetIdentitiesBuilder_.getMessageOrBuilder(index); } } /** *
     * (Optional) Describes which server identities are acceptable by the client.
     * If target identities are provided and none of them matches the peer
     * identity of the server, handshake will fail.
     * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ public java.util.List getTargetIdentitiesOrBuilderList() { if (targetIdentitiesBuilder_ != null) { return targetIdentitiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(targetIdentities_); } } /** *
     * (Optional) Describes which server identities are acceptable by the client.
     * If target identities are provided and none of them matches the peer
     * identity of the server, handshake will fail.
     * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ public io.grpc.alts.internal.Identity.Builder addTargetIdentitiesBuilder() { return getTargetIdentitiesFieldBuilder().addBuilder( io.grpc.alts.internal.Identity.getDefaultInstance()); } /** *
     * (Optional) Describes which server identities are acceptable by the client.
     * If target identities are provided and none of them matches the peer
     * identity of the server, handshake will fail.
     * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ public io.grpc.alts.internal.Identity.Builder addTargetIdentitiesBuilder( int index) { return getTargetIdentitiesFieldBuilder().addBuilder( index, io.grpc.alts.internal.Identity.getDefaultInstance()); } /** *
     * (Optional) Describes which server identities are acceptable by the client.
     * If target identities are provided and none of them matches the peer
     * identity of the server, handshake will fail.
     * 
* * repeated .grpc.gcp.Identity target_identities = 4; */ public java.util.List getTargetIdentitiesBuilderList() { return getTargetIdentitiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.alts.internal.Identity, io.grpc.alts.internal.Identity.Builder, io.grpc.alts.internal.IdentityOrBuilder> getTargetIdentitiesFieldBuilder() { if (targetIdentitiesBuilder_ == null) { targetIdentitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.alts.internal.Identity, io.grpc.alts.internal.Identity.Builder, io.grpc.alts.internal.IdentityOrBuilder>( targetIdentities_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); targetIdentities_ = null; } return targetIdentitiesBuilder_; } private io.grpc.alts.internal.Identity localIdentity_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.Identity, io.grpc.alts.internal.Identity.Builder, io.grpc.alts.internal.IdentityOrBuilder> localIdentityBuilder_; /** *
     * (Optional) Application may specify a local identity. Otherwise, the
     * handshaker chooses a default local identity.
     * 
* * .grpc.gcp.Identity local_identity = 5; * @return Whether the localIdentity field is set. */ public boolean hasLocalIdentity() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * (Optional) Application may specify a local identity. Otherwise, the
     * handshaker chooses a default local identity.
     * 
* * .grpc.gcp.Identity local_identity = 5; * @return The localIdentity. */ public io.grpc.alts.internal.Identity getLocalIdentity() { if (localIdentityBuilder_ == null) { return localIdentity_ == null ? io.grpc.alts.internal.Identity.getDefaultInstance() : localIdentity_; } else { return localIdentityBuilder_.getMessage(); } } /** *
     * (Optional) Application may specify a local identity. Otherwise, the
     * handshaker chooses a default local identity.
     * 
* * .grpc.gcp.Identity local_identity = 5; */ public Builder setLocalIdentity(io.grpc.alts.internal.Identity value) { if (localIdentityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localIdentity_ = value; } else { localIdentityBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * (Optional) Application may specify a local identity. Otherwise, the
     * handshaker chooses a default local identity.
     * 
* * .grpc.gcp.Identity local_identity = 5; */ public Builder setLocalIdentity( io.grpc.alts.internal.Identity.Builder builderForValue) { if (localIdentityBuilder_ == null) { localIdentity_ = builderForValue.build(); } else { localIdentityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * (Optional) Application may specify a local identity. Otherwise, the
     * handshaker chooses a default local identity.
     * 
* * .grpc.gcp.Identity local_identity = 5; */ public Builder mergeLocalIdentity(io.grpc.alts.internal.Identity value) { if (localIdentityBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && localIdentity_ != null && localIdentity_ != io.grpc.alts.internal.Identity.getDefaultInstance()) { getLocalIdentityBuilder().mergeFrom(value); } else { localIdentity_ = value; } } else { localIdentityBuilder_.mergeFrom(value); } if (localIdentity_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
     * (Optional) Application may specify a local identity. Otherwise, the
     * handshaker chooses a default local identity.
     * 
* * .grpc.gcp.Identity local_identity = 5; */ public Builder clearLocalIdentity() { bitField0_ = (bitField0_ & ~0x00000010); localIdentity_ = null; if (localIdentityBuilder_ != null) { localIdentityBuilder_.dispose(); localIdentityBuilder_ = null; } onChanged(); return this; } /** *
     * (Optional) Application may specify a local identity. Otherwise, the
     * handshaker chooses a default local identity.
     * 
* * .grpc.gcp.Identity local_identity = 5; */ public io.grpc.alts.internal.Identity.Builder getLocalIdentityBuilder() { bitField0_ |= 0x00000010; onChanged(); return getLocalIdentityFieldBuilder().getBuilder(); } /** *
     * (Optional) Application may specify a local identity. Otherwise, the
     * handshaker chooses a default local identity.
     * 
* * .grpc.gcp.Identity local_identity = 5; */ public io.grpc.alts.internal.IdentityOrBuilder getLocalIdentityOrBuilder() { if (localIdentityBuilder_ != null) { return localIdentityBuilder_.getMessageOrBuilder(); } else { return localIdentity_ == null ? io.grpc.alts.internal.Identity.getDefaultInstance() : localIdentity_; } } /** *
     * (Optional) Application may specify a local identity. Otherwise, the
     * handshaker chooses a default local identity.
     * 
* * .grpc.gcp.Identity local_identity = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.Identity, io.grpc.alts.internal.Identity.Builder, io.grpc.alts.internal.IdentityOrBuilder> getLocalIdentityFieldBuilder() { if (localIdentityBuilder_ == null) { localIdentityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.Identity, io.grpc.alts.internal.Identity.Builder, io.grpc.alts.internal.IdentityOrBuilder>( getLocalIdentity(), getParentForChildren(), isClean()); localIdentity_ = null; } return localIdentityBuilder_; } private io.grpc.alts.internal.Endpoint localEndpoint_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.Endpoint, io.grpc.alts.internal.Endpoint.Builder, io.grpc.alts.internal.EndpointOrBuilder> localEndpointBuilder_; /** *
     * (Optional) Local endpoint information of the connection to the server,
     * such as local IP address, port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint local_endpoint = 6; * @return Whether the localEndpoint field is set. */ public boolean hasLocalEndpoint() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * (Optional) Local endpoint information of the connection to the server,
     * such as local IP address, port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint local_endpoint = 6; * @return The localEndpoint. */ public io.grpc.alts.internal.Endpoint getLocalEndpoint() { if (localEndpointBuilder_ == null) { return localEndpoint_ == null ? io.grpc.alts.internal.Endpoint.getDefaultInstance() : localEndpoint_; } else { return localEndpointBuilder_.getMessage(); } } /** *
     * (Optional) Local endpoint information of the connection to the server,
     * such as local IP address, port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint local_endpoint = 6; */ public Builder setLocalEndpoint(io.grpc.alts.internal.Endpoint value) { if (localEndpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localEndpoint_ = value; } else { localEndpointBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * (Optional) Local endpoint information of the connection to the server,
     * such as local IP address, port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint local_endpoint = 6; */ public Builder setLocalEndpoint( io.grpc.alts.internal.Endpoint.Builder builderForValue) { if (localEndpointBuilder_ == null) { localEndpoint_ = builderForValue.build(); } else { localEndpointBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * (Optional) Local endpoint information of the connection to the server,
     * such as local IP address, port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint local_endpoint = 6; */ public Builder mergeLocalEndpoint(io.grpc.alts.internal.Endpoint value) { if (localEndpointBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && localEndpoint_ != null && localEndpoint_ != io.grpc.alts.internal.Endpoint.getDefaultInstance()) { getLocalEndpointBuilder().mergeFrom(value); } else { localEndpoint_ = value; } } else { localEndpointBuilder_.mergeFrom(value); } if (localEndpoint_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
     * (Optional) Local endpoint information of the connection to the server,
     * such as local IP address, port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint local_endpoint = 6; */ public Builder clearLocalEndpoint() { bitField0_ = (bitField0_ & ~0x00000020); localEndpoint_ = null; if (localEndpointBuilder_ != null) { localEndpointBuilder_.dispose(); localEndpointBuilder_ = null; } onChanged(); return this; } /** *
     * (Optional) Local endpoint information of the connection to the server,
     * such as local IP address, port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint local_endpoint = 6; */ public io.grpc.alts.internal.Endpoint.Builder getLocalEndpointBuilder() { bitField0_ |= 0x00000020; onChanged(); return getLocalEndpointFieldBuilder().getBuilder(); } /** *
     * (Optional) Local endpoint information of the connection to the server,
     * such as local IP address, port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint local_endpoint = 6; */ public io.grpc.alts.internal.EndpointOrBuilder getLocalEndpointOrBuilder() { if (localEndpointBuilder_ != null) { return localEndpointBuilder_.getMessageOrBuilder(); } else { return localEndpoint_ == null ? io.grpc.alts.internal.Endpoint.getDefaultInstance() : localEndpoint_; } } /** *
     * (Optional) Local endpoint information of the connection to the server,
     * such as local IP address, port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint local_endpoint = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.Endpoint, io.grpc.alts.internal.Endpoint.Builder, io.grpc.alts.internal.EndpointOrBuilder> getLocalEndpointFieldBuilder() { if (localEndpointBuilder_ == null) { localEndpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.Endpoint, io.grpc.alts.internal.Endpoint.Builder, io.grpc.alts.internal.EndpointOrBuilder>( getLocalEndpoint(), getParentForChildren(), isClean()); localEndpoint_ = null; } return localEndpointBuilder_; } private io.grpc.alts.internal.Endpoint remoteEndpoint_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.Endpoint, io.grpc.alts.internal.Endpoint.Builder, io.grpc.alts.internal.EndpointOrBuilder> remoteEndpointBuilder_; /** *
     * (Optional) Endpoint information of the remote server, such as IP address,
     * port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint remote_endpoint = 7; * @return Whether the remoteEndpoint field is set. */ public boolean hasRemoteEndpoint() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * (Optional) Endpoint information of the remote server, such as IP address,
     * port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint remote_endpoint = 7; * @return The remoteEndpoint. */ public io.grpc.alts.internal.Endpoint getRemoteEndpoint() { if (remoteEndpointBuilder_ == null) { return remoteEndpoint_ == null ? io.grpc.alts.internal.Endpoint.getDefaultInstance() : remoteEndpoint_; } else { return remoteEndpointBuilder_.getMessage(); } } /** *
     * (Optional) Endpoint information of the remote server, such as IP address,
     * port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint remote_endpoint = 7; */ public Builder setRemoteEndpoint(io.grpc.alts.internal.Endpoint value) { if (remoteEndpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } remoteEndpoint_ = value; } else { remoteEndpointBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * (Optional) Endpoint information of the remote server, such as IP address,
     * port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint remote_endpoint = 7; */ public Builder setRemoteEndpoint( io.grpc.alts.internal.Endpoint.Builder builderForValue) { if (remoteEndpointBuilder_ == null) { remoteEndpoint_ = builderForValue.build(); } else { remoteEndpointBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * (Optional) Endpoint information of the remote server, such as IP address,
     * port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint remote_endpoint = 7; */ public Builder mergeRemoteEndpoint(io.grpc.alts.internal.Endpoint value) { if (remoteEndpointBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && remoteEndpoint_ != null && remoteEndpoint_ != io.grpc.alts.internal.Endpoint.getDefaultInstance()) { getRemoteEndpointBuilder().mergeFrom(value); } else { remoteEndpoint_ = value; } } else { remoteEndpointBuilder_.mergeFrom(value); } if (remoteEndpoint_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
     * (Optional) Endpoint information of the remote server, such as IP address,
     * port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint remote_endpoint = 7; */ public Builder clearRemoteEndpoint() { bitField0_ = (bitField0_ & ~0x00000040); remoteEndpoint_ = null; if (remoteEndpointBuilder_ != null) { remoteEndpointBuilder_.dispose(); remoteEndpointBuilder_ = null; } onChanged(); return this; } /** *
     * (Optional) Endpoint information of the remote server, such as IP address,
     * port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint remote_endpoint = 7; */ public io.grpc.alts.internal.Endpoint.Builder getRemoteEndpointBuilder() { bitField0_ |= 0x00000040; onChanged(); return getRemoteEndpointFieldBuilder().getBuilder(); } /** *
     * (Optional) Endpoint information of the remote server, such as IP address,
     * port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint remote_endpoint = 7; */ public io.grpc.alts.internal.EndpointOrBuilder getRemoteEndpointOrBuilder() { if (remoteEndpointBuilder_ != null) { return remoteEndpointBuilder_.getMessageOrBuilder(); } else { return remoteEndpoint_ == null ? io.grpc.alts.internal.Endpoint.getDefaultInstance() : remoteEndpoint_; } } /** *
     * (Optional) Endpoint information of the remote server, such as IP address,
     * port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint remote_endpoint = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.Endpoint, io.grpc.alts.internal.Endpoint.Builder, io.grpc.alts.internal.EndpointOrBuilder> getRemoteEndpointFieldBuilder() { if (remoteEndpointBuilder_ == null) { remoteEndpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.Endpoint, io.grpc.alts.internal.Endpoint.Builder, io.grpc.alts.internal.EndpointOrBuilder>( getRemoteEndpoint(), getParentForChildren(), isClean()); remoteEndpoint_ = null; } return remoteEndpointBuilder_; } private java.lang.Object targetName_ = ""; /** *
     * (Optional) If target name is provided, a secure naming check is performed
     * to verify that the peer authenticated identity is indeed authorized to run
     * the target name.
     * 
* * string target_name = 8; * @return The targetName. */ public java.lang.String getTargetName() { java.lang.Object ref = targetName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * (Optional) If target name is provided, a secure naming check is performed
     * to verify that the peer authenticated identity is indeed authorized to run
     * the target name.
     * 
* * string target_name = 8; * @return The bytes for targetName. */ public com.google.protobuf.ByteString getTargetNameBytes() { java.lang.Object ref = targetName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * (Optional) If target name is provided, a secure naming check is performed
     * to verify that the peer authenticated identity is indeed authorized to run
     * the target name.
     * 
* * string target_name = 8; * @param value The targetName to set. * @return This builder for chaining. */ public Builder setTargetName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } targetName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * (Optional) If target name is provided, a secure naming check is performed
     * to verify that the peer authenticated identity is indeed authorized to run
     * the target name.
     * 
* * string target_name = 8; * @return This builder for chaining. */ public Builder clearTargetName() { targetName_ = getDefaultInstance().getTargetName(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** *
     * (Optional) If target name is provided, a secure naming check is performed
     * to verify that the peer authenticated identity is indeed authorized to run
     * the target name.
     * 
* * string target_name = 8; * @param value The bytes for targetName to set. * @return This builder for chaining. */ public Builder setTargetNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private io.grpc.alts.internal.RpcProtocolVersions rpcVersions_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.RpcProtocolVersions, io.grpc.alts.internal.RpcProtocolVersions.Builder, io.grpc.alts.internal.RpcProtocolVersionsOrBuilder> rpcVersionsBuilder_; /** *
     * (Optional) RPC protocol versions supported by the client.
     * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 9; * @return Whether the rpcVersions field is set. */ public boolean hasRpcVersions() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * (Optional) RPC protocol versions supported by the client.
     * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 9; * @return The rpcVersions. */ public io.grpc.alts.internal.RpcProtocolVersions getRpcVersions() { if (rpcVersionsBuilder_ == null) { return rpcVersions_ == null ? io.grpc.alts.internal.RpcProtocolVersions.getDefaultInstance() : rpcVersions_; } else { return rpcVersionsBuilder_.getMessage(); } } /** *
     * (Optional) RPC protocol versions supported by the client.
     * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 9; */ public Builder setRpcVersions(io.grpc.alts.internal.RpcProtocolVersions value) { if (rpcVersionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rpcVersions_ = value; } else { rpcVersionsBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * (Optional) RPC protocol versions supported by the client.
     * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 9; */ public Builder setRpcVersions( io.grpc.alts.internal.RpcProtocolVersions.Builder builderForValue) { if (rpcVersionsBuilder_ == null) { rpcVersions_ = builderForValue.build(); } else { rpcVersionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * (Optional) RPC protocol versions supported by the client.
     * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 9; */ public Builder mergeRpcVersions(io.grpc.alts.internal.RpcProtocolVersions value) { if (rpcVersionsBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && rpcVersions_ != null && rpcVersions_ != io.grpc.alts.internal.RpcProtocolVersions.getDefaultInstance()) { getRpcVersionsBuilder().mergeFrom(value); } else { rpcVersions_ = value; } } else { rpcVersionsBuilder_.mergeFrom(value); } if (rpcVersions_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** *
     * (Optional) RPC protocol versions supported by the client.
     * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 9; */ public Builder clearRpcVersions() { bitField0_ = (bitField0_ & ~0x00000100); rpcVersions_ = null; if (rpcVersionsBuilder_ != null) { rpcVersionsBuilder_.dispose(); rpcVersionsBuilder_ = null; } onChanged(); return this; } /** *
     * (Optional) RPC protocol versions supported by the client.
     * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 9; */ public io.grpc.alts.internal.RpcProtocolVersions.Builder getRpcVersionsBuilder() { bitField0_ |= 0x00000100; onChanged(); return getRpcVersionsFieldBuilder().getBuilder(); } /** *
     * (Optional) RPC protocol versions supported by the client.
     * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 9; */ public io.grpc.alts.internal.RpcProtocolVersionsOrBuilder getRpcVersionsOrBuilder() { if (rpcVersionsBuilder_ != null) { return rpcVersionsBuilder_.getMessageOrBuilder(); } else { return rpcVersions_ == null ? io.grpc.alts.internal.RpcProtocolVersions.getDefaultInstance() : rpcVersions_; } } /** *
     * (Optional) RPC protocol versions supported by the client.
     * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 9; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.RpcProtocolVersions, io.grpc.alts.internal.RpcProtocolVersions.Builder, io.grpc.alts.internal.RpcProtocolVersionsOrBuilder> getRpcVersionsFieldBuilder() { if (rpcVersionsBuilder_ == null) { rpcVersionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.RpcProtocolVersions, io.grpc.alts.internal.RpcProtocolVersions.Builder, io.grpc.alts.internal.RpcProtocolVersionsOrBuilder>( getRpcVersions(), getParentForChildren(), isClean()); rpcVersions_ = null; } return rpcVersionsBuilder_; } private int maxFrameSize_ ; /** *
     * (Optional) Maximum frame size supported by the client.
     * 
* * uint32 max_frame_size = 10; * @return The maxFrameSize. */ @java.lang.Override public int getMaxFrameSize() { return maxFrameSize_; } /** *
     * (Optional) Maximum frame size supported by the client.
     * 
* * uint32 max_frame_size = 10; * @param value The maxFrameSize to set. * @return This builder for chaining. */ public Builder setMaxFrameSize(int value) { maxFrameSize_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * (Optional) Maximum frame size supported by the client.
     * 
* * uint32 max_frame_size = 10; * @return This builder for chaining. */ public Builder clearMaxFrameSize() { bitField0_ = (bitField0_ & ~0x00000200); maxFrameSize_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:grpc.gcp.StartClientHandshakeReq) } // @@protoc_insertion_point(class_scope:grpc.gcp.StartClientHandshakeReq) private static final io.grpc.alts.internal.StartClientHandshakeReq DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.alts.internal.StartClientHandshakeReq(); } public static io.grpc.alts.internal.StartClientHandshakeReq getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StartClientHandshakeReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.grpc.alts.internal.StartClientHandshakeReq getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy