Class StartServerHandshakeReq.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<StartServerHandshakeReq.Builder>
com.google.protobuf.GeneratedMessage.Builder<StartServerHandshakeReq.Builder>
io.grpc.alts.internal.StartServerHandshakeReq.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, StartServerHandshakeReqOrBuilder, Cloneable
Enclosing class:
StartServerHandshakeReq

public static final class StartServerHandshakeReq.Builder extends com.google.protobuf.GeneratedMessage.Builder<StartServerHandshakeReq.Builder> implements StartServerHandshakeReqOrBuilder
Protobuf type grpc.gcp.StartServerHandshakeReq
  • Field Details

  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • Method Details

    • 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.Builder<StartServerHandshakeReq.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<StartServerHandshakeReq.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<StartServerHandshakeReq.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<StartServerHandshakeReq.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<StartServerHandshakeReq.Builder>
    • getDefaultInstanceForType

      public StartServerHandshakeReq getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

      private void buildPartial0(StartServerHandshakeReq result)
    • mergeFrom

      public StartServerHandshakeReq.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StartServerHandshakeReq.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<StartServerHandshakeReq.Builder>
    • mergeFrom

      public StartServerHandshakeReq.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StartServerHandshakeReq.Builder>
      Throws:
      IOException
    • ensureApplicationProtocolsIsMutable

      private void ensureApplicationProtocolsIsMutable()
    • 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 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.
    • setApplicationProtocols

      public StartServerHandshakeReq.Builder setApplicationProtocols(int index, String value)
       The application protocols supported by the server, e.g., "h2" (for http2),
       "grpc".
       
      repeated string application_protocols = 1;
      Parameters:
      index - The index to set the value at.
      value - The applicationProtocols to set.
      Returns:
      This builder for chaining.
    • addApplicationProtocols

      public StartServerHandshakeReq.Builder addApplicationProtocols(String value)
       The application protocols supported by the server, e.g., "h2" (for http2),
       "grpc".
       
      repeated string application_protocols = 1;
      Parameters:
      value - The applicationProtocols to add.
      Returns:
      This builder for chaining.
    • addAllApplicationProtocols

      public StartServerHandshakeReq.Builder addAllApplicationProtocols(Iterable<String> values)
       The application protocols supported by the server, e.g., "h2" (for http2),
       "grpc".
       
      repeated string application_protocols = 1;
      Parameters:
      values - The applicationProtocols to add.
      Returns:
      This builder for chaining.
    • clearApplicationProtocols

      public StartServerHandshakeReq.Builder clearApplicationProtocols()
       The application protocols supported by the server, e.g., "h2" (for http2),
       "grpc".
       
      repeated string application_protocols = 1;
      Returns:
      This builder for chaining.
    • addApplicationProtocolsBytes

      public StartServerHandshakeReq.Builder addApplicationProtocolsBytes(com.google.protobuf.ByteString value)
       The application protocols supported by the server, e.g., "h2" (for http2),
       "grpc".
       
      repeated string application_protocols = 1;
      Parameters:
      value - The bytes of the applicationProtocols to add.
      Returns:
      This builder for chaining.
    • internalGetHandshakeParameters

      private com.google.protobuf.MapFieldBuilder<Integer,ServerHandshakeParametersOrBuilder,ServerHandshakeParameters,ServerHandshakeParameters.Builder> internalGetHandshakeParameters()
    • internalGetMutableHandshakeParameters

      private com.google.protobuf.MapFieldBuilder<Integer,ServerHandshakeParametersOrBuilder,ServerHandshakeParameters,ServerHandshakeParameters.Builder> internalGetMutableHandshakeParameters()
    • 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
    • getHandshakeParameters

      @Deprecated public Map<Integer,ServerHandshakeParameters> getHandshakeParameters()
      Deprecated.
      Specified by:
      getHandshakeParameters in interface StartServerHandshakeReqOrBuilder
    • getHandshakeParametersMap

      public Map<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
    • clearHandshakeParameters

      public StartServerHandshakeReq.Builder clearHandshakeParameters()
    • removeHandshakeParameters

      public StartServerHandshakeReq.Builder removeHandshakeParameters(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;
    • getMutableHandshakeParameters

      @Deprecated public Map<Integer,ServerHandshakeParameters> getMutableHandshakeParameters()
      Deprecated.
      Use alternate mutation accessors instead.
    • putHandshakeParameters

      public StartServerHandshakeReq.Builder putHandshakeParameters(int key, ServerHandshakeParameters value)
       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;
    • putAllHandshakeParameters

      public StartServerHandshakeReq.Builder putAllHandshakeParameters(Map<Integer,ServerHandshakeParameters> values)
       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;
    • putHandshakeParametersBuilderIfAbsent

      public ServerHandshakeParameters.Builder putHandshakeParametersBuilderIfAbsent(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;
    • 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.
    • setInBytes

      public StartServerHandshakeReq.Builder setInBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The inBytes to set.
      Returns:
      This builder for chaining.
    • clearInBytes

      public StartServerHandshakeReq.Builder clearInBytes()
       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;
      Returns:
      This builder for chaining.
    • 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.
    • setLocalEndpoint

      public StartServerHandshakeReq.Builder setLocalEndpoint(Endpoint value)
       (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;
    • setLocalEndpoint

      public StartServerHandshakeReq.Builder setLocalEndpoint(Endpoint.Builder builderForValue)
       (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;
    • mergeLocalEndpoint

      public StartServerHandshakeReq.Builder mergeLocalEndpoint(Endpoint value)
       (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;
    • clearLocalEndpoint

      public StartServerHandshakeReq.Builder clearLocalEndpoint()
       (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;
    • getLocalEndpointBuilder

      public Endpoint.Builder getLocalEndpointBuilder()
       (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;
    • getLocalEndpointOrBuilder

      public EndpointOrBuilder getLocalEndpointOrBuilder()
       (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:
      getLocalEndpointOrBuilder in interface StartServerHandshakeReqOrBuilder
    • internalGetLocalEndpointFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<Endpoint,Endpoint.Builder,EndpointOrBuilder> internalGetLocalEndpointFieldBuilder()
       (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;
    • 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.
    • setRemoteEndpoint

      public StartServerHandshakeReq.Builder setRemoteEndpoint(Endpoint value)
       (Optional) Endpoint information of the remote client, such as IP address,
       port number, and network protocol.
       
      .grpc.gcp.Endpoint remote_endpoint = 5;
    • setRemoteEndpoint

      public StartServerHandshakeReq.Builder setRemoteEndpoint(Endpoint.Builder builderForValue)
       (Optional) Endpoint information of the remote client, such as IP address,
       port number, and network protocol.
       
      .grpc.gcp.Endpoint remote_endpoint = 5;
    • mergeRemoteEndpoint

      public StartServerHandshakeReq.Builder mergeRemoteEndpoint(Endpoint value)
       (Optional) Endpoint information of the remote client, such as IP address,
       port number, and network protocol.
       
      .grpc.gcp.Endpoint remote_endpoint = 5;
    • clearRemoteEndpoint

      public StartServerHandshakeReq.Builder clearRemoteEndpoint()
       (Optional) Endpoint information of the remote client, such as IP address,
       port number, and network protocol.
       
      .grpc.gcp.Endpoint remote_endpoint = 5;
    • getRemoteEndpointBuilder

      public Endpoint.Builder getRemoteEndpointBuilder()
       (Optional) Endpoint information of the remote client, such as IP address,
       port number, and network protocol.
       
      .grpc.gcp.Endpoint remote_endpoint = 5;
    • getRemoteEndpointOrBuilder

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

      private com.google.protobuf.SingleFieldBuilder<Endpoint,Endpoint.Builder,EndpointOrBuilder> internalGetRemoteEndpointFieldBuilder()
       (Optional) Endpoint information of the remote client, such as IP address,
       port number, and network protocol.
       
      .grpc.gcp.Endpoint remote_endpoint = 5;
    • 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.
    • getRpcVersions

      public RpcProtocolVersions getRpcVersions()
       (Optional) RPC protocol versions supported by the server.
       
      .grpc.gcp.RpcProtocolVersions rpc_versions = 6;
      Specified by:
      getRpcVersions in interface StartServerHandshakeReqOrBuilder
      Returns:
      The rpcVersions.
    • setRpcVersions

       (Optional) RPC protocol versions supported by the server.
       
      .grpc.gcp.RpcProtocolVersions rpc_versions = 6;
    • setRpcVersions

      public StartServerHandshakeReq.Builder setRpcVersions(RpcProtocolVersions.Builder builderForValue)
       (Optional) RPC protocol versions supported by the server.
       
      .grpc.gcp.RpcProtocolVersions rpc_versions = 6;
    • mergeRpcVersions

      public StartServerHandshakeReq.Builder mergeRpcVersions(RpcProtocolVersions value)
       (Optional) RPC protocol versions supported by the server.
       
      .grpc.gcp.RpcProtocolVersions rpc_versions = 6;
    • clearRpcVersions

      public StartServerHandshakeReq.Builder clearRpcVersions()
       (Optional) RPC protocol versions supported by the server.
       
      .grpc.gcp.RpcProtocolVersions rpc_versions = 6;
    • getRpcVersionsBuilder

      public RpcProtocolVersions.Builder getRpcVersionsBuilder()
       (Optional) RPC protocol versions supported by the server.
       
      .grpc.gcp.RpcProtocolVersions rpc_versions = 6;
    • getRpcVersionsOrBuilder

      public RpcProtocolVersionsOrBuilder getRpcVersionsOrBuilder()
       (Optional) RPC protocol versions supported by the server.
       
      .grpc.gcp.RpcProtocolVersions rpc_versions = 6;
      Specified by:
      getRpcVersionsOrBuilder in interface StartServerHandshakeReqOrBuilder
    • internalGetRpcVersionsFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<RpcProtocolVersions,RpcProtocolVersions.Builder,RpcProtocolVersionsOrBuilder> internalGetRpcVersionsFieldBuilder()
       (Optional) RPC protocol versions supported by the server.
       
      .grpc.gcp.RpcProtocolVersions rpc_versions = 6;
    • 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.
    • setMaxFrameSize

      public StartServerHandshakeReq.Builder setMaxFrameSize(int value)
       (Optional) Maximum frame size supported by the server.
       
      uint32 max_frame_size = 7;
      Parameters:
      value - The maxFrameSize to set.
      Returns:
      This builder for chaining.
    • clearMaxFrameSize

      public StartServerHandshakeReq.Builder clearMaxFrameSize()
       (Optional) Maximum frame size supported by the server.
       
      uint32 max_frame_size = 7;
      Returns:
      This builder for chaining.