All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.sommeri.sourcemap.Mapping Maven / Gradle / Ivy

Go to download

Less language is an extension of css and less4j compiles it into regular css. It adds several dynamic features into css: variables, expressions, nested rules. Less4j is a port. The original compiler was written in JavaScript and is called less.js. The less language is mostly defined in less.js documentation/issues and by what less.js actually do. Links to less.js: * home page: http://lesscss.org/ * source code & issues: https://github.com/cloudhead/less.js

There is a newer version: 1.17.2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: mapping.proto

package com.github.sommeri.sourcemap;

public final class Mapping {
  private Mapping() {
  }

  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
  }

  public interface LineMappingOrBuilder extends com.google.protobuf.MessageOrBuilder {

    // optional int32 line_number = 1;
    /**
     * optional int32 line_number = 1;
     * 
     * 
     * The line number of the generated code.
     * 
*/ boolean hasLineNumber(); /** * optional int32 line_number = 1; * *
     * The line number of the generated code.
     * 
*/ int getLineNumber(); // optional int32 column_position = 2; /** * optional int32 column_position = 2; * *
     * The column position on the line.
     * 
*/ boolean hasColumnPosition(); /** * optional int32 column_position = 2; * *
     * The column position on the line.
     * 
*/ int getColumnPosition(); // optional .sourcemap.OriginalMapping original_mapping = 3; /** * optional .sourcemap.OriginalMapping original_mapping = 3; * *
     * The original mapping for this line mapping.
     * 
*/ boolean hasOriginalMapping(); /** * optional .sourcemap.OriginalMapping original_mapping = 3; * *
     * The original mapping for this line mapping.
     * 
*/ com.github.sommeri.sourcemap.Mapping.OriginalMapping getOriginalMapping(); /** * optional .sourcemap.OriginalMapping original_mapping = 3; * *
     * The original mapping for this line mapping.
     * 
*/ com.github.sommeri.sourcemap.Mapping.OriginalMappingOrBuilder getOriginalMappingOrBuilder(); } /** * Protobuf type {@code sourcemap.LineMapping} * *
   * Maps a position on a given line to the mapping describing
   * the original code.
   * 
*/ public static final class LineMapping extends com.google.protobuf.GeneratedMessage implements LineMappingOrBuilder { // Use LineMapping.newBuilder() to construct. private LineMapping(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private LineMapping(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final LineMapping defaultInstance; public static LineMapping getDefaultInstance() { return defaultInstance; } public LineMapping getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LineMapping(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; lineNumber_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; columnPosition_ = input.readInt32(); break; } case 26: { com.github.sommeri.sourcemap.Mapping.OriginalMapping.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = originalMapping_.toBuilder(); } originalMapping_ = input.readMessage(com.github.sommeri.sourcemap.Mapping.OriginalMapping.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(originalMapping_); originalMapping_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.github.sommeri.sourcemap.Mapping.internal_static_sourcemap_LineMapping_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.github.sommeri.sourcemap.Mapping.internal_static_sourcemap_LineMapping_fieldAccessorTable.ensureFieldAccessorsInitialized(com.github.sommeri.sourcemap.Mapping.LineMapping.class, com.github.sommeri.sourcemap.Mapping.LineMapping.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LineMapping parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LineMapping(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional int32 line_number = 1; public static final int LINE_NUMBER_FIELD_NUMBER = 1; private int lineNumber_; /** * optional int32 line_number = 1; * *
     * The line number of the generated code.
     * 
*/ public boolean hasLineNumber() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 line_number = 1; * *
     * The line number of the generated code.
     * 
*/ public int getLineNumber() { return lineNumber_; } // optional int32 column_position = 2; public static final int COLUMN_POSITION_FIELD_NUMBER = 2; private int columnPosition_; /** * optional int32 column_position = 2; * *
     * The column position on the line.
     * 
*/ public boolean hasColumnPosition() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 column_position = 2; * *
     * The column position on the line.
     * 
*/ public int getColumnPosition() { return columnPosition_; } // optional .sourcemap.OriginalMapping original_mapping = 3; public static final int ORIGINAL_MAPPING_FIELD_NUMBER = 3; private com.github.sommeri.sourcemap.Mapping.OriginalMapping originalMapping_; /** * optional .sourcemap.OriginalMapping original_mapping = 3; * *
     * The original mapping for this line mapping.
     * 
*/ public boolean hasOriginalMapping() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .sourcemap.OriginalMapping original_mapping = 3; * *
     * The original mapping for this line mapping.
     * 
*/ public com.github.sommeri.sourcemap.Mapping.OriginalMapping getOriginalMapping() { return originalMapping_; } /** * optional .sourcemap.OriginalMapping original_mapping = 3; * *
     * The original mapping for this line mapping.
     * 
*/ public com.github.sommeri.sourcemap.Mapping.OriginalMappingOrBuilder getOriginalMappingOrBuilder() { return originalMapping_; } private void initFields() { lineNumber_ = 0; columnPosition_ = 0; originalMapping_ = com.github.sommeri.sourcemap.Mapping.OriginalMapping.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, lineNumber_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, columnPosition_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, originalMapping_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, lineNumber_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, columnPosition_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, originalMapping_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.github.sommeri.sourcemap.Mapping.LineMapping parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.github.sommeri.sourcemap.Mapping.LineMapping parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.github.sommeri.sourcemap.Mapping.LineMapping parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.github.sommeri.sourcemap.Mapping.LineMapping parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.github.sommeri.sourcemap.Mapping.LineMapping parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.github.sommeri.sourcemap.Mapping.LineMapping parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.github.sommeri.sourcemap.Mapping.LineMapping parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.github.sommeri.sourcemap.Mapping.LineMapping parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.github.sommeri.sourcemap.Mapping.LineMapping parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.github.sommeri.sourcemap.Mapping.LineMapping parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.github.sommeri.sourcemap.Mapping.LineMapping prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sourcemap.LineMapping} * *
     * Maps a position on a given line to the mapping describing
     * the original code.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements com.github.sommeri.sourcemap.Mapping.LineMappingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.github.sommeri.sourcemap.Mapping.internal_static_sourcemap_LineMapping_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.github.sommeri.sourcemap.Mapping.internal_static_sourcemap_LineMapping_fieldAccessorTable.ensureFieldAccessorsInitialized(com.github.sommeri.sourcemap.Mapping.LineMapping.class, com.github.sommeri.sourcemap.Mapping.LineMapping.Builder.class); } // Construct using com.github.sommeri.sourcemap.Mapping.LineMapping.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getOriginalMappingFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); lineNumber_ = 0; bitField0_ = (bitField0_ & ~0x00000001); columnPosition_ = 0; bitField0_ = (bitField0_ & ~0x00000002); if (originalMappingBuilder_ == null) { originalMapping_ = com.github.sommeri.sourcemap.Mapping.OriginalMapping.getDefaultInstance(); } else { originalMappingBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.github.sommeri.sourcemap.Mapping.internal_static_sourcemap_LineMapping_descriptor; } public com.github.sommeri.sourcemap.Mapping.LineMapping getDefaultInstanceForType() { return com.github.sommeri.sourcemap.Mapping.LineMapping.getDefaultInstance(); } public com.github.sommeri.sourcemap.Mapping.LineMapping build() { com.github.sommeri.sourcemap.Mapping.LineMapping result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.github.sommeri.sourcemap.Mapping.LineMapping buildPartial() { com.github.sommeri.sourcemap.Mapping.LineMapping result = new com.github.sommeri.sourcemap.Mapping.LineMapping(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.lineNumber_ = lineNumber_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.columnPosition_ = columnPosition_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (originalMappingBuilder_ == null) { result.originalMapping_ = originalMapping_; } else { result.originalMapping_ = originalMappingBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.github.sommeri.sourcemap.Mapping.LineMapping) { return mergeFrom((com.github.sommeri.sourcemap.Mapping.LineMapping) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.github.sommeri.sourcemap.Mapping.LineMapping other) { if (other == com.github.sommeri.sourcemap.Mapping.LineMapping.getDefaultInstance()) return this; if (other.hasLineNumber()) { setLineNumber(other.getLineNumber()); } if (other.hasColumnPosition()) { setColumnPosition(other.getColumnPosition()); } if (other.hasOriginalMapping()) { mergeOriginalMapping(other.getOriginalMapping()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.github.sommeri.sourcemap.Mapping.LineMapping parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.github.sommeri.sourcemap.Mapping.LineMapping) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 line_number = 1; private int lineNumber_; /** * optional int32 line_number = 1; * *
       * The line number of the generated code.
       * 
*/ public boolean hasLineNumber() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 line_number = 1; * *
       * The line number of the generated code.
       * 
*/ public int getLineNumber() { return lineNumber_; } /** * optional int32 line_number = 1; * *
       * The line number of the generated code.
       * 
*/ public Builder setLineNumber(int value) { bitField0_ |= 0x00000001; lineNumber_ = value; onChanged(); return this; } /** * optional int32 line_number = 1; * *
       * The line number of the generated code.
       * 
*/ public Builder clearLineNumber() { bitField0_ = (bitField0_ & ~0x00000001); lineNumber_ = 0; onChanged(); return this; } // optional int32 column_position = 2; private int columnPosition_; /** * optional int32 column_position = 2; * *
       * The column position on the line.
       * 
*/ public boolean hasColumnPosition() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 column_position = 2; * *
       * The column position on the line.
       * 
*/ public int getColumnPosition() { return columnPosition_; } /** * optional int32 column_position = 2; * *
       * The column position on the line.
       * 
*/ public Builder setColumnPosition(int value) { bitField0_ |= 0x00000002; columnPosition_ = value; onChanged(); return this; } /** * optional int32 column_position = 2; * *
       * The column position on the line.
       * 
*/ public Builder clearColumnPosition() { bitField0_ = (bitField0_ & ~0x00000002); columnPosition_ = 0; onChanged(); return this; } // optional .sourcemap.OriginalMapping original_mapping = 3; private com.github.sommeri.sourcemap.Mapping.OriginalMapping originalMapping_ = com.github.sommeri.sourcemap.Mapping.OriginalMapping.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder originalMappingBuilder_; /** * optional .sourcemap.OriginalMapping original_mapping = 3; * *
       * The original mapping for this line mapping.
       * 
