Class StartClientHandshakeReq

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.grpc.alts.internal.StartClientHandshakeReq
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, StartClientHandshakeReqOrBuilder, Serializable

public final class StartClientHandshakeReq extends com.google.protobuf.GeneratedMessage implements StartClientHandshakeReqOrBuilder
Protobuf type grpc.gcp.StartClientHandshakeReq
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • bitField0_

      private int bitField0_
    • HANDSHAKE_SECURITY_PROTOCOL_FIELD_NUMBER

      public static final int HANDSHAKE_SECURITY_PROTOCOL_FIELD_NUMBER
      See Also:
    • handshakeSecurityProtocol_

      private int handshakeSecurityProtocol_
    • APPLICATION_PROTOCOLS_FIELD_NUMBER

      public static final int APPLICATION_PROTOCOLS_FIELD_NUMBER
      See Also:
    • applicationProtocols_

      private com.google.protobuf.LazyStringArrayList applicationProtocols_
    • RECORD_PROTOCOLS_FIELD_NUMBER

      public static final int RECORD_PROTOCOLS_FIELD_NUMBER
      See Also:
    • recordProtocols_

      private com.google.protobuf.LazyStringArrayList recordProtocols_
    • TARGET_IDENTITIES_FIELD_NUMBER

      public static final int TARGET_IDENTITIES_FIELD_NUMBER
      See Also:
    • targetIdentities_

      private List<Identity> targetIdentities_
    • LOCAL_IDENTITY_FIELD_NUMBER

      public static final int LOCAL_IDENTITY_FIELD_NUMBER
      See Also:
    • localIdentity_

      private Identity localIdentity_
    • LOCAL_ENDPOINT_FIELD_NUMBER

      public static final int LOCAL_ENDPOINT_FIELD_NUMBER
      See Also:
    • localEndpoint_

      private Endpoint localEndpoint_
    • REMOTE_ENDPOINT_FIELD_NUMBER

      public static final int REMOTE_ENDPOINT_FIELD_NUMBER
      See Also:
    • remoteEndpoint_

      private Endpoint remoteEndpoint_
    • TARGET_NAME_FIELD_NUMBER

      public static final int TARGET_NAME_FIELD_NUMBER
      See Also:
    • targetName_

      private volatile Object targetName_
    • RPC_VERSIONS_FIELD_NUMBER

      public static final int RPC_VERSIONS_FIELD_NUMBER
      See Also:
    • rpcVersions_

      private RpcProtocolVersions rpcVersions_
    • MAX_FRAME_SIZE_FIELD_NUMBER

      public static final int MAX_FRAME_SIZE_FIELD_NUMBER
      See Also:
    • maxFrameSize_

      private int maxFrameSize_
    • memoizedIsInitialized

      private byte memoizedIsInitialized
    • DEFAULT_INSTANCE

      private static final StartClientHandshakeReq DEFAULT_INSTANCE
    • PARSER

      private static final com.google.protobuf.Parser<StartClientHandshakeReq> PARSER
  • Constructor Details

    • StartClientHandshakeReq

      private StartClientHandshakeReq(com.google.protobuf.GeneratedMessage.Builder<?> builder)
    • StartClientHandshakeReq

      private StartClientHandshakeReq()
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getHandshakeSecurityProtocolValue

      public int getHandshakeSecurityProtocolValue()
       Handshake security protocol requested by the client.
       
      .grpc.gcp.HandshakeProtocol handshake_security_protocol = 1;
      Specified by:
      getHandshakeSecurityProtocolValue in interface StartClientHandshakeReqOrBuilder
      Returns:
      The enum numeric value on the wire for handshakeSecurityProtocol.
    • getHandshakeSecurityProtocol

      public HandshakeProtocol getHandshakeSecurityProtocol()
       Handshake security protocol requested by the client.
       
      .grpc.gcp.HandshakeProtocol handshake_security_protocol = 1;
      Specified by:
      getHandshakeSecurityProtocol in interface StartClientHandshakeReqOrBuilder
      Returns:
      The handshakeSecurityProtocol.
    • getApplicationProtocolsList

      public com.google.protobuf.ProtocolStringList getApplicationProtocolsList()
       The application protocols supported by the client, e.g., "h2" (for http2),
       "grpc".
       
      repeated string application_protocols = 2;
      Specified by:
      getApplicationProtocolsList in interface StartClientHandshakeReqOrBuilder
      Returns:
      A list containing the applicationProtocols.
    • getApplicationProtocolsCount

      public int getApplicationProtocolsCount()
       The application protocols supported by the client, e.g., "h2" (for http2),
       "grpc".
       
      repeated string application_protocols = 2;
      Specified by:
      getApplicationProtocolsCount in interface StartClientHandshakeReqOrBuilder
      Returns:
      The count of applicationProtocols.
    • getApplicationProtocols

      public String getApplicationProtocols(int index)
       The application protocols supported by the client, e.g., "h2" (for http2),
       "grpc".
       
      repeated string application_protocols = 2;
      Specified by:
      getApplicationProtocols in interface StartClientHandshakeReqOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The applicationProtocols at the given index.
    • getApplicationProtocolsBytes

      public com.google.protobuf.ByteString getApplicationProtocolsBytes(int index)
       The application protocols supported by the client, e.g., "h2" (for http2),
       "grpc".
       
      repeated string application_protocols = 2;
      Specified by:
      getApplicationProtocolsBytes in interface StartClientHandshakeReqOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the applicationProtocols at the given index.
    • getRecordProtocolsList

      public com.google.protobuf.ProtocolStringList getRecordProtocolsList()
       The record protocols supported by the client, e.g.,
       "ALTSRP_GCM_AES128".
       
      repeated string record_protocols = 3;
      Specified by:
      getRecordProtocolsList in interface StartClientHandshakeReqOrBuilder
      Returns:
      A list containing the recordProtocols.
    • getRecordProtocolsCount

      public int getRecordProtocolsCount()
       The record protocols supported by the client, e.g.,
       "ALTSRP_GCM_AES128".
       
      repeated string record_protocols = 3;
      Specified by:
      getRecordProtocolsCount in interface StartClientHandshakeReqOrBuilder
      Returns:
      The count of recordProtocols.
    • getRecordProtocols

      public String getRecordProtocols(int index)
       The record protocols supported by the client, e.g.,
       "ALTSRP_GCM_AES128".
       
      repeated string record_protocols = 3;
      Specified by:
      getRecordProtocols in interface StartClientHandshakeReqOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The recordProtocols at the given index.
    • getRecordProtocolsBytes

      public com.google.protobuf.ByteString getRecordProtocolsBytes(int index)
       The record protocols supported by the client, e.g.,
       "ALTSRP_GCM_AES128".
       
      repeated string record_protocols = 3;
      Specified by:
      getRecordProtocolsBytes in interface StartClientHandshakeReqOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the recordProtocols at the given index.
    • getTargetIdentitiesList

      public List<Identity> getTargetIdentitiesList()
       (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;
      Specified by:
      getTargetIdentitiesList in interface StartClientHandshakeReqOrBuilder
    • getTargetIdentitiesOrBuilderList

      public List<? extends IdentityOrBuilder> getTargetIdentitiesOrBuilderList()
       (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;
      Specified by:
      getTargetIdentitiesOrBuilderList in interface StartClientHandshakeReqOrBuilder
    • getTargetIdentitiesCount

      public int getTargetIdentitiesCount()
       (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;
      Specified by:
      getTargetIdentitiesCount in interface StartClientHandshakeReqOrBuilder
    • getTargetIdentities

      public Identity getTargetIdentities(int 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;
      Specified by:
      getTargetIdentities in interface StartClientHandshakeReqOrBuilder
    • getTargetIdentitiesOrBuilder

      public IdentityOrBuilder getTargetIdentitiesOrBuilder(int 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;
      Specified by:
      getTargetIdentitiesOrBuilder in interface StartClientHandshakeReqOrBuilder
    • hasLocalIdentity

      public boolean hasLocalIdentity()
       (Optional) Application may specify a local identity. Otherwise, the
       handshaker chooses a default local identity.
       
      .grpc.gcp.Identity local_identity = 5;
      Specified by:
      hasLocalIdentity in interface StartClientHandshakeReqOrBuilder
      Returns:
      Whether the localIdentity field is set.
    • getLocalIdentity

      public Identity getLocalIdentity()
       (Optional) Application may specify a local identity. Otherwise, the
       handshaker chooses a default local identity.
       
      .grpc.gcp.Identity local_identity = 5;
      Specified by:
      getLocalIdentity in interface StartClientHandshakeReqOrBuilder
      Returns:
      The localIdentity.
    • getLocalIdentityOrBuilder

      public IdentityOrBuilder getLocalIdentityOrBuilder()
       (Optional) Application may specify a local identity. Otherwise, the
       handshaker chooses a default local identity.
       
      .grpc.gcp.Identity local_identity = 5;
      Specified by:
      getLocalIdentityOrBuilder in interface StartClientHandshakeReqOrBuilder
    • hasLocalEndpoint

      public boolean hasLocalEndpoint()
       (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;
      Specified by:
      hasLocalEndpoint in interface StartClientHandshakeReqOrBuilder
      Returns:
      Whether the localEndpoint field is set.
    • getLocalEndpoint

      public Endpoint getLocalEndpoint()
       (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;
      Specified by:
      getLocalEndpoint in interface StartClientHandshakeReqOrBuilder
      Returns:
      The localEndpoint.
    • getLocalEndpointOrBuilder

      public EndpointOrBuilder getLocalEndpointOrBuilder()
       (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;
      Specified by:
      getLocalEndpointOrBuilder in interface StartClientHandshakeReqOrBuilder
    • hasRemoteEndpoint

      public boolean hasRemoteEndpoint()
       (Optional) Endpoint information of the remote server, such as IP address,
       port number, and network protocol.
       
      .grpc.gcp.Endpoint remote_endpoint = 7;
      Specified by:
      hasRemoteEndpoint in interface StartClientHandshakeReqOrBuilder
      Returns:
      Whether the remoteEndpoint field is set.
    • getRemoteEndpoint

      public Endpoint getRemoteEndpoint()
       (Optional) Endpoint information of the remote server, such as IP address,
       port number, and network protocol.
       
      .grpc.gcp.Endpoint remote_endpoint = 7;
      Specified by:
      getRemoteEndpoint in interface StartClientHandshakeReqOrBuilder
      Returns:
      The remoteEndpoint.
    • getRemoteEndpointOrBuilder

      public EndpointOrBuilder getRemoteEndpointOrBuilder()
       (Optional) Endpoint information of the remote server, such as IP address,
       port number, and network protocol.
       
      .grpc.gcp.Endpoint remote_endpoint = 7;
      Specified by:
      getRemoteEndpointOrBuilder in interface StartClientHandshakeReqOrBuilder
    • getTargetName

      public String getTargetName()
       (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;
      Specified by:
      getTargetName in interface StartClientHandshakeReqOrBuilder
      Returns:
      The targetName.
    • getTargetNameBytes

      public com.google.protobuf.ByteString getTargetNameBytes()
       (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;
      Specified by:
      getTargetNameBytes in interface StartClientHandshakeReqOrBuilder
      Returns:
      The bytes for targetName.
    • hasRpcVersions

      public boolean hasRpcVersions()
       (Optional) RPC protocol versions supported by the client.
       
      .grpc.gcp.RpcProtocolVersions rpc_versions = 9;
      Specified by:
      hasRpcVersions in interface StartClientHandshakeReqOrBuilder
      Returns:
      Whether the rpcVersions field is set.
    • getRpcVersions

      public RpcProtocolVersions getRpcVersions()
       (Optional) RPC protocol versions supported by the client.
       
      .grpc.gcp.RpcProtocolVersions rpc_versions = 9;
      Specified by:
      getRpcVersions in interface StartClientHandshakeReqOrBuilder
      Returns:
      The rpcVersions.
    • getRpcVersionsOrBuilder

      public RpcProtocolVersionsOrBuilder getRpcVersionsOrBuilder()
       (Optional) RPC protocol versions supported by the client.
       
      .grpc.gcp.RpcProtocolVersions rpc_versions = 9;
      Specified by:
      getRpcVersionsOrBuilder in interface StartClientHandshakeReqOrBuilder
    • getMaxFrameSize

      public int getMaxFrameSize()
       (Optional) Maximum frame size supported by the client.
       
      uint32 max_frame_size = 10;
      Specified by:
      getMaxFrameSize in interface StartClientHandshakeReqOrBuilder
      Returns:
      The maxFrameSize.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static StartClientHandshakeReq parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StartClientHandshakeReq parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StartClientHandshakeReq parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StartClientHandshakeReq parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StartClientHandshakeReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StartClientHandshakeReq parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StartClientHandshakeReq parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StartClientHandshakeReq parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static StartClientHandshakeReq parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static StartClientHandshakeReq parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StartClientHandshakeReq parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StartClientHandshakeReq parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public StartClientHandshakeReq.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static StartClientHandshakeReq.Builder newBuilder()
    • newBuilder

      public static StartClientHandshakeReq.Builder newBuilder(StartClientHandshakeReq prototype)
    • toBuilder

      public StartClientHandshakeReq.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected StartClientHandshakeReq.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static StartClientHandshakeReq getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<StartClientHandshakeReq> parser()
    • getParserForType

      public com.google.protobuf.Parser<StartClientHandshakeReq> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public StartClientHandshakeReq getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder