Class StartServerHandshakeReq

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

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

      • bitField0_

        private int bitField0_
      • APPLICATION_PROTOCOLS_FIELD_NUMBER

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

        private com.google.protobuf.LazyStringArrayList applicationProtocols_
      • HANDSHAKE_PARAMETERS_FIELD_NUMBER

        public static final int HANDSHAKE_PARAMETERS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • handshakeParameters_

        private com.google.protobuf.MapField<java.lang.Integer,​ServerHandshakeParameters> handshakeParameters_
      • inBytes_

        private com.google.protobuf.ByteString inBytes_
      • 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_
      • 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

      • StartServerHandshakeReq

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

        private StartServerHandshakeReq()
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
      • internalGetFieldAccessorTable

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

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

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

        public java.lang.String getApplicationProtocols​(int index)
         The application protocols supported by the server, e.g., "h2" (for http2),
         "grpc".
         
        repeated string application_protocols = 1;
        Specified by:
        getApplicationProtocols in interface StartServerHandshakeReqOrBuilder
        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 server, e.g., "h2" (for http2),
         "grpc".
         
        repeated string application_protocols = 1;
        Specified by:
        getApplicationProtocolsBytes in interface StartServerHandshakeReqOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the applicationProtocols at the given index.
      • internalGetHandshakeParameters

        private com.google.protobuf.MapField<java.lang.Integer,​ServerHandshakeParameters> internalGetHandshakeParameters()
      • getHandshakeParametersCount

        public int getHandshakeParametersCount()
        Description copied from interface: StartServerHandshakeReqOrBuilder
         Handshake parameters (record protocols and local identities supported by
         the server) mapped by the handshake protocol. Each handshake security
         protocol (e.g., TLS or ALTS) has its own set of record protocols and local
         identities. Since protobuf does not support enum as key to the map, the key
         to handshake_parameters is the integer value of HandshakeProtocol enum.
         
        map<int32, .grpc.gcp.ServerHandshakeParameters> handshake_parameters = 2;
        Specified by:
        getHandshakeParametersCount in interface StartServerHandshakeReqOrBuilder
      • containsHandshakeParameters

        public boolean containsHandshakeParameters​(int key)
         Handshake parameters (record protocols and local identities supported by
         the server) mapped by the handshake protocol. Each handshake security
         protocol (e.g., TLS or ALTS) has its own set of record protocols and local
         identities. Since protobuf does not support enum as key to the map, the key
         to handshake_parameters is the integer value of HandshakeProtocol enum.
         
        map<int32, .grpc.gcp.ServerHandshakeParameters> handshake_parameters = 2;
        Specified by:
        containsHandshakeParameters in interface StartServerHandshakeReqOrBuilder
      • getHandshakeParametersMap

        public java.util.Map<java.lang.Integer,​ServerHandshakeParameters> getHandshakeParametersMap()
         Handshake parameters (record protocols and local identities supported by
         the server) mapped by the handshake protocol. Each handshake security
         protocol (e.g., TLS or ALTS) has its own set of record protocols and local
         identities. Since protobuf does not support enum as key to the map, the key
         to handshake_parameters is the integer value of HandshakeProtocol enum.
         
        map<int32, .grpc.gcp.ServerHandshakeParameters> handshake_parameters = 2;
        Specified by:
        getHandshakeParametersMap in interface StartServerHandshakeReqOrBuilder
      • getHandshakeParametersOrDefault

        public ServerHandshakeParameters getHandshakeParametersOrDefault​(int key,
                                                                         ServerHandshakeParameters defaultValue)
         Handshake parameters (record protocols and local identities supported by
         the server) mapped by the handshake protocol. Each handshake security
         protocol (e.g., TLS or ALTS) has its own set of record protocols and local
         identities. Since protobuf does not support enum as key to the map, the key
         to handshake_parameters is the integer value of HandshakeProtocol enum.
         
        map<int32, .grpc.gcp.ServerHandshakeParameters> handshake_parameters = 2;
        Specified by:
        getHandshakeParametersOrDefault in interface StartServerHandshakeReqOrBuilder
      • getHandshakeParametersOrThrow

        public ServerHandshakeParameters getHandshakeParametersOrThrow​(int key)
         Handshake parameters (record protocols and local identities supported by
         the server) mapped by the handshake protocol. Each handshake security
         protocol (e.g., TLS or ALTS) has its own set of record protocols and local
         identities. Since protobuf does not support enum as key to the map, the key
         to handshake_parameters is the integer value of HandshakeProtocol enum.
         
        map<int32, .grpc.gcp.ServerHandshakeParameters> handshake_parameters = 2;
        Specified by:
        getHandshakeParametersOrThrow in interface StartServerHandshakeReqOrBuilder
      • getInBytes

        public com.google.protobuf.ByteString getInBytes()
         Bytes in out_frames returned from the peer's HandshakerResp. It is possible
         that the peer's out_frames are split into multiple HandshakReq messages.
         
        bytes in_bytes = 3;
        Specified by:
        getInBytes in interface StartServerHandshakeReqOrBuilder
        Returns:
        The inBytes.
      • hasLocalEndpoint

        public boolean hasLocalEndpoint()
         (Optional) Local endpoint information of the connection to the client,
         such as local IP address, port number, and network protocol.
         
        .grpc.gcp.Endpoint local_endpoint = 4;
        Specified by:
        hasLocalEndpoint in interface StartServerHandshakeReqOrBuilder
        Returns:
        Whether the localEndpoint field is set.
      • getLocalEndpoint

        public Endpoint getLocalEndpoint()
         (Optional) Local endpoint information of the connection to the client,
         such as local IP address, port number, and network protocol.
         
        .grpc.gcp.Endpoint local_endpoint = 4;
        Specified by:
        getLocalEndpoint in interface StartServerHandshakeReqOrBuilder
        Returns:
        The localEndpoint.
      • hasRemoteEndpoint

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

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

        public boolean hasRpcVersions()
         (Optional) RPC protocol versions supported by the server.
         
        .grpc.gcp.RpcProtocolVersions rpc_versions = 6;
        Specified by:
        hasRpcVersions in interface StartServerHandshakeReqOrBuilder
        Returns:
        Whether the rpcVersions field is set.
      • getMaxFrameSize

        public int getMaxFrameSize()
         (Optional) Maximum frame size supported by the server.
         
        uint32 max_frame_size = 7;
        Specified by:
        getMaxFrameSize in interface StartServerHandshakeReqOrBuilder
        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 StartServerHandshakeReq parseFrom​(java.nio.ByteBuffer data)
                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static StartServerHandshakeReq parseFrom​(java.nio.ByteBuffer data,
                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

        public static StartServerHandshakeReq parseFrom​(java.io.InputStream input)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

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

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

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

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

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

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

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

        protected StartServerHandshakeReq.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class com.google.protobuf.AbstractMessage
      • getParserForType

        public com.google.protobuf.Parser<StartServerHandshakeReq> 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 StartServerHandshakeReq getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder