All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shade.polaris.io.grpc.channelz.v1.Socket Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: grpc/channelz/v1/channelz.proto

// Protobuf Java Version: 3.25.1
package io.grpc.channelz.v1;

/**
 * 
 * Information about an actual connection.  Pronounced "sock-ay".
 * 
* * Protobuf type {@code grpc.channelz.v1.Socket} */ public final class Socket extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.channelz.v1.Socket) SocketOrBuilder { private static final long serialVersionUID = 0L; // Use Socket.newBuilder() to construct. private Socket(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Socket() { remoteName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Socket(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Socket_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Socket_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.channelz.v1.Socket.class, io.grpc.channelz.v1.Socket.Builder.class); } private int bitField0_; public static final int REF_FIELD_NUMBER = 1; private io.grpc.channelz.v1.SocketRef ref_; /** *
   * The identifier for the Socket.
   * 
* * .grpc.channelz.v1.SocketRef ref = 1; * @return Whether the ref field is set. */ @java.lang.Override public boolean hasRef() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The identifier for the Socket.
   * 
* * .grpc.channelz.v1.SocketRef ref = 1; * @return The ref. */ @java.lang.Override public io.grpc.channelz.v1.SocketRef getRef() { return ref_ == null ? io.grpc.channelz.v1.SocketRef.getDefaultInstance() : ref_; } /** *
   * The identifier for the Socket.
   * 
* * .grpc.channelz.v1.SocketRef ref = 1; */ @java.lang.Override public io.grpc.channelz.v1.SocketRefOrBuilder getRefOrBuilder() { return ref_ == null ? io.grpc.channelz.v1.SocketRef.getDefaultInstance() : ref_; } public static final int DATA_FIELD_NUMBER = 2; private io.grpc.channelz.v1.SocketData data_; /** *
   * Data specific to this Socket.
   * 
* * .grpc.channelz.v1.SocketData data = 2; * @return Whether the data field is set. */ @java.lang.Override public boolean hasData() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Data specific to this Socket.
   * 
* * .grpc.channelz.v1.SocketData data = 2; * @return The data. */ @java.lang.Override public io.grpc.channelz.v1.SocketData getData() { return data_ == null ? io.grpc.channelz.v1.SocketData.getDefaultInstance() : data_; } /** *
   * Data specific to this Socket.
   * 
* * .grpc.channelz.v1.SocketData data = 2; */ @java.lang.Override public io.grpc.channelz.v1.SocketDataOrBuilder getDataOrBuilder() { return data_ == null ? io.grpc.channelz.v1.SocketData.getDefaultInstance() : data_; } public static final int LOCAL_FIELD_NUMBER = 3; private io.grpc.channelz.v1.Address local_; /** *
   * The locally bound address.
   * 
* * .grpc.channelz.v1.Address local = 3; * @return Whether the local field is set. */ @java.lang.Override public boolean hasLocal() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * The locally bound address.
   * 
* * .grpc.channelz.v1.Address local = 3; * @return The local. */ @java.lang.Override public io.grpc.channelz.v1.Address getLocal() { return local_ == null ? io.grpc.channelz.v1.Address.getDefaultInstance() : local_; } /** *
   * The locally bound address.
   * 
* * .grpc.channelz.v1.Address local = 3; */ @java.lang.Override public io.grpc.channelz.v1.AddressOrBuilder getLocalOrBuilder() { return local_ == null ? io.grpc.channelz.v1.Address.getDefaultInstance() : local_; } public static final int REMOTE_FIELD_NUMBER = 4; private io.grpc.channelz.v1.Address remote_; /** *
   * The remote bound address.  May be absent.
   * 
* * .grpc.channelz.v1.Address remote = 4; * @return Whether the remote field is set. */ @java.lang.Override public boolean hasRemote() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * The remote bound address.  May be absent.
   * 
* * .grpc.channelz.v1.Address remote = 4; * @return The remote. */ @java.lang.Override public io.grpc.channelz.v1.Address getRemote() { return remote_ == null ? io.grpc.channelz.v1.Address.getDefaultInstance() : remote_; } /** *
   * The remote bound address.  May be absent.
   * 
* * .grpc.channelz.v1.Address remote = 4; */ @java.lang.Override public io.grpc.channelz.v1.AddressOrBuilder getRemoteOrBuilder() { return remote_ == null ? io.grpc.channelz.v1.Address.getDefaultInstance() : remote_; } public static final int SECURITY_FIELD_NUMBER = 5; private io.grpc.channelz.v1.Security security_; /** *
   * 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; * @return Whether the security field is set. */ @java.lang.Override public boolean hasSecurity() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * 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; * @return The security. */ @java.lang.Override public io.grpc.channelz.v1.Security getSecurity() { return security_ == null ? io.grpc.channelz.v1.Security.getDefaultInstance() : security_; } /** *
   * 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; */ @java.lang.Override public io.grpc.channelz.v1.SecurityOrBuilder getSecurityOrBuilder() { return security_ == null ? io.grpc.channelz.v1.Security.getDefaultInstance() : security_; } public static final int REMOTE_NAME_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object remoteName_ = ""; /** *
   * Optional, represents the name of the remote endpoint, if different than
   * the original target name.
   * 
* * string remote_name = 6; * @return The remoteName. */ @java.lang.Override public java.lang.String getRemoteName() { java.lang.Object ref = remoteName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); remoteName_ = s; return s; } } /** *
   * Optional, represents the name of the remote endpoint, if different than
   * the original target name.
   * 
* * string remote_name = 6; * @return The bytes for remoteName. */ @java.lang.Override public com.google.protobuf.ByteString getRemoteNameBytes() { java.lang.Object ref = remoteName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); remoteName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRef()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getData()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getLocal()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getRemote()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(5, getSecurity()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remoteName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, remoteName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRef()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getData()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getLocal()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRemote()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getSecurity()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remoteName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, remoteName_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.grpc.channelz.v1.Socket)) { return super.equals(obj); } io.grpc.channelz.v1.Socket other = (io.grpc.channelz.v1.Socket) obj; if (hasRef() != other.hasRef()) return false; if (hasRef()) { if (!getRef() .equals(other.getRef())) return false; } if (hasData() != other.hasData()) return false; if (hasData()) { if (!getData() .equals(other.getData())) return false; } if (hasLocal() != other.hasLocal()) return false; if (hasLocal()) { if (!getLocal() .equals(other.getLocal())) return false; } if (hasRemote() != other.hasRemote()) return false; if (hasRemote()) { if (!getRemote() .equals(other.getRemote())) return false; } if (hasSecurity() != other.hasSecurity()) return false; if (hasSecurity()) { if (!getSecurity() .equals(other.getSecurity())) return false; } if (!getRemoteName() .equals(other.getRemoteName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRef()) { hash = (37 * hash) + REF_FIELD_NUMBER; hash = (53 * hash) + getRef().hashCode(); } if (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } if (hasLocal()) { hash = (37 * hash) + LOCAL_FIELD_NUMBER; hash = (53 * hash) + getLocal().hashCode(); } if (hasRemote()) { hash = (37 * hash) + REMOTE_FIELD_NUMBER; hash = (53 * hash) + getRemote().hashCode(); } if (hasSecurity()) { hash = (37 * hash) + SECURITY_FIELD_NUMBER; hash = (53 * hash) + getSecurity().hashCode(); } hash = (37 * hash) + REMOTE_NAME_FIELD_NUMBER; hash = (53 * hash) + getRemoteName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.channelz.v1.Socket parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.Socket parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.channelz.v1.Socket parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.Socket parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.channelz.v1.Socket parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.Socket parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.channelz.v1.Socket parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.channelz.v1.Socket parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.channelz.v1.Socket parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.channelz.v1.Socket parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.channelz.v1.Socket parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.channelz.v1.Socket parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.grpc.channelz.v1.Socket prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Information about an actual connection.  Pronounced "sock-ay".
   * 
* * Protobuf type {@code grpc.channelz.v1.Socket} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.channelz.v1.Socket) io.grpc.channelz.v1.SocketOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Socket_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Socket_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.channelz.v1.Socket.class, io.grpc.channelz.v1.Socket.Builder.class); } // Construct using io.grpc.channelz.v1.Socket.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRefFieldBuilder(); getDataFieldBuilder(); getLocalFieldBuilder(); getRemoteFieldBuilder(); getSecurityFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ref_ = null; if (refBuilder_ != null) { refBuilder_.dispose(); refBuilder_ = null; } data_ = null; if (dataBuilder_ != null) { dataBuilder_.dispose(); dataBuilder_ = null; } local_ = null; if (localBuilder_ != null) { localBuilder_.dispose(); localBuilder_ = null; } remote_ = null; if (remoteBuilder_ != null) { remoteBuilder_.dispose(); remoteBuilder_ = null; } security_ = null; if (securityBuilder_ != null) { securityBuilder_.dispose(); securityBuilder_ = null; } remoteName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Socket_descriptor; } @java.lang.Override public io.grpc.channelz.v1.Socket getDefaultInstanceForType() { return io.grpc.channelz.v1.Socket.getDefaultInstance(); } @java.lang.Override public io.grpc.channelz.v1.Socket build() { io.grpc.channelz.v1.Socket result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.channelz.v1.Socket buildPartial() { io.grpc.channelz.v1.Socket result = new io.grpc.channelz.v1.Socket(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.grpc.channelz.v1.Socket result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.ref_ = refBuilder_ == null ? ref_ : refBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.data_ = dataBuilder_ == null ? data_ : dataBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.local_ = localBuilder_ == null ? local_ : localBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.remote_ = remoteBuilder_ == null ? remote_ : remoteBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.security_ = securityBuilder_ == null ? security_ : securityBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.remoteName_ = remoteName_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.grpc.channelz.v1.Socket) { return mergeFrom((io.grpc.channelz.v1.Socket)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.channelz.v1.Socket other) { if (other == io.grpc.channelz.v1.Socket.getDefaultInstance()) return this; if (other.hasRef()) { mergeRef(other.getRef()); } if (other.hasData()) { mergeData(other.getData()); } if (other.hasLocal()) { mergeLocal(other.getLocal()); } if (other.hasRemote()) { mergeRemote(other.getRemote()); } if (other.hasSecurity()) { mergeSecurity(other.getSecurity()); } if (!other.getRemoteName().isEmpty()) { remoteName_ = other.remoteName_; bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getRefFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getDataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getLocalFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getRemoteFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getSecurityFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { remoteName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private io.grpc.channelz.v1.SocketRef ref_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.SocketRef, io.grpc.channelz.v1.SocketRef.Builder, io.grpc.channelz.v1.SocketRefOrBuilder> refBuilder_; /** *
     * The identifier for the Socket.
     * 
