Class Socket.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SocketOrBuilder, java.lang.Cloneable
    Enclosing class:
    Socket

    public static final class Socket.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Socket.Builder>
    implements SocketOrBuilder
     Information about an actual connection.  Pronounced "sock-ay".
     
    Protobuf type grpc.channelz.v1.Socket
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Socket.Builder>
      • 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Socket.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Socket.Builder>
      • setField

        public Socket.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                       java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Socket.Builder>
      • clearField

        public Socket.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Socket.Builder>
      • clearOneof

        public Socket.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Socket.Builder>
      • setRepeatedField

        public Socket.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               int index,
                                               java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Socket.Builder>
      • addRepeatedField

        public Socket.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Socket.Builder>
      • 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>
      • isInitialized

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

        public Socket.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws java.io.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:
        java.io.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;
      • 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;
      • 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;
      • 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;
      • 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;
      • 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;
      • 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;
      • 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
      • getRemoteName

        public java.lang.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​(java.lang.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.
      • setUnknownFields

        public final Socket.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Socket.Builder>
      • mergeUnknownFields

        public final Socket.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Socket.Builder>