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

package io.grpc.channelz.v1;

/**
 * <pre>
 * Information about an actual connection.  Pronounced "sock-ay".
 * </pre>
 *
 * 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
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Socket(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            io.grpc.channelz.v1.SocketRef.Builder subBuilder = null;
            if (ref_ != null) {
              subBuilder = ref_.toBuilder();
            }
            ref_ = input.readMessage(io.grpc.channelz.v1.SocketRef.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(ref_);
              ref_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            io.grpc.channelz.v1.SocketData.Builder subBuilder = null;
            if (data_ != null) {
              subBuilder = data_.toBuilder();
            }
            data_ = input.readMessage(io.grpc.channelz.v1.SocketData.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(data_);
              data_ = subBuilder.buildPartial();
            }

            break;
          }
          case 26: {
            io.grpc.channelz.v1.Address.Builder subBuilder = null;
            if (local_ != null) {
              subBuilder = local_.toBuilder();
            }
            local_ = input.readMessage(io.grpc.channelz.v1.Address.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(local_);
              local_ = subBuilder.buildPartial();
            }

            break;
          }
          case 34: {
            io.grpc.channelz.v1.Address.Builder subBuilder = null;
            if (remote_ != null) {
              subBuilder = remote_.toBuilder();
            }
            remote_ = input.readMessage(io.grpc.channelz.v1.Address.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(remote_);
              remote_ = subBuilder.buildPartial();
            }

            break;
          }
          case 42: {
            io.grpc.channelz.v1.Security.Builder subBuilder = null;
            if (security_ != null) {
              subBuilder = security_.toBuilder();
            }
            security_ = input.readMessage(io.grpc.channelz.v1.Security.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(security_);
              security_ = subBuilder.buildPartial();
            }

            break;
          }
          case 50: {
            java.lang.String s = input.readStringRequireUtf8();

            remoteName_ = s;
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Socket_descriptor;
  }

  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);
  }

  public static final int REF_FIELD_NUMBER = 1;
  private io.grpc.channelz.v1.SocketRef ref_;
  /**
   * <pre>
   * The identifier for the Socket.
   * </pre>
   *
   * <code>.grpc.channelz.v1.SocketRef ref = 1;</code>
   */
  public boolean hasRef() {
    return ref_ != null;
  }
  /**
   * <pre>
   * The identifier for the Socket.
   * </pre>
   *
   * <code>.grpc.channelz.v1.SocketRef ref = 1;</code>
   */
  public io.grpc.channelz.v1.SocketRef getRef() {
    return ref_ == null ? io.grpc.channelz.v1.SocketRef.getDefaultInstance() : ref_;
  }
  /**
   * <pre>
   * The identifier for the Socket.
   * </pre>
   *
   * <code>.grpc.channelz.v1.SocketRef ref = 1;</code>
   */
  public io.grpc.channelz.v1.SocketRefOrBuilder getRefOrBuilder() {
    return getRef();
  }

  public static final int DATA_FIELD_NUMBER = 2;
  private io.grpc.channelz.v1.SocketData data_;
  /**
   * <pre>
   * Data specific to this Socket.
   * </pre>
   *
   * <code>.grpc.channelz.v1.SocketData data = 2;</code>
   */
  public boolean hasData() {
    return data_ != null;
  }
  /**
   * <pre>
   * Data specific to this Socket.
   * </pre>
   *
   * <code>.grpc.channelz.v1.SocketData data = 2;</code>
   */
  public io.grpc.channelz.v1.SocketData getData() {
    return data_ == null ? io.grpc.channelz.v1.SocketData.getDefaultInstance() : data_;
  }
  /**
   * <pre>
   * Data specific to this Socket.
   * </pre>
   *
   * <code>.grpc.channelz.v1.SocketData data = 2;</code>
   */
  public io.grpc.channelz.v1.SocketDataOrBuilder getDataOrBuilder() {
    return getData();
  }

  public static final int LOCAL_FIELD_NUMBER = 3;
  private io.grpc.channelz.v1.Address local_;
  /**
   * <pre>
   * The locally bound address.
   * </pre>
   *
   * <code>.grpc.channelz.v1.Address local = 3;</code>
   */
  public boolean hasLocal() {
    return local_ != null;
  }
  /**
   * <pre>
   * The locally bound address.
   * </pre>
   *
   * <code>.grpc.channelz.v1.Address local = 3;</code>
   */
  public io.grpc.channelz.v1.Address getLocal() {
    return local_ == null ? io.grpc.channelz.v1.Address.getDefaultInstance() : local_;
  }
  /**
   * <pre>
   * The locally bound address.
   * </pre>
   *
   * <code>.grpc.channelz.v1.Address local = 3;</code>
   */
  public io.grpc.channelz.v1.AddressOrBuilder getLocalOrBuilder() {
    return getLocal();
  }

  public static final int REMOTE_FIELD_NUMBER = 4;
  private io.grpc.channelz.v1.Address remote_;
  /**
   * <pre>
   * The remote bound address.  May be absent.
   * </pre>
   *
   * <code>.grpc.channelz.v1.Address remote = 4;</code>
   */
  public boolean hasRemote() {
    return remote_ != null;
  }
  /**
   * <pre>
   * The remote bound address.  May be absent.
   * </pre>
   *
   * <code>.grpc.channelz.v1.Address remote = 4;</code>
   */
  public io.grpc.channelz.v1.Address getRemote() {
    return remote_ == null ? io.grpc.channelz.v1.Address.getDefaultInstance() : remote_;
  }
  /**
   * <pre>
   * The remote bound address.  May be absent.
   * </pre>
   *
   * <code>.grpc.channelz.v1.Address remote = 4;</code>
   */
  public io.grpc.channelz.v1.AddressOrBuilder getRemoteOrBuilder() {
    return getRemote();
  }

  public static final int SECURITY_FIELD_NUMBER = 5;
  private io.grpc.channelz.v1.Security security_;
  /**
   * <pre>
   * Security details for this socket.  May be absent if not available, or
   * there is no security on the socket.
   * </pre>
   *
   * <code>.grpc.channelz.v1.Security security = 5;</code>
   */
  public boolean hasSecurity() {
    return security_ != null;
  }
  /**
   * <pre>
   * Security details for this socket.  May be absent if not available, or
   * there is no security on the socket.
   * </pre>
   *
   * <code>.grpc.channelz.v1.Security security = 5;</code>
   */
  public io.grpc.channelz.v1.Security getSecurity() {
    return security_ == null ? io.grpc.channelz.v1.Security.getDefaultInstance() : security_;
  }
  /**
   * <pre>
   * Security details for this socket.  May be absent if not available, or
   * there is no security on the socket.
   * </pre>
   *
   * <code>.grpc.channelz.v1.Security security = 5;</code>
   */
  public io.grpc.channelz.v1.SecurityOrBuilder getSecurityOrBuilder() {
    return getSecurity();
  }

  public static final int REMOTE_NAME_FIELD_NUMBER = 6;
  private volatile java.lang.Object remoteName_;
  /**
   * <pre>
   * Optional, represents the name of the remote endpoint, if different than
   * the original target name.
   * </pre>
   *
   * <code>string remote_name = 6;</code>
   */
  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;
    }
  }
  /**
   * <pre>
   * Optional, represents the name of the remote endpoint, if different than
   * the original target name.
   * </pre>
   *
   * <code>string remote_name = 6;</code>
   */
  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;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (ref_ != null) {
      output.writeMessage(1, getRef());
    }
    if (data_ != null) {
      output.writeMessage(2, getData());
    }
    if (local_ != null) {
      output.writeMessage(3, getLocal());
    }
    if (remote_ != null) {
      output.writeMessage(4, getRemote());
    }
    if (security_ != null) {
      output.writeMessage(5, getSecurity());
    }
    if (!getRemoteNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, remoteName_);
    }
    unknownFields.writeTo(output);
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (ref_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getRef());
    }
    if (data_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getData());
    }
    if (local_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getLocal());
    }
    if (remote_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getRemote());
    }
    if (security_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, getSecurity());
    }
    if (!getRemoteNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, remoteName_);
    }
    size += unknownFields.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;

    boolean result = true;
    result = result && (hasRef() == other.hasRef());
    if (hasRef()) {
      result = result && getRef()
          .equals(other.getRef());
    }
    result = result && (hasData() == other.hasData());
    if (hasData()) {
      result = result && getData()
          .equals(other.getData());
    }
    result = result && (hasLocal() == other.hasLocal());
    if (hasLocal()) {
      result = result && getLocal()
          .equals(other.getLocal());
    }
    result = result && (hasRemote() == other.hasRemote());
    if (hasRemote()) {
      result = result && getRemote()
          .equals(other.getRemote());
    }
    result = result && (hasSecurity() == other.hasSecurity());
    if (hasSecurity()) {
      result = result && getSecurity()
          .equals(other.getSecurity());
    }
    result = result && getRemoteName()
        .equals(other.getRemoteName());
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @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) + unknownFields.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);
  }

  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);
  }
  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;
  }
  /**
   * <pre>
   * Information about an actual connection.  Pronounced "sock-ay".
   * </pre>
   *
   * Protobuf type {@code grpc.channelz.v1.Socket}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<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;
    }

    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) {
      }
    }
    public Builder clear() {
      super.clear();
      if (refBuilder_ == null) {
        ref_ = null;
      } else {
        ref_ = null;
        refBuilder_ = null;
      }
      if (dataBuilder_ == null) {
        data_ = null;
      } else {
        data_ = null;
        dataBuilder_ = null;
      }
      if (localBuilder_ == null) {
        local_ = null;
      } else {
        local_ = null;
        localBuilder_ = null;
      }
      if (remoteBuilder_ == null) {
        remote_ = null;
      } else {
        remote_ = null;
        remoteBuilder_ = null;
      }
      if (securityBuilder_ == null) {
        security_ = null;
      } else {
        security_ = null;
        securityBuilder_ = null;
      }
      remoteName_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Socket_descriptor;
    }

    public io.grpc.channelz.v1.Socket getDefaultInstanceForType() {
      return io.grpc.channelz.v1.Socket.getDefaultInstance();
    }

    public io.grpc.channelz.v1.Socket build() {
      io.grpc.channelz.v1.Socket result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public io.grpc.channelz.v1.Socket buildPartial() {
      io.grpc.channelz.v1.Socket result = new io.grpc.channelz.v1.Socket(this);
      if (refBuilder_ == null) {
        result.ref_ = ref_;
      } else {
        result.ref_ = refBuilder_.build();
      }
      if (dataBuilder_ == null) {
        result.data_ = data_;
      } else {
        result.data_ = dataBuilder_.build();
      }
      if (localBuilder_ == null) {
        result.local_ = local_;
      } else {
        result.local_ = localBuilder_.build();
      }
      if (remoteBuilder_ == null) {
        result.remote_ = remote_;
      } else {
        result.remote_ = remoteBuilder_.build();
      }
      if (securityBuilder_ == null) {
        result.security_ = security_;
      } else {
        result.security_ = securityBuilder_.build();
      }
      result.remoteName_ = remoteName_;
      onBuilt();
      return result;
    }

    public Builder clone() {
      return (Builder) super.clone();
    }
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.setField(field, value);
    }
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    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_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      io.grpc.channelz.v1.Socket parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grpc.channelz.v1.Socket) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private io.grpc.channelz.v1.SocketRef ref_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grpc.channelz.v1.SocketRef, io.grpc.channelz.v1.SocketRef.Builder, io.grpc.channelz.v1.SocketRefOrBuilder> refBuilder_;
    /**
     * <pre>
     * The identifier for the Socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.SocketRef ref = 1;</code>
     */
    public boolean hasRef() {
      return refBuilder_ != null || ref_ != null;
    }
    /**
     * <pre>
     * The identifier for the Socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.SocketRef ref = 1;</code>
     */
    public io.grpc.channelz.v1.SocketRef getRef() {
      if (refBuilder_ == null) {
        return ref_ == null ? io.grpc.channelz.v1.SocketRef.getDefaultInstance() : ref_;
      } else {
        return refBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * The identifier for the Socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.SocketRef ref = 1;</code>
     */
    public Builder setRef(io.grpc.channelz.v1.SocketRef value) {
      if (refBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ref_ = value;
        onChanged();
      } else {
        refBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * The identifier for the Socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.SocketRef ref = 1;</code>
     */
    public Builder setRef(
        io.grpc.channelz.v1.SocketRef.Builder builderForValue) {
      if (refBuilder_ == null) {
        ref_ = builderForValue.build();
        onChanged();
      } else {
        refBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * The identifier for the Socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.SocketRef ref = 1;</code>
     */
    public Builder mergeRef(io.grpc.channelz.v1.SocketRef value) {
      if (refBuilder_ == null) {
        if (ref_ != null) {
          ref_ =
            io.grpc.channelz.v1.SocketRef.newBuilder(ref_).mergeFrom(value).buildPartial();
        } else {
          ref_ = value;
        }
        onChanged();
      } else {
        refBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * The identifier for the Socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.SocketRef ref = 1;</code>
     */
    public Builder clearRef() {
      if (refBuilder_ == null) {
        ref_ = null;
        onChanged();
      } else {
        ref_ = null;
        refBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * The identifier for the Socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.SocketRef ref = 1;</code>
     */
    public io.grpc.channelz.v1.SocketRef.Builder getRefBuilder() {
      
      onChanged();
      return getRefFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * The identifier for the Socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.SocketRef ref = 1;</code>
     */
    public io.grpc.channelz.v1.SocketRefOrBuilder getRefOrBuilder() {
      if (refBuilder_ != null) {
        return refBuilder_.getMessageOrBuilder();
      } else {
        return ref_ == null ?
            io.grpc.channelz.v1.SocketRef.getDefaultInstance() : ref_;
      }
    }
    /**
     * <pre>
     * The identifier for the Socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.SocketRef ref = 1;</code>
     */
    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_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grpc.channelz.v1.SocketData, io.grpc.channelz.v1.SocketData.Builder, io.grpc.channelz.v1.SocketDataOrBuilder> dataBuilder_;
    /**
     * <pre>
     * Data specific to this Socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.SocketData data = 2;</code>
     */
    public boolean hasData() {
      return dataBuilder_ != null || data_ != null;
    }
    /**
     * <pre>
     * Data specific to this Socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.SocketData data = 2;</code>
     */
    public io.grpc.channelz.v1.SocketData getData() {
      if (dataBuilder_ == null) {
        return data_ == null ? io.grpc.channelz.v1.SocketData.getDefaultInstance() : data_;
      } else {
        return dataBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Data specific to this Socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.SocketData data = 2;</code>
     */
    public Builder setData(io.grpc.channelz.v1.SocketData value) {
      if (dataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        data_ = value;
        onChanged();
      } else {
        dataBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Data specific to this Socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.SocketData data = 2;</code>
     */
    public Builder setData(
        io.grpc.channelz.v1.SocketData.Builder builderForValue) {
      if (dataBuilder_ == null) {
        data_ = builderForValue.build();
        onChanged();
      } else {
        dataBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Data specific to this Socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.SocketData data = 2;</code>
     */
    public Builder mergeData(io.grpc.channelz.v1.SocketData value) {
      if (dataBuilder_ == null) {
        if (data_ != null) {
          data_ =
            io.grpc.channelz.v1.SocketData.newBuilder(data_).mergeFrom(value).buildPartial();
        } else {
          data_ = value;
        }
        onChanged();
      } else {
        dataBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Data specific to this Socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.SocketData data = 2;</code>
     */
    public Builder clearData() {
      if (dataBuilder_ == null) {
        data_ = null;
        onChanged();
      } else {
        data_ = null;
        dataBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Data specific to this Socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.SocketData data = 2;</code>
     */
    public io.grpc.channelz.v1.SocketData.Builder getDataBuilder() {
      
      onChanged();
      return getDataFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Data specific to this Socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.SocketData data = 2;</code>
     */
    public io.grpc.channelz.v1.SocketDataOrBuilder getDataOrBuilder() {
      if (dataBuilder_ != null) {
        return dataBuilder_.getMessageOrBuilder();
      } else {
        return data_ == null ?
            io.grpc.channelz.v1.SocketData.getDefaultInstance() : data_;
      }
    }
    /**
     * <pre>
     * Data specific to this Socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.SocketData data = 2;</code>
     */
    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_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grpc.channelz.v1.Address, io.grpc.channelz.v1.Address.Builder, io.grpc.channelz.v1.AddressOrBuilder> localBuilder_;
    /**
     * <pre>
     * The locally bound address.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Address local = 3;</code>
     */
    public boolean hasLocal() {
      return localBuilder_ != null || local_ != null;
    }
    /**
     * <pre>
     * The locally bound address.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Address local = 3;</code>
     */
    public io.grpc.channelz.v1.Address getLocal() {
      if (localBuilder_ == null) {
        return local_ == null ? io.grpc.channelz.v1.Address.getDefaultInstance() : local_;
      } else {
        return localBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * The locally bound address.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Address local = 3;</code>
     */
    public Builder setLocal(io.grpc.channelz.v1.Address value) {
      if (localBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        local_ = value;
        onChanged();
      } else {
        localBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * The locally bound address.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Address local = 3;</code>
     */
    public Builder setLocal(
        io.grpc.channelz.v1.Address.Builder builderForValue) {
      if (localBuilder_ == null) {
        local_ = builderForValue.build();
        onChanged();
      } else {
        localBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * The locally bound address.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Address local = 3;</code>
     */
    public Builder mergeLocal(io.grpc.channelz.v1.Address value) {
      if (localBuilder_ == null) {
        if (local_ != null) {
          local_ =
            io.grpc.channelz.v1.Address.newBuilder(local_).mergeFrom(value).buildPartial();
        } else {
          local_ = value;
        }
        onChanged();
      } else {
        localBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * The locally bound address.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Address local = 3;</code>
     */
    public Builder clearLocal() {
      if (localBuilder_ == null) {
        local_ = null;
        onChanged();
      } else {
        local_ = null;
        localBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * The locally bound address.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Address local = 3;</code>
     */
    public io.grpc.channelz.v1.Address.Builder getLocalBuilder() {
      
      onChanged();
      return getLocalFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * The locally bound address.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Address local = 3;</code>
     */
    public io.grpc.channelz.v1.AddressOrBuilder getLocalOrBuilder() {
      if (localBuilder_ != null) {
        return localBuilder_.getMessageOrBuilder();
      } else {
        return local_ == null ?
            io.grpc.channelz.v1.Address.getDefaultInstance() : local_;
      }
    }
    /**
     * <pre>
     * The locally bound address.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Address local = 3;</code>
     */
    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_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grpc.channelz.v1.Address, io.grpc.channelz.v1.Address.Builder, io.grpc.channelz.v1.AddressOrBuilder> remoteBuilder_;
    /**
     * <pre>
     * The remote bound address.  May be absent.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Address remote = 4;</code>
     */
    public boolean hasRemote() {
      return remoteBuilder_ != null || remote_ != null;
    }
    /**
     * <pre>
     * The remote bound address.  May be absent.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Address remote = 4;</code>
     */
    public io.grpc.channelz.v1.Address getRemote() {
      if (remoteBuilder_ == null) {
        return remote_ == null ? io.grpc.channelz.v1.Address.getDefaultInstance() : remote_;
      } else {
        return remoteBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * The remote bound address.  May be absent.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Address remote = 4;</code>
     */
    public Builder setRemote(io.grpc.channelz.v1.Address value) {
      if (remoteBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        remote_ = value;
        onChanged();
      } else {
        remoteBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * The remote bound address.  May be absent.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Address remote = 4;</code>
     */
    public Builder setRemote(
        io.grpc.channelz.v1.Address.Builder builderForValue) {
      if (remoteBuilder_ == null) {
        remote_ = builderForValue.build();
        onChanged();
      } else {
        remoteBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * The remote bound address.  May be absent.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Address remote = 4;</code>
     */
    public Builder mergeRemote(io.grpc.channelz.v1.Address value) {
      if (remoteBuilder_ == null) {
        if (remote_ != null) {
          remote_ =
            io.grpc.channelz.v1.Address.newBuilder(remote_).mergeFrom(value).buildPartial();
        } else {
          remote_ = value;
        }
        onChanged();
      } else {
        remoteBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * The remote bound address.  May be absent.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Address remote = 4;</code>
     */
    public Builder clearRemote() {
      if (remoteBuilder_ == null) {
        remote_ = null;
        onChanged();
      } else {
        remote_ = null;
        remoteBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * The remote bound address.  May be absent.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Address remote = 4;</code>
     */
    public io.grpc.channelz.v1.Address.Builder getRemoteBuilder() {
      
      onChanged();
      return getRemoteFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * The remote bound address.  May be absent.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Address remote = 4;</code>
     */
    public io.grpc.channelz.v1.AddressOrBuilder getRemoteOrBuilder() {
      if (remoteBuilder_ != null) {
        return remoteBuilder_.getMessageOrBuilder();
      } else {
        return remote_ == null ?
            io.grpc.channelz.v1.Address.getDefaultInstance() : remote_;
      }
    }
    /**
     * <pre>
     * The remote bound address.  May be absent.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Address remote = 4;</code>
     */
    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_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grpc.channelz.v1.Security, io.grpc.channelz.v1.Security.Builder, io.grpc.channelz.v1.SecurityOrBuilder> securityBuilder_;
    /**
     * <pre>
     * Security details for this socket.  May be absent if not available, or
     * there is no security on the socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Security security = 5;</code>
     */
    public boolean hasSecurity() {
      return securityBuilder_ != null || security_ != null;
    }
    /**
     * <pre>
     * Security details for this socket.  May be absent if not available, or
     * there is no security on the socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Security security = 5;</code>
     */
    public io.grpc.channelz.v1.Security getSecurity() {
      if (securityBuilder_ == null) {
        return security_ == null ? io.grpc.channelz.v1.Security.getDefaultInstance() : security_;
      } else {
        return securityBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Security details for this socket.  May be absent if not available, or
     * there is no security on the socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Security security = 5;</code>
     */
    public Builder setSecurity(io.grpc.channelz.v1.Security value) {
      if (securityBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        security_ = value;
        onChanged();
      } else {
        securityBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Security details for this socket.  May be absent if not available, or
     * there is no security on the socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Security security = 5;</code>
     */
    public Builder setSecurity(
        io.grpc.channelz.v1.Security.Builder builderForValue) {
      if (securityBuilder_ == null) {
        security_ = builderForValue.build();
        onChanged();
      } else {
        securityBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Security details for this socket.  May be absent if not available, or
     * there is no security on the socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Security security = 5;</code>
     */
    public Builder mergeSecurity(io.grpc.channelz.v1.Security value) {
      if (securityBuilder_ == null) {
        if (security_ != null) {
          security_ =
            io.grpc.channelz.v1.Security.newBuilder(security_).mergeFrom(value).buildPartial();
        } else {
          security_ = value;
        }
        onChanged();
      } else {
        securityBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Security details for this socket.  May be absent if not available, or
     * there is no security on the socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Security security = 5;</code>
     */
    public Builder clearSecurity() {
      if (securityBuilder_ == null) {
        security_ = null;
        onChanged();
      } else {
        security_ = null;
        securityBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Security details for this socket.  May be absent if not available, or
     * there is no security on the socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Security security = 5;</code>
     */
    public io.grpc.channelz.v1.Security.Builder getSecurityBuilder() {
      
      onChanged();
      return getSecurityFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Security details for this socket.  May be absent if not available, or
     * there is no security on the socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Security security = 5;</code>
     */
    public io.grpc.channelz.v1.SecurityOrBuilder getSecurityOrBuilder() {
      if (securityBuilder_ != null) {
        return securityBuilder_.getMessageOrBuilder();
      } else {
        return security_ == null ?
            io.grpc.channelz.v1.Security.getDefaultInstance() : security_;
      }
    }
    /**
     * <pre>
     * Security details for this socket.  May be absent if not available, or
     * there is no security on the socket.
     * </pre>
     *
     * <code>.grpc.channelz.v1.Security security = 5;</code>
     */
    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_ = "";
    /**
     * <pre>
     * Optional, represents the name of the remote endpoint, if different than
     * the original target name.
     * </pre>
     *
     * <code>string remote_name = 6;</code>
     */
    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;
      }
    }
    /**
     * <pre>
     * Optional, represents the name of the remote endpoint, if different than
     * the original target name.
     * </pre>
     *
     * <code>string remote_name = 6;</code>
     */
    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;
      }
    }
    /**
     * <pre>
     * Optional, represents the name of the remote endpoint, if different than
     * the original target name.
     * </pre>
     *
     * <code>string remote_name = 6;</code>
     */
    public Builder setRemoteName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      remoteName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Optional, represents the name of the remote endpoint, if different than
     * the original target name.
     * </pre>
     *
     * <code>string remote_name = 6;</code>
     */
    public Builder clearRemoteName() {
      
      remoteName_ = getDefaultInstance().getRemoteName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Optional, represents the name of the remote endpoint, if different than
     * the original target name.
     * </pre>
     *
     * <code>string remote_name = 6;</code>
     */
    public Builder setRemoteNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      remoteName_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

    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<Socket>
      PARSER = new com.google.protobuf.AbstractParser<Socket>() {
    public Socket parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new Socket(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser<Socket> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<Socket> getParserForType() {
    return PARSER;
  }

  public io.grpc.channelz.v1.Socket getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

