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

java.io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest Maven / Gradle / Ivy

There is a newer version: 0.36.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: deephaven/proto/console.proto

// Protobuf Java Version: 3.25.3
package io.deephaven.proto.backplane.script.grpc;

/**
 * Protobuf type {@code io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest}
 */
public final class CloseDocumentRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest)
    CloseDocumentRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CloseDocumentRequest.newBuilder() to construct.
  private CloseDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private CloseDocumentRequest() {
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new CloseDocumentRequest();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.deephaven.proto.backplane.script.grpc.Console.internal_static_io_deephaven_proto_backplane_script_grpc_CloseDocumentRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.deephaven.proto.backplane.script.grpc.Console.internal_static_io_deephaven_proto_backplane_script_grpc_CloseDocumentRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest.class, io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest.Builder.class);
  }

  private int bitField0_;
  public static final int CONSOLE_ID_FIELD_NUMBER = 1;
  private io.deephaven.proto.backplane.grpc.Ticket consoleId_;
  /**
   * .io.deephaven.proto.backplane.grpc.Ticket console_id = 1 [deprecated = true];
   * @deprecated io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest.console_id is deprecated.
   *     See deephaven/proto/console.proto;l=190
   * @return Whether the consoleId field is set.
   */
  @java.lang.Override
  @java.lang.Deprecated public boolean hasConsoleId() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .io.deephaven.proto.backplane.grpc.Ticket console_id = 1 [deprecated = true];
   * @deprecated io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest.console_id is deprecated.
   *     See deephaven/proto/console.proto;l=190
   * @return The consoleId.
   */
  @java.lang.Override
  @java.lang.Deprecated public io.deephaven.proto.backplane.grpc.Ticket getConsoleId() {
    return consoleId_ == null ? io.deephaven.proto.backplane.grpc.Ticket.getDefaultInstance() : consoleId_;
  }
  /**
   * .io.deephaven.proto.backplane.grpc.Ticket console_id = 1 [deprecated = true];
   */
  @java.lang.Override
  @java.lang.Deprecated public io.deephaven.proto.backplane.grpc.TicketOrBuilder getConsoleIdOrBuilder() {
    return consoleId_ == null ? io.deephaven.proto.backplane.grpc.Ticket.getDefaultInstance() : consoleId_;
  }

  public static final int TEXT_DOCUMENT_FIELD_NUMBER = 2;
  private io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier textDocument_;
  /**
   * .io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier text_document = 2;
   * @return Whether the textDocument field is set.
   */
  @java.lang.Override
  public boolean hasTextDocument() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * .io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier text_document = 2;
   * @return The textDocument.
   */
  @java.lang.Override
  public io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier getTextDocument() {
    return textDocument_ == null ? io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier.getDefaultInstance() : textDocument_;
  }
  /**
   * .io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier text_document = 2;
   */
  @java.lang.Override
  public io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifierOrBuilder getTextDocumentOrBuilder() {
    return textDocument_ == null ? io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier.getDefaultInstance() : textDocument_;
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(1, getConsoleId());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(2, getTextDocument());
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getConsoleId());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getTextDocument());
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest)) {
      return super.equals(obj);
    }
    io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest other = (io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest) obj;

    if (hasConsoleId() != other.hasConsoleId()) return false;
    if (hasConsoleId()) {
      if (!getConsoleId()
          .equals(other.getConsoleId())) return false;
    }
    if (hasTextDocument() != other.hasTextDocument()) return false;
    if (hasTextDocument()) {
      if (!getTextDocument()
          .equals(other.getTextDocument())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasConsoleId()) {
      hash = (37 * hash) + CONSOLE_ID_FIELD_NUMBER;
      hash = (53 * hash) + getConsoleId().hashCode();
    }
    if (hasTextDocument()) {
      hash = (37 * hash) + TEXT_DOCUMENT_FIELD_NUMBER;
      hash = (53 * hash) + getTextDocument().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest 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.deephaven.proto.backplane.script.grpc.CloseDocumentRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest 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.deephaven.proto.backplane.script.grpc.CloseDocumentRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest)
      io.deephaven.proto.backplane.script.grpc.CloseDocumentRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.deephaven.proto.backplane.script.grpc.Console.internal_static_io_deephaven_proto_backplane_script_grpc_CloseDocumentRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.deephaven.proto.backplane.script.grpc.Console.internal_static_io_deephaven_proto_backplane_script_grpc_CloseDocumentRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest.class, io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest.Builder.class);
    }

    // Construct using io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getConsoleIdFieldBuilder();
        getTextDocumentFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      consoleId_ = null;
      if (consoleIdBuilder_ != null) {
        consoleIdBuilder_.dispose();
        consoleIdBuilder_ = null;
      }
      textDocument_ = null;
      if (textDocumentBuilder_ != null) {
        textDocumentBuilder_.dispose();
        textDocumentBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.deephaven.proto.backplane.script.grpc.Console.internal_static_io_deephaven_proto_backplane_script_grpc_CloseDocumentRequest_descriptor;
    }

    @java.lang.Override
    public io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest getDefaultInstanceForType() {
      return io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest.getDefaultInstance();
    }

    @java.lang.Override
    public io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest build() {
      io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest buildPartial() {
      io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest result = new io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.consoleId_ = consoleIdBuilder_ == null
            ? consoleId_
            : consoleIdBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.textDocument_ = textDocumentBuilder_ == null
            ? textDocument_
            : textDocumentBuilder_.build();
        to_bitField0_ |= 0x00000002;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest) {
        return mergeFrom((io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest other) {
      if (other == io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest.getDefaultInstance()) return this;
      if (other.hasConsoleId()) {
        mergeConsoleId(other.getConsoleId());
      }
      if (other.hasTextDocument()) {
        mergeTextDocument(other.getTextDocument());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              input.readMessage(
                  getConsoleIdFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              input.readMessage(
                  getTextDocumentFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private io.deephaven.proto.backplane.grpc.Ticket consoleId_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.deephaven.proto.backplane.grpc.Ticket, io.deephaven.proto.backplane.grpc.Ticket.Builder, io.deephaven.proto.backplane.grpc.TicketOrBuilder> consoleIdBuilder_;
    /**
     * .io.deephaven.proto.backplane.grpc.Ticket console_id = 1 [deprecated = true];
     * @deprecated io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest.console_id is deprecated.
     *     See deephaven/proto/console.proto;l=190
     * @return Whether the consoleId field is set.
     */
    @java.lang.Deprecated public boolean hasConsoleId() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * .io.deephaven.proto.backplane.grpc.Ticket console_id = 1 [deprecated = true];
     * @deprecated io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest.console_id is deprecated.
     *     See deephaven/proto/console.proto;l=190
     * @return The consoleId.
     */
    @java.lang.Deprecated public io.deephaven.proto.backplane.grpc.Ticket getConsoleId() {
      if (consoleIdBuilder_ == null) {
        return consoleId_ == null ? io.deephaven.proto.backplane.grpc.Ticket.getDefaultInstance() : consoleId_;
      } else {
        return consoleIdBuilder_.getMessage();
      }
    }
    /**
     * .io.deephaven.proto.backplane.grpc.Ticket console_id = 1 [deprecated = true];
     */
    @java.lang.Deprecated public Builder setConsoleId(io.deephaven.proto.backplane.grpc.Ticket value) {
      if (consoleIdBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        consoleId_ = value;
      } else {
        consoleIdBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .io.deephaven.proto.backplane.grpc.Ticket console_id = 1 [deprecated = true];
     */
    @java.lang.Deprecated public Builder setConsoleId(
        io.deephaven.proto.backplane.grpc.Ticket.Builder builderForValue) {
      if (consoleIdBuilder_ == null) {
        consoleId_ = builderForValue.build();
      } else {
        consoleIdBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .io.deephaven.proto.backplane.grpc.Ticket console_id = 1 [deprecated = true];
     */
    @java.lang.Deprecated public Builder mergeConsoleId(io.deephaven.proto.backplane.grpc.Ticket value) {
      if (consoleIdBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
          consoleId_ != null &&
          consoleId_ != io.deephaven.proto.backplane.grpc.Ticket.getDefaultInstance()) {
          getConsoleIdBuilder().mergeFrom(value);
        } else {
          consoleId_ = value;
        }
      } else {
        consoleIdBuilder_.mergeFrom(value);
      }
      if (consoleId_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }
    /**
     * .io.deephaven.proto.backplane.grpc.Ticket console_id = 1 [deprecated = true];
     */
    @java.lang.Deprecated public Builder clearConsoleId() {
      bitField0_ = (bitField0_ & ~0x00000001);
      consoleId_ = null;
      if (consoleIdBuilder_ != null) {
        consoleIdBuilder_.dispose();
        consoleIdBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .io.deephaven.proto.backplane.grpc.Ticket console_id = 1 [deprecated = true];
     */
    @java.lang.Deprecated public io.deephaven.proto.backplane.grpc.Ticket.Builder getConsoleIdBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getConsoleIdFieldBuilder().getBuilder();
    }
    /**
     * .io.deephaven.proto.backplane.grpc.Ticket console_id = 1 [deprecated = true];
     */
    @java.lang.Deprecated public io.deephaven.proto.backplane.grpc.TicketOrBuilder getConsoleIdOrBuilder() {
      if (consoleIdBuilder_ != null) {
        return consoleIdBuilder_.getMessageOrBuilder();
      } else {
        return consoleId_ == null ?
            io.deephaven.proto.backplane.grpc.Ticket.getDefaultInstance() : consoleId_;
      }
    }
    /**
     * .io.deephaven.proto.backplane.grpc.Ticket console_id = 1 [deprecated = true];
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.deephaven.proto.backplane.grpc.Ticket, io.deephaven.proto.backplane.grpc.Ticket.Builder, io.deephaven.proto.backplane.grpc.TicketOrBuilder> 
        getConsoleIdFieldBuilder() {
      if (consoleIdBuilder_ == null) {
        consoleIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.deephaven.proto.backplane.grpc.Ticket, io.deephaven.proto.backplane.grpc.Ticket.Builder, io.deephaven.proto.backplane.grpc.TicketOrBuilder>(
                getConsoleId(),
                getParentForChildren(),
                isClean());
        consoleId_ = null;
      }
      return consoleIdBuilder_;
    }

    private io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier textDocument_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier, io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier.Builder, io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifierOrBuilder> textDocumentBuilder_;
    /**
     * .io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier text_document = 2;
     * @return Whether the textDocument field is set.
     */
    public boolean hasTextDocument() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * .io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier text_document = 2;
     * @return The textDocument.
     */
    public io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier getTextDocument() {
      if (textDocumentBuilder_ == null) {
        return textDocument_ == null ? io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier.getDefaultInstance() : textDocument_;
      } else {
        return textDocumentBuilder_.getMessage();
      }
    }
    /**
     * .io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier text_document = 2;
     */
    public Builder setTextDocument(io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier value) {
      if (textDocumentBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        textDocument_ = value;
      } else {
        textDocumentBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier text_document = 2;
     */
    public Builder setTextDocument(
        io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier.Builder builderForValue) {
      if (textDocumentBuilder_ == null) {
        textDocument_ = builderForValue.build();
      } else {
        textDocumentBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier text_document = 2;
     */
    public Builder mergeTextDocument(io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier value) {
      if (textDocumentBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0) &&
          textDocument_ != null &&
          textDocument_ != io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier.getDefaultInstance()) {
          getTextDocumentBuilder().mergeFrom(value);
        } else {
          textDocument_ = value;
        }
      } else {
        textDocumentBuilder_.mergeFrom(value);
      }
      if (textDocument_ != null) {
        bitField0_ |= 0x00000002;
        onChanged();
      }
      return this;
    }
    /**
     * .io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier text_document = 2;
     */
    public Builder clearTextDocument() {
      bitField0_ = (bitField0_ & ~0x00000002);
      textDocument_ = null;
      if (textDocumentBuilder_ != null) {
        textDocumentBuilder_.dispose();
        textDocumentBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier text_document = 2;
     */
    public io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier.Builder getTextDocumentBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getTextDocumentFieldBuilder().getBuilder();
    }
    /**
     * .io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier text_document = 2;
     */
    public io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifierOrBuilder getTextDocumentOrBuilder() {
      if (textDocumentBuilder_ != null) {
        return textDocumentBuilder_.getMessageOrBuilder();
      } else {
        return textDocument_ == null ?
            io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier.getDefaultInstance() : textDocument_;
      }
    }
    /**
     * .io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier text_document = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier, io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier.Builder, io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifierOrBuilder> 
        getTextDocumentFieldBuilder() {
      if (textDocumentBuilder_ == null) {
        textDocumentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier, io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifier.Builder, io.deephaven.proto.backplane.script.grpc.VersionedTextDocumentIdentifierOrBuilder>(
                getTextDocument(),
                getParentForChildren(),
                isClean());
        textDocument_ = null;
      }
      return textDocumentBuilder_;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest)
  }

  // @@protoc_insertion_point(class_scope:io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest)
  private static final io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest();
  }

  public static io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public CloseDocumentRequest parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

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

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

  @java.lang.Override
  public io.deephaven.proto.backplane.script.grpc.CloseDocumentRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy