Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.sonar.plugins.javascript.bridge.protobuf.Literal Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: estree.proto
package org.sonar.plugins.javascript.bridge.protobuf;
/**
* Protobuf type {@code Literal}
*/
public final class Literal extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Literal)
LiteralOrBuilder {
private static final long serialVersionUID = 0L;
// Use Literal.newBuilder() to construct.
private Literal(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Literal() {
raw_ = "";
bigint_ = "";
pattern_ = "";
flags_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Literal();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_Literal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_Literal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonar.plugins.javascript.bridge.protobuf.Literal.class, org.sonar.plugins.javascript.bridge.protobuf.Literal.Builder.class);
}
private int bitField0_;
private int valueCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object value_;
public enum ValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
VALUESTRING(5),
VALUEBOOLEAN(6),
VALUENUMBER(7),
VALUE_NOT_SET(0);
private final int value;
private ValueCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ValueCase valueOf(int value) {
return forNumber(value);
}
public static ValueCase forNumber(int value) {
switch (value) {
case 5: return VALUESTRING;
case 6: return VALUEBOOLEAN;
case 7: return VALUENUMBER;
case 0: return VALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public static final int RAW_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object raw_ = "";
/**
* string raw = 1;
* @return The raw.
*/
@java.lang.Override
public java.lang.String getRaw() {
java.lang.Object ref = raw_;
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();
raw_ = s;
return s;
}
}
/**
* string raw = 1;
* @return The bytes for raw.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRawBytes() {
java.lang.Object ref = raw_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
raw_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BIGINT_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object bigint_ = "";
/**
* optional string bigint = 2;
* @return Whether the bigint field is set.
*/
@java.lang.Override
public boolean hasBigint() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string bigint = 2;
* @return The bigint.
*/
@java.lang.Override
public java.lang.String getBigint() {
java.lang.Object ref = bigint_;
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();
bigint_ = s;
return s;
}
}
/**
* optional string bigint = 2;
* @return The bytes for bigint.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBigintBytes() {
java.lang.Object ref = bigint_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bigint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PATTERN_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object pattern_ = "";
/**
* optional string pattern = 3;
* @return Whether the pattern field is set.
*/
@java.lang.Override
public boolean hasPattern() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string pattern = 3;
* @return The pattern.
*/
@java.lang.Override
public java.lang.String getPattern() {
java.lang.Object ref = pattern_;
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();
pattern_ = s;
return s;
}
}
/**
* optional string pattern = 3;
* @return The bytes for pattern.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPatternBytes() {
java.lang.Object ref = pattern_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pattern_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FLAGS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object flags_ = "";
/**
* optional string flags = 4;
* @return Whether the flags field is set.
*/
@java.lang.Override
public boolean hasFlags() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string flags = 4;
* @return The flags.
*/
@java.lang.Override
public java.lang.String getFlags() {
java.lang.Object ref = flags_;
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();
flags_ = s;
return s;
}
}
/**
* optional string flags = 4;
* @return The bytes for flags.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFlagsBytes() {
java.lang.Object ref = flags_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
flags_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUESTRING_FIELD_NUMBER = 5;
/**
* string valueString = 5;
* @return Whether the valueString field is set.
*/
public boolean hasValueString() {
return valueCase_ == 5;
}
/**
* string valueString = 5;
* @return The valueString.
*/
public java.lang.String getValueString() {
java.lang.Object ref = "";
if (valueCase_ == 5) {
ref = value_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (valueCase_ == 5) {
value_ = s;
}
return s;
}
}
/**
* string valueString = 5;
* @return The bytes for valueString.
*/
public com.google.protobuf.ByteString
getValueStringBytes() {
java.lang.Object ref = "";
if (valueCase_ == 5) {
ref = value_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (valueCase_ == 5) {
value_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUEBOOLEAN_FIELD_NUMBER = 6;
/**
* bool valueBoolean = 6;
* @return Whether the valueBoolean field is set.
*/
@java.lang.Override
public boolean hasValueBoolean() {
return valueCase_ == 6;
}
/**
* bool valueBoolean = 6;
* @return The valueBoolean.
*/
@java.lang.Override
public boolean getValueBoolean() {
if (valueCase_ == 6) {
return (java.lang.Boolean) value_;
}
return false;
}
public static final int VALUENUMBER_FIELD_NUMBER = 7;
/**
* int32 valueNumber = 7;
* @return Whether the valueNumber field is set.
*/
@java.lang.Override
public boolean hasValueNumber() {
return valueCase_ == 7;
}
/**
* int32 valueNumber = 7;
* @return The valueNumber.
*/
@java.lang.Override
public int getValueNumber() {
if (valueCase_ == 7) {
return (java.lang.Integer) value_;
}
return 0;
}
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(raw_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, raw_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bigint_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pattern_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, flags_);
}
if (valueCase_ == 5) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, value_);
}
if (valueCase_ == 6) {
output.writeBool(
6, (boolean)((java.lang.Boolean) value_));
}
if (valueCase_ == 7) {
output.writeInt32(
7, (int)((java.lang.Integer) value_));
}
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(raw_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, raw_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bigint_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pattern_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, flags_);
}
if (valueCase_ == 5) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, value_);
}
if (valueCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
6, (boolean)((java.lang.Boolean) value_));
}
if (valueCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
7, (int)((java.lang.Integer) value_));
}
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 org.sonar.plugins.javascript.bridge.protobuf.Literal)) {
return super.equals(obj);
}
org.sonar.plugins.javascript.bridge.protobuf.Literal other = (org.sonar.plugins.javascript.bridge.protobuf.Literal) obj;
if (!getRaw()
.equals(other.getRaw())) return false;
if (hasBigint() != other.hasBigint()) return false;
if (hasBigint()) {
if (!getBigint()
.equals(other.getBigint())) return false;
}
if (hasPattern() != other.hasPattern()) return false;
if (hasPattern()) {
if (!getPattern()
.equals(other.getPattern())) return false;
}
if (hasFlags() != other.hasFlags()) return false;
if (hasFlags()) {
if (!getFlags()
.equals(other.getFlags())) return false;
}
if (!getValueCase().equals(other.getValueCase())) return false;
switch (valueCase_) {
case 5:
if (!getValueString()
.equals(other.getValueString())) return false;
break;
case 6:
if (getValueBoolean()
!= other.getValueBoolean()) return false;
break;
case 7:
if (getValueNumber()
!= other.getValueNumber()) return false;
break;
case 0:
default:
}
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) + RAW_FIELD_NUMBER;
hash = (53 * hash) + getRaw().hashCode();
if (hasBigint()) {
hash = (37 * hash) + BIGINT_FIELD_NUMBER;
hash = (53 * hash) + getBigint().hashCode();
}
if (hasPattern()) {
hash = (37 * hash) + PATTERN_FIELD_NUMBER;
hash = (53 * hash) + getPattern().hashCode();
}
if (hasFlags()) {
hash = (37 * hash) + FLAGS_FIELD_NUMBER;
hash = (53 * hash) + getFlags().hashCode();
}
switch (valueCase_) {
case 5:
hash = (37 * hash) + VALUESTRING_FIELD_NUMBER;
hash = (53 * hash) + getValueString().hashCode();
break;
case 6:
hash = (37 * hash) + VALUEBOOLEAN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getValueBoolean());
break;
case 7:
hash = (37 * hash) + VALUENUMBER_FIELD_NUMBER;
hash = (53 * hash) + getValueNumber();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.sonar.plugins.javascript.bridge.protobuf.Literal parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonar.plugins.javascript.bridge.protobuf.Literal parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonar.plugins.javascript.bridge.protobuf.Literal parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonar.plugins.javascript.bridge.protobuf.Literal parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonar.plugins.javascript.bridge.protobuf.Literal parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonar.plugins.javascript.bridge.protobuf.Literal parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonar.plugins.javascript.bridge.protobuf.Literal parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.sonar.plugins.javascript.bridge.protobuf.Literal 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 org.sonar.plugins.javascript.bridge.protobuf.Literal parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.sonar.plugins.javascript.bridge.protobuf.Literal 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 org.sonar.plugins.javascript.bridge.protobuf.Literal parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.sonar.plugins.javascript.bridge.protobuf.Literal 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(org.sonar.plugins.javascript.bridge.protobuf.Literal 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 Literal}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Literal)
org.sonar.plugins.javascript.bridge.protobuf.LiteralOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_Literal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_Literal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonar.plugins.javascript.bridge.protobuf.Literal.class, org.sonar.plugins.javascript.bridge.protobuf.Literal.Builder.class);
}
// Construct using org.sonar.plugins.javascript.bridge.protobuf.Literal.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
raw_ = "";
bigint_ = "";
pattern_ = "";
flags_ = "";
valueCase_ = 0;
value_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_Literal_descriptor;
}
@java.lang.Override
public org.sonar.plugins.javascript.bridge.protobuf.Literal getDefaultInstanceForType() {
return org.sonar.plugins.javascript.bridge.protobuf.Literal.getDefaultInstance();
}
@java.lang.Override
public org.sonar.plugins.javascript.bridge.protobuf.Literal build() {
org.sonar.plugins.javascript.bridge.protobuf.Literal result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.sonar.plugins.javascript.bridge.protobuf.Literal buildPartial() {
org.sonar.plugins.javascript.bridge.protobuf.Literal result = new org.sonar.plugins.javascript.bridge.protobuf.Literal(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(org.sonar.plugins.javascript.bridge.protobuf.Literal result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.raw_ = raw_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.bigint_ = bigint_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.pattern_ = pattern_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.flags_ = flags_;
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(org.sonar.plugins.javascript.bridge.protobuf.Literal result) {
result.valueCase_ = valueCase_;
result.value_ = this.value_;
}
@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 org.sonar.plugins.javascript.bridge.protobuf.Literal) {
return mergeFrom((org.sonar.plugins.javascript.bridge.protobuf.Literal)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonar.plugins.javascript.bridge.protobuf.Literal other) {
if (other == org.sonar.plugins.javascript.bridge.protobuf.Literal.getDefaultInstance()) return this;
if (!other.getRaw().isEmpty()) {
raw_ = other.raw_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasBigint()) {
bigint_ = other.bigint_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasPattern()) {
pattern_ = other.pattern_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasFlags()) {
flags_ = other.flags_;
bitField0_ |= 0x00000008;
onChanged();
}
switch (other.getValueCase()) {
case VALUESTRING: {
valueCase_ = 5;
value_ = other.value_;
onChanged();
break;
}
case VALUEBOOLEAN: {
setValueBoolean(other.getValueBoolean());
break;
}
case VALUENUMBER: {
setValueNumber(other.getValueNumber());
break;
}
case VALUE_NOT_SET: {
break;
}
}
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: {
raw_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
bigint_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
pattern_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
flags_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
java.lang.String s = input.readStringRequireUtf8();
valueCase_ = 5;
value_ = s;
break;
} // case 42
case 48: {
value_ = input.readBool();
valueCase_ = 6;
break;
} // case 48
case 56: {
value_ = input.readInt32();
valueCase_ = 7;
break;
} // case 56
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 valueCase_ = 0;
private java.lang.Object value_;
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public Builder clearValue() {
valueCase_ = 0;
value_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object raw_ = "";
/**
* string raw = 1;
* @return The raw.
*/
public java.lang.String getRaw() {
java.lang.Object ref = raw_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
raw_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string raw = 1;
* @return The bytes for raw.
*/
public com.google.protobuf.ByteString
getRawBytes() {
java.lang.Object ref = raw_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
raw_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string raw = 1;
* @param value The raw to set.
* @return This builder for chaining.
*/
public Builder setRaw(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
raw_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string raw = 1;
* @return This builder for chaining.
*/
public Builder clearRaw() {
raw_ = getDefaultInstance().getRaw();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string raw = 1;
* @param value The bytes for raw to set.
* @return This builder for chaining.
*/
public Builder setRawBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
raw_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object bigint_ = "";
/**
* optional string bigint = 2;
* @return Whether the bigint field is set.
*/
public boolean hasBigint() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string bigint = 2;
* @return The bigint.
*/
public java.lang.String getBigint() {
java.lang.Object ref = bigint_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
bigint_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string bigint = 2;
* @return The bytes for bigint.
*/
public com.google.protobuf.ByteString
getBigintBytes() {
java.lang.Object ref = bigint_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bigint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string bigint = 2;
* @param value The bigint to set.
* @return This builder for chaining.
*/
public Builder setBigint(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
bigint_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional string bigint = 2;
* @return This builder for chaining.
*/
public Builder clearBigint() {
bigint_ = getDefaultInstance().getBigint();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string bigint = 2;
* @param value The bytes for bigint to set.
* @return This builder for chaining.
*/
public Builder setBigintBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
bigint_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object pattern_ = "";
/**
* optional string pattern = 3;
* @return Whether the pattern field is set.
*/
public boolean hasPattern() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string pattern = 3;
* @return The pattern.
*/
public java.lang.String getPattern() {
java.lang.Object ref = pattern_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pattern_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string pattern = 3;
* @return The bytes for pattern.
*/
public com.google.protobuf.ByteString
getPatternBytes() {
java.lang.Object ref = pattern_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pattern_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string pattern = 3;
* @param value The pattern to set.
* @return This builder for chaining.
*/
public Builder setPattern(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
pattern_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional string pattern = 3;
* @return This builder for chaining.
*/
public Builder clearPattern() {
pattern_ = getDefaultInstance().getPattern();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* optional string pattern = 3;
* @param value The bytes for pattern to set.
* @return This builder for chaining.
*/
public Builder setPatternBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
pattern_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object flags_ = "";
/**
* optional string flags = 4;
* @return Whether the flags field is set.
*/
public boolean hasFlags() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string flags = 4;
* @return The flags.
*/
public java.lang.String getFlags() {
java.lang.Object ref = flags_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
flags_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string flags = 4;
* @return The bytes for flags.
*/
public com.google.protobuf.ByteString
getFlagsBytes() {
java.lang.Object ref = flags_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
flags_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string flags = 4;
* @param value The flags to set.
* @return This builder for chaining.
*/
public Builder setFlags(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
flags_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional string flags = 4;
* @return This builder for chaining.
*/
public Builder clearFlags() {
flags_ = getDefaultInstance().getFlags();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* optional string flags = 4;
* @param value The bytes for flags to set.
* @return This builder for chaining.
*/
public Builder setFlagsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
flags_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* string valueString = 5;
* @return Whether the valueString field is set.
*/
@java.lang.Override
public boolean hasValueString() {
return valueCase_ == 5;
}
/**
* string valueString = 5;
* @return The valueString.
*/
@java.lang.Override
public java.lang.String getValueString() {
java.lang.Object ref = "";
if (valueCase_ == 5) {
ref = value_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (valueCase_ == 5) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string valueString = 5;
* @return The bytes for valueString.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueStringBytes() {
java.lang.Object ref = "";
if (valueCase_ == 5) {
ref = value_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (valueCase_ == 5) {
value_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string valueString = 5;
* @param value The valueString to set.
* @return This builder for chaining.
*/
public Builder setValueString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
valueCase_ = 5;
value_ = value;
onChanged();
return this;
}
/**
* string valueString = 5;
* @return This builder for chaining.
*/
public Builder clearValueString() {
if (valueCase_ == 5) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* string valueString = 5;
* @param value The bytes for valueString to set.
* @return This builder for chaining.
*/
public Builder setValueStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
valueCase_ = 5;
value_ = value;
onChanged();
return this;
}
/**
* bool valueBoolean = 6;
* @return Whether the valueBoolean field is set.
*/
public boolean hasValueBoolean() {
return valueCase_ == 6;
}
/**
* bool valueBoolean = 6;
* @return The valueBoolean.
*/
public boolean getValueBoolean() {
if (valueCase_ == 6) {
return (java.lang.Boolean) value_;
}
return false;
}
/**
* bool valueBoolean = 6;
* @param value The valueBoolean to set.
* @return This builder for chaining.
*/
public Builder setValueBoolean(boolean value) {
valueCase_ = 6;
value_ = value;
onChanged();
return this;
}
/**
* bool valueBoolean = 6;
* @return This builder for chaining.
*/
public Builder clearValueBoolean() {
if (valueCase_ == 6) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* int32 valueNumber = 7;
* @return Whether the valueNumber field is set.
*/
public boolean hasValueNumber() {
return valueCase_ == 7;
}
/**
* int32 valueNumber = 7;
* @return The valueNumber.
*/
public int getValueNumber() {
if (valueCase_ == 7) {
return (java.lang.Integer) value_;
}
return 0;
}
/**
* int32 valueNumber = 7;
* @param value The valueNumber to set.
* @return This builder for chaining.
*/
public Builder setValueNumber(int value) {
valueCase_ = 7;
value_ = value;
onChanged();
return this;
}
/**
* int32 valueNumber = 7;
* @return This builder for chaining.
*/
public Builder clearValueNumber() {
if (valueCase_ == 7) {
valueCase_ = 0;
value_ = null;
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:Literal)
}
// @@protoc_insertion_point(class_scope:Literal)
private static final org.sonar.plugins.javascript.bridge.protobuf.Literal DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonar.plugins.javascript.bridge.protobuf.Literal();
}
public static org.sonar.plugins.javascript.bridge.protobuf.Literal getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Literal 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 org.sonar.plugins.javascript.bridge.protobuf.Literal getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}