java.io.deephaven.proto.backplane.script.grpc.CompletionItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-proto-backplane-grpc Show documentation
Show all versions of deephaven-proto-backplane-grpc Show documentation
The Deephaven proto-backplane-grpc
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: deephaven_core/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.CompletionItem}
*/
public final class CompletionItem extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.deephaven.proto.backplane.script.grpc.CompletionItem)
CompletionItemOrBuilder {
private static final long serialVersionUID = 0L;
// Use CompletionItem.newBuilder() to construct.
private CompletionItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CompletionItem() {
label_ = "";
detail_ = "";
sortText_ = "";
filterText_ = "";
additionalTextEdits_ = java.util.Collections.emptyList();
commitCharacters_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CompletionItem();
}
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_CompletionItem_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_CompletionItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.script.grpc.CompletionItem.class, io.deephaven.proto.backplane.script.grpc.CompletionItem.Builder.class);
}
private int bitField0_;
public static final int START_FIELD_NUMBER = 1;
private int start_ = 0;
/**
* int32 start = 1;
* @return The start.
*/
@java.lang.Override
public int getStart() {
return start_;
}
public static final int LENGTH_FIELD_NUMBER = 2;
private int length_ = 0;
/**
* int32 length = 2;
* @return The length.
*/
@java.lang.Override
public int getLength() {
return length_;
}
public static final int LABEL_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object label_ = "";
/**
* string label = 3;
* @return The label.
*/
@java.lang.Override
public java.lang.String getLabel() {
java.lang.Object ref = label_;
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();
label_ = s;
return s;
}
}
/**
* string label = 3;
* @return The bytes for label.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KIND_FIELD_NUMBER = 4;
private int kind_ = 0;
/**
* int32 kind = 4;
* @return The kind.
*/
@java.lang.Override
public int getKind() {
return kind_;
}
public static final int DETAIL_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object detail_ = "";
/**
* string detail = 5;
* @return The detail.
*/
@java.lang.Override
public java.lang.String getDetail() {
java.lang.Object ref = detail_;
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();
detail_ = s;
return s;
}
}
/**
* string detail = 5;
* @return The bytes for detail.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDetailBytes() {
java.lang.Object ref = detail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPRECATED_FIELD_NUMBER = 7;
private boolean deprecated_ = false;
/**
* bool deprecated = 7;
* @return The deprecated.
*/
@java.lang.Override
public boolean getDeprecated() {
return deprecated_;
}
public static final int PRESELECT_FIELD_NUMBER = 8;
private boolean preselect_ = false;
/**
* bool preselect = 8;
* @return The preselect.
*/
@java.lang.Override
public boolean getPreselect() {
return preselect_;
}
public static final int TEXT_EDIT_FIELD_NUMBER = 9;
private io.deephaven.proto.backplane.script.grpc.TextEdit textEdit_;
/**
* .io.deephaven.proto.backplane.script.grpc.TextEdit text_edit = 9;
* @return Whether the textEdit field is set.
*/
@java.lang.Override
public boolean hasTextEdit() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .io.deephaven.proto.backplane.script.grpc.TextEdit text_edit = 9;
* @return The textEdit.
*/
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.TextEdit getTextEdit() {
return textEdit_ == null ? io.deephaven.proto.backplane.script.grpc.TextEdit.getDefaultInstance() : textEdit_;
}
/**
* .io.deephaven.proto.backplane.script.grpc.TextEdit text_edit = 9;
*/
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.TextEditOrBuilder getTextEditOrBuilder() {
return textEdit_ == null ? io.deephaven.proto.backplane.script.grpc.TextEdit.getDefaultInstance() : textEdit_;
}
public static final int SORT_TEXT_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object sortText_ = "";
/**
* string sort_text = 10;
* @return The sortText.
*/
@java.lang.Override
public java.lang.String getSortText() {
java.lang.Object ref = sortText_;
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();
sortText_ = s;
return s;
}
}
/**
* string sort_text = 10;
* @return The bytes for sortText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSortTextBytes() {
java.lang.Object ref = sortText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sortText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FILTER_TEXT_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object filterText_ = "";
/**
* string filter_text = 11;
* @return The filterText.
*/
@java.lang.Override
public java.lang.String getFilterText() {
java.lang.Object ref = filterText_;
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();
filterText_ = s;
return s;
}
}
/**
* string filter_text = 11;
* @return The bytes for filterText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFilterTextBytes() {
java.lang.Object ref = filterText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filterText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INSERT_TEXT_FORMAT_FIELD_NUMBER = 12;
private int insertTextFormat_ = 0;
/**
* int32 insert_text_format = 12;
* @return The insertTextFormat.
*/
@java.lang.Override
public int getInsertTextFormat() {
return insertTextFormat_;
}
public static final int ADDITIONAL_TEXT_EDITS_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private java.util.List additionalTextEdits_;
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
@java.lang.Override
public java.util.List getAdditionalTextEditsList() {
return additionalTextEdits_;
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
@java.lang.Override
public java.util.List extends io.deephaven.proto.backplane.script.grpc.TextEditOrBuilder>
getAdditionalTextEditsOrBuilderList() {
return additionalTextEdits_;
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
@java.lang.Override
public int getAdditionalTextEditsCount() {
return additionalTextEdits_.size();
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.TextEdit getAdditionalTextEdits(int index) {
return additionalTextEdits_.get(index);
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.TextEditOrBuilder getAdditionalTextEditsOrBuilder(
int index) {
return additionalTextEdits_.get(index);
}
public static final int COMMIT_CHARACTERS_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList commitCharacters_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string commit_characters = 14;
* @return A list containing the commitCharacters.
*/
public com.google.protobuf.ProtocolStringList
getCommitCharactersList() {
return commitCharacters_;
}
/**
* repeated string commit_characters = 14;
* @return The count of commitCharacters.
*/
public int getCommitCharactersCount() {
return commitCharacters_.size();
}
/**
* repeated string commit_characters = 14;
* @param index The index of the element to return.
* @return The commitCharacters at the given index.
*/
public java.lang.String getCommitCharacters(int index) {
return commitCharacters_.get(index);
}
/**
* repeated string commit_characters = 14;
* @param index The index of the value to return.
* @return The bytes of the commitCharacters at the given index.
*/
public com.google.protobuf.ByteString
getCommitCharactersBytes(int index) {
return commitCharacters_.getByteString(index);
}
public static final int DOCUMENTATION_FIELD_NUMBER = 15;
private io.deephaven.proto.backplane.script.grpc.MarkupContent documentation_;
/**
* .io.deephaven.proto.backplane.script.grpc.MarkupContent documentation = 15;
* @return Whether the documentation field is set.
*/
@java.lang.Override
public boolean hasDocumentation() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .io.deephaven.proto.backplane.script.grpc.MarkupContent documentation = 15;
* @return The documentation.
*/
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.MarkupContent getDocumentation() {
return documentation_ == null ? io.deephaven.proto.backplane.script.grpc.MarkupContent.getDefaultInstance() : documentation_;
}
/**
* .io.deephaven.proto.backplane.script.grpc.MarkupContent documentation = 15;
*/
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.MarkupContentOrBuilder getDocumentationOrBuilder() {
return documentation_ == null ? io.deephaven.proto.backplane.script.grpc.MarkupContent.getDefaultInstance() : documentation_;
}
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 (start_ != 0) {
output.writeInt32(1, start_);
}
if (length_ != 0) {
output.writeInt32(2, length_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, label_);
}
if (kind_ != 0) {
output.writeInt32(4, kind_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, detail_);
}
if (deprecated_ != false) {
output.writeBool(7, deprecated_);
}
if (preselect_ != false) {
output.writeBool(8, preselect_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(9, getTextEdit());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sortText_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, sortText_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filterText_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, filterText_);
}
if (insertTextFormat_ != 0) {
output.writeInt32(12, insertTextFormat_);
}
for (int i = 0; i < additionalTextEdits_.size(); i++) {
output.writeMessage(13, additionalTextEdits_.get(i));
}
for (int i = 0; i < commitCharacters_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, commitCharacters_.getRaw(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(15, getDocumentation());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (start_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, start_);
}
if (length_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, length_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, label_);
}
if (kind_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, kind_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, detail_);
}
if (deprecated_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, deprecated_);
}
if (preselect_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, preselect_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getTextEdit());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sortText_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, sortText_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filterText_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, filterText_);
}
if (insertTextFormat_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(12, insertTextFormat_);
}
for (int i = 0; i < additionalTextEdits_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, additionalTextEdits_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < commitCharacters_.size(); i++) {
dataSize += computeStringSizeNoTag(commitCharacters_.getRaw(i));
}
size += dataSize;
size += 1 * getCommitCharactersList().size();
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getDocumentation());
}
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.CompletionItem)) {
return super.equals(obj);
}
io.deephaven.proto.backplane.script.grpc.CompletionItem other = (io.deephaven.proto.backplane.script.grpc.CompletionItem) obj;
if (getStart()
!= other.getStart()) return false;
if (getLength()
!= other.getLength()) return false;
if (!getLabel()
.equals(other.getLabel())) return false;
if (getKind()
!= other.getKind()) return false;
if (!getDetail()
.equals(other.getDetail())) return false;
if (getDeprecated()
!= other.getDeprecated()) return false;
if (getPreselect()
!= other.getPreselect()) return false;
if (hasTextEdit() != other.hasTextEdit()) return false;
if (hasTextEdit()) {
if (!getTextEdit()
.equals(other.getTextEdit())) return false;
}
if (!getSortText()
.equals(other.getSortText())) return false;
if (!getFilterText()
.equals(other.getFilterText())) return false;
if (getInsertTextFormat()
!= other.getInsertTextFormat()) return false;
if (!getAdditionalTextEditsList()
.equals(other.getAdditionalTextEditsList())) return false;
if (!getCommitCharactersList()
.equals(other.getCommitCharactersList())) return false;
if (hasDocumentation() != other.hasDocumentation()) return false;
if (hasDocumentation()) {
if (!getDocumentation()
.equals(other.getDocumentation())) 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();
hash = (37 * hash) + START_FIELD_NUMBER;
hash = (53 * hash) + getStart();
hash = (37 * hash) + LENGTH_FIELD_NUMBER;
hash = (53 * hash) + getLength();
hash = (37 * hash) + LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLabel().hashCode();
hash = (37 * hash) + KIND_FIELD_NUMBER;
hash = (53 * hash) + getKind();
hash = (37 * hash) + DETAIL_FIELD_NUMBER;
hash = (53 * hash) + getDetail().hashCode();
hash = (37 * hash) + DEPRECATED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDeprecated());
hash = (37 * hash) + PRESELECT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPreselect());
if (hasTextEdit()) {
hash = (37 * hash) + TEXT_EDIT_FIELD_NUMBER;
hash = (53 * hash) + getTextEdit().hashCode();
}
hash = (37 * hash) + SORT_TEXT_FIELD_NUMBER;
hash = (53 * hash) + getSortText().hashCode();
hash = (37 * hash) + FILTER_TEXT_FIELD_NUMBER;
hash = (53 * hash) + getFilterText().hashCode();
hash = (37 * hash) + INSERT_TEXT_FORMAT_FIELD_NUMBER;
hash = (53 * hash) + getInsertTextFormat();
if (getAdditionalTextEditsCount() > 0) {
hash = (37 * hash) + ADDITIONAL_TEXT_EDITS_FIELD_NUMBER;
hash = (53 * hash) + getAdditionalTextEditsList().hashCode();
}
if (getCommitCharactersCount() > 0) {
hash = (37 * hash) + COMMIT_CHARACTERS_FIELD_NUMBER;
hash = (53 * hash) + getCommitCharactersList().hashCode();
}
if (hasDocumentation()) {
hash = (37 * hash) + DOCUMENTATION_FIELD_NUMBER;
hash = (53 * hash) + getDocumentation().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.deephaven.proto.backplane.script.grpc.CompletionItem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.script.grpc.CompletionItem 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.CompletionItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.script.grpc.CompletionItem 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.CompletionItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.script.grpc.CompletionItem 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.CompletionItem 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.CompletionItem 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.CompletionItem 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.CompletionItem 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.CompletionItem 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.CompletionItem 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.CompletionItem 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.CompletionItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.deephaven.proto.backplane.script.grpc.CompletionItem)
io.deephaven.proto.backplane.script.grpc.CompletionItemOrBuilder {
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_CompletionItem_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_CompletionItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.script.grpc.CompletionItem.class, io.deephaven.proto.backplane.script.grpc.CompletionItem.Builder.class);
}
// Construct using io.deephaven.proto.backplane.script.grpc.CompletionItem.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTextEditFieldBuilder();
getAdditionalTextEditsFieldBuilder();
getDocumentationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
start_ = 0;
length_ = 0;
label_ = "";
kind_ = 0;
detail_ = "";
deprecated_ = false;
preselect_ = false;
textEdit_ = null;
if (textEditBuilder_ != null) {
textEditBuilder_.dispose();
textEditBuilder_ = null;
}
sortText_ = "";
filterText_ = "";
insertTextFormat_ = 0;
if (additionalTextEditsBuilder_ == null) {
additionalTextEdits_ = java.util.Collections.emptyList();
} else {
additionalTextEdits_ = null;
additionalTextEditsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
commitCharacters_ =
com.google.protobuf.LazyStringArrayList.emptyList();
documentation_ = null;
if (documentationBuilder_ != null) {
documentationBuilder_.dispose();
documentationBuilder_ = 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_CompletionItem_descriptor;
}
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.CompletionItem getDefaultInstanceForType() {
return io.deephaven.proto.backplane.script.grpc.CompletionItem.getDefaultInstance();
}
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.CompletionItem build() {
io.deephaven.proto.backplane.script.grpc.CompletionItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.CompletionItem buildPartial() {
io.deephaven.proto.backplane.script.grpc.CompletionItem result = new io.deephaven.proto.backplane.script.grpc.CompletionItem(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.deephaven.proto.backplane.script.grpc.CompletionItem result) {
if (additionalTextEditsBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0)) {
additionalTextEdits_ = java.util.Collections.unmodifiableList(additionalTextEdits_);
bitField0_ = (bitField0_ & ~0x00000800);
}
result.additionalTextEdits_ = additionalTextEdits_;
} else {
result.additionalTextEdits_ = additionalTextEditsBuilder_.build();
}
}
private void buildPartial0(io.deephaven.proto.backplane.script.grpc.CompletionItem result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.start_ = start_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.length_ = length_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.label_ = label_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.kind_ = kind_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.detail_ = detail_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.deprecated_ = deprecated_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.preselect_ = preselect_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000080) != 0)) {
result.textEdit_ = textEditBuilder_ == null
? textEdit_
: textEditBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.sortText_ = sortText_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.filterText_ = filterText_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.insertTextFormat_ = insertTextFormat_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
commitCharacters_.makeImmutable();
result.commitCharacters_ = commitCharacters_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.documentation_ = documentationBuilder_ == null
? documentation_
: documentationBuilder_.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.CompletionItem) {
return mergeFrom((io.deephaven.proto.backplane.script.grpc.CompletionItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.deephaven.proto.backplane.script.grpc.CompletionItem other) {
if (other == io.deephaven.proto.backplane.script.grpc.CompletionItem.getDefaultInstance()) return this;
if (other.getStart() != 0) {
setStart(other.getStart());
}
if (other.getLength() != 0) {
setLength(other.getLength());
}
if (!other.getLabel().isEmpty()) {
label_ = other.label_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.getKind() != 0) {
setKind(other.getKind());
}
if (!other.getDetail().isEmpty()) {
detail_ = other.detail_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.getDeprecated() != false) {
setDeprecated(other.getDeprecated());
}
if (other.getPreselect() != false) {
setPreselect(other.getPreselect());
}
if (other.hasTextEdit()) {
mergeTextEdit(other.getTextEdit());
}
if (!other.getSortText().isEmpty()) {
sortText_ = other.sortText_;
bitField0_ |= 0x00000100;
onChanged();
}
if (!other.getFilterText().isEmpty()) {
filterText_ = other.filterText_;
bitField0_ |= 0x00000200;
onChanged();
}
if (other.getInsertTextFormat() != 0) {
setInsertTextFormat(other.getInsertTextFormat());
}
if (additionalTextEditsBuilder_ == null) {
if (!other.additionalTextEdits_.isEmpty()) {
if (additionalTextEdits_.isEmpty()) {
additionalTextEdits_ = other.additionalTextEdits_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureAdditionalTextEditsIsMutable();
additionalTextEdits_.addAll(other.additionalTextEdits_);
}
onChanged();
}
} else {
if (!other.additionalTextEdits_.isEmpty()) {
if (additionalTextEditsBuilder_.isEmpty()) {
additionalTextEditsBuilder_.dispose();
additionalTextEditsBuilder_ = null;
additionalTextEdits_ = other.additionalTextEdits_;
bitField0_ = (bitField0_ & ~0x00000800);
additionalTextEditsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAdditionalTextEditsFieldBuilder() : null;
} else {
additionalTextEditsBuilder_.addAllMessages(other.additionalTextEdits_);
}
}
}
if (!other.commitCharacters_.isEmpty()) {
if (commitCharacters_.isEmpty()) {
commitCharacters_ = other.commitCharacters_;
bitField0_ |= 0x00001000;
} else {
ensureCommitCharactersIsMutable();
commitCharacters_.addAll(other.commitCharacters_);
}
onChanged();
}
if (other.hasDocumentation()) {
mergeDocumentation(other.getDocumentation());
}
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 8: {
start_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
length_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
label_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
kind_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
detail_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 56: {
deprecated_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 56
case 64: {
preselect_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 64
case 74: {
input.readMessage(
getTextEditFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 74
case 82: {
sortText_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 82
case 90: {
filterText_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 90
case 96: {
insertTextFormat_ = input.readInt32();
bitField0_ |= 0x00000400;
break;
} // case 96
case 106: {
io.deephaven.proto.backplane.script.grpc.TextEdit m =
input.readMessage(
io.deephaven.proto.backplane.script.grpc.TextEdit.parser(),
extensionRegistry);
if (additionalTextEditsBuilder_ == null) {
ensureAdditionalTextEditsIsMutable();
additionalTextEdits_.add(m);
} else {
additionalTextEditsBuilder_.addMessage(m);
}
break;
} // case 106
case 114: {
java.lang.String s = input.readStringRequireUtf8();
ensureCommitCharactersIsMutable();
commitCharacters_.add(s);
break;
} // case 114
case 122: {
input.readMessage(
getDocumentationFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00002000;
break;
} // case 122
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 int start_ ;
/**
* int32 start = 1;
* @return The start.
*/
@java.lang.Override
public int getStart() {
return start_;
}
/**
* int32 start = 1;
* @param value The start to set.
* @return This builder for chaining.
*/
public Builder setStart(int value) {
start_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int32 start = 1;
* @return This builder for chaining.
*/
public Builder clearStart() {
bitField0_ = (bitField0_ & ~0x00000001);
start_ = 0;
onChanged();
return this;
}
private int length_ ;
/**
* int32 length = 2;
* @return The length.
*/
@java.lang.Override
public int getLength() {
return length_;
}
/**
* int32 length = 2;
* @param value The length to set.
* @return This builder for chaining.
*/
public Builder setLength(int value) {
length_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int32 length = 2;
* @return This builder for chaining.
*/
public Builder clearLength() {
bitField0_ = (bitField0_ & ~0x00000002);
length_ = 0;
onChanged();
return this;
}
private java.lang.Object label_ = "";
/**
* string label = 3;
* @return The label.
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
label_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string label = 3;
* @return The bytes for label.
*/
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string label = 3;
* @param value The label to set.
* @return This builder for chaining.
*/
public Builder setLabel(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
label_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string label = 3;
* @return This builder for chaining.
*/
public Builder clearLabel() {
label_ = getDefaultInstance().getLabel();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string label = 3;
* @param value The bytes for label to set.
* @return This builder for chaining.
*/
public Builder setLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
label_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private int kind_ ;
/**
* int32 kind = 4;
* @return The kind.
*/
@java.lang.Override
public int getKind() {
return kind_;
}
/**
* int32 kind = 4;
* @param value The kind to set.
* @return This builder for chaining.
*/
public Builder setKind(int value) {
kind_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* int32 kind = 4;
* @return This builder for chaining.
*/
public Builder clearKind() {
bitField0_ = (bitField0_ & ~0x00000008);
kind_ = 0;
onChanged();
return this;
}
private java.lang.Object detail_ = "";
/**
* string detail = 5;
* @return The detail.
*/
public java.lang.String getDetail() {
java.lang.Object ref = detail_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
detail_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string detail = 5;
* @return The bytes for detail.
*/
public com.google.protobuf.ByteString
getDetailBytes() {
java.lang.Object ref = detail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string detail = 5;
* @param value The detail to set.
* @return This builder for chaining.
*/
public Builder setDetail(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
detail_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* string detail = 5;
* @return This builder for chaining.
*/
public Builder clearDetail() {
detail_ = getDefaultInstance().getDetail();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* string detail = 5;
* @param value The bytes for detail to set.
* @return This builder for chaining.
*/
public Builder setDetailBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
detail_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private boolean deprecated_ ;
/**
* bool deprecated = 7;
* @return The deprecated.
*/
@java.lang.Override
public boolean getDeprecated() {
return deprecated_;
}
/**
* bool deprecated = 7;
* @param value The deprecated to set.
* @return This builder for chaining.
*/
public Builder setDeprecated(boolean value) {
deprecated_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* bool deprecated = 7;
* @return This builder for chaining.
*/
public Builder clearDeprecated() {
bitField0_ = (bitField0_ & ~0x00000020);
deprecated_ = false;
onChanged();
return this;
}
private boolean preselect_ ;
/**
* bool preselect = 8;
* @return The preselect.
*/
@java.lang.Override
public boolean getPreselect() {
return preselect_;
}
/**
* bool preselect = 8;
* @param value The preselect to set.
* @return This builder for chaining.
*/
public Builder setPreselect(boolean value) {
preselect_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* bool preselect = 8;
* @return This builder for chaining.
*/
public Builder clearPreselect() {
bitField0_ = (bitField0_ & ~0x00000040);
preselect_ = false;
onChanged();
return this;
}
private io.deephaven.proto.backplane.script.grpc.TextEdit textEdit_;
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.script.grpc.TextEdit, io.deephaven.proto.backplane.script.grpc.TextEdit.Builder, io.deephaven.proto.backplane.script.grpc.TextEditOrBuilder> textEditBuilder_;
/**
* .io.deephaven.proto.backplane.script.grpc.TextEdit text_edit = 9;
* @return Whether the textEdit field is set.
*/
public boolean hasTextEdit() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* .io.deephaven.proto.backplane.script.grpc.TextEdit text_edit = 9;
* @return The textEdit.
*/
public io.deephaven.proto.backplane.script.grpc.TextEdit getTextEdit() {
if (textEditBuilder_ == null) {
return textEdit_ == null ? io.deephaven.proto.backplane.script.grpc.TextEdit.getDefaultInstance() : textEdit_;
} else {
return textEditBuilder_.getMessage();
}
}
/**
* .io.deephaven.proto.backplane.script.grpc.TextEdit text_edit = 9;
*/
public Builder setTextEdit(io.deephaven.proto.backplane.script.grpc.TextEdit value) {
if (textEditBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
textEdit_ = value;
} else {
textEditBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.script.grpc.TextEdit text_edit = 9;
*/
public Builder setTextEdit(
io.deephaven.proto.backplane.script.grpc.TextEdit.Builder builderForValue) {
if (textEditBuilder_ == null) {
textEdit_ = builderForValue.build();
} else {
textEditBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.script.grpc.TextEdit text_edit = 9;
*/
public Builder mergeTextEdit(io.deephaven.proto.backplane.script.grpc.TextEdit value) {
if (textEditBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
textEdit_ != null &&
textEdit_ != io.deephaven.proto.backplane.script.grpc.TextEdit.getDefaultInstance()) {
getTextEditBuilder().mergeFrom(value);
} else {
textEdit_ = value;
}
} else {
textEditBuilder_.mergeFrom(value);
}
if (textEdit_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
* .io.deephaven.proto.backplane.script.grpc.TextEdit text_edit = 9;
*/
public Builder clearTextEdit() {
bitField0_ = (bitField0_ & ~0x00000080);
textEdit_ = null;
if (textEditBuilder_ != null) {
textEditBuilder_.dispose();
textEditBuilder_ = null;
}
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.script.grpc.TextEdit text_edit = 9;
*/
public io.deephaven.proto.backplane.script.grpc.TextEdit.Builder getTextEditBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getTextEditFieldBuilder().getBuilder();
}
/**
* .io.deephaven.proto.backplane.script.grpc.TextEdit text_edit = 9;
*/
public io.deephaven.proto.backplane.script.grpc.TextEditOrBuilder getTextEditOrBuilder() {
if (textEditBuilder_ != null) {
return textEditBuilder_.getMessageOrBuilder();
} else {
return textEdit_ == null ?
io.deephaven.proto.backplane.script.grpc.TextEdit.getDefaultInstance() : textEdit_;
}
}
/**
* .io.deephaven.proto.backplane.script.grpc.TextEdit text_edit = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.script.grpc.TextEdit, io.deephaven.proto.backplane.script.grpc.TextEdit.Builder, io.deephaven.proto.backplane.script.grpc.TextEditOrBuilder>
getTextEditFieldBuilder() {
if (textEditBuilder_ == null) {
textEditBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.script.grpc.TextEdit, io.deephaven.proto.backplane.script.grpc.TextEdit.Builder, io.deephaven.proto.backplane.script.grpc.TextEditOrBuilder>(
getTextEdit(),
getParentForChildren(),
isClean());
textEdit_ = null;
}
return textEditBuilder_;
}
private java.lang.Object sortText_ = "";
/**
* string sort_text = 10;
* @return The sortText.
*/
public java.lang.String getSortText() {
java.lang.Object ref = sortText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sortText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string sort_text = 10;
* @return The bytes for sortText.
*/
public com.google.protobuf.ByteString
getSortTextBytes() {
java.lang.Object ref = sortText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sortText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string sort_text = 10;
* @param value The sortText to set.
* @return This builder for chaining.
*/
public Builder setSortText(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sortText_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* string sort_text = 10;
* @return This builder for chaining.
*/
public Builder clearSortText() {
sortText_ = getDefaultInstance().getSortText();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
* string sort_text = 10;
* @param value The bytes for sortText to set.
* @return This builder for chaining.
*/
public Builder setSortTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sortText_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private java.lang.Object filterText_ = "";
/**
* string filter_text = 11;
* @return The filterText.
*/
public java.lang.String getFilterText() {
java.lang.Object ref = filterText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filterText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string filter_text = 11;
* @return The bytes for filterText.
*/
public com.google.protobuf.ByteString
getFilterTextBytes() {
java.lang.Object ref = filterText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filterText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string filter_text = 11;
* @param value The filterText to set.
* @return This builder for chaining.
*/
public Builder setFilterText(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
filterText_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* string filter_text = 11;
* @return This builder for chaining.
*/
public Builder clearFilterText() {
filterText_ = getDefaultInstance().getFilterText();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
* string filter_text = 11;
* @param value The bytes for filterText to set.
* @return This builder for chaining.
*/
public Builder setFilterTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
filterText_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private int insertTextFormat_ ;
/**
* int32 insert_text_format = 12;
* @return The insertTextFormat.
*/
@java.lang.Override
public int getInsertTextFormat() {
return insertTextFormat_;
}
/**
* int32 insert_text_format = 12;
* @param value The insertTextFormat to set.
* @return This builder for chaining.
*/
public Builder setInsertTextFormat(int value) {
insertTextFormat_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* int32 insert_text_format = 12;
* @return This builder for chaining.
*/
public Builder clearInsertTextFormat() {
bitField0_ = (bitField0_ & ~0x00000400);
insertTextFormat_ = 0;
onChanged();
return this;
}
private java.util.List additionalTextEdits_ =
java.util.Collections.emptyList();
private void ensureAdditionalTextEditsIsMutable() {
if (!((bitField0_ & 0x00000800) != 0)) {
additionalTextEdits_ = new java.util.ArrayList(additionalTextEdits_);
bitField0_ |= 0x00000800;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.deephaven.proto.backplane.script.grpc.TextEdit, io.deephaven.proto.backplane.script.grpc.TextEdit.Builder, io.deephaven.proto.backplane.script.grpc.TextEditOrBuilder> additionalTextEditsBuilder_;
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
public java.util.List getAdditionalTextEditsList() {
if (additionalTextEditsBuilder_ == null) {
return java.util.Collections.unmodifiableList(additionalTextEdits_);
} else {
return additionalTextEditsBuilder_.getMessageList();
}
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
public int getAdditionalTextEditsCount() {
if (additionalTextEditsBuilder_ == null) {
return additionalTextEdits_.size();
} else {
return additionalTextEditsBuilder_.getCount();
}
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
public io.deephaven.proto.backplane.script.grpc.TextEdit getAdditionalTextEdits(int index) {
if (additionalTextEditsBuilder_ == null) {
return additionalTextEdits_.get(index);
} else {
return additionalTextEditsBuilder_.getMessage(index);
}
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
public Builder setAdditionalTextEdits(
int index, io.deephaven.proto.backplane.script.grpc.TextEdit value) {
if (additionalTextEditsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalTextEditsIsMutable();
additionalTextEdits_.set(index, value);
onChanged();
} else {
additionalTextEditsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
public Builder setAdditionalTextEdits(
int index, io.deephaven.proto.backplane.script.grpc.TextEdit.Builder builderForValue) {
if (additionalTextEditsBuilder_ == null) {
ensureAdditionalTextEditsIsMutable();
additionalTextEdits_.set(index, builderForValue.build());
onChanged();
} else {
additionalTextEditsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
public Builder addAdditionalTextEdits(io.deephaven.proto.backplane.script.grpc.TextEdit value) {
if (additionalTextEditsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalTextEditsIsMutable();
additionalTextEdits_.add(value);
onChanged();
} else {
additionalTextEditsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
public Builder addAdditionalTextEdits(
int index, io.deephaven.proto.backplane.script.grpc.TextEdit value) {
if (additionalTextEditsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalTextEditsIsMutable();
additionalTextEdits_.add(index, value);
onChanged();
} else {
additionalTextEditsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
public Builder addAdditionalTextEdits(
io.deephaven.proto.backplane.script.grpc.TextEdit.Builder builderForValue) {
if (additionalTextEditsBuilder_ == null) {
ensureAdditionalTextEditsIsMutable();
additionalTextEdits_.add(builderForValue.build());
onChanged();
} else {
additionalTextEditsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
public Builder addAdditionalTextEdits(
int index, io.deephaven.proto.backplane.script.grpc.TextEdit.Builder builderForValue) {
if (additionalTextEditsBuilder_ == null) {
ensureAdditionalTextEditsIsMutable();
additionalTextEdits_.add(index, builderForValue.build());
onChanged();
} else {
additionalTextEditsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
public Builder addAllAdditionalTextEdits(
java.lang.Iterable extends io.deephaven.proto.backplane.script.grpc.TextEdit> values) {
if (additionalTextEditsBuilder_ == null) {
ensureAdditionalTextEditsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, additionalTextEdits_);
onChanged();
} else {
additionalTextEditsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
public Builder clearAdditionalTextEdits() {
if (additionalTextEditsBuilder_ == null) {
additionalTextEdits_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
} else {
additionalTextEditsBuilder_.clear();
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
public Builder removeAdditionalTextEdits(int index) {
if (additionalTextEditsBuilder_ == null) {
ensureAdditionalTextEditsIsMutable();
additionalTextEdits_.remove(index);
onChanged();
} else {
additionalTextEditsBuilder_.remove(index);
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
public io.deephaven.proto.backplane.script.grpc.TextEdit.Builder getAdditionalTextEditsBuilder(
int index) {
return getAdditionalTextEditsFieldBuilder().getBuilder(index);
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
public io.deephaven.proto.backplane.script.grpc.TextEditOrBuilder getAdditionalTextEditsOrBuilder(
int index) {
if (additionalTextEditsBuilder_ == null) {
return additionalTextEdits_.get(index); } else {
return additionalTextEditsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
public java.util.List extends io.deephaven.proto.backplane.script.grpc.TextEditOrBuilder>
getAdditionalTextEditsOrBuilderList() {
if (additionalTextEditsBuilder_ != null) {
return additionalTextEditsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(additionalTextEdits_);
}
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
public io.deephaven.proto.backplane.script.grpc.TextEdit.Builder addAdditionalTextEditsBuilder() {
return getAdditionalTextEditsFieldBuilder().addBuilder(
io.deephaven.proto.backplane.script.grpc.TextEdit.getDefaultInstance());
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
public io.deephaven.proto.backplane.script.grpc.TextEdit.Builder addAdditionalTextEditsBuilder(
int index) {
return getAdditionalTextEditsFieldBuilder().addBuilder(
index, io.deephaven.proto.backplane.script.grpc.TextEdit.getDefaultInstance());
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.TextEdit additional_text_edits = 13;
*/
public java.util.List
getAdditionalTextEditsBuilderList() {
return getAdditionalTextEditsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.deephaven.proto.backplane.script.grpc.TextEdit, io.deephaven.proto.backplane.script.grpc.TextEdit.Builder, io.deephaven.proto.backplane.script.grpc.TextEditOrBuilder>
getAdditionalTextEditsFieldBuilder() {
if (additionalTextEditsBuilder_ == null) {
additionalTextEditsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.deephaven.proto.backplane.script.grpc.TextEdit, io.deephaven.proto.backplane.script.grpc.TextEdit.Builder, io.deephaven.proto.backplane.script.grpc.TextEditOrBuilder>(
additionalTextEdits_,
((bitField0_ & 0x00000800) != 0),
getParentForChildren(),
isClean());
additionalTextEdits_ = null;
}
return additionalTextEditsBuilder_;
}
private com.google.protobuf.LazyStringArrayList commitCharacters_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureCommitCharactersIsMutable() {
if (!commitCharacters_.isModifiable()) {
commitCharacters_ = new com.google.protobuf.LazyStringArrayList(commitCharacters_);
}
bitField0_ |= 0x00001000;
}
/**
* repeated string commit_characters = 14;
* @return A list containing the commitCharacters.
*/
public com.google.protobuf.ProtocolStringList
getCommitCharactersList() {
commitCharacters_.makeImmutable();
return commitCharacters_;
}
/**
* repeated string commit_characters = 14;
* @return The count of commitCharacters.
*/
public int getCommitCharactersCount() {
return commitCharacters_.size();
}
/**
* repeated string commit_characters = 14;
* @param index The index of the element to return.
* @return The commitCharacters at the given index.
*/
public java.lang.String getCommitCharacters(int index) {
return commitCharacters_.get(index);
}
/**
* repeated string commit_characters = 14;
* @param index The index of the value to return.
* @return The bytes of the commitCharacters at the given index.
*/
public com.google.protobuf.ByteString
getCommitCharactersBytes(int index) {
return commitCharacters_.getByteString(index);
}
/**
* repeated string commit_characters = 14;
* @param index The index to set the value at.
* @param value The commitCharacters to set.
* @return This builder for chaining.
*/
public Builder setCommitCharacters(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCommitCharactersIsMutable();
commitCharacters_.set(index, value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* repeated string commit_characters = 14;
* @param value The commitCharacters to add.
* @return This builder for chaining.
*/
public Builder addCommitCharacters(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCommitCharactersIsMutable();
commitCharacters_.add(value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* repeated string commit_characters = 14;
* @param values The commitCharacters to add.
* @return This builder for chaining.
*/
public Builder addAllCommitCharacters(
java.lang.Iterable values) {
ensureCommitCharactersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, commitCharacters_);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* repeated string commit_characters = 14;
* @return This builder for chaining.
*/
public Builder clearCommitCharacters() {
commitCharacters_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);;
onChanged();
return this;
}
/**
* repeated string commit_characters = 14;
* @param value The bytes of the commitCharacters to add.
* @return This builder for chaining.
*/
public Builder addCommitCharactersBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureCommitCharactersIsMutable();
commitCharacters_.add(value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
private io.deephaven.proto.backplane.script.grpc.MarkupContent documentation_;
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.script.grpc.MarkupContent, io.deephaven.proto.backplane.script.grpc.MarkupContent.Builder, io.deephaven.proto.backplane.script.grpc.MarkupContentOrBuilder> documentationBuilder_;
/**
* .io.deephaven.proto.backplane.script.grpc.MarkupContent documentation = 15;
* @return Whether the documentation field is set.
*/
public boolean hasDocumentation() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* .io.deephaven.proto.backplane.script.grpc.MarkupContent documentation = 15;
* @return The documentation.
*/
public io.deephaven.proto.backplane.script.grpc.MarkupContent getDocumentation() {
if (documentationBuilder_ == null) {
return documentation_ == null ? io.deephaven.proto.backplane.script.grpc.MarkupContent.getDefaultInstance() : documentation_;
} else {
return documentationBuilder_.getMessage();
}
}
/**
* .io.deephaven.proto.backplane.script.grpc.MarkupContent documentation = 15;
*/
public Builder setDocumentation(io.deephaven.proto.backplane.script.grpc.MarkupContent value) {
if (documentationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
documentation_ = value;
} else {
documentationBuilder_.setMessage(value);
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.script.grpc.MarkupContent documentation = 15;
*/
public Builder setDocumentation(
io.deephaven.proto.backplane.script.grpc.MarkupContent.Builder builderForValue) {
if (documentationBuilder_ == null) {
documentation_ = builderForValue.build();
} else {
documentationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.script.grpc.MarkupContent documentation = 15;
*/
public Builder mergeDocumentation(io.deephaven.proto.backplane.script.grpc.MarkupContent value) {
if (documentationBuilder_ == null) {
if (((bitField0_ & 0x00002000) != 0) &&
documentation_ != null &&
documentation_ != io.deephaven.proto.backplane.script.grpc.MarkupContent.getDefaultInstance()) {
getDocumentationBuilder().mergeFrom(value);
} else {
documentation_ = value;
}
} else {
documentationBuilder_.mergeFrom(value);
}
if (documentation_ != null) {
bitField0_ |= 0x00002000;
onChanged();
}
return this;
}
/**
* .io.deephaven.proto.backplane.script.grpc.MarkupContent documentation = 15;
*/
public Builder clearDocumentation() {
bitField0_ = (bitField0_ & ~0x00002000);
documentation_ = null;
if (documentationBuilder_ != null) {
documentationBuilder_.dispose();
documentationBuilder_ = null;
}
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.script.grpc.MarkupContent documentation = 15;
*/
public io.deephaven.proto.backplane.script.grpc.MarkupContent.Builder getDocumentationBuilder() {
bitField0_ |= 0x00002000;
onChanged();
return getDocumentationFieldBuilder().getBuilder();
}
/**
* .io.deephaven.proto.backplane.script.grpc.MarkupContent documentation = 15;
*/
public io.deephaven.proto.backplane.script.grpc.MarkupContentOrBuilder getDocumentationOrBuilder() {
if (documentationBuilder_ != null) {
return documentationBuilder_.getMessageOrBuilder();
} else {
return documentation_ == null ?
io.deephaven.proto.backplane.script.grpc.MarkupContent.getDefaultInstance() : documentation_;
}
}
/**
* .io.deephaven.proto.backplane.script.grpc.MarkupContent documentation = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.script.grpc.MarkupContent, io.deephaven.proto.backplane.script.grpc.MarkupContent.Builder, io.deephaven.proto.backplane.script.grpc.MarkupContentOrBuilder>
getDocumentationFieldBuilder() {
if (documentationBuilder_ == null) {
documentationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.script.grpc.MarkupContent, io.deephaven.proto.backplane.script.grpc.MarkupContent.Builder, io.deephaven.proto.backplane.script.grpc.MarkupContentOrBuilder>(
getDocumentation(),
getParentForChildren(),
isClean());
documentation_ = null;
}
return documentationBuilder_;
}
@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.CompletionItem)
}
// @@protoc_insertion_point(class_scope:io.deephaven.proto.backplane.script.grpc.CompletionItem)
private static final io.deephaven.proto.backplane.script.grpc.CompletionItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.deephaven.proto.backplane.script.grpc.CompletionItem();
}
public static io.deephaven.proto.backplane.script.grpc.CompletionItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CompletionItem 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.CompletionItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy