// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: io/grpc/reflection/v1alpha/reflection.proto

package io.grpc.reflection.v1alpha;

/**
 * <pre>
 * The message sent by the client when calling ServerReflectionInfo method.
 * </pre>
 *
 * Protobuf type {@code grpc.reflection.v1alpha.ServerReflectionRequest}
 */
public  final class ServerReflectionRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:grpc.reflection.v1alpha.ServerReflectionRequest)
    ServerReflectionRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ServerReflectionRequest.newBuilder() to construct.
  private ServerReflectionRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ServerReflectionRequest() {
    host_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ServerReflectionRequest(
      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: {
            java.lang.String s = input.readStringRequireUtf8();

            host_ = s;
            break;
          }
          case 26: {
            java.lang.String s = input.readStringRequireUtf8();
            messageRequestCase_ = 3;
            messageRequest_ = s;
            break;
          }
          case 34: {
            java.lang.String s = input.readStringRequireUtf8();
            messageRequestCase_ = 4;
            messageRequest_ = s;
            break;
          }
          case 42: {
            io.grpc.reflection.v1alpha.ExtensionRequest.Builder subBuilder = null;
            if (messageRequestCase_ == 5) {
              subBuilder = ((io.grpc.reflection.v1alpha.ExtensionRequest) messageRequest_).toBuilder();
            }
            messageRequest_ =
                input.readMessage(io.grpc.reflection.v1alpha.ExtensionRequest.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.grpc.reflection.v1alpha.ExtensionRequest) messageRequest_);
              messageRequest_ = subBuilder.buildPartial();
            }
            messageRequestCase_ = 5;
            break;
          }
          case 50: {
            java.lang.String s = input.readStringRequireUtf8();
            messageRequestCase_ = 6;
            messageRequest_ = s;
            break;
          }
          case 58: {
            java.lang.String s = input.readStringRequireUtf8();
            messageRequestCase_ = 7;
            messageRequest_ = 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.reflection.v1alpha.ServerReflectionProto.internal_static_grpc_reflection_v1alpha_ServerReflectionRequest_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grpc.reflection.v1alpha.ServerReflectionProto.internal_static_grpc_reflection_v1alpha_ServerReflectionRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grpc.reflection.v1alpha.ServerReflectionRequest.class, io.grpc.reflection.v1alpha.ServerReflectionRequest.Builder.class);
  }

  private int messageRequestCase_ = 0;
  private java.lang.Object messageRequest_;
  public enum MessageRequestCase
      implements com.google.protobuf.Internal.EnumLite {
    FILE_BY_FILENAME(3),
    FILE_CONTAINING_SYMBOL(4),
    FILE_CONTAINING_EXTENSION(5),
    ALL_EXTENSION_NUMBERS_OF_TYPE(6),
    LIST_SERVICES(7),
    MESSAGEREQUEST_NOT_SET(0);
    private final int value;
    private MessageRequestCase(int value) {
      this.value = value;
    }
    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static MessageRequestCase valueOf(int value) {
      return forNumber(value);
    }

    public static MessageRequestCase forNumber(int value) {
      switch (value) {
        case 3: return FILE_BY_FILENAME;
        case 4: return FILE_CONTAINING_SYMBOL;
        case 5: return FILE_CONTAINING_EXTENSION;
        case 6: return ALL_EXTENSION_NUMBERS_OF_TYPE;
        case 7: return LIST_SERVICES;
        case 0: return MESSAGEREQUEST_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public MessageRequestCase
  getMessageRequestCase() {
    return MessageRequestCase.forNumber(
        messageRequestCase_);
  }

  public static final int HOST_FIELD_NUMBER = 1;
  private volatile java.lang.Object host_;
  /**
   * <code>string host = 1;</code>
   */
  public java.lang.String getHost() {
    java.lang.Object ref = host_;
    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();
      host_ = s;
      return s;
    }
  }
  /**
   * <code>string host = 1;</code>
   */
  public com.google.protobuf.ByteString
      getHostBytes() {
    java.lang.Object ref = host_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      host_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FILE_BY_FILENAME_FIELD_NUMBER = 3;
  /**
   * <pre>
   * Find a proto file by the file name.
   * </pre>
   *
   * <code>string file_by_filename = 3;</code>
   */
  public java.lang.String getFileByFilename() {
    java.lang.Object ref = "";
    if (messageRequestCase_ == 3) {
      ref = messageRequest_;
    }
    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();
      if (messageRequestCase_ == 3) {
        messageRequest_ = s;
      }
      return s;
    }
  }
  /**
   * <pre>
   * Find a proto file by the file name.
   * </pre>
   *
   * <code>string file_by_filename = 3;</code>
   */
  public com.google.protobuf.ByteString
      getFileByFilenameBytes() {
    java.lang.Object ref = "";
    if (messageRequestCase_ == 3) {
      ref = messageRequest_;
    }
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      if (messageRequestCase_ == 3) {
        messageRequest_ = b;
      }
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FILE_CONTAINING_SYMBOL_FIELD_NUMBER = 4;
  /**
   * <pre>
   * Find the proto file that declares the given fully-qualified symbol name.
   * This field should be a fully-qualified symbol name
   * (e.g. &lt;package&gt;.&lt;service&gt;[.&lt;method&gt;] or &lt;package&gt;.&lt;type&gt;).
   * </pre>
   *
   * <code>string file_containing_symbol = 4;</code>
   */
  public java.lang.String getFileContainingSymbol() {
    java.lang.Object ref = "";
    if (messageRequestCase_ == 4) {
      ref = messageRequest_;
    }
    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();
      if (messageRequestCase_ == 4) {
        messageRequest_ = s;
      }
      return s;
    }
  }
  /**
   * <pre>
   * Find the proto file that declares the given fully-qualified symbol name.
   * This field should be a fully-qualified symbol name
   * (e.g. &lt;package&gt;.&lt;service&gt;[.&lt;method&gt;] or &lt;package&gt;.&lt;type&gt;).
   * </pre>
   *
   * <code>string file_containing_symbol = 4;</code>
   */
  public com.google.protobuf.ByteString
      getFileContainingSymbolBytes() {
    java.lang.Object ref = "";
    if (messageRequestCase_ == 4) {
      ref = messageRequest_;
    }
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      if (messageRequestCase_ == 4) {
        messageRequest_ = b;
      }
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FILE_CONTAINING_EXTENSION_FIELD_NUMBER = 5;
  /**
   * <pre>
   * Find the proto file which defines an extension extending the given
   * message type with the given field number.
   * </pre>
   *
   * <code>.grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;</code>
   */
  public boolean hasFileContainingExtension() {
    return messageRequestCase_ == 5;
  }
  /**
   * <pre>
   * Find the proto file which defines an extension extending the given
   * message type with the given field number.
   * </pre>
   *
   * <code>.grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;</code>
   */
  public io.grpc.reflection.v1alpha.ExtensionRequest getFileContainingExtension() {
    if (messageRequestCase_ == 5) {
       return (io.grpc.reflection.v1alpha.ExtensionRequest) messageRequest_;
    }
    return io.grpc.reflection.v1alpha.ExtensionRequest.getDefaultInstance();
  }
  /**
   * <pre>
   * Find the proto file which defines an extension extending the given
   * message type with the given field number.
   * </pre>
   *
   * <code>.grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;</code>
   */
  public io.grpc.reflection.v1alpha.ExtensionRequestOrBuilder getFileContainingExtensionOrBuilder() {
    if (messageRequestCase_ == 5) {
       return (io.grpc.reflection.v1alpha.ExtensionRequest) messageRequest_;
    }
    return io.grpc.reflection.v1alpha.ExtensionRequest.getDefaultInstance();
  }

  public static final int ALL_EXTENSION_NUMBERS_OF_TYPE_FIELD_NUMBER = 6;
  /**
   * <pre>
   * Finds the tag numbers used by all known extensions of extendee_type, and
   * appends them to ExtensionNumberResponse in an undefined order.
   * Its corresponding method is best-effort: it's not guaranteed that the
   * reflection service will implement this method, and it's not guaranteed
   * that this method will provide all extensions. Returns
   * StatusCode::UNIMPLEMENTED if it's not implemented.
   * This field should be a fully-qualified type name. The format is
   * &lt;package&gt;.&lt;type&gt;
   * </pre>
   *
   * <code>string all_extension_numbers_of_type = 6;</code>
   */
  public java.lang.String getAllExtensionNumbersOfType() {
    java.lang.Object ref = "";
    if (messageRequestCase_ == 6) {
      ref = messageRequest_;
    }
    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();
      if (messageRequestCase_ == 6) {
        messageRequest_ = s;
      }
      return s;
    }
  }
  /**
   * <pre>
   * Finds the tag numbers used by all known extensions of extendee_type, and
   * appends them to ExtensionNumberResponse in an undefined order.
   * Its corresponding method is best-effort: it's not guaranteed that the
   * reflection service will implement this method, and it's not guaranteed
   * that this method will provide all extensions. Returns
   * StatusCode::UNIMPLEMENTED if it's not implemented.
   * This field should be a fully-qualified type name. The format is
   * &lt;package&gt;.&lt;type&gt;
   * </pre>
   *
   * <code>string all_extension_numbers_of_type = 6;</code>
   */
  public com.google.protobuf.ByteString
      getAllExtensionNumbersOfTypeBytes() {
    java.lang.Object ref = "";
    if (messageRequestCase_ == 6) {
      ref = messageRequest_;
    }
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      if (messageRequestCase_ == 6) {
        messageRequest_ = b;
      }
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LIST_SERVICES_FIELD_NUMBER = 7;
  /**
   * <pre>
   * List the full names of registered services. The content will not be
   * checked.
   * </pre>
   *
   * <code>string list_services = 7;</code>
   */
  public java.lang.String getListServices() {
    java.lang.Object ref = "";
    if (messageRequestCase_ == 7) {
      ref = messageRequest_;
    }
    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();
      if (messageRequestCase_ == 7) {
        messageRequest_ = s;
      }
      return s;
    }
  }
  /**
   * <pre>
   * List the full names of registered services. The content will not be
   * checked.
   * </pre>
   *
   * <code>string list_services = 7;</code>
   */
  public com.google.protobuf.ByteString
      getListServicesBytes() {
    java.lang.Object ref = "";
    if (messageRequestCase_ == 7) {
      ref = messageRequest_;
    }
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      if (messageRequestCase_ == 7) {
        messageRequest_ = 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 (!getHostBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, host_);
    }
    if (messageRequestCase_ == 3) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, messageRequest_);
    }
    if (messageRequestCase_ == 4) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, messageRequest_);
    }
    if (messageRequestCase_ == 5) {
      output.writeMessage(5, (io.grpc.reflection.v1alpha.ExtensionRequest) messageRequest_);
    }
    if (messageRequestCase_ == 6) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, messageRequest_);
    }
    if (messageRequestCase_ == 7) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, messageRequest_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!getHostBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, host_);
    }
    if (messageRequestCase_ == 3) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, messageRequest_);
    }
    if (messageRequestCase_ == 4) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, messageRequest_);
    }
    if (messageRequestCase_ == 5) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, (io.grpc.reflection.v1alpha.ExtensionRequest) messageRequest_);
    }
    if (messageRequestCase_ == 6) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, messageRequest_);
    }
    if (messageRequestCase_ == 7) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, messageRequest_);
    }
    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.reflection.v1alpha.ServerReflectionRequest)) {
      return super.equals(obj);
    }
    io.grpc.reflection.v1alpha.ServerReflectionRequest other = (io.grpc.reflection.v1alpha.ServerReflectionRequest) obj;

    boolean result = true;
    result = result && getHost()
        .equals(other.getHost());
    result = result && getMessageRequestCase().equals(
        other.getMessageRequestCase());
    if (!result) return false;
    switch (messageRequestCase_) {
      case 3:
        result = result && getFileByFilename()
            .equals(other.getFileByFilename());
        break;
      case 4:
        result = result && getFileContainingSymbol()
            .equals(other.getFileContainingSymbol());
        break;
      case 5:
        result = result && getFileContainingExtension()
            .equals(other.getFileContainingExtension());
        break;
      case 6:
        result = result && getAllExtensionNumbersOfType()
            .equals(other.getAllExtensionNumbersOfType());
        break;
      case 7:
        result = result && getListServices()
            .equals(other.getListServices());
        break;
      case 0:
      default:
    }
    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();
    hash = (37 * hash) + HOST_FIELD_NUMBER;
    hash = (53 * hash) + getHost().hashCode();
    switch (messageRequestCase_) {
      case 3:
        hash = (37 * hash) + FILE_BY_FILENAME_FIELD_NUMBER;
        hash = (53 * hash) + getFileByFilename().hashCode();
        break;
      case 4:
        hash = (37 * hash) + FILE_CONTAINING_SYMBOL_FIELD_NUMBER;
        hash = (53 * hash) + getFileContainingSymbol().hashCode();
        break;
      case 5:
        hash = (37 * hash) + FILE_CONTAINING_EXTENSION_FIELD_NUMBER;
        hash = (53 * hash) + getFileContainingExtension().hashCode();
        break;
      case 6:
        hash = (37 * hash) + ALL_EXTENSION_NUMBERS_OF_TYPE_FIELD_NUMBER;
        hash = (53 * hash) + getAllExtensionNumbersOfType().hashCode();
        break;
      case 7:
        hash = (37 * hash) + LIST_SERVICES_FIELD_NUMBER;
        hash = (53 * hash) + getListServices().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.grpc.reflection.v1alpha.ServerReflectionRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grpc.reflection.v1alpha.ServerReflectionRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grpc.reflection.v1alpha.ServerReflectionRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grpc.reflection.v1alpha.ServerReflectionRequest 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.reflection.v1alpha.ServerReflectionRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grpc.reflection.v1alpha.ServerReflectionRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grpc.reflection.v1alpha.ServerReflectionRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grpc.reflection.v1alpha.ServerReflectionRequest 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.reflection.v1alpha.ServerReflectionRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.grpc.reflection.v1alpha.ServerReflectionRequest 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.reflection.v1alpha.ServerReflectionRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grpc.reflection.v1alpha.ServerReflectionRequest 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.reflection.v1alpha.ServerReflectionRequest 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>
   * The message sent by the client when calling ServerReflectionInfo method.
   * </pre>
   *
   * Protobuf type {@code grpc.reflection.v1alpha.ServerReflectionRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:grpc.reflection.v1alpha.ServerReflectionRequest)
      io.grpc.reflection.v1alpha.ServerReflectionRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grpc.reflection.v1alpha.ServerReflectionProto.internal_static_grpc_reflection_v1alpha_ServerReflectionRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grpc.reflection.v1alpha.ServerReflectionProto.internal_static_grpc_reflection_v1alpha_ServerReflectionRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grpc.reflection.v1alpha.ServerReflectionRequest.class, io.grpc.reflection.v1alpha.ServerReflectionRequest.Builder.class);
    }

    // Construct using io.grpc.reflection.v1alpha.ServerReflectionRequest.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();
      host_ = "";

      messageRequestCase_ = 0;
      messageRequest_ = null;
      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grpc.reflection.v1alpha.ServerReflectionProto.internal_static_grpc_reflection_v1alpha_ServerReflectionRequest_descriptor;
    }

    public io.grpc.reflection.v1alpha.ServerReflectionRequest getDefaultInstanceForType() {
      return io.grpc.reflection.v1alpha.ServerReflectionRequest.getDefaultInstance();
    }

    public io.grpc.reflection.v1alpha.ServerReflectionRequest build() {
      io.grpc.reflection.v1alpha.ServerReflectionRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public io.grpc.reflection.v1alpha.ServerReflectionRequest buildPartial() {
      io.grpc.reflection.v1alpha.ServerReflectionRequest result = new io.grpc.reflection.v1alpha.ServerReflectionRequest(this);
      result.host_ = host_;
      if (messageRequestCase_ == 3) {
        result.messageRequest_ = messageRequest_;
      }
      if (messageRequestCase_ == 4) {
        result.messageRequest_ = messageRequest_;
      }
      if (messageRequestCase_ == 5) {
        if (fileContainingExtensionBuilder_ == null) {
          result.messageRequest_ = messageRequest_;
        } else {
          result.messageRequest_ = fileContainingExtensionBuilder_.build();
        }
      }
      if (messageRequestCase_ == 6) {
        result.messageRequest_ = messageRequest_;
      }
      if (messageRequestCase_ == 7) {
        result.messageRequest_ = messageRequest_;
      }
      result.messageRequestCase_ = messageRequestCase_;
      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.reflection.v1alpha.ServerReflectionRequest) {
        return mergeFrom((io.grpc.reflection.v1alpha.ServerReflectionRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grpc.reflection.v1alpha.ServerReflectionRequest other) {
      if (other == io.grpc.reflection.v1alpha.ServerReflectionRequest.getDefaultInstance()) return this;
      if (!other.getHost().isEmpty()) {
        host_ = other.host_;
        onChanged();
      }
      switch (other.getMessageRequestCase()) {
        case FILE_BY_FILENAME: {
          messageRequestCase_ = 3;
          messageRequest_ = other.messageRequest_;
          onChanged();
          break;
        }
        case FILE_CONTAINING_SYMBOL: {
          messageRequestCase_ = 4;
          messageRequest_ = other.messageRequest_;
          onChanged();
          break;
        }
        case FILE_CONTAINING_EXTENSION: {
          mergeFileContainingExtension(other.getFileContainingExtension());
          break;
        }
        case ALL_EXTENSION_NUMBERS_OF_TYPE: {
          messageRequestCase_ = 6;
          messageRequest_ = other.messageRequest_;
          onChanged();
          break;
        }
        case LIST_SERVICES: {
          messageRequestCase_ = 7;
          messageRequest_ = other.messageRequest_;
          onChanged();
          break;
        }
        case MESSAGEREQUEST_NOT_SET: {
          break;
        }
      }
      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.reflection.v1alpha.ServerReflectionRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grpc.reflection.v1alpha.ServerReflectionRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int messageRequestCase_ = 0;
    private java.lang.Object messageRequest_;
    public MessageRequestCase
        getMessageRequestCase() {
      return MessageRequestCase.forNumber(
          messageRequestCase_);
    }

    public Builder clearMessageRequest() {
      messageRequestCase_ = 0;
      messageRequest_ = null;
      onChanged();
      return this;
    }


    private java.lang.Object host_ = "";
    /**
     * <code>string host = 1;</code>
     */
    public java.lang.String getHost() {
      java.lang.Object ref = host_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        host_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string host = 1;</code>
     */
    public com.google.protobuf.ByteString
        getHostBytes() {
      java.lang.Object ref = host_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        host_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string host = 1;</code>
     */
    public Builder setHost(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      host_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string host = 1;</code>
     */
    public Builder clearHost() {
      
      host_ = getDefaultInstance().getHost();
      onChanged();
      return this;
    }
    /**
     * <code>string host = 1;</code>
     */
    public Builder setHostBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      host_ = value;
      onChanged();
      return this;
    }

    /**
     * <pre>
     * Find a proto file by the file name.
     * </pre>
     *
     * <code>string file_by_filename = 3;</code>
     */
    public java.lang.String getFileByFilename() {
      java.lang.Object ref = "";
      if (messageRequestCase_ == 3) {
        ref = messageRequest_;
      }
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (messageRequestCase_ == 3) {
          messageRequest_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Find a proto file by the file name.
     * </pre>
     *
     * <code>string file_by_filename = 3;</code>
     */
    public com.google.protobuf.ByteString
        getFileByFilenameBytes() {
      java.lang.Object ref = "";
      if (messageRequestCase_ == 3) {
        ref = messageRequest_;
      }
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        if (messageRequestCase_ == 3) {
          messageRequest_ = b;
        }
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Find a proto file by the file name.
     * </pre>
     *
     * <code>string file_by_filename = 3;</code>
     */
    public Builder setFileByFilename(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  messageRequestCase_ = 3;
      messageRequest_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Find a proto file by the file name.
     * </pre>
     *
     * <code>string file_by_filename = 3;</code>
     */
    public Builder clearFileByFilename() {
      if (messageRequestCase_ == 3) {
        messageRequestCase_ = 0;
        messageRequest_ = null;
        onChanged();
      }
      return this;
    }
    /**
     * <pre>
     * Find a proto file by the file name.
     * </pre>
     *
     * <code>string file_by_filename = 3;</code>
     */
    public Builder setFileByFilenameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      messageRequestCase_ = 3;
      messageRequest_ = value;
      onChanged();
      return this;
    }

    /**
     * <pre>
     * Find the proto file that declares the given fully-qualified symbol name.
     * This field should be a fully-qualified symbol name
     * (e.g. &lt;package&gt;.&lt;service&gt;[.&lt;method&gt;] or &lt;package&gt;.&lt;type&gt;).
     * </pre>
     *
     * <code>string file_containing_symbol = 4;</code>
     */
    public java.lang.String getFileContainingSymbol() {
      java.lang.Object ref = "";
      if (messageRequestCase_ == 4) {
        ref = messageRequest_;
      }
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (messageRequestCase_ == 4) {
          messageRequest_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Find the proto file that declares the given fully-qualified symbol name.
     * This field should be a fully-qualified symbol name
     * (e.g. &lt;package&gt;.&lt;service&gt;[.&lt;method&gt;] or &lt;package&gt;.&lt;type&gt;).
     * </pre>
     *
     * <code>string file_containing_symbol = 4;</code>
     */
    public com.google.protobuf.ByteString
        getFileContainingSymbolBytes() {
      java.lang.Object ref = "";
      if (messageRequestCase_ == 4) {
        ref = messageRequest_;
      }
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        if (messageRequestCase_ == 4) {
          messageRequest_ = b;
        }
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Find the proto file that declares the given fully-qualified symbol name.
     * This field should be a fully-qualified symbol name
     * (e.g. &lt;package&gt;.&lt;service&gt;[.&lt;method&gt;] or &lt;package&gt;.&lt;type&gt;).
     * </pre>
     *
     * <code>string file_containing_symbol = 4;</code>
     */
    public Builder setFileContainingSymbol(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  messageRequestCase_ = 4;
      messageRequest_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Find the proto file that declares the given fully-qualified symbol name.
     * This field should be a fully-qualified symbol name
     * (e.g. &lt;package&gt;.&lt;service&gt;[.&lt;method&gt;] or &lt;package&gt;.&lt;type&gt;).
     * </pre>
     *
     * <code>string file_containing_symbol = 4;</code>
     */
    public Builder clearFileContainingSymbol() {
      if (messageRequestCase_ == 4) {
        messageRequestCase_ = 0;
        messageRequest_ = null;
        onChanged();
      }
      return this;
    }
    /**
     * <pre>
     * Find the proto file that declares the given fully-qualified symbol name.
     * This field should be a fully-qualified symbol name
     * (e.g. &lt;package&gt;.&lt;service&gt;[.&lt;method&gt;] or &lt;package&gt;.&lt;type&gt;).
     * </pre>
     *
     * <code>string file_containing_symbol = 4;</code>
     */
    public Builder setFileContainingSymbolBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      messageRequestCase_ = 4;
      messageRequest_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.grpc.reflection.v1alpha.ExtensionRequest, io.grpc.reflection.v1alpha.ExtensionRequest.Builder, io.grpc.reflection.v1alpha.ExtensionRequestOrBuilder> fileContainingExtensionBuilder_;
    /**
     * <pre>
     * Find the proto file which defines an extension extending the given
     * message type with the given field number.
     * </pre>
     *
     * <code>.grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;</code>
     */
    public boolean hasFileContainingExtension() {
      return messageRequestCase_ == 5;
    }
    /**
     * <pre>
     * Find the proto file which defines an extension extending the given
     * message type with the given field number.
     * </pre>
     *
     * <code>.grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;</code>
     */
    public io.grpc.reflection.v1alpha.ExtensionRequest getFileContainingExtension() {
      if (fileContainingExtensionBuilder_ == null) {
        if (messageRequestCase_ == 5) {
          return (io.grpc.reflection.v1alpha.ExtensionRequest) messageRequest_;
        }
        return io.grpc.reflection.v1alpha.ExtensionRequest.getDefaultInstance();
      } else {
        if (messageRequestCase_ == 5) {
          return fileContainingExtensionBuilder_.getMessage();
        }
        return io.grpc.reflection.v1alpha.ExtensionRequest.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Find the proto file which defines an extension extending the given
     * message type with the given field number.
     * </pre>
     *
     * <code>.grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;</code>
     */
    public Builder setFileContainingExtension(io.grpc.reflection.v1alpha.ExtensionRequest value) {
      if (fileContainingExtensionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        messageRequest_ = value;
        onChanged();
      } else {
        fileContainingExtensionBuilder_.setMessage(value);
      }
      messageRequestCase_ = 5;
      return this;
    }
    /**
     * <pre>
     * Find the proto file which defines an extension extending the given
     * message type with the given field number.
     * </pre>
     *
     * <code>.grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;</code>
     */
    public Builder setFileContainingExtension(
        io.grpc.reflection.v1alpha.ExtensionRequest.Builder builderForValue) {
      if (fileContainingExtensionBuilder_ == null) {
        messageRequest_ = builderForValue.build();
        onChanged();
      } else {
        fileContainingExtensionBuilder_.setMessage(builderForValue.build());
      }
      messageRequestCase_ = 5;
      return this;
    }
    /**
     * <pre>
     * Find the proto file which defines an extension extending the given
     * message type with the given field number.
     * </pre>
     *
     * <code>.grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;</code>
     */
    public Builder mergeFileContainingExtension(io.grpc.reflection.v1alpha.ExtensionRequest value) {
      if (fileContainingExtensionBuilder_ == null) {
        if (messageRequestCase_ == 5 &&
            messageRequest_ != io.grpc.reflection.v1alpha.ExtensionRequest.getDefaultInstance()) {
          messageRequest_ = io.grpc.reflection.v1alpha.ExtensionRequest.newBuilder((io.grpc.reflection.v1alpha.ExtensionRequest) messageRequest_)
              .mergeFrom(value).buildPartial();
        } else {
          messageRequest_ = value;
        }
        onChanged();
      } else {
        if (messageRequestCase_ == 5) {
          fileContainingExtensionBuilder_.mergeFrom(value);
        }
        fileContainingExtensionBuilder_.setMessage(value);
      }
      messageRequestCase_ = 5;
      return this;
    }
    /**
     * <pre>
     * Find the proto file which defines an extension extending the given
     * message type with the given field number.
     * </pre>
     *
     * <code>.grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;</code>
     */
    public Builder clearFileContainingExtension() {
      if (fileContainingExtensionBuilder_ == null) {
        if (messageRequestCase_ == 5) {
          messageRequestCase_ = 0;
          messageRequest_ = null;
          onChanged();
        }
      } else {
        if (messageRequestCase_ == 5) {
          messageRequestCase_ = 0;
          messageRequest_ = null;
        }
        fileContainingExtensionBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * Find the proto file which defines an extension extending the given
     * message type with the given field number.
     * </pre>
     *
     * <code>.grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;</code>
     */
    public io.grpc.reflection.v1alpha.ExtensionRequest.Builder getFileContainingExtensionBuilder() {
      return getFileContainingExtensionFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Find the proto file which defines an extension extending the given
     * message type with the given field number.
     * </pre>
     *
     * <code>.grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;</code>
     */
    public io.grpc.reflection.v1alpha.ExtensionRequestOrBuilder getFileContainingExtensionOrBuilder() {
      if ((messageRequestCase_ == 5) && (fileContainingExtensionBuilder_ != null)) {
        return fileContainingExtensionBuilder_.getMessageOrBuilder();
      } else {
        if (messageRequestCase_ == 5) {
          return (io.grpc.reflection.v1alpha.ExtensionRequest) messageRequest_;
        }
        return io.grpc.reflection.v1alpha.ExtensionRequest.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Find the proto file which defines an extension extending the given
     * message type with the given field number.
     * </pre>
     *
     * <code>.grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grpc.reflection.v1alpha.ExtensionRequest, io.grpc.reflection.v1alpha.ExtensionRequest.Builder, io.grpc.reflection.v1alpha.ExtensionRequestOrBuilder> 
        getFileContainingExtensionFieldBuilder() {
      if (fileContainingExtensionBuilder_ == null) {
        if (!(messageRequestCase_ == 5)) {
          messageRequest_ = io.grpc.reflection.v1alpha.ExtensionRequest.getDefaultInstance();
        }
        fileContainingExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grpc.reflection.v1alpha.ExtensionRequest, io.grpc.reflection.v1alpha.ExtensionRequest.Builder, io.grpc.reflection.v1alpha.ExtensionRequestOrBuilder>(
                (io.grpc.reflection.v1alpha.ExtensionRequest) messageRequest_,
                getParentForChildren(),
                isClean());
        messageRequest_ = null;
      }
      messageRequestCase_ = 5;
      onChanged();;
      return fileContainingExtensionBuilder_;
    }

    /**
     * <pre>
     * Finds the tag numbers used by all known extensions of extendee_type, and
     * appends them to ExtensionNumberResponse in an undefined order.
     * Its corresponding method is best-effort: it's not guaranteed that the
     * reflection service will implement this method, and it's not guaranteed
     * that this method will provide all extensions. Returns
     * StatusCode::UNIMPLEMENTED if it's not implemented.
     * This field should be a fully-qualified type name. The format is
     * &lt;package&gt;.&lt;type&gt;
     * </pre>
     *
     * <code>string all_extension_numbers_of_type = 6;</code>
     */
    public java.lang.String getAllExtensionNumbersOfType() {
      java.lang.Object ref = "";
      if (messageRequestCase_ == 6) {
        ref = messageRequest_;
      }
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (messageRequestCase_ == 6) {
          messageRequest_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Finds the tag numbers used by all known extensions of extendee_type, and
     * appends them to ExtensionNumberResponse in an undefined order.
     * Its corresponding method is best-effort: it's not guaranteed that the
     * reflection service will implement this method, and it's not guaranteed
     * that this method will provide all extensions. Returns
     * StatusCode::UNIMPLEMENTED if it's not implemented.
     * This field should be a fully-qualified type name. The format is
     * &lt;package&gt;.&lt;type&gt;
     * </pre>
     *
     * <code>string all_extension_numbers_of_type = 6;</code>
     */
    public com.google.protobuf.ByteString
        getAllExtensionNumbersOfTypeBytes() {
      java.lang.Object ref = "";
      if (messageRequestCase_ == 6) {
        ref = messageRequest_;
      }
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        if (messageRequestCase_ == 6) {
          messageRequest_ = b;
        }
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Finds the tag numbers used by all known extensions of extendee_type, and
     * appends them to ExtensionNumberResponse in an undefined order.
     * Its corresponding method is best-effort: it's not guaranteed that the
     * reflection service will implement this method, and it's not guaranteed
     * that this method will provide all extensions. Returns
     * StatusCode::UNIMPLEMENTED if it's not implemented.
     * This field should be a fully-qualified type name. The format is
     * &lt;package&gt;.&lt;type&gt;
     * </pre>
     *
     * <code>string all_extension_numbers_of_type = 6;</code>
     */
    public Builder setAllExtensionNumbersOfType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  messageRequestCase_ = 6;
      messageRequest_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Finds the tag numbers used by all known extensions of extendee_type, and
     * appends them to ExtensionNumberResponse in an undefined order.
     * Its corresponding method is best-effort: it's not guaranteed that the
     * reflection service will implement this method, and it's not guaranteed
     * that this method will provide all extensions. Returns
     * StatusCode::UNIMPLEMENTED if it's not implemented.
     * This field should be a fully-qualified type name. The format is
     * &lt;package&gt;.&lt;type&gt;
     * </pre>
     *
     * <code>string all_extension_numbers_of_type = 6;</code>
     */
    public Builder clearAllExtensionNumbersOfType() {
      if (messageRequestCase_ == 6) {
        messageRequestCase_ = 0;
        messageRequest_ = null;
        onChanged();
      }
      return this;
    }
    /**
     * <pre>
     * Finds the tag numbers used by all known extensions of extendee_type, and
     * appends them to ExtensionNumberResponse in an undefined order.
     * Its corresponding method is best-effort: it's not guaranteed that the
     * reflection service will implement this method, and it's not guaranteed
     * that this method will provide all extensions. Returns
     * StatusCode::UNIMPLEMENTED if it's not implemented.
     * This field should be a fully-qualified type name. The format is
     * &lt;package&gt;.&lt;type&gt;
     * </pre>
     *
     * <code>string all_extension_numbers_of_type = 6;</code>
     */
    public Builder setAllExtensionNumbersOfTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      messageRequestCase_ = 6;
      messageRequest_ = value;
      onChanged();
      return this;
    }

    /**
     * <pre>
     * List the full names of registered services. The content will not be
     * checked.
     * </pre>
     *
     * <code>string list_services = 7;</code>
     */
    public java.lang.String getListServices() {
      java.lang.Object ref = "";
      if (messageRequestCase_ == 7) {
        ref = messageRequest_;
      }
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (messageRequestCase_ == 7) {
          messageRequest_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * List the full names of registered services. The content will not be
     * checked.
     * </pre>
     *
     * <code>string list_services = 7;</code>
     */
    public com.google.protobuf.ByteString
        getListServicesBytes() {
      java.lang.Object ref = "";
      if (messageRequestCase_ == 7) {
        ref = messageRequest_;
      }
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        if (messageRequestCase_ == 7) {
          messageRequest_ = b;
        }
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * List the full names of registered services. The content will not be
     * checked.
     * </pre>
     *
     * <code>string list_services = 7;</code>
     */
    public Builder setListServices(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  messageRequestCase_ = 7;
      messageRequest_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * List the full names of registered services. The content will not be
     * checked.
     * </pre>
     *
     * <code>string list_services = 7;</code>
     */
    public Builder clearListServices() {
      if (messageRequestCase_ == 7) {
        messageRequestCase_ = 0;
        messageRequest_ = null;
        onChanged();
      }
      return this;
    }
    /**
     * <pre>
     * List the full names of registered services. The content will not be
     * checked.
     * </pre>
     *
     * <code>string list_services = 7;</code>
     */
    public Builder setListServicesBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      messageRequestCase_ = 7;
      messageRequest_ = 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.reflection.v1alpha.ServerReflectionRequest)
  }

  // @@protoc_insertion_point(class_scope:grpc.reflection.v1alpha.ServerReflectionRequest)
  private static final io.grpc.reflection.v1alpha.ServerReflectionRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.grpc.reflection.v1alpha.ServerReflectionRequest();
  }

  public static io.grpc.reflection.v1alpha.ServerReflectionRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<ServerReflectionRequest>
      PARSER = new com.google.protobuf.AbstractParser<ServerReflectionRequest>() {
    public ServerReflectionRequest parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new ServerReflectionRequest(input, extensionRegistry);
    }
  };

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

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

  public io.grpc.reflection.v1alpha.ServerReflectionRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