* * .grpc.channelz.v1.SocketRef ref = 1; * @return Whether the ref field is set. */ public boolean hasRef() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The identifier for the Socket.
     * 
* * .grpc.channelz.v1.SocketRef ref = 1; * @return The ref. */ public io.grpc.channelz.v1.SocketRef getRef() { if (refBuilder_ == null) { return ref_ == null ? io.grpc.channelz.v1.SocketRef.getDefaultInstance() : ref_; } else { return refBuilder_.getMessage(); } } /** *
     * The identifier for the Socket.
     * 
* * .grpc.channelz.v1.SocketRef ref = 1; */ public Builder setRef(io.grpc.channelz.v1.SocketRef value) { if (refBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ref_ = value; } else { refBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The identifier for the Socket.
     * 
* * .grpc.channelz.v1.SocketRef ref = 1; */ public Builder setRef( io.grpc.channelz.v1.SocketRef.Builder builderForValue) { if (refBuilder_ == null) { ref_ = builderForValue.build(); } else { refBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The identifier for the Socket.
     * 
* * .grpc.channelz.v1.SocketRef ref = 1; */ public Builder mergeRef(io.grpc.channelz.v1.SocketRef value) { if (refBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && ref_ != null && ref_ != io.grpc.channelz.v1.SocketRef.getDefaultInstance()) { getRefBuilder().mergeFrom(value); } else { ref_ = value; } } else { refBuilder_.mergeFrom(value); } if (ref_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * The identifier for the Socket.
     * 
* * .grpc.channelz.v1.SocketRef ref = 1; */ public Builder clearRef() { bitField0_ = (bitField0_ & ~0x00000001); ref_ = null; if (refBuilder_ != null) { refBuilder_.dispose(); refBuilder_ = null; } onChanged(); return this; } /** *
     * The identifier for the Socket.
     * 
* * .grpc.channelz.v1.SocketRef ref = 1; */ public io.grpc.channelz.v1.SocketRef.Builder getRefBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRefFieldBuilder().getBuilder(); } /** *
     * The identifier for the Socket.
     * 
* * .grpc.channelz.v1.SocketRef ref = 1; */ public io.grpc.channelz.v1.SocketRefOrBuilder getRefOrBuilder() { if (refBuilder_ != null) { return refBuilder_.getMessageOrBuilder(); } else { return ref_ == null ? io.grpc.channelz.v1.SocketRef.getDefaultInstance() : ref_; } } /** *
     * The identifier for the Socket.
     * 
* * .grpc.channelz.v1.SocketRef ref = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.SocketRef, io.grpc.channelz.v1.SocketRef.Builder, io.grpc.channelz.v1.SocketRefOrBuilder> getRefFieldBuilder() { if (refBuilder_ == null) { refBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.SocketRef, io.grpc.channelz.v1.SocketRef.Builder, io.grpc.channelz.v1.SocketRefOrBuilder>( getRef(), getParentForChildren(), isClean()); ref_ = null; } return refBuilder_; } private io.grpc.channelz.v1.SocketData data_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.SocketData, io.grpc.channelz.v1.SocketData.Builder, io.grpc.channelz.v1.SocketDataOrBuilder> dataBuilder_; /** *
     * Data specific to this Socket.
     * 
* * .grpc.channelz.v1.SocketData data = 2; * @return Whether the data field is set. */ public boolean hasData() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Data specific to this Socket.
     * 
* * .grpc.channelz.v1.SocketData data = 2; * @return The data. */ public io.grpc.channelz.v1.SocketData getData() { if (dataBuilder_ == null) { return data_ == null ? io.grpc.channelz.v1.SocketData.getDefaultInstance() : data_; } else { return dataBuilder_.getMessage(); } } /** *
     * Data specific to this Socket.
     * 
* * .grpc.channelz.v1.SocketData data = 2; */ public Builder setData(io.grpc.channelz.v1.SocketData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; } else { dataBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Data specific to this Socket.
     * 
* * .grpc.channelz.v1.SocketData data = 2; */ public Builder setData( io.grpc.channelz.v1.SocketData.Builder builderForValue) { if (dataBuilder_ == null) { data_ = builderForValue.build(); } else { dataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Data specific to this Socket.
     * 
* * .grpc.channelz.v1.SocketData data = 2; */ public Builder mergeData(io.grpc.channelz.v1.SocketData value) { if (dataBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && data_ != null && data_ != io.grpc.channelz.v1.SocketData.getDefaultInstance()) { getDataBuilder().mergeFrom(value); } else { data_ = value; } } else { dataBuilder_.mergeFrom(value); } if (data_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * Data specific to this Socket.
     * 
* * .grpc.channelz.v1.SocketData data = 2; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000002); data_ = null; if (dataBuilder_ != null) { dataBuilder_.dispose(); dataBuilder_ = null; } onChanged(); return this; } /** *
     * Data specific to this Socket.
     * 
* * .grpc.channelz.v1.SocketData data = 2; */ public io.grpc.channelz.v1.SocketData.Builder getDataBuilder() { bitField0_ |= 0x00000002; onChanged(); return getDataFieldBuilder().getBuilder(); } /** *
     * Data specific to this Socket.
     * 
* * .grpc.channelz.v1.SocketData data = 2; */ public io.grpc.channelz.v1.SocketDataOrBuilder getDataOrBuilder() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilder(); } else { return data_ == null ? io.grpc.channelz.v1.SocketData.getDefaultInstance() : data_; } } /** *
     * Data specific to this Socket.
     * 
* * .grpc.channelz.v1.SocketData data = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.SocketData, io.grpc.channelz.v1.SocketData.Builder, io.grpc.channelz.v1.SocketDataOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.SocketData, io.grpc.channelz.v1.SocketData.Builder, io.grpc.channelz.v1.SocketDataOrBuilder>( getData(), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } private io.grpc.channelz.v1.Address local_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.Address, io.grpc.channelz.v1.Address.Builder, io.grpc.channelz.v1.AddressOrBuilder> localBuilder_; /** *
     * The locally bound address.
     * 
* * .grpc.channelz.v1.Address local = 3; * @return Whether the local field is set. */ public boolean hasLocal() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The locally bound address.
     * 
* * .grpc.channelz.v1.Address local = 3; * @return The local. */ public io.grpc.channelz.v1.Address getLocal() { if (localBuilder_ == null) { return local_ == null ? io.grpc.channelz.v1.Address.getDefaultInstance() : local_; } else { return localBuilder_.getMessage(); } } /** *
     * The locally bound address.
     * 
* * .grpc.channelz.v1.Address local = 3; */ public Builder setLocal(io.grpc.channelz.v1.Address value) { if (localBuilder_ == null) { if (value == null) { throw new NullPointerException(); } local_ = value; } else { localBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The locally bound address.
     * 
* * .grpc.channelz.v1.Address local = 3; */ public Builder setLocal( io.grpc.channelz.v1.Address.Builder builderForValue) { if (localBuilder_ == null) { local_ = builderForValue.build(); } else { localBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The locally bound address.
     * 
* * .grpc.channelz.v1.Address local = 3; */ public Builder mergeLocal(io.grpc.channelz.v1.Address value) { if (localBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && local_ != null && local_ != io.grpc.channelz.v1.Address.getDefaultInstance()) { getLocalBuilder().mergeFrom(value); } else { local_ = value; } } else { localBuilder_.mergeFrom(value); } if (local_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * The locally bound address.
     * 
* * .grpc.channelz.v1.Address local = 3; */ public Builder clearLocal() { bitField0_ = (bitField0_ & ~0x00000004); local_ = null; if (localBuilder_ != null) { localBuilder_.dispose(); localBuilder_ = null; } onChanged(); return this; } /** *
     * The locally bound address.
     * 
* * .grpc.channelz.v1.Address local = 3; */ public io.grpc.channelz.v1.Address.Builder getLocalBuilder() { bitField0_ |= 0x00000004; onChanged(); return getLocalFieldBuilder().getBuilder(); } /** *
     * The locally bound address.
     * 
* * .grpc.channelz.v1.Address local = 3; */ public io.grpc.channelz.v1.AddressOrBuilder getLocalOrBuilder() { if (localBuilder_ != null) { return localBuilder_.getMessageOrBuilder(); } else { return local_ == null ? io.grpc.channelz.v1.Address.getDefaultInstance() : local_; } } /** *
     * The locally bound address.
     * 
* * .grpc.channelz.v1.Address local = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.Address, io.grpc.channelz.v1.Address.Builder, io.grpc.channelz.v1.AddressOrBuilder> getLocalFieldBuilder() { if (localBuilder_ == null) { localBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.Address, io.grpc.channelz.v1.Address.Builder, io.grpc.channelz.v1.AddressOrBuilder>( getLocal(), getParentForChildren(), isClean()); local_ = null; } return localBuilder_; } private io.grpc.channelz.v1.Address remote_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.Address, io.grpc.channelz.v1.Address.Builder, io.grpc.channelz.v1.AddressOrBuilder> remoteBuilder_; /** *
     * The remote bound address.  May be absent.
     * 
* * .grpc.channelz.v1.Address remote = 4; * @return Whether the remote field is set. */ public boolean hasRemote() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * The remote bound address.  May be absent.
     * 
* * .grpc.channelz.v1.Address remote = 4; * @return The remote. */ public io.grpc.channelz.v1.Address getRemote() { if (remoteBuilder_ == null) { return remote_ == null ? io.grpc.channelz.v1.Address.getDefaultInstance() : remote_; } else { return remoteBuilder_.getMessage(); } } /** *
     * The remote bound address.  May be absent.
     * 
* * .grpc.channelz.v1.Address remote = 4; */ public Builder setRemote(io.grpc.channelz.v1.Address value) { if (remoteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } remote_ = value; } else { remoteBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The remote bound address.  May be absent.
     * 
* * .grpc.channelz.v1.Address remote = 4; */ public Builder setRemote( io.grpc.channelz.v1.Address.Builder builderForValue) { if (remoteBuilder_ == null) { remote_ = builderForValue.build(); } else { remoteBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The remote bound address.  May be absent.
     * 
* * .grpc.channelz.v1.Address remote = 4; */ public Builder mergeRemote(io.grpc.channelz.v1.Address value) { if (remoteBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && remote_ != null && remote_ != io.grpc.channelz.v1.Address.getDefaultInstance()) { getRemoteBuilder().mergeFrom(value); } else { remote_ = value; } } else { remoteBuilder_.mergeFrom(value); } if (remote_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * The remote bound address.  May be absent.
     * 
* * .grpc.channelz.v1.Address remote = 4; */ public Builder clearRemote() { bitField0_ = (bitField0_ & ~0x00000008); remote_ = null; if (remoteBuilder_ != null) { remoteBuilder_.dispose(); remoteBuilder_ = null; } onChanged(); return this; } /** *
     * The remote bound address.  May be absent.
     * 
* * .grpc.channelz.v1.Address remote = 4; */ public io.grpc.channelz.v1.Address.Builder getRemoteBuilder() { bitField0_ |= 0x00000008; onChanged(); return getRemoteFieldBuilder().getBuilder(); } /** *
     * The remote bound address.  May be absent.
     * 
* * .grpc.channelz.v1.Address remote = 4; */ public io.grpc.channelz.v1.AddressOrBuilder getRemoteOrBuilder() { if (remoteBuilder_ != null) { return remoteBuilder_.getMessageOrBuilder(); } else { return remote_ == null ? io.grpc.channelz.v1.Address.getDefaultInstance() : remote_; } } /** *
     * The remote bound address.  May be absent.
     * 
* * .grpc.channelz.v1.Address remote = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.Address, io.grpc.channelz.v1.Address.Builder, io.grpc.channelz.v1.AddressOrBuilder> getRemoteFieldBuilder() { if (remoteBuilder_ == null) { remoteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.Address, io.grpc.channelz.v1.Address.Builder, io.grpc.channelz.v1.AddressOrBuilder>( getRemote(), getParentForChildren(), isClean()); remote_ = null; } return remoteBuilder_; } private io.grpc.channelz.v1.Security security_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.Security, io.grpc.channelz.v1.Security.Builder, io.grpc.channelz.v1.SecurityOrBuilder> securityBuilder_; /** *
     * 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; * @return Whether the security field is set. */ public boolean hasSecurity() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * 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; * @return The security. */ public io.grpc.channelz.v1.Security getSecurity() { if (securityBuilder_ == null) { return security_ == null ? io.grpc.channelz.v1.Security.getDefaultInstance() : security_; } else { return securityBuilder_.getMessage(); } } /** *
     * 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; */ public Builder setSecurity(io.grpc.channelz.v1.Security value) { if (securityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } security_ = value; } else { securityBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * 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; */ public Builder setSecurity( io.grpc.channelz.v1.Security.Builder builderForValue) { if (securityBuilder_ == null) { security_ = builderForValue.build(); } else { securityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * 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; */ public Builder mergeSecurity(io.grpc.channelz.v1.Security value) { if (securityBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && security_ != null && security_ != io.grpc.channelz.v1.Security.getDefaultInstance()) { getSecurityBuilder().mergeFrom(value); } else { security_ = value; } } else { securityBuilder_.mergeFrom(value); } if (security_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
     * 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; */ public Builder clearSecurity() { bitField0_ = (bitField0_ & ~0x00000010); security_ = null; if (securityBuilder_ != null) { securityBuilder_.dispose(); securityBuilder_ = null; } onChanged(); return this; } /** *
     * 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; */ public io.grpc.channelz.v1.Security.Builder getSecurityBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSecurityFieldBuilder().getBuilder(); } /** *
     * 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; */ public io.grpc.channelz.v1.SecurityOrBuilder getSecurityOrBuilder() { if (securityBuilder_ != null) { return securityBuilder_.getMessageOrBuilder(); } else { return security_ == null ? io.grpc.channelz.v1.Security.getDefaultInstance() : security_; } } /** *
     * 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; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.Security, io.grpc.channelz.v1.Security.Builder, io.grpc.channelz.v1.SecurityOrBuilder> getSecurityFieldBuilder() { if (securityBuilder_ == null) { securityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.Security, io.grpc.channelz.v1.Security.Builder, io.grpc.channelz.v1.SecurityOrBuilder>( getSecurity(), getParentForChildren(), isClean()); security_ = null; } return securityBuilder_; } private java.lang.Object remoteName_ = ""; /** *
     * Optional, represents the name of the remote endpoint, if different than
     * the original target name.
     * 
* * string remote_name = 6; * @return The remoteName. */ public java.lang.String getRemoteName() { java.lang.Object ref = remoteName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); remoteName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Optional, represents the name of the remote endpoint, if different than
     * the original target name.
     * 
* * string remote_name = 6; * @return The bytes for remoteName. */ public com.google.protobuf.ByteString getRemoteNameBytes() { java.lang.Object ref = remoteName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); remoteName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Optional, represents the name of the remote endpoint, if different than
     * the original target name.
     * 
* * string remote_name = 6; * @param value The remoteName to set. * @return This builder for chaining. */ public Builder setRemoteName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } remoteName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Optional, represents the name of the remote endpoint, if different than
     * the original target name.
     * 
* * string remote_name = 6; * @return This builder for chaining. */ public Builder clearRemoteName() { remoteName_ = getDefaultInstance().getRemoteName(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     * Optional, represents the name of the remote endpoint, if different than
     * the original target name.
     * 
* * string remote_name = 6; * @param value The bytes for remoteName to set. * @return This builder for chaining. */ public Builder setRemoteNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); remoteName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:grpc.channelz.v1.Socket) } // @@protoc_insertion_point(class_scope:grpc.channelz.v1.Socket) private static final io.grpc.channelz.v1.Socket DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.channelz.v1.Socket(); } public static io.grpc.channelz.v1.Socket getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Socket parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.grpc.channelz.v1.Socket getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy