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.MemberExpression Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: estree.proto
// Protobuf Java Version: 3.25.5
package org.sonar.plugins.javascript.bridge.protobuf;
/**
* Protobuf type {@code MemberExpression}
*/
public final class MemberExpression extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:MemberExpression)
MemberExpressionOrBuilder {
private static final long serialVersionUID = 0L;
// Use MemberExpression.newBuilder() to construct.
private MemberExpression(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MemberExpression() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MemberExpression();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_MemberExpression_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_MemberExpression_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonar.plugins.javascript.bridge.protobuf.MemberExpression.class, org.sonar.plugins.javascript.bridge.protobuf.MemberExpression.Builder.class);
}
private int bitField0_;
public static final int OBJECT_FIELD_NUMBER = 1;
private org.sonar.plugins.javascript.bridge.protobuf.Node object_;
/**
* .Node object = 1;
* @return Whether the object field is set.
*/
@java.lang.Override
public boolean hasObject() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Node object = 1;
* @return The object.
*/
@java.lang.Override
public org.sonar.plugins.javascript.bridge.protobuf.Node getObject() {
return object_ == null ? org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance() : object_;
}
/**
* .Node object = 1;
*/
@java.lang.Override
public org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder getObjectOrBuilder() {
return object_ == null ? org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance() : object_;
}
public static final int PROPERTY_FIELD_NUMBER = 2;
private org.sonar.plugins.javascript.bridge.protobuf.Node property_;
/**
* .Node property = 2;
* @return Whether the property field is set.
*/
@java.lang.Override
public boolean hasProperty() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .Node property = 2;
* @return The property.
*/
@java.lang.Override
public org.sonar.plugins.javascript.bridge.protobuf.Node getProperty() {
return property_ == null ? org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance() : property_;
}
/**
* .Node property = 2;
*/
@java.lang.Override
public org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder getPropertyOrBuilder() {
return property_ == null ? org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance() : property_;
}
public static final int COMPUTED_FIELD_NUMBER = 3;
private boolean computed_ = false;
/**
* bool computed = 3;
* @return The computed.
*/
@java.lang.Override
public boolean getComputed() {
return computed_;
}
public static final int OPTIONAL_FIELD_NUMBER = 4;
private boolean optional_ = false;
/**
* bool optional = 4;
* @return The optional.
*/
@java.lang.Override
public boolean getOptional() {
return optional_;
}
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, getObject());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getProperty());
}
if (computed_ != false) {
output.writeBool(3, computed_);
}
if (optional_ != false) {
output.writeBool(4, optional_);
}
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, getObject());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getProperty());
}
if (computed_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, computed_);
}
if (optional_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, optional_);
}
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.MemberExpression)) {
return super.equals(obj);
}
org.sonar.plugins.javascript.bridge.protobuf.MemberExpression other = (org.sonar.plugins.javascript.bridge.protobuf.MemberExpression) obj;
if (hasObject() != other.hasObject()) return false;
if (hasObject()) {
if (!getObject()
.equals(other.getObject())) return false;
}
if (hasProperty() != other.hasProperty()) return false;
if (hasProperty()) {
if (!getProperty()
.equals(other.getProperty())) return false;
}
if (getComputed()
!= other.getComputed()) return false;
if (getOptional()
!= other.getOptional()) 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 (hasObject()) {
hash = (37 * hash) + OBJECT_FIELD_NUMBER;
hash = (53 * hash) + getObject().hashCode();
}
if (hasProperty()) {
hash = (37 * hash) + PROPERTY_FIELD_NUMBER;
hash = (53 * hash) + getProperty().hashCode();
}
hash = (37 * hash) + COMPUTED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getComputed());
hash = (37 * hash) + OPTIONAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getOptional());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.sonar.plugins.javascript.bridge.protobuf.MemberExpression parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonar.plugins.javascript.bridge.protobuf.MemberExpression 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.MemberExpression parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonar.plugins.javascript.bridge.protobuf.MemberExpression 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.MemberExpression parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonar.plugins.javascript.bridge.protobuf.MemberExpression 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.MemberExpression 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.MemberExpression 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.MemberExpression 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.MemberExpression 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.MemberExpression 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.MemberExpression 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.MemberExpression 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 MemberExpression}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:MemberExpression)
org.sonar.plugins.javascript.bridge.protobuf.MemberExpressionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_MemberExpression_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_MemberExpression_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonar.plugins.javascript.bridge.protobuf.MemberExpression.class, org.sonar.plugins.javascript.bridge.protobuf.MemberExpression.Builder.class);
}
// Construct using org.sonar.plugins.javascript.bridge.protobuf.MemberExpression.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getObjectFieldBuilder();
getPropertyFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
object_ = null;
if (objectBuilder_ != null) {
objectBuilder_.dispose();
objectBuilder_ = null;
}
property_ = null;
if (propertyBuilder_ != null) {
propertyBuilder_.dispose();
propertyBuilder_ = null;
}
computed_ = false;
optional_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_MemberExpression_descriptor;
}
@java.lang.Override
public org.sonar.plugins.javascript.bridge.protobuf.MemberExpression getDefaultInstanceForType() {
return org.sonar.plugins.javascript.bridge.protobuf.MemberExpression.getDefaultInstance();
}
@java.lang.Override
public org.sonar.plugins.javascript.bridge.protobuf.MemberExpression build() {
org.sonar.plugins.javascript.bridge.protobuf.MemberExpression result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.sonar.plugins.javascript.bridge.protobuf.MemberExpression buildPartial() {
org.sonar.plugins.javascript.bridge.protobuf.MemberExpression result = new org.sonar.plugins.javascript.bridge.protobuf.MemberExpression(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.sonar.plugins.javascript.bridge.protobuf.MemberExpression result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.object_ = objectBuilder_ == null
? object_
: objectBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.property_ = propertyBuilder_ == null
? property_
: propertyBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.computed_ = computed_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.optional_ = optional_;
}
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.MemberExpression) {
return mergeFrom((org.sonar.plugins.javascript.bridge.protobuf.MemberExpression)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonar.plugins.javascript.bridge.protobuf.MemberExpression other) {
if (other == org.sonar.plugins.javascript.bridge.protobuf.MemberExpression.getDefaultInstance()) return this;
if (other.hasObject()) {
mergeObject(other.getObject());
}
if (other.hasProperty()) {
mergeProperty(other.getProperty());
}
if (other.getComputed() != false) {
setComputed(other.getComputed());
}
if (other.getOptional() != false) {
setOptional(other.getOptional());
}
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(
getObjectFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getPropertyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
computed_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
optional_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
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 object_;
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> objectBuilder_;
/**
* .Node object = 1;
* @return Whether the object field is set.
*/
public boolean hasObject() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Node object = 1;
* @return The object.
*/
public org.sonar.plugins.javascript.bridge.protobuf.Node getObject() {
if (objectBuilder_ == null) {
return object_ == null ? org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance() : object_;
} else {
return objectBuilder_.getMessage();
}
}
/**
* .Node object = 1;
*/
public Builder setObject(org.sonar.plugins.javascript.bridge.protobuf.Node value) {
if (objectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
object_ = value;
} else {
objectBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Node object = 1;
*/
public Builder setObject(
org.sonar.plugins.javascript.bridge.protobuf.Node.Builder builderForValue) {
if (objectBuilder_ == null) {
object_ = builderForValue.build();
} else {
objectBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Node object = 1;
*/
public Builder mergeObject(org.sonar.plugins.javascript.bridge.protobuf.Node value) {
if (objectBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
object_ != null &&
object_ != org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance()) {
getObjectBuilder().mergeFrom(value);
} else {
object_ = value;
}
} else {
objectBuilder_.mergeFrom(value);
}
if (object_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .Node object = 1;
*/
public Builder clearObject() {
bitField0_ = (bitField0_ & ~0x00000001);
object_ = null;
if (objectBuilder_ != null) {
objectBuilder_.dispose();
objectBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Node object = 1;
*/
public org.sonar.plugins.javascript.bridge.protobuf.Node.Builder getObjectBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getObjectFieldBuilder().getBuilder();
}
/**
* .Node object = 1;
*/
public org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder getObjectOrBuilder() {
if (objectBuilder_ != null) {
return objectBuilder_.getMessageOrBuilder();
} else {
return object_ == null ?
org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance() : object_;
}
}
/**
* .Node object = 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>
getObjectFieldBuilder() {
if (objectBuilder_ == null) {
objectBuilder_ = 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>(
getObject(),
getParentForChildren(),
isClean());
object_ = null;
}
return objectBuilder_;
}
private org.sonar.plugins.javascript.bridge.protobuf.Node property_;
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> propertyBuilder_;
/**
* .Node property = 2;
* @return Whether the property field is set.
*/
public boolean hasProperty() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .Node property = 2;
* @return The property.
*/
public org.sonar.plugins.javascript.bridge.protobuf.Node getProperty() {
if (propertyBuilder_ == null) {
return property_ == null ? org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance() : property_;
} else {
return propertyBuilder_.getMessage();
}
}
/**
* .Node property = 2;
*/
public Builder setProperty(org.sonar.plugins.javascript.bridge.protobuf.Node value) {
if (propertyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
property_ = value;
} else {
propertyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .Node property = 2;
*/
public Builder setProperty(
org.sonar.plugins.javascript.bridge.protobuf.Node.Builder builderForValue) {
if (propertyBuilder_ == null) {
property_ = builderForValue.build();
} else {
propertyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .Node property = 2;
*/
public Builder mergeProperty(org.sonar.plugins.javascript.bridge.protobuf.Node value) {
if (propertyBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
property_ != null &&
property_ != org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance()) {
getPropertyBuilder().mergeFrom(value);
} else {
property_ = value;
}
} else {
propertyBuilder_.mergeFrom(value);
}
if (property_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .Node property = 2;
*/
public Builder clearProperty() {
bitField0_ = (bitField0_ & ~0x00000002);
property_ = null;
if (propertyBuilder_ != null) {
propertyBuilder_.dispose();
propertyBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Node property = 2;
*/
public org.sonar.plugins.javascript.bridge.protobuf.Node.Builder getPropertyBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getPropertyFieldBuilder().getBuilder();
}
/**
* .Node property = 2;
*/
public org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder getPropertyOrBuilder() {
if (propertyBuilder_ != null) {
return propertyBuilder_.getMessageOrBuilder();
} else {
return property_ == null ?
org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance() : property_;
}
}
/**
* .Node property = 2;
*/
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>
getPropertyFieldBuilder() {
if (propertyBuilder_ == null) {
propertyBuilder_ = 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>(
getProperty(),
getParentForChildren(),
isClean());
property_ = null;
}
return propertyBuilder_;
}
private boolean computed_ ;
/**
* bool computed = 3;
* @return The computed.
*/
@java.lang.Override
public boolean getComputed() {
return computed_;
}
/**
* bool computed = 3;
* @param value The computed to set.
* @return This builder for chaining.
*/
public Builder setComputed(boolean value) {
computed_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* bool computed = 3;
* @return This builder for chaining.
*/
public Builder clearComputed() {
bitField0_ = (bitField0_ & ~0x00000004);
computed_ = false;
onChanged();
return this;
}
private boolean optional_ ;
/**
* bool optional = 4;
* @return The optional.
*/
@java.lang.Override
public boolean getOptional() {
return optional_;
}
/**
* bool optional = 4;
* @param value The optional to set.
* @return This builder for chaining.
*/
public Builder setOptional(boolean value) {
optional_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* bool optional = 4;
* @return This builder for chaining.
*/
public Builder clearOptional() {
bitField0_ = (bitField0_ & ~0x00000008);
optional_ = false;
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:MemberExpression)
}
// @@protoc_insertion_point(class_scope:MemberExpression)
private static final org.sonar.plugins.javascript.bridge.protobuf.MemberExpression DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonar.plugins.javascript.bridge.protobuf.MemberExpression();
}
public static org.sonar.plugins.javascript.bridge.protobuf.MemberExpression getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MemberExpression 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.MemberExpression getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}