Class StartClientHandshakeReq

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, StartClientHandshakeReqOrBuilder, java.io.Serializable

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

      • bitField0_

        private int bitField0_
      • HANDSHAKE_SECURITY_PROTOCOL_FIELD_NUMBER

        public static final int HANDSHAKE_SECURITY_PROTOCOL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • handshakeSecurityProtocol_

        private int handshakeSecurityProtocol_
      • APPLICATION_PROTOCOLS_FIELD_NUMBER

        public static final int APPLICATION_PROTOCOLS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • applicationProtocols_

        private com.google.protobuf.LazyStringArrayList applicationProtocols_
      • RECORD_PROTOCOLS_FIELD_NUMBER

        public static final int RECORD_PROTOCOLS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • recordProtocols_

        private com.google.protobuf.LazyStringArrayList recordProtocols_
      • TARGET_IDENTITIES_FIELD_NUMBER

        public static final int TARGET_IDENTITIES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • targetIdentities_

        private java.util.List<Identity> targetIdentities_
      • LOCAL_IDENTITY_FIELD_NUMBER

        public static final int LOCAL_IDENTITY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • localIdentity_

        private Identity localIdentity_
      • LOCAL_ENDPOINT_FIELD_NUMBER

        public static final int LOCAL_ENDPOINT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • localEndpoint_

        private Endpoint localEndpoint_
      • REMOTE_ENDPOINT_FIELD_NUMBER

        public static final int REMOTE_ENDPOINT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • remoteEndpoint_

        private Endpoint remoteEndpoint_
      • TARGET_NAME_FIELD_NUMBER

        public static final int TARGET_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • targetName_

        private volatile java.lang.Object targetName_
      • RPC_VERSIONS_FIELD_NUMBER

        public static final int RPC_VERSIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAX_FRAME_SIZE_FIELD_NUMBER

        public static final int MAX_FRAME_SIZE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • maxFrameSize_

        private int maxFrameSize_
      • memoizedIsInitialized

        private byte memoizedIsInitialized
    • Constructor Detail

      • StartClientHandshakeReq

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

        private StartClientHandshakeReq()
    • Method Detail

      • 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.
      • 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 java.lang.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 java.lang.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 java.util.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 java.util.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.
      • 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.
      • 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.
      • getTargetName

        public java.lang.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.
      • 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 java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessage
        Throws:
        java.io.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​(java.lang.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​(java.nio.ByteBuffer data)
                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static StartClientHandshakeReq parseFrom​(java.nio.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​(java.io.InputStream input)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

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

        public static StartClientHandshakeReq parseDelimitedFrom​(java.io.InputStream input)
                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

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

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

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

        public StartClientHandshakeReq.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • 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
      • 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