Package io.grpc.channelz.v1
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 Summary
FieldsModifier and TypeFieldDescriptionprivate int
private SocketData
private com.google.protobuf.SingleFieldBuilder
<SocketData, SocketData.Builder, SocketDataOrBuilder> private Address
private com.google.protobuf.SingleFieldBuilder
<Address, Address.Builder, AddressOrBuilder> private SocketRef
private com.google.protobuf.SingleFieldBuilder
<SocketRef, SocketRef.Builder, SocketRefOrBuilder> private Address
private com.google.protobuf.SingleFieldBuilder
<Address, Address.Builder, AddressOrBuilder> private Object
private Security
private com.google.protobuf.SingleFieldBuilder
<Security, Security.Builder, SecurityOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(Socket result) clear()
Data specific to this Socket.The locally bound address.clearRef()
The identifier for the Socket.The remote bound address.Optional, represents the name of the remote endpoint, if different than the original target name.Security details for this socket.getData()
Data specific to this Socket.Data specific to this Socket.private com.google.protobuf.SingleFieldBuilder
<SocketData, SocketData.Builder, SocketDataOrBuilder> Data specific to this Socket.Data specific to this Socket.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getLocal()
The locally bound address.The locally bound address.private com.google.protobuf.SingleFieldBuilder
<Address, Address.Builder, AddressOrBuilder> The locally bound address.The locally bound address.getRef()
The identifier for the Socket.The identifier for the Socket.private com.google.protobuf.SingleFieldBuilder
<SocketRef, SocketRef.Builder, SocketRefOrBuilder> The identifier for the Socket.The identifier for the Socket.The remote bound address.The remote bound address.private com.google.protobuf.SingleFieldBuilder
<Address, Address.Builder, AddressOrBuilder> The remote bound address.Optional, represents the name of the remote endpoint, if different than the original target name.com.google.protobuf.ByteString
Optional, represents the name of the remote endpoint, if different than the original target name.The remote bound address.Security details for this socket.Security details for this socket.private com.google.protobuf.SingleFieldBuilder
<Security, Security.Builder, SecurityOrBuilder> Security details for this socket.Security details for this socket.boolean
hasData()
Data specific to this Socket.boolean
hasLocal()
The locally bound address.boolean
hasRef()
The identifier for the Socket.boolean
The remote bound address.boolean
Security details for this socket.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeData
(SocketData value) Data specific to this Socket.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeLocal
(Address value) The locally bound address.The identifier for the Socket.mergeRemote
(Address value) The remote bound address.mergeSecurity
(Security value) Security details for this socket.setData
(SocketData value) Data specific to this Socket.setData
(SocketData.Builder builderForValue) Data specific to this Socket.The locally bound address.setLocal
(Address.Builder builderForValue) The locally bound address.The identifier for the Socket.setRef
(SocketRef.Builder builderForValue) The identifier for the Socket.The remote bound address.setRemote
(Address.Builder builderForValue) The remote bound address.setRemoteName
(String value) Optional, represents the name of the remote endpoint, if different than the original target name.setRemoteNameBytes
(com.google.protobuf.ByteString value) Optional, represents the name of the remote endpoint, if different than the original target name.setSecurity
(Security value) Security details for this socket.setSecurity
(Security.Builder builderForValue) Security details for this socket.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
ref_
-
refBuilder_
private com.google.protobuf.SingleFieldBuilder<SocketRef,SocketRef.Builder, refBuilder_SocketRefOrBuilder> -
data_
-
dataBuilder_
private com.google.protobuf.SingleFieldBuilder<SocketData,SocketData.Builder, dataBuilder_SocketDataOrBuilder> -
local_
-
localBuilder_
private com.google.protobuf.SingleFieldBuilder<Address,Address.Builder, localBuilder_AddressOrBuilder> -
remote_
-
remoteBuilder_
private com.google.protobuf.SingleFieldBuilder<Address,Address.Builder, remoteBuilder_AddressOrBuilder> -
security_
-
securityBuilder_
private com.google.protobuf.SingleFieldBuilder<Security,Security.Builder, securityBuilder_SecurityOrBuilder> -
remoteName_
-
-
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 classcom.google.protobuf.GeneratedMessage.Builder<Socket.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Socket.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Socket.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Socket.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceSocketOrBuilder
- Returns:
- Whether the ref field is set.
-
getRef
The identifier for the Socket.
.grpc.channelz.v1.SocketRef ref = 1;
- Specified by:
getRef
in interfaceSocketOrBuilder
- Returns:
- The ref.
-
setRef
The identifier for the Socket.
.grpc.channelz.v1.SocketRef ref = 1;
-
setRef
The identifier for the Socket.
.grpc.channelz.v1.SocketRef ref = 1;
-
mergeRef
The identifier for the Socket.
.grpc.channelz.v1.SocketRef ref = 1;
-
clearRef
The identifier for the Socket.
.grpc.channelz.v1.SocketRef ref = 1;
-
getRefBuilder
The identifier for the Socket.
.grpc.channelz.v1.SocketRef ref = 1;
-
getRefOrBuilder
The identifier for the Socket.
.grpc.channelz.v1.SocketRef ref = 1;
- Specified by:
getRefOrBuilder
in interfaceSocketOrBuilder
-
getRefFieldBuilder
private com.google.protobuf.SingleFieldBuilder<SocketRef,SocketRef.Builder, getRefFieldBuilder()SocketRefOrBuilder> 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 interfaceSocketOrBuilder
- Returns:
- Whether the data field is set.
-
getData
Data specific to this Socket.
.grpc.channelz.v1.SocketData data = 2;
- Specified by:
getData
in interfaceSocketOrBuilder
- Returns:
- The data.
-
setData
Data specific to this Socket.
.grpc.channelz.v1.SocketData data = 2;
-
setData
Data specific to this Socket.
.grpc.channelz.v1.SocketData data = 2;
-
mergeData
Data specific to this Socket.
.grpc.channelz.v1.SocketData data = 2;
-
clearData
Data specific to this Socket.
.grpc.channelz.v1.SocketData data = 2;
-
getDataBuilder
Data specific to this Socket.
.grpc.channelz.v1.SocketData data = 2;
-
getDataOrBuilder
Data specific to this Socket.
.grpc.channelz.v1.SocketData data = 2;
- Specified by:
getDataOrBuilder
in interfaceSocketOrBuilder
-
getDataFieldBuilder
private com.google.protobuf.SingleFieldBuilder<SocketData,SocketData.Builder, getDataFieldBuilder()SocketDataOrBuilder> 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 interfaceSocketOrBuilder
- Returns:
- Whether the local field is set.
-
getLocal
The locally bound address.
.grpc.channelz.v1.Address local = 3;
- Specified by:
getLocal
in interfaceSocketOrBuilder
- Returns:
- The local.
-
setLocal
The locally bound address.
.grpc.channelz.v1.Address local = 3;
-
setLocal
The locally bound address.
.grpc.channelz.v1.Address local = 3;
-
mergeLocal
The locally bound address.
.grpc.channelz.v1.Address local = 3;
-
clearLocal
The locally bound address.
.grpc.channelz.v1.Address local = 3;
-
getLocalBuilder
The locally bound address.
.grpc.channelz.v1.Address local = 3;
-
getLocalOrBuilder
The locally bound address.
.grpc.channelz.v1.Address local = 3;
- Specified by:
getLocalOrBuilder
in interfaceSocketOrBuilder
-
getLocalFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Address,Address.Builder, getLocalFieldBuilder()AddressOrBuilder> 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 interfaceSocketOrBuilder
- Returns:
- Whether the remote field is set.
-
getRemote
The remote bound address. May be absent.
.grpc.channelz.v1.Address remote = 4;
- Specified by:
getRemote
in interfaceSocketOrBuilder
- Returns:
- The remote.
-
setRemote
The remote bound address. May be absent.
.grpc.channelz.v1.Address remote = 4;
-
setRemote
The remote bound address. May be absent.
.grpc.channelz.v1.Address remote = 4;
-
mergeRemote
The remote bound address. May be absent.
.grpc.channelz.v1.Address remote = 4;
-
clearRemote
The remote bound address. May be absent.
.grpc.channelz.v1.Address remote = 4;
-
getRemoteBuilder
The remote bound address. May be absent.
.grpc.channelz.v1.Address remote = 4;
-
getRemoteOrBuilder
The remote bound address. May be absent.
.grpc.channelz.v1.Address remote = 4;
- Specified by:
getRemoteOrBuilder
in interfaceSocketOrBuilder
-
getRemoteFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Address,Address.Builder, getRemoteFieldBuilder()AddressOrBuilder> 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 interfaceSocketOrBuilder
- Returns:
- Whether the security field is set.
-
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 interfaceSocketOrBuilder
- Returns:
- The security.
-
setSecurity
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
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
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
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
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
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 interfaceSocketOrBuilder
-
getSecurityFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Security,Security.Builder, getSecurityFieldBuilder()SecurityOrBuilder> 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
Optional, represents the name of the remote endpoint, if different than the original target name.
string remote_name = 6;
- Specified by:
getRemoteName
in interfaceSocketOrBuilder
- 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 interfaceSocketOrBuilder
- Returns:
- The bytes for remoteName.
-
setRemoteName
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
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
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.
-