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.SwitchCase 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 SwitchCase}
*/
public final class SwitchCase extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:SwitchCase)
SwitchCaseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SwitchCase.newBuilder() to construct.
private SwitchCase(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SwitchCase() {
consequent_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SwitchCase();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_SwitchCase_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_SwitchCase_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonar.plugins.javascript.bridge.protobuf.SwitchCase.class, org.sonar.plugins.javascript.bridge.protobuf.SwitchCase.Builder.class);
}
private int bitField0_;
public static final int TEST_FIELD_NUMBER = 1;
private org.sonar.plugins.javascript.bridge.protobuf.Node test_;
/**
* optional .Node test = 1;
* @return Whether the test field is set.
*/
@java.lang.Override
public boolean hasTest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .Node test = 1;
* @return The test.
*/
@java.lang.Override
public org.sonar.plugins.javascript.bridge.protobuf.Node getTest() {
return test_ == null ? org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance() : test_;
}
/**
* optional .Node test = 1;
*/
@java.lang.Override
public org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder getTestOrBuilder() {
return test_ == null ? org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance() : test_;
}
public static final int CONSEQUENT_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List consequent_;
/**
* repeated .Node consequent = 2;
*/
@java.lang.Override
public java.util.List getConsequentList() {
return consequent_;
}
/**
* repeated .Node consequent = 2;
*/
@java.lang.Override
public java.util.List extends org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder>
getConsequentOrBuilderList() {
return consequent_;
}
/**
* repeated .Node consequent = 2;
*/
@java.lang.Override
public int getConsequentCount() {
return consequent_.size();
}
/**
* repeated .Node consequent = 2;
*/
@java.lang.Override
public org.sonar.plugins.javascript.bridge.protobuf.Node getConsequent(int index) {
return consequent_.get(index);
}
/**
* repeated .Node consequent = 2;
*/
@java.lang.Override
public org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder getConsequentOrBuilder(
int index) {
return consequent_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getTest());
}
for (int i = 0; i < consequent_.size(); i++) {
output.writeMessage(2, consequent_.get(i));
}
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, getTest());
}
for (int i = 0; i < consequent_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, consequent_.get(i));
}
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.SwitchCase)) {
return super.equals(obj);
}
org.sonar.plugins.javascript.bridge.protobuf.SwitchCase other = (org.sonar.plugins.javascript.bridge.protobuf.SwitchCase) obj;
if (hasTest() != other.hasTest()) return false;
if (hasTest()) {
if (!getTest()
.equals(other.getTest())) return false;
}
if (!getConsequentList()
.equals(other.getConsequentList())) 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 (hasTest()) {
hash = (37 * hash) + TEST_FIELD_NUMBER;
hash = (53 * hash) + getTest().hashCode();
}
if (getConsequentCount() > 0) {
hash = (37 * hash) + CONSEQUENT_FIELD_NUMBER;
hash = (53 * hash) + getConsequentList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.sonar.plugins.javascript.bridge.protobuf.SwitchCase parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonar.plugins.javascript.bridge.protobuf.SwitchCase 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.SwitchCase parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonar.plugins.javascript.bridge.protobuf.SwitchCase 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.SwitchCase parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonar.plugins.javascript.bridge.protobuf.SwitchCase 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.SwitchCase 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.SwitchCase 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.SwitchCase 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.SwitchCase 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.SwitchCase 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.SwitchCase 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.SwitchCase 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 SwitchCase}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:SwitchCase)
org.sonar.plugins.javascript.bridge.protobuf.SwitchCaseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_SwitchCase_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_SwitchCase_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonar.plugins.javascript.bridge.protobuf.SwitchCase.class, org.sonar.plugins.javascript.bridge.protobuf.SwitchCase.Builder.class);
}
// Construct using org.sonar.plugins.javascript.bridge.protobuf.SwitchCase.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTestFieldBuilder();
getConsequentFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
test_ = null;
if (testBuilder_ != null) {
testBuilder_.dispose();
testBuilder_ = null;
}
if (consequentBuilder_ == null) {
consequent_ = java.util.Collections.emptyList();
} else {
consequent_ = null;
consequentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_SwitchCase_descriptor;
}
@java.lang.Override
public org.sonar.plugins.javascript.bridge.protobuf.SwitchCase getDefaultInstanceForType() {
return org.sonar.plugins.javascript.bridge.protobuf.SwitchCase.getDefaultInstance();
}
@java.lang.Override
public org.sonar.plugins.javascript.bridge.protobuf.SwitchCase build() {
org.sonar.plugins.javascript.bridge.protobuf.SwitchCase result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.sonar.plugins.javascript.bridge.protobuf.SwitchCase buildPartial() {
org.sonar.plugins.javascript.bridge.protobuf.SwitchCase result = new org.sonar.plugins.javascript.bridge.protobuf.SwitchCase(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.sonar.plugins.javascript.bridge.protobuf.SwitchCase result) {
if (consequentBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
consequent_ = java.util.Collections.unmodifiableList(consequent_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.consequent_ = consequent_;
} else {
result.consequent_ = consequentBuilder_.build();
}
}
private void buildPartial0(org.sonar.plugins.javascript.bridge.protobuf.SwitchCase result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.test_ = testBuilder_ == null
? test_
: testBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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 org.sonar.plugins.javascript.bridge.protobuf.SwitchCase) {
return mergeFrom((org.sonar.plugins.javascript.bridge.protobuf.SwitchCase)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonar.plugins.javascript.bridge.protobuf.SwitchCase other) {
if (other == org.sonar.plugins.javascript.bridge.protobuf.SwitchCase.getDefaultInstance()) return this;
if (other.hasTest()) {
mergeTest(other.getTest());
}
if (consequentBuilder_ == null) {
if (!other.consequent_.isEmpty()) {
if (consequent_.isEmpty()) {
consequent_ = other.consequent_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureConsequentIsMutable();
consequent_.addAll(other.consequent_);
}
onChanged();
}
} else {
if (!other.consequent_.isEmpty()) {
if (consequentBuilder_.isEmpty()) {
consequentBuilder_.dispose();
consequentBuilder_ = null;
consequent_ = other.consequent_;
bitField0_ = (bitField0_ & ~0x00000002);
consequentBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getConsequentFieldBuilder() : null;
} else {
consequentBuilder_.addAllMessages(other.consequent_);
}
}
}
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(
getTestFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
org.sonar.plugins.javascript.bridge.protobuf.Node m =
input.readMessage(
org.sonar.plugins.javascript.bridge.protobuf.Node.parser(),
extensionRegistry);
if (consequentBuilder_ == null) {
ensureConsequentIsMutable();
consequent_.add(m);
} else {
consequentBuilder_.addMessage(m);
}
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private org.sonar.plugins.javascript.bridge.protobuf.Node test_;
private com.google.protobuf.SingleFieldBuilderV3<
org.sonar.plugins.javascript.bridge.protobuf.Node, org.sonar.plugins.javascript.bridge.protobuf.Node.Builder, org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder> testBuilder_;
/**
* optional .Node test = 1;
* @return Whether the test field is set.
*/
public boolean hasTest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .Node test = 1;
* @return The test.
*/
public org.sonar.plugins.javascript.bridge.protobuf.Node getTest() {
if (testBuilder_ == null) {
return test_ == null ? org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance() : test_;
} else {
return testBuilder_.getMessage();
}
}
/**
* optional .Node test = 1;
*/
public Builder setTest(org.sonar.plugins.javascript.bridge.protobuf.Node value) {
if (testBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
test_ = value;
} else {
testBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional .Node test = 1;
*/
public Builder setTest(
org.sonar.plugins.javascript.bridge.protobuf.Node.Builder builderForValue) {
if (testBuilder_ == null) {
test_ = builderForValue.build();
} else {
testBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional .Node test = 1;
*/
public Builder mergeTest(org.sonar.plugins.javascript.bridge.protobuf.Node value) {
if (testBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
test_ != null &&
test_ != org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance()) {
getTestBuilder().mergeFrom(value);
} else {
test_ = value;
}
} else {
testBuilder_.mergeFrom(value);
}
if (test_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* optional .Node test = 1;
*/
public Builder clearTest() {
bitField0_ = (bitField0_ & ~0x00000001);
test_ = null;
if (testBuilder_ != null) {
testBuilder_.dispose();
testBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .Node test = 1;
*/
public org.sonar.plugins.javascript.bridge.protobuf.Node.Builder getTestBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTestFieldBuilder().getBuilder();
}
/**
* optional .Node test = 1;
*/
public org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder getTestOrBuilder() {
if (testBuilder_ != null) {
return testBuilder_.getMessageOrBuilder();
} else {
return test_ == null ?
org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance() : test_;
}
}
/**
* optional .Node test = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.sonar.plugins.javascript.bridge.protobuf.Node, org.sonar.plugins.javascript.bridge.protobuf.Node.Builder, org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder>
getTestFieldBuilder() {
if (testBuilder_ == null) {
testBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.sonar.plugins.javascript.bridge.protobuf.Node, org.sonar.plugins.javascript.bridge.protobuf.Node.Builder, org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder>(
getTest(),
getParentForChildren(),
isClean());
test_ = null;
}
return testBuilder_;
}
private java.util.List consequent_ =
java.util.Collections.emptyList();
private void ensureConsequentIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
consequent_ = new java.util.ArrayList(consequent_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.sonar.plugins.javascript.bridge.protobuf.Node, org.sonar.plugins.javascript.bridge.protobuf.Node.Builder, org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder> consequentBuilder_;
/**
* repeated .Node consequent = 2;
*/
public java.util.List getConsequentList() {
if (consequentBuilder_ == null) {
return java.util.Collections.unmodifiableList(consequent_);
} else {
return consequentBuilder_.getMessageList();
}
}
/**
* repeated .Node consequent = 2;
*/
public int getConsequentCount() {
if (consequentBuilder_ == null) {
return consequent_.size();
} else {
return consequentBuilder_.getCount();
}
}
/**
* repeated .Node consequent = 2;
*/
public org.sonar.plugins.javascript.bridge.protobuf.Node getConsequent(int index) {
if (consequentBuilder_ == null) {
return consequent_.get(index);
} else {
return consequentBuilder_.getMessage(index);
}
}
/**
* repeated .Node consequent = 2;
*/
public Builder setConsequent(
int index, org.sonar.plugins.javascript.bridge.protobuf.Node value) {
if (consequentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConsequentIsMutable();
consequent_.set(index, value);
onChanged();
} else {
consequentBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Node consequent = 2;
*/
public Builder setConsequent(
int index, org.sonar.plugins.javascript.bridge.protobuf.Node.Builder builderForValue) {
if (consequentBuilder_ == null) {
ensureConsequentIsMutable();
consequent_.set(index, builderForValue.build());
onChanged();
} else {
consequentBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Node consequent = 2;
*/
public Builder addConsequent(org.sonar.plugins.javascript.bridge.protobuf.Node value) {
if (consequentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConsequentIsMutable();
consequent_.add(value);
onChanged();
} else {
consequentBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Node consequent = 2;
*/
public Builder addConsequent(
int index, org.sonar.plugins.javascript.bridge.protobuf.Node value) {
if (consequentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConsequentIsMutable();
consequent_.add(index, value);
onChanged();
} else {
consequentBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Node consequent = 2;
*/
public Builder addConsequent(
org.sonar.plugins.javascript.bridge.protobuf.Node.Builder builderForValue) {
if (consequentBuilder_ == null) {
ensureConsequentIsMutable();
consequent_.add(builderForValue.build());
onChanged();
} else {
consequentBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Node consequent = 2;
*/
public Builder addConsequent(
int index, org.sonar.plugins.javascript.bridge.protobuf.Node.Builder builderForValue) {
if (consequentBuilder_ == null) {
ensureConsequentIsMutable();
consequent_.add(index, builderForValue.build());
onChanged();
} else {
consequentBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Node consequent = 2;
*/
public Builder addAllConsequent(
java.lang.Iterable extends org.sonar.plugins.javascript.bridge.protobuf.Node> values) {
if (consequentBuilder_ == null) {
ensureConsequentIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, consequent_);
onChanged();
} else {
consequentBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Node consequent = 2;
*/
public Builder clearConsequent() {
if (consequentBuilder_ == null) {
consequent_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
consequentBuilder_.clear();
}
return this;
}
/**
* repeated .Node consequent = 2;
*/
public Builder removeConsequent(int index) {
if (consequentBuilder_ == null) {
ensureConsequentIsMutable();
consequent_.remove(index);
onChanged();
} else {
consequentBuilder_.remove(index);
}
return this;
}
/**
* repeated .Node consequent = 2;
*/
public org.sonar.plugins.javascript.bridge.protobuf.Node.Builder getConsequentBuilder(
int index) {
return getConsequentFieldBuilder().getBuilder(index);
}
/**
* repeated .Node consequent = 2;
*/
public org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder getConsequentOrBuilder(
int index) {
if (consequentBuilder_ == null) {
return consequent_.get(index); } else {
return consequentBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Node consequent = 2;
*/
public java.util.List extends org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder>
getConsequentOrBuilderList() {
if (consequentBuilder_ != null) {
return consequentBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(consequent_);
}
}
/**
* repeated .Node consequent = 2;
*/
public org.sonar.plugins.javascript.bridge.protobuf.Node.Builder addConsequentBuilder() {
return getConsequentFieldBuilder().addBuilder(
org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance());
}
/**
* repeated .Node consequent = 2;
*/
public org.sonar.plugins.javascript.bridge.protobuf.Node.Builder addConsequentBuilder(
int index) {
return getConsequentFieldBuilder().addBuilder(
index, org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance());
}
/**
* repeated .Node consequent = 2;
*/
public java.util.List
getConsequentBuilderList() {
return getConsequentFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.sonar.plugins.javascript.bridge.protobuf.Node, org.sonar.plugins.javascript.bridge.protobuf.Node.Builder, org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder>
getConsequentFieldBuilder() {
if (consequentBuilder_ == null) {
consequentBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.sonar.plugins.javascript.bridge.protobuf.Node, org.sonar.plugins.javascript.bridge.protobuf.Node.Builder, org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder>(
consequent_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
consequent_ = null;
}
return consequentBuilder_;
}
@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:SwitchCase)
}
// @@protoc_insertion_point(class_scope:SwitchCase)
private static final org.sonar.plugins.javascript.bridge.protobuf.SwitchCase DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonar.plugins.javascript.bridge.protobuf.SwitchCase();
}
public static org.sonar.plugins.javascript.bridge.protobuf.SwitchCase getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SwitchCase 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.SwitchCase getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}