Class Socket.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Socket.Builder>
com.google.protobuf.GeneratedMessage.Builder<Socket.Builder>
io.grpc.channelz.v1.Socket.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SocketOrBuilder, Cloneable
Enclosing class:
Socket

public static final class Socket.Builder extends com.google.protobuf.GeneratedMessage.Builder<Socket.Builder> implements SocketOrBuilder
 Information about an actual connection.  Pronounced "sock-ay".
 
Protobuf type grpc.channelz.v1.Socket
  • 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()
    • internalGetFieldAccessorTable

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

      private void maybeForceBuilderInitialization()
    • clear

      public Socket.Builder 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<Socket.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<Socket.Builder>
    • getDefaultInstanceForType

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

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

      public Socket 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(Socket result)
    • mergeFrom

      public Socket.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<Socket.Builder>
    • mergeFrom

      public Socket.Builder mergeFrom(Socket other)
    • isInitialized

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

      public Socket.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<Socket.Builder>
      Throws:
      IOException
    • hasRef

      public boolean hasRef()
       The identifier for the Socket.
       
      .grpc.channelz.v1.SocketRef ref = 1;
      Specified by:
      hasRef in interface SocketOrBuilder
      Returns:
      Whether the ref field is set.
    • getRef

      public SocketRef getRef()
       The identifier for the Socket.
       
      .grpc.channelz.v1.SocketRef ref = 1;
      Specified by:
      getRef in interface SocketOrBuilder
      Returns:
      The ref.
    • setRef

      public Socket.Builder setRef(SocketRef value)
       The identifier for the Socket.
       
      .grpc.channelz.v1.SocketRef ref = 1;
    • setRef

      public Socket.Builder setRef(SocketRef.Builder builderForValue)
       The identifier for the Socket.
       
      .grpc.channelz.v1.SocketRef ref = 1;
    • mergeRef

      public Socket.Builder mergeRef(SocketRef value)
       The identifier for the Socket.
       
      .grpc.channelz.v1.SocketRef ref = 1;
    • clearRef

      public Socket.Builder clearRef()
       The identifier for the Socket.
       
      .grpc.channelz.v1.SocketRef ref = 1;
    • getRefBuilder

      public SocketRef.Builder getRefBuilder()
       The identifier for the Socket.
       
      .grpc.channelz.v1.SocketRef ref = 1;
    • getRefOrBuilder

      public SocketRefOrBuilder getRefOrBuilder()
       The identifier for the Socket.
       
      .grpc.channelz.v1.SocketRef ref = 1;
      Specified by:
      getRefOrBuilder in interface SocketOrBuilder
    • internalGetRefFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<SocketRef,SocketRef.Builder,SocketRefOrBuilder> internalGetRefFieldBuilder()
       The identifier for the Socket.
       
      .grpc.channelz.v1.SocketRef ref = 1;
    • hasData

      public boolean hasData()
       Data specific to this Socket.
       
      .grpc.channelz.v1.SocketData data = 2;
      Specified by:
      hasData in interface SocketOrBuilder
      Returns:
      Whether the data field is set.
    • getData

      public SocketData getData()
       Data specific to this Socket.
       
      .grpc.channelz.v1.SocketData data = 2;
      Specified by:
      getData in interface SocketOrBuilder
      Returns:
      The data.
    • setData

      public Socket.Builder setData(SocketData value)
       Data specific to this Socket.
       
      .grpc.channelz.v1.SocketData data = 2;
    • setData

      public Socket.Builder setData(SocketData.Builder builderForValue)
       Data specific to this Socket.
       
      .grpc.channelz.v1.SocketData data = 2;
    • mergeData

      public Socket.Builder mergeData(SocketData value)
       Data specific to this Socket.
       
      .grpc.channelz.v1.SocketData data = 2;
    • clearData

      public Socket.Builder clearData()
       Data specific to this Socket.
       
      .grpc.channelz.v1.SocketData data = 2;
    • getDataBuilder

      public SocketData.Builder getDataBuilder()
       Data specific to this Socket.
       
      .grpc.channelz.v1.SocketData data = 2;
    • getDataOrBuilder

      public SocketDataOrBuilder getDataOrBuilder()
       Data specific to this Socket.
       
      .grpc.channelz.v1.SocketData data = 2;
      Specified by:
      getDataOrBuilder in interface SocketOrBuilder
    • internalGetDataFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<SocketData,SocketData.Builder,SocketDataOrBuilder> internalGetDataFieldBuilder()
       Data specific to this Socket.
       
      .grpc.channelz.v1.SocketData data = 2;
    • hasLocal

      public boolean hasLocal()
       The locally bound address.
       
      .grpc.channelz.v1.Address local = 3;
      Specified by:
      hasLocal in interface SocketOrBuilder
      Returns:
      Whether the local field is set.
    • getLocal

      public Address getLocal()
       The locally bound address.
       
      .grpc.channelz.v1.Address local = 3;
      Specified by:
      getLocal in interface SocketOrBuilder
      Returns:
      The local.
    • setLocal

      public Socket.Builder setLocal(Address value)
       The locally bound address.
       
      .grpc.channelz.v1.Address local = 3;
    • setLocal

      public Socket.Builder setLocal(Address.Builder builderForValue)
       The locally bound address.
       
      .grpc.channelz.v1.Address local = 3;
    • mergeLocal

      public Socket.Builder mergeLocal(Address value)
       The locally bound address.
       
      .grpc.channelz.v1.Address local = 3;
    • clearLocal

      public Socket.Builder clearLocal()
       The locally bound address.
       
      .grpc.channelz.v1.Address local = 3;
    • getLocalBuilder

      public Address.Builder getLocalBuilder()
       The locally bound address.
       
      .grpc.channelz.v1.Address local = 3;
    • getLocalOrBuilder

      public AddressOrBuilder getLocalOrBuilder()
       The locally bound address.
       
      .grpc.channelz.v1.Address local = 3;
      Specified by:
      getLocalOrBuilder in interface SocketOrBuilder
    • internalGetLocalFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<Address,Address.Builder,AddressOrBuilder> internalGetLocalFieldBuilder()
       The locally bound address.
       
      .grpc.channelz.v1.Address local = 3;
    • hasRemote

      public boolean hasRemote()
       The remote bound address.  May be absent.
       
      .grpc.channelz.v1.Address remote = 4;
      Specified by:
      hasRemote in interface SocketOrBuilder
      Returns:
      Whether the remote field is set.
    • getRemote

      public Address getRemote()
       The remote bound address.  May be absent.
       
      .grpc.channelz.v1.Address remote = 4;
      Specified by:
      getRemote in interface SocketOrBuilder
      Returns:
      The remote.
    • setRemote

      public Socket.Builder setRemote(Address value)
       The remote bound address.  May be absent.
       
      .grpc.channelz.v1.Address remote = 4;
    • setRemote

      public Socket.Builder setRemote(Address.Builder builderForValue)
       The remote bound address.  May be absent.
       
      .grpc.channelz.v1.Address remote = 4;
    • mergeRemote

      public Socket.Builder mergeRemote(Address value)
       The remote bound address.  May be absent.
       
      .grpc.channelz.v1.Address remote = 4;
    • clearRemote

      public Socket.Builder clearRemote()
       The remote bound address.  May be absent.
       
      .grpc.channelz.v1.Address remote = 4;
    • getRemoteBuilder

      public Address.Builder getRemoteBuilder()
       The remote bound address.  May be absent.
       
      .grpc.channelz.v1.Address remote = 4;
    • getRemoteOrBuilder

      public AddressOrBuilder getRemoteOrBuilder()
       The remote bound address.  May be absent.
       
      .grpc.channelz.v1.Address remote = 4;
      Specified by:
      getRemoteOrBuilder in interface SocketOrBuilder
    • internalGetRemoteFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<Address,Address.Builder,AddressOrBuilder> internalGetRemoteFieldBuilder()
       The remote bound address.  May be absent.
       
      .grpc.channelz.v1.Address remote = 4;
    • hasSecurity

      public boolean hasSecurity()
       Security details for this socket.  May be absent if not available, or
       there is no security on the socket.
       
      .grpc.channelz.v1.Security security = 5;
      Specified by:
      hasSecurity in interface SocketOrBuilder
      Returns:
      Whether the security field is set.
    • getSecurity

      public Security getSecurity()
       Security details for this socket.  May be absent if not available, or
       there is no security on the socket.
       
      .grpc.channelz.v1.Security security = 5;
      Specified by:
      getSecurity in interface SocketOrBuilder
      Returns:
      The security.
    • setSecurity

      public Socket.Builder setSecurity(Security value)
       Security details for this socket.  May be absent if not available, or
       there is no security on the socket.
       
      .grpc.channelz.v1.Security security = 5;
    • setSecurity

      public Socket.Builder setSecurity(Security.Builder builderForValue)
       Security details for this socket.  May be absent if not available, or
       there is no security on the socket.
       
      .grpc.channelz.v1.Security security = 5;
    • mergeSecurity

      public Socket.Builder mergeSecurity(Security value)
       Security details for this socket.  May be absent if not available, or
       there is no security on the socket.
       
      .grpc.channelz.v1.Security security = 5;
    • clearSecurity

      public Socket.Builder clearSecurity()
       Security details for this socket.  May be absent if not available, or
       there is no security on the socket.
       
      .grpc.channelz.v1.Security security = 5;
    • getSecurityBuilder

      public Security.Builder getSecurityBuilder()
       Security details for this socket.  May be absent if not available, or
       there is no security on the socket.
       
      .grpc.channelz.v1.Security security = 5;
    • getSecurityOrBuilder

      public SecurityOrBuilder getSecurityOrBuilder()
       Security details for this socket.  May be absent if not available, or
       there is no security on the socket.
       
      .grpc.channelz.v1.Security security = 5;
      Specified by:
      getSecurityOrBuilder in interface SocketOrBuilder
    • internalGetSecurityFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<Security,Security.Builder,SecurityOrBuilder> internalGetSecurityFieldBuilder()
       Security details for this socket.  May be absent if not available, or
       there is no security on the socket.
       
      .grpc.channelz.v1.Security security = 5;
    • getRemoteName

      public String getRemoteName()
       Optional, represents the name of the remote endpoint, if different than
       the original target name.
       
      string remote_name = 6;
      Specified by:
      getRemoteName in interface SocketOrBuilder
      Returns:
      The remoteName.
    • getRemoteNameBytes

      public com.google.protobuf.ByteString getRemoteNameBytes()
       Optional, represents the name of the remote endpoint, if different than
       the original target name.
       
      string remote_name = 6;
      Specified by:
      getRemoteNameBytes in interface SocketOrBuilder
      Returns:
      The bytes for remoteName.
    • setRemoteName

      public Socket.Builder setRemoteName(String value)
       Optional, represents the name of the remote endpoint, if different than
       the original target name.
       
      string remote_name = 6;
      Parameters:
      value - The remoteName to set.
      Returns:
      This builder for chaining.
    • clearRemoteName

      public Socket.Builder clearRemoteName()
       Optional, represents the name of the remote endpoint, if different than
       the original target name.
       
      string remote_name = 6;
      Returns:
      This builder for chaining.
    • setRemoteNameBytes

      public Socket.Builder setRemoteNameBytes(com.google.protobuf.ByteString value)
       Optional, represents the name of the remote endpoint, if different than
       the original target name.
       
      string remote_name = 6;
      Parameters:
      value - The bytes for remoteName to set.
      Returns:
      This builder for chaining.