*/ public boolean hasOriginalMapping() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .sourcemap.OriginalMapping original_mapping = 3; * *
       * The original mapping for this line mapping.
       * 
*/ public com.github.sommeri.sourcemap.Mapping.OriginalMapping getOriginalMapping() { if (originalMappingBuilder_ == null) { return originalMapping_; } else { return originalMappingBuilder_.getMessage(); } } /** * optional .sourcemap.OriginalMapping original_mapping = 3; * *
       * The original mapping for this line mapping.
       * 
*/ public Builder setOriginalMapping(com.github.sommeri.sourcemap.Mapping.OriginalMapping value) { if (originalMappingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } originalMapping_ = value; onChanged(); } else { originalMappingBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .sourcemap.OriginalMapping original_mapping = 3; * *
       * The original mapping for this line mapping.
       * 
*/ public Builder setOriginalMapping(com.github.sommeri.sourcemap.Mapping.OriginalMapping.Builder builderForValue) { if (originalMappingBuilder_ == null) { originalMapping_ = builderForValue.build(); onChanged(); } else { originalMappingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .sourcemap.OriginalMapping original_mapping = 3; * *
       * The original mapping for this line mapping.
       * 
*/ public Builder mergeOriginalMapping(com.github.sommeri.sourcemap.Mapping.OriginalMapping value) { if (originalMappingBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && originalMapping_ != com.github.sommeri.sourcemap.Mapping.OriginalMapping.getDefaultInstance()) { originalMapping_ = com.github.sommeri.sourcemap.Mapping.OriginalMapping.newBuilder(originalMapping_).mergeFrom(value).buildPartial(); } else { originalMapping_ = value; } onChanged(); } else { originalMappingBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .sourcemap.OriginalMapping original_mapping = 3; * *
       * The original mapping for this line mapping.
       * 
*/ public Builder clearOriginalMapping() { if (originalMappingBuilder_ == null) { originalMapping_ = com.github.sommeri.sourcemap.Mapping.OriginalMapping.getDefaultInstance(); onChanged(); } else { originalMappingBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .sourcemap.OriginalMapping original_mapping = 3; * *
       * The original mapping for this line mapping.
       * 
*/ public com.github.sommeri.sourcemap.Mapping.OriginalMapping.Builder getOriginalMappingBuilder() { bitField0_ |= 0x00000004; onChanged(); return getOriginalMappingFieldBuilder().getBuilder(); } /** * optional .sourcemap.OriginalMapping original_mapping = 3; * *
       * The original mapping for this line mapping.
       * 
*/ public com.github.sommeri.sourcemap.Mapping.OriginalMappingOrBuilder getOriginalMappingOrBuilder() { if (originalMappingBuilder_ != null) { return originalMappingBuilder_.getMessageOrBuilder(); } else { return originalMapping_; } } /** * optional .sourcemap.OriginalMapping original_mapping = 3; * *
       * The original mapping for this line mapping.
       * 
*/ private com.google.protobuf.SingleFieldBuilder getOriginalMappingFieldBuilder() { if (originalMappingBuilder_ == null) { originalMappingBuilder_ = new com.google.protobuf.SingleFieldBuilder(originalMapping_, getParentForChildren(), isClean()); originalMapping_ = null; } return originalMappingBuilder_; } // @@protoc_insertion_point(builder_scope:sourcemap.LineMapping) } static { defaultInstance = new LineMapping(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:sourcemap.LineMapping) } public interface OriginalMappingOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string original_file = 1; /** * optional string original_file = 1; * *
     * The original source file.
     * 
*/ boolean hasOriginalFile(); /** * optional string original_file = 1; * *
     * The original source file.
     * 
*/ java.lang.String getOriginalFile(); /** * optional string original_file = 1; * *
     * The original source file.
     * 
*/ com.google.protobuf.ByteString getOriginalFileBytes(); // optional int32 line_number = 2; /** * optional int32 line_number = 2; * *
     * The line in the original file.
     * 
*/ boolean hasLineNumber(); /** * optional int32 line_number = 2; * *
     * The line in the original file.
     * 
*/ int getLineNumber(); // optional int32 column_position = 3; /** * optional int32 column_position = 3; * *
     * The column number on the line.
     * 
*/ boolean hasColumnPosition(); /** * optional int32 column_position = 3; * *
     * The column number on the line.
     * 
*/ int getColumnPosition(); // optional string identifier = 4; /** * optional string identifier = 4; * *
     * The original name of the identifier.
     * 
*/ boolean hasIdentifier(); /** * optional string identifier = 4; * *
     * The original name of the identifier.
     * 
*/ java.lang.String getIdentifier(); /** * optional string identifier = 4; * *
     * The original name of the identifier.
     * 
*/ com.google.protobuf.ByteString getIdentifierBytes(); } /** * Protobuf type {@code sourcemap.OriginalMapping} */ public static final class OriginalMapping extends com.google.protobuf.GeneratedMessage implements OriginalMappingOrBuilder { // Use OriginalMapping.newBuilder() to construct. private OriginalMapping(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OriginalMapping(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OriginalMapping defaultInstance; public static OriginalMapping getDefaultInstance() { return defaultInstance; } public OriginalMapping getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OriginalMapping(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; originalFile_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; lineNumber_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; columnPosition_ = input.readInt32(); break; } case 34: { bitField0_ |= 0x00000008; identifier_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.github.sommeri.sourcemap.Mapping.internal_static_sourcemap_OriginalMapping_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.github.sommeri.sourcemap.Mapping.internal_static_sourcemap_OriginalMapping_fieldAccessorTable.ensureFieldAccessorsInitialized(com.github.sommeri.sourcemap.Mapping.OriginalMapping.class, com.github.sommeri.sourcemap.Mapping.OriginalMapping.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OriginalMapping parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OriginalMapping(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string original_file = 1; public static final int ORIGINAL_FILE_FIELD_NUMBER = 1; private java.lang.Object originalFile_; /** * optional string original_file = 1; * *
     * The original source file.
     * 
*/ public boolean hasOriginalFile() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string original_file = 1; * *
     * The original source file.
     * 
*/ public java.lang.String getOriginalFile() { java.lang.Object ref = originalFile_; 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 (bs.isValidUtf8()) { originalFile_ = s; } return s; } } /** * optional string original_file = 1; * *
     * The original source file.
     * 
*/ public com.google.protobuf.ByteString getOriginalFileBytes() { java.lang.Object ref = originalFile_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); originalFile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 line_number = 2; public static final int LINE_NUMBER_FIELD_NUMBER = 2; private int lineNumber_; /** * optional int32 line_number = 2; * *
     * The line in the original file.
     * 
*/ public boolean hasLineNumber() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 line_number = 2; * *
     * The line in the original file.
     * 
*/ public int getLineNumber() { return lineNumber_; } // optional int32 column_position = 3; public static final int COLUMN_POSITION_FIELD_NUMBER = 3; private int columnPosition_; /** * optional int32 column_position = 3; * *
     * The column number on the line.
     * 
*/ public boolean hasColumnPosition() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 column_position = 3; * *
     * The column number on the line.
     * 
*/ public int getColumnPosition() { return columnPosition_; } // optional string identifier = 4; public static final int IDENTIFIER_FIELD_NUMBER = 4; private java.lang.Object identifier_; /** * optional string identifier = 4; * *
     * The original name of the identifier.
     * 
*/ public boolean hasIdentifier() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string identifier = 4; * *
     * The original name of the identifier.
     * 
*/ public java.lang.String getIdentifier() { java.lang.Object ref = identifier_; 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 (bs.isValidUtf8()) { identifier_ = s; } return s; } } /** * optional string identifier = 4; * *
     * The original name of the identifier.
     * 
*/ public com.google.protobuf.ByteString getIdentifierBytes() { java.lang.Object ref = identifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); identifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { originalFile_ = ""; lineNumber_ = 0; columnPosition_ = 0; identifier_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getOriginalFileBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, lineNumber_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, columnPosition_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getIdentifierBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, getOriginalFileBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, lineNumber_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, columnPosition_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, getIdentifierBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.github.sommeri.sourcemap.Mapping.OriginalMapping parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.github.sommeri.sourcemap.Mapping.OriginalMapping parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.github.sommeri.sourcemap.Mapping.OriginalMapping parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.github.sommeri.sourcemap.Mapping.OriginalMapping parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.github.sommeri.sourcemap.Mapping.OriginalMapping parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.github.sommeri.sourcemap.Mapping.OriginalMapping parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.github.sommeri.sourcemap.Mapping.OriginalMapping parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.github.sommeri.sourcemap.Mapping.OriginalMapping parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.github.sommeri.sourcemap.Mapping.OriginalMapping parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.github.sommeri.sourcemap.Mapping.OriginalMapping parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.github.sommeri.sourcemap.Mapping.OriginalMapping prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sourcemap.OriginalMapping} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements com.github.sommeri.sourcemap.Mapping.OriginalMappingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.github.sommeri.sourcemap.Mapping.internal_static_sourcemap_OriginalMapping_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.github.sommeri.sourcemap.Mapping.internal_static_sourcemap_OriginalMapping_fieldAccessorTable.ensureFieldAccessorsInitialized(com.github.sommeri.sourcemap.Mapping.OriginalMapping.class, com.github.sommeri.sourcemap.Mapping.OriginalMapping.Builder.class); } // Construct using com.github.sommeri.sourcemap.Mapping.OriginalMapping.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); originalFile_ = ""; bitField0_ = (bitField0_ & ~0x00000001); lineNumber_ = 0; bitField0_ = (bitField0_ & ~0x00000002); columnPosition_ = 0; bitField0_ = (bitField0_ & ~0x00000004); identifier_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.github.sommeri.sourcemap.Mapping.internal_static_sourcemap_OriginalMapping_descriptor; } public com.github.sommeri.sourcemap.Mapping.OriginalMapping getDefaultInstanceForType() { return com.github.sommeri.sourcemap.Mapping.OriginalMapping.getDefaultInstance(); } public com.github.sommeri.sourcemap.Mapping.OriginalMapping build() { com.github.sommeri.sourcemap.Mapping.OriginalMapping result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.github.sommeri.sourcemap.Mapping.OriginalMapping buildPartial() { com.github.sommeri.sourcemap.Mapping.OriginalMapping result = new com.github.sommeri.sourcemap.Mapping.OriginalMapping(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.originalFile_ = originalFile_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.lineNumber_ = lineNumber_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.columnPosition_ = columnPosition_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.identifier_ = identifier_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.github.sommeri.sourcemap.Mapping.OriginalMapping) { return mergeFrom((com.github.sommeri.sourcemap.Mapping.OriginalMapping) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.github.sommeri.sourcemap.Mapping.OriginalMapping other) { if (other == com.github.sommeri.sourcemap.Mapping.OriginalMapping.getDefaultInstance()) return this; if (other.hasOriginalFile()) { bitField0_ |= 0x00000001; originalFile_ = other.originalFile_; onChanged(); } if (other.hasLineNumber()) { setLineNumber(other.getLineNumber()); } if (other.hasColumnPosition()) { setColumnPosition(other.getColumnPosition()); } if (other.hasIdentifier()) { bitField0_ |= 0x00000008; identifier_ = other.identifier_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.github.sommeri.sourcemap.Mapping.OriginalMapping parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.github.sommeri.sourcemap.Mapping.OriginalMapping) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string original_file = 1; private java.lang.Object originalFile_ = ""; /** * optional string original_file = 1; * *
       * The original source file.
       * 
*/ public boolean hasOriginalFile() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string original_file = 1; * *
       * The original source file.
       * 
*/ public java.lang.String getOriginalFile() { java.lang.Object ref = originalFile_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); originalFile_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string original_file = 1; * *
       * The original source file.
       * 
*/ public com.google.protobuf.ByteString getOriginalFileBytes() { java.lang.Object ref = originalFile_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); originalFile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string original_file = 1; * *
       * The original source file.
       * 
*/ public Builder setOriginalFile(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; originalFile_ = value; onChanged(); return this; } /** * optional string original_file = 1; * *
       * The original source file.
       * 
*/ public Builder clearOriginalFile() { bitField0_ = (bitField0_ & ~0x00000001); originalFile_ = getDefaultInstance().getOriginalFile(); onChanged(); return this; } /** * optional string original_file = 1; * *
       * The original source file.
       * 
*/ public Builder setOriginalFileBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; originalFile_ = value; onChanged(); return this; } // optional int32 line_number = 2; private int lineNumber_; /** * optional int32 line_number = 2; * *
       * The line in the original file.
       * 
*/ public boolean hasLineNumber() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 line_number = 2; * *
       * The line in the original file.
       * 
*/ public int getLineNumber() { return lineNumber_; } /** * optional int32 line_number = 2; * *
       * The line in the original file.
       * 
*/ public Builder setLineNumber(int value) { bitField0_ |= 0x00000002; lineNumber_ = value; onChanged(); return this; } /** * optional int32 line_number = 2; * *
       * The line in the original file.
       * 
*/ public Builder clearLineNumber() { bitField0_ = (bitField0_ & ~0x00000002); lineNumber_ = 0; onChanged(); return this; } // optional int32 column_position = 3; private int columnPosition_; /** * optional int32 column_position = 3; * *
       * The column number on the line.
       * 
*/ public boolean hasColumnPosition() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 column_position = 3; * *
       * The column number on the line.
       * 
*/ public int getColumnPosition() { return columnPosition_; } /** * optional int32 column_position = 3; * *
       * The column number on the line.
       * 
*/ public Builder setColumnPosition(int value) { bitField0_ |= 0x00000004; columnPosition_ = value; onChanged(); return this; } /** * optional int32 column_position = 3; * *
       * The column number on the line.
       * 
*/ public Builder clearColumnPosition() { bitField0_ = (bitField0_ & ~0x00000004); columnPosition_ = 0; onChanged(); return this; } // optional string identifier = 4; private java.lang.Object identifier_ = ""; /** * optional string identifier = 4; * *
       * The original name of the identifier.
       * 
*/ public boolean hasIdentifier() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string identifier = 4; * *
       * The original name of the identifier.
       * 
*/ public java.lang.String getIdentifier() { java.lang.Object ref = identifier_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); identifier_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string identifier = 4; * *
       * The original name of the identifier.
       * 
*/ public com.google.protobuf.ByteString getIdentifierBytes() { java.lang.Object ref = identifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); identifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string identifier = 4; * *
       * The original name of the identifier.
       * 
*/ public Builder setIdentifier(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; identifier_ = value; onChanged(); return this; } /** * optional string identifier = 4; * *
       * The original name of the identifier.
       * 
*/ public Builder clearIdentifier() { bitField0_ = (bitField0_ & ~0x00000008); identifier_ = getDefaultInstance().getIdentifier(); onChanged(); return this; } /** * optional string identifier = 4; * *
       * The original name of the identifier.
       * 
*/ public Builder setIdentifierBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; identifier_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:sourcemap.OriginalMapping) } static { defaultInstance = new OriginalMapping(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:sourcemap.OriginalMapping) } private static com.google.protobuf.Descriptors.Descriptor internal_static_sourcemap_LineMapping_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sourcemap_LineMapping_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sourcemap_OriginalMapping_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sourcemap_OriginalMapping_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\rmapping.proto\022\tsourcemap\"q\n\013LineMappin" + "g\022\023\n\013line_number\030\001 \001(\005\022\027\n\017column_positio" + "n\030\002 \001(\005\0224\n\020original_mapping\030\003 \001(\0132\032.sour" + "cemap.OriginalMapping\"j\n\017OriginalMapping" + "\022\025\n\roriginal_file\030\001 \001(\t\022\023\n\013line_number\030\002" + " \001(\005\022\027\n\017column_position\030\003 \001(\005\022\022\n\nidentif" + "ier\030\004 \001(\tB\036\n\034com.github.sommeri.sourcema" + "p" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_sourcemap_LineMapping_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_sourcemap_LineMapping_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(internal_static_sourcemap_LineMapping_descriptor, new java.lang.String[] { "LineNumber", "ColumnPosition", "OriginalMapping", }); internal_static_sourcemap_OriginalMapping_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_sourcemap_OriginalMapping_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(internal_static_sourcemap_OriginalMapping_descriptor, new java.lang.String[] { "OriginalFile", "LineNumber", "ColumnPosition", "Identifier", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy