java.io.deephaven.proto.backplane.script.grpc.Diagnostic 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
// 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.Diagnostic}
*/
public final class Diagnostic extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.deephaven.proto.backplane.script.grpc.Diagnostic)
DiagnosticOrBuilder {
private static final long serialVersionUID = 0L;
// Use Diagnostic.newBuilder() to construct.
private Diagnostic(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Diagnostic() {
severity_ = 0;
code_ = "";
source_ = "";
message_ = "";
tags_ = java.util.Collections.emptyList();
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Diagnostic();
}
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_Diagnostic_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_Diagnostic_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.script.grpc.Diagnostic.class, io.deephaven.proto.backplane.script.grpc.Diagnostic.Builder.class);
}
/**
* Protobuf enum {@code io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity}
*/
public enum DiagnosticSeverity
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NOT_SET_SEVERITY = 0;
*/
NOT_SET_SEVERITY(0),
/**
* ERROR = 1;
*/
ERROR(1),
/**
* WARNING = 2;
*/
WARNING(2),
/**
* INFORMATION = 3;
*/
INFORMATION(3),
/**
* HINT = 4;
*/
HINT(4),
UNRECOGNIZED(-1),
;
/**
* NOT_SET_SEVERITY = 0;
*/
public static final int NOT_SET_SEVERITY_VALUE = 0;
/**
* ERROR = 1;
*/
public static final int ERROR_VALUE = 1;
/**
* WARNING = 2;
*/
public static final int WARNING_VALUE = 2;
/**
* INFORMATION = 3;
*/
public static final int INFORMATION_VALUE = 3;
/**
* HINT = 4;
*/
public static final int HINT_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DiagnosticSeverity valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static DiagnosticSeverity forNumber(int value) {
switch (value) {
case 0: return NOT_SET_SEVERITY;
case 1: return ERROR;
case 2: return WARNING;
case 3: return INFORMATION;
case 4: return HINT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DiagnosticSeverity> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DiagnosticSeverity findValueByNumber(int number) {
return DiagnosticSeverity.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.deephaven.proto.backplane.script.grpc.Diagnostic.getDescriptor().getEnumTypes().get(0);
}
private static final DiagnosticSeverity[] VALUES = values();
public static DiagnosticSeverity valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private DiagnosticSeverity(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity)
}
/**
* Protobuf enum {@code io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag}
*/
public enum DiagnosticTag
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NOT_SET_TAG = 0;
*/
NOT_SET_TAG(0),
/**
* UNNECESSARY = 1;
*/
UNNECESSARY(1),
/**
* DEPRECATED = 2;
*/
DEPRECATED(2),
UNRECOGNIZED(-1),
;
/**
* NOT_SET_TAG = 0;
*/
public static final int NOT_SET_TAG_VALUE = 0;
/**
* UNNECESSARY = 1;
*/
public static final int UNNECESSARY_VALUE = 1;
/**
* DEPRECATED = 2;
*/
public static final int DEPRECATED_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DiagnosticTag valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static DiagnosticTag forNumber(int value) {
switch (value) {
case 0: return NOT_SET_TAG;
case 1: return UNNECESSARY;
case 2: return DEPRECATED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DiagnosticTag> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DiagnosticTag findValueByNumber(int number) {
return DiagnosticTag.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.deephaven.proto.backplane.script.grpc.Diagnostic.getDescriptor().getEnumTypes().get(1);
}
private static final DiagnosticTag[] VALUES = values();
public static DiagnosticTag valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private DiagnosticTag(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag)
}
public interface CodeDescriptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription)
com.google.protobuf.MessageOrBuilder {
/**
* string href = 1;
* @return The href.
*/
java.lang.String getHref();
/**
* string href = 1;
* @return The bytes for href.
*/
com.google.protobuf.ByteString
getHrefBytes();
}
/**
* Protobuf type {@code io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription}
*/
public static final class CodeDescription extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription)
CodeDescriptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use CodeDescription.newBuilder() to construct.
private CodeDescription(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CodeDescription() {
href_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CodeDescription();
}
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_Diagnostic_CodeDescription_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_Diagnostic_CodeDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription.class, io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription.Builder.class);
}
public static final int HREF_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object href_ = "";
/**
* string href = 1;
* @return The href.
*/
@java.lang.Override
public java.lang.String getHref() {
java.lang.Object ref = href_;
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();
href_ = s;
return s;
}
}
/**
* string href = 1;
* @return The bytes for href.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHrefBytes() {
java.lang.Object ref = href_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
href_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(href_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, href_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(href_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, href_);
}
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.Diagnostic.CodeDescription)) {
return super.equals(obj);
}
io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription other = (io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription) obj;
if (!getHref()
.equals(other.getHref())) 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) + HREF_FIELD_NUMBER;
hash = (53 * hash) + getHref().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription 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.Diagnostic.CodeDescription parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription 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.Diagnostic.CodeDescription parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription 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.Diagnostic.CodeDescription 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.Diagnostic.CodeDescription 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.Diagnostic.CodeDescription 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.Diagnostic.CodeDescription 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.Diagnostic.CodeDescription 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.Diagnostic.CodeDescription 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.Diagnostic.CodeDescription 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.Diagnostic.CodeDescription}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription)
io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescriptionOrBuilder {
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_Diagnostic_CodeDescription_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_Diagnostic_CodeDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription.class, io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription.Builder.class);
}
// Construct using io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
href_ = "";
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_Diagnostic_CodeDescription_descriptor;
}
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription getDefaultInstanceForType() {
return io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription.getDefaultInstance();
}
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription build() {
io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription buildPartial() {
io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription result = new io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.href_ = href_;
}
}
@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.Diagnostic.CodeDescription) {
return mergeFrom((io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription other) {
if (other == io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription.getDefaultInstance()) return this;
if (!other.getHref().isEmpty()) {
href_ = other.href_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
href_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
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 java.lang.Object href_ = "";
/**
* string href = 1;
* @return The href.
*/
public java.lang.String getHref() {
java.lang.Object ref = href_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
href_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string href = 1;
* @return The bytes for href.
*/
public com.google.protobuf.ByteString
getHrefBytes() {
java.lang.Object ref = href_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
href_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string href = 1;
* @param value The href to set.
* @return This builder for chaining.
*/
public Builder setHref(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
href_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string href = 1;
* @return This builder for chaining.
*/
public Builder clearHref() {
href_ = getDefaultInstance().getHref();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string href = 1;
* @param value The bytes for href to set.
* @return This builder for chaining.
*/
public Builder setHrefBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
href_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription)
}
// @@protoc_insertion_point(class_scope:io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription)
private static final io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription();
}
public static io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CodeDescription 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.Diagnostic.CodeDescription getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int RANGE_FIELD_NUMBER = 1;
private io.deephaven.proto.backplane.script.grpc.DocumentRange range_;
/**
* .io.deephaven.proto.backplane.script.grpc.DocumentRange range = 1;
* @return Whether the range field is set.
*/
@java.lang.Override
public boolean hasRange() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .io.deephaven.proto.backplane.script.grpc.DocumentRange range = 1;
* @return The range.
*/
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.DocumentRange getRange() {
return range_ == null ? io.deephaven.proto.backplane.script.grpc.DocumentRange.getDefaultInstance() : range_;
}
/**
* .io.deephaven.proto.backplane.script.grpc.DocumentRange range = 1;
*/
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.DocumentRangeOrBuilder getRangeOrBuilder() {
return range_ == null ? io.deephaven.proto.backplane.script.grpc.DocumentRange.getDefaultInstance() : range_;
}
public static final int SEVERITY_FIELD_NUMBER = 2;
private int severity_ = 0;
/**
* .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity severity = 2;
* @return The enum numeric value on the wire for severity.
*/
@java.lang.Override public int getSeverityValue() {
return severity_;
}
/**
* .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity severity = 2;
* @return The severity.
*/
@java.lang.Override public io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity getSeverity() {
io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity result = io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity.forNumber(severity_);
return result == null ? io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity.UNRECOGNIZED : result;
}
public static final int CODE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object code_ = "";
/**
* optional string code = 3;
* @return Whether the code field is set.
*/
@java.lang.Override
public boolean hasCode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string code = 3;
* @return The code.
*/
@java.lang.Override
public java.lang.String getCode() {
java.lang.Object ref = code_;
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();
code_ = s;
return s;
}
}
/**
* optional string code = 3;
* @return The bytes for code.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCodeBytes() {
java.lang.Object ref = code_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
code_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CODE_DESCRIPTION_FIELD_NUMBER = 4;
private io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription codeDescription_;
/**
* optional .io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription code_description = 4;
* @return Whether the codeDescription field is set.
*/
@java.lang.Override
public boolean hasCodeDescription() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription code_description = 4;
* @return The codeDescription.
*/
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription getCodeDescription() {
return codeDescription_ == null ? io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription.getDefaultInstance() : codeDescription_;
}
/**
* optional .io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription code_description = 4;
*/
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescriptionOrBuilder getCodeDescriptionOrBuilder() {
return codeDescription_ == null ? io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription.getDefaultInstance() : codeDescription_;
}
public static final int SOURCE_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object source_ = "";
/**
* optional string source = 5;
* @return Whether the source field is set.
*/
@java.lang.Override
public boolean hasSource() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string source = 5;
* @return The source.
*/
@java.lang.Override
public java.lang.String getSource() {
java.lang.Object ref = source_;
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();
source_ = s;
return s;
}
}
/**
* optional string source = 5;
* @return The bytes for source.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MESSAGE_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object message_ = "";
/**
* string message = 6;
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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();
message_ = s;
return s;
}
}
/**
* string message = 6;
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TAGS_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private java.util.List tags_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag> tags_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag>() {
public io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag convert(java.lang.Integer from) {
io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag result = io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag.forNumber(from);
return result == null ? io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag.UNRECOGNIZED : result;
}
};
/**
* repeated .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag tags = 7;
* @return A list containing the tags.
*/
@java.lang.Override
public java.util.List getTagsList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag>(tags_, tags_converter_);
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag tags = 7;
* @return The count of tags.
*/
@java.lang.Override
public int getTagsCount() {
return tags_.size();
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag tags = 7;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag getTags(int index) {
return tags_converter_.convert(tags_.get(index));
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag tags = 7;
* @return A list containing the enum numeric values on the wire for tags.
*/
@java.lang.Override
public java.util.List
getTagsValueList() {
return tags_;
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag tags = 7;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of tags at the given index.
*/
@java.lang.Override
public int getTagsValue(int index) {
return tags_.get(index);
}
private int tagsMemoizedSerializedSize;
public static final int DATA_FIELD_NUMBER = 9;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes data = 9;
* @return Whether the data field is set.
*/
@java.lang.Override
public boolean hasData() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional bytes data = 9;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
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 {
getSerializedSize();
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getRange());
}
if (severity_ != io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity.NOT_SET_SEVERITY.getNumber()) {
output.writeEnum(2, severity_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, code_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getCodeDescription());
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, source_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, message_);
}
if (getTagsList().size() > 0) {
output.writeUInt32NoTag(58);
output.writeUInt32NoTag(tagsMemoizedSerializedSize);
}
for (int i = 0; i < tags_.size(); i++) {
output.writeEnumNoTag(tags_.get(i));
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBytes(9, data_);
}
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, getRange());
}
if (severity_ != io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity.NOT_SET_SEVERITY.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, severity_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, code_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getCodeDescription());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, source_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, message_);
}
{
int dataSize = 0;
for (int i = 0; i < tags_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(tags_.get(i));
}
size += dataSize;
if (!getTagsList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}tagsMemoizedSerializedSize = dataSize;
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, data_);
}
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.Diagnostic)) {
return super.equals(obj);
}
io.deephaven.proto.backplane.script.grpc.Diagnostic other = (io.deephaven.proto.backplane.script.grpc.Diagnostic) obj;
if (hasRange() != other.hasRange()) return false;
if (hasRange()) {
if (!getRange()
.equals(other.getRange())) return false;
}
if (severity_ != other.severity_) return false;
if (hasCode() != other.hasCode()) return false;
if (hasCode()) {
if (!getCode()
.equals(other.getCode())) return false;
}
if (hasCodeDescription() != other.hasCodeDescription()) return false;
if (hasCodeDescription()) {
if (!getCodeDescription()
.equals(other.getCodeDescription())) return false;
}
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (!getSource()
.equals(other.getSource())) return false;
}
if (!getMessage()
.equals(other.getMessage())) return false;
if (!tags_.equals(other.tags_)) return false;
if (hasData() != other.hasData()) return false;
if (hasData()) {
if (!getData()
.equals(other.getData())) 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 (hasRange()) {
hash = (37 * hash) + RANGE_FIELD_NUMBER;
hash = (53 * hash) + getRange().hashCode();
}
hash = (37 * hash) + SEVERITY_FIELD_NUMBER;
hash = (53 * hash) + severity_;
if (hasCode()) {
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode().hashCode();
}
if (hasCodeDescription()) {
hash = (37 * hash) + CODE_DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getCodeDescription().hashCode();
}
if (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
}
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
if (getTagsCount() > 0) {
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + tags_.hashCode();
}
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.deephaven.proto.backplane.script.grpc.Diagnostic parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.script.grpc.Diagnostic 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.Diagnostic parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.script.grpc.Diagnostic 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.Diagnostic parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.script.grpc.Diagnostic 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.Diagnostic 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.Diagnostic 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.Diagnostic 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.Diagnostic 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.Diagnostic 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.Diagnostic 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.Diagnostic 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.Diagnostic}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.deephaven.proto.backplane.script.grpc.Diagnostic)
io.deephaven.proto.backplane.script.grpc.DiagnosticOrBuilder {
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_Diagnostic_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_Diagnostic_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.script.grpc.Diagnostic.class, io.deephaven.proto.backplane.script.grpc.Diagnostic.Builder.class);
}
// Construct using io.deephaven.proto.backplane.script.grpc.Diagnostic.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRangeFieldBuilder();
getCodeDescriptionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
range_ = null;
if (rangeBuilder_ != null) {
rangeBuilder_.dispose();
rangeBuilder_ = null;
}
severity_ = 0;
code_ = "";
codeDescription_ = null;
if (codeDescriptionBuilder_ != null) {
codeDescriptionBuilder_.dispose();
codeDescriptionBuilder_ = null;
}
source_ = "";
message_ = "";
tags_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
data_ = com.google.protobuf.ByteString.EMPTY;
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_Diagnostic_descriptor;
}
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.Diagnostic getDefaultInstanceForType() {
return io.deephaven.proto.backplane.script.grpc.Diagnostic.getDefaultInstance();
}
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.Diagnostic build() {
io.deephaven.proto.backplane.script.grpc.Diagnostic result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.Diagnostic buildPartial() {
io.deephaven.proto.backplane.script.grpc.Diagnostic result = new io.deephaven.proto.backplane.script.grpc.Diagnostic(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.deephaven.proto.backplane.script.grpc.Diagnostic result) {
if (((bitField0_ & 0x00000040) != 0)) {
tags_ = java.util.Collections.unmodifiableList(tags_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.tags_ = tags_;
}
private void buildPartial0(io.deephaven.proto.backplane.script.grpc.Diagnostic result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.range_ = rangeBuilder_ == null
? range_
: rangeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.severity_ = severity_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.code_ = code_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.codeDescription_ = codeDescriptionBuilder_ == null
? codeDescription_
: codeDescriptionBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.source_ = source_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.message_ = message_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.data_ = data_;
to_bitField0_ |= 0x00000010;
}
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.Diagnostic) {
return mergeFrom((io.deephaven.proto.backplane.script.grpc.Diagnostic)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.deephaven.proto.backplane.script.grpc.Diagnostic other) {
if (other == io.deephaven.proto.backplane.script.grpc.Diagnostic.getDefaultInstance()) return this;
if (other.hasRange()) {
mergeRange(other.getRange());
}
if (other.severity_ != 0) {
setSeverityValue(other.getSeverityValue());
}
if (other.hasCode()) {
code_ = other.code_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasCodeDescription()) {
mergeCodeDescription(other.getCodeDescription());
}
if (other.hasSource()) {
source_ = other.source_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
if (other.hasData()) {
setData(other.getData());
}
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(
getRangeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
severity_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
code_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getCodeDescriptionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
source_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
message_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 56: {
int tmpRaw = input.readEnum();
ensureTagsIsMutable();
tags_.add(tmpRaw);
break;
} // case 56
case 58: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
ensureTagsIsMutable();
tags_.add(tmpRaw);
}
input.popLimit(oldLimit);
break;
} // case 58
case 74: {
data_ = input.readBytes();
bitField0_ |= 0x00000080;
break;
} // case 74
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.script.grpc.DocumentRange range_;
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.script.grpc.DocumentRange, io.deephaven.proto.backplane.script.grpc.DocumentRange.Builder, io.deephaven.proto.backplane.script.grpc.DocumentRangeOrBuilder> rangeBuilder_;
/**
* .io.deephaven.proto.backplane.script.grpc.DocumentRange range = 1;
* @return Whether the range field is set.
*/
public boolean hasRange() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .io.deephaven.proto.backplane.script.grpc.DocumentRange range = 1;
* @return The range.
*/
public io.deephaven.proto.backplane.script.grpc.DocumentRange getRange() {
if (rangeBuilder_ == null) {
return range_ == null ? io.deephaven.proto.backplane.script.grpc.DocumentRange.getDefaultInstance() : range_;
} else {
return rangeBuilder_.getMessage();
}
}
/**
* .io.deephaven.proto.backplane.script.grpc.DocumentRange range = 1;
*/
public Builder setRange(io.deephaven.proto.backplane.script.grpc.DocumentRange value) {
if (rangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
range_ = value;
} else {
rangeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.script.grpc.DocumentRange range = 1;
*/
public Builder setRange(
io.deephaven.proto.backplane.script.grpc.DocumentRange.Builder builderForValue) {
if (rangeBuilder_ == null) {
range_ = builderForValue.build();
} else {
rangeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.script.grpc.DocumentRange range = 1;
*/
public Builder mergeRange(io.deephaven.proto.backplane.script.grpc.DocumentRange value) {
if (rangeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
range_ != null &&
range_ != io.deephaven.proto.backplane.script.grpc.DocumentRange.getDefaultInstance()) {
getRangeBuilder().mergeFrom(value);
} else {
range_ = value;
}
} else {
rangeBuilder_.mergeFrom(value);
}
if (range_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .io.deephaven.proto.backplane.script.grpc.DocumentRange range = 1;
*/
public Builder clearRange() {
bitField0_ = (bitField0_ & ~0x00000001);
range_ = null;
if (rangeBuilder_ != null) {
rangeBuilder_.dispose();
rangeBuilder_ = null;
}
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.script.grpc.DocumentRange range = 1;
*/
public io.deephaven.proto.backplane.script.grpc.DocumentRange.Builder getRangeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getRangeFieldBuilder().getBuilder();
}
/**
* .io.deephaven.proto.backplane.script.grpc.DocumentRange range = 1;
*/
public io.deephaven.proto.backplane.script.grpc.DocumentRangeOrBuilder getRangeOrBuilder() {
if (rangeBuilder_ != null) {
return rangeBuilder_.getMessageOrBuilder();
} else {
return range_ == null ?
io.deephaven.proto.backplane.script.grpc.DocumentRange.getDefaultInstance() : range_;
}
}
/**
* .io.deephaven.proto.backplane.script.grpc.DocumentRange range = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.script.grpc.DocumentRange, io.deephaven.proto.backplane.script.grpc.DocumentRange.Builder, io.deephaven.proto.backplane.script.grpc.DocumentRangeOrBuilder>
getRangeFieldBuilder() {
if (rangeBuilder_ == null) {
rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.script.grpc.DocumentRange, io.deephaven.proto.backplane.script.grpc.DocumentRange.Builder, io.deephaven.proto.backplane.script.grpc.DocumentRangeOrBuilder>(
getRange(),
getParentForChildren(),
isClean());
range_ = null;
}
return rangeBuilder_;
}
private int severity_ = 0;
/**
* .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity severity = 2;
* @return The enum numeric value on the wire for severity.
*/
@java.lang.Override public int getSeverityValue() {
return severity_;
}
/**
* .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity severity = 2;
* @param value The enum numeric value on the wire for severity to set.
* @return This builder for chaining.
*/
public Builder setSeverityValue(int value) {
severity_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity severity = 2;
* @return The severity.
*/
@java.lang.Override
public io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity getSeverity() {
io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity result = io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity.forNumber(severity_);
return result == null ? io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity.UNRECOGNIZED : result;
}
/**
* .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity severity = 2;
* @param value The severity to set.
* @return This builder for chaining.
*/
public Builder setSeverity(io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
severity_ = value.getNumber();
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticSeverity severity = 2;
* @return This builder for chaining.
*/
public Builder clearSeverity() {
bitField0_ = (bitField0_ & ~0x00000002);
severity_ = 0;
onChanged();
return this;
}
private java.lang.Object code_ = "";
/**
* optional string code = 3;
* @return Whether the code field is set.
*/
public boolean hasCode() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string code = 3;
* @return The code.
*/
public java.lang.String getCode() {
java.lang.Object ref = code_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
code_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string code = 3;
* @return The bytes for code.
*/
public com.google.protobuf.ByteString
getCodeBytes() {
java.lang.Object ref = code_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
code_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string code = 3;
* @param value The code to set.
* @return This builder for chaining.
*/
public Builder setCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
code_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional string code = 3;
* @return This builder for chaining.
*/
public Builder clearCode() {
code_ = getDefaultInstance().getCode();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* optional string code = 3;
* @param value The bytes for code to set.
* @return This builder for chaining.
*/
public Builder setCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
code_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription codeDescription_;
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription, io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription.Builder, io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescriptionOrBuilder> codeDescriptionBuilder_;
/**
* optional .io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription code_description = 4;
* @return Whether the codeDescription field is set.
*/
public boolean hasCodeDescription() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription code_description = 4;
* @return The codeDescription.
*/
public io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription getCodeDescription() {
if (codeDescriptionBuilder_ == null) {
return codeDescription_ == null ? io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription.getDefaultInstance() : codeDescription_;
} else {
return codeDescriptionBuilder_.getMessage();
}
}
/**
* optional .io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription code_description = 4;
*/
public Builder setCodeDescription(io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription value) {
if (codeDescriptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
codeDescription_ = value;
} else {
codeDescriptionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional .io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription code_description = 4;
*/
public Builder setCodeDescription(
io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription.Builder builderForValue) {
if (codeDescriptionBuilder_ == null) {
codeDescription_ = builderForValue.build();
} else {
codeDescriptionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional .io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription code_description = 4;
*/
public Builder mergeCodeDescription(io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription value) {
if (codeDescriptionBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
codeDescription_ != null &&
codeDescription_ != io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription.getDefaultInstance()) {
getCodeDescriptionBuilder().mergeFrom(value);
} else {
codeDescription_ = value;
}
} else {
codeDescriptionBuilder_.mergeFrom(value);
}
if (codeDescription_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* optional .io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription code_description = 4;
*/
public Builder clearCodeDescription() {
bitField0_ = (bitField0_ & ~0x00000008);
codeDescription_ = null;
if (codeDescriptionBuilder_ != null) {
codeDescriptionBuilder_.dispose();
codeDescriptionBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription code_description = 4;
*/
public io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription.Builder getCodeDescriptionBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getCodeDescriptionFieldBuilder().getBuilder();
}
/**
* optional .io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription code_description = 4;
*/
public io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescriptionOrBuilder getCodeDescriptionOrBuilder() {
if (codeDescriptionBuilder_ != null) {
return codeDescriptionBuilder_.getMessageOrBuilder();
} else {
return codeDescription_ == null ?
io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription.getDefaultInstance() : codeDescription_;
}
}
/**
* optional .io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription code_description = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription, io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription.Builder, io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescriptionOrBuilder>
getCodeDescriptionFieldBuilder() {
if (codeDescriptionBuilder_ == null) {
codeDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription, io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescription.Builder, io.deephaven.proto.backplane.script.grpc.Diagnostic.CodeDescriptionOrBuilder>(
getCodeDescription(),
getParentForChildren(),
isClean());
codeDescription_ = null;
}
return codeDescriptionBuilder_;
}
private java.lang.Object source_ = "";
/**
* optional string source = 5;
* @return Whether the source field is set.
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string source = 5;
* @return The source.
*/
public java.lang.String getSource() {
java.lang.Object ref = source_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
source_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string source = 5;
* @return The bytes for source.
*/
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string source = 5;
* @param value The source to set.
* @return This builder for chaining.
*/
public Builder setSource(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
source_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional string source = 5;
* @return This builder for chaining.
*/
public Builder clearSource() {
source_ = getDefaultInstance().getSource();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* optional string source = 5;
* @param value The bytes for source to set.
* @return This builder for chaining.
*/
public Builder setSourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
source_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
* string message = 6;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string message = 6;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string message = 6;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
message_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* string message = 6;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
* string message = 6;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
message_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.util.List tags_ =
java.util.Collections.emptyList();
private void ensureTagsIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
tags_ = new java.util.ArrayList(tags_);
bitField0_ |= 0x00000040;
}
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag tags = 7;
* @return A list containing the tags.
*/
public java.util.List getTagsList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag>(tags_, tags_converter_);
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag tags = 7;
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag tags = 7;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag getTags(int index) {
return tags_converter_.convert(tags_.get(index));
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag tags = 7;
* @param index The index to set the value at.
* @param value The tags to set.
* @return This builder for chaining.
*/
public Builder setTags(
int index, io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag tags = 7;
* @param value The tags to add.
* @return This builder for chaining.
*/
public Builder addTags(io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag tags = 7;
* @param values The tags to add.
* @return This builder for chaining.
*/
public Builder addAllTags(
java.lang.Iterable extends io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag> values) {
ensureTagsIsMutable();
for (io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag value : values) {
tags_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag tags = 7;
* @return This builder for chaining.
*/
public Builder clearTags() {
tags_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag tags = 7;
* @return A list containing the enum numeric values on the wire for tags.
*/
public java.util.List
getTagsValueList() {
return java.util.Collections.unmodifiableList(tags_);
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag tags = 7;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of tags at the given index.
*/
public int getTagsValue(int index) {
return tags_.get(index);
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag tags = 7;
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for tags to set.
* @return This builder for chaining.
*/
public Builder setTagsValue(
int index, int value) {
ensureTagsIsMutable();
tags_.set(index, value);
onChanged();
return this;
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag tags = 7;
* @param value The enum numeric value on the wire for tags to add.
* @return This builder for chaining.
*/
public Builder addTagsValue(int value) {
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
/**
* repeated .io.deephaven.proto.backplane.script.grpc.Diagnostic.DiagnosticTag tags = 7;
* @param values The enum numeric values on the wire for tags to add.
* @return This builder for chaining.
*/
public Builder addAllTagsValue(
java.lang.Iterable values) {
ensureTagsIsMutable();
for (int value : values) {
tags_.add(value);
}
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes data = 9;
* @return Whether the data field is set.
*/
@java.lang.Override
public boolean hasData() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional bytes data = 9;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* optional bytes data = 9;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
data_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* optional bytes data = 9;
* @return This builder for chaining.
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000080);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.deephaven.proto.backplane.script.grpc.Diagnostic)
}
// @@protoc_insertion_point(class_scope:io.deephaven.proto.backplane.script.grpc.Diagnostic)
private static final io.deephaven.proto.backplane.script.grpc.Diagnostic DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.deephaven.proto.backplane.script.grpc.Diagnostic();
}
public static io.deephaven.proto.backplane.script.grpc.Diagnostic getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Diagnostic 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.Diagnostic getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}