001// Generated by the protocol buffer compiler.  DO NOT EDIT!
002// source: constants.proto
003
004package org.sonar.batch.protocol;
005
006public final class Constants {
007  private Constants() {}
008  public static void registerAllExtensions(
009      com.google.protobuf.ExtensionRegistry registry) {
010  }
011  /**
012   * Protobuf enum {@code Severity}
013   */
014  public enum Severity
015      implements com.google.protobuf.ProtocolMessageEnum {
016    /**
017     * <code>INFO = 0;</code>
018     */
019    INFO(0, 0),
020    /**
021     * <code>MINOR = 1;</code>
022     */
023    MINOR(1, 1),
024    /**
025     * <code>MAJOR = 2;</code>
026     */
027    MAJOR(2, 2),
028    /**
029     * <code>CRITICAL = 3;</code>
030     */
031    CRITICAL(3, 3),
032    /**
033     * <code>BLOCKER = 4;</code>
034     */
035    BLOCKER(4, 4),
036    ;
037
038    /**
039     * <code>INFO = 0;</code>
040     */
041    public static final int INFO_VALUE = 0;
042    /**
043     * <code>MINOR = 1;</code>
044     */
045    public static final int MINOR_VALUE = 1;
046    /**
047     * <code>MAJOR = 2;</code>
048     */
049    public static final int MAJOR_VALUE = 2;
050    /**
051     * <code>CRITICAL = 3;</code>
052     */
053    public static final int CRITICAL_VALUE = 3;
054    /**
055     * <code>BLOCKER = 4;</code>
056     */
057    public static final int BLOCKER_VALUE = 4;
058
059
060    public final int getNumber() { return value; }
061
062    public static Severity valueOf(int value) {
063      switch (value) {
064        case 0: return INFO;
065        case 1: return MINOR;
066        case 2: return MAJOR;
067        case 3: return CRITICAL;
068        case 4: return BLOCKER;
069        default: return null;
070      }
071    }
072
073    public static com.google.protobuf.Internal.EnumLiteMap<Severity>
074        internalGetValueMap() {
075      return internalValueMap;
076    }
077    private static com.google.protobuf.Internal.EnumLiteMap<Severity>
078        internalValueMap =
079          new com.google.protobuf.Internal.EnumLiteMap<Severity>() {
080            public Severity findValueByNumber(int number) {
081              return Severity.valueOf(number);
082            }
083          };
084
085    public final com.google.protobuf.Descriptors.EnumValueDescriptor
086        getValueDescriptor() {
087      return getDescriptor().getValues().get(index);
088    }
089    public final com.google.protobuf.Descriptors.EnumDescriptor
090        getDescriptorForType() {
091      return getDescriptor();
092    }
093    public static final com.google.protobuf.Descriptors.EnumDescriptor
094        getDescriptor() {
095      return org.sonar.batch.protocol.Constants.getDescriptor().getEnumTypes().get(0);
096    }
097
098    private static final Severity[] VALUES = values();
099
100    public static Severity valueOf(
101        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
102      if (desc.getType() != getDescriptor()) {
103        throw new java.lang.IllegalArgumentException(
104          "EnumValueDescriptor is not for this type.");
105      }
106      return VALUES[desc.getIndex()];
107    }
108
109    private final int index;
110    private final int value;
111
112    private Severity(int index, int value) {
113      this.index = index;
114      this.value = value;
115    }
116
117    // @@protoc_insertion_point(enum_scope:Severity)
118  }
119
120  /**
121   * Protobuf enum {@code ComponentType}
122   */
123  public enum ComponentType
124      implements com.google.protobuf.ProtocolMessageEnum {
125    /**
126     * <code>PROJECT = 0;</code>
127     */
128    PROJECT(0, 0),
129    /**
130     * <code>MODULE = 1;</code>
131     */
132    MODULE(1, 1),
133    /**
134     * <code>DIRECTORY = 2;</code>
135     */
136    DIRECTORY(2, 2),
137    /**
138     * <code>FILE = 3;</code>
139     */
140    FILE(3, 3),
141    /**
142     * <code>VIEW = 4;</code>
143     */
144    VIEW(4, 4),
145    /**
146     * <code>SUBVIEW = 5;</code>
147     */
148    SUBVIEW(5, 5),
149    ;
150
151    /**
152     * <code>PROJECT = 0;</code>
153     */
154    public static final int PROJECT_VALUE = 0;
155    /**
156     * <code>MODULE = 1;</code>
157     */
158    public static final int MODULE_VALUE = 1;
159    /**
160     * <code>DIRECTORY = 2;</code>
161     */
162    public static final int DIRECTORY_VALUE = 2;
163    /**
164     * <code>FILE = 3;</code>
165     */
166    public static final int FILE_VALUE = 3;
167    /**
168     * <code>VIEW = 4;</code>
169     */
170    public static final int VIEW_VALUE = 4;
171    /**
172     * <code>SUBVIEW = 5;</code>
173     */
174    public static final int SUBVIEW_VALUE = 5;
175
176
177    public final int getNumber() { return value; }
178
179    public static ComponentType valueOf(int value) {
180      switch (value) {
181        case 0: return PROJECT;
182        case 1: return MODULE;
183        case 2: return DIRECTORY;
184        case 3: return FILE;
185        case 4: return VIEW;
186        case 5: return SUBVIEW;
187        default: return null;
188      }
189    }
190
191    public static com.google.protobuf.Internal.EnumLiteMap<ComponentType>
192        internalGetValueMap() {
193      return internalValueMap;
194    }
195    private static com.google.protobuf.Internal.EnumLiteMap<ComponentType>
196        internalValueMap =
197          new com.google.protobuf.Internal.EnumLiteMap<ComponentType>() {
198            public ComponentType findValueByNumber(int number) {
199              return ComponentType.valueOf(number);
200            }
201          };
202
203    public final com.google.protobuf.Descriptors.EnumValueDescriptor
204        getValueDescriptor() {
205      return getDescriptor().getValues().get(index);
206    }
207    public final com.google.protobuf.Descriptors.EnumDescriptor
208        getDescriptorForType() {
209      return getDescriptor();
210    }
211    public static final com.google.protobuf.Descriptors.EnumDescriptor
212        getDescriptor() {
213      return org.sonar.batch.protocol.Constants.getDescriptor().getEnumTypes().get(1);
214    }
215
216    private static final ComponentType[] VALUES = values();
217
218    public static ComponentType valueOf(
219        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
220      if (desc.getType() != getDescriptor()) {
221        throw new java.lang.IllegalArgumentException(
222          "EnumValueDescriptor is not for this type.");
223      }
224      return VALUES[desc.getIndex()];
225    }
226
227    private final int index;
228    private final int value;
229
230    private ComponentType(int index, int value) {
231      this.index = index;
232      this.value = value;
233    }
234
235    // @@protoc_insertion_point(enum_scope:ComponentType)
236  }
237
238
239  public static com.google.protobuf.Descriptors.FileDescriptor
240      getDescriptor() {
241    return descriptor;
242  }
243  private static com.google.protobuf.Descriptors.FileDescriptor
244      descriptor;
245  static {
246    java.lang.String[] descriptorData = {
247      "\n\017constants.proto*E\n\010Severity\022\010\n\004INFO\020\000\022" +
248      "\t\n\005MINOR\020\001\022\t\n\005MAJOR\020\002\022\014\n\010CRITICAL\020\003\022\013\n\007B" +
249      "LOCKER\020\004*X\n\rComponentType\022\013\n\007PROJECT\020\000\022\n" +
250      "\n\006MODULE\020\001\022\r\n\tDIRECTORY\020\002\022\010\n\004FILE\020\003\022\010\n\004V" +
251      "IEW\020\004\022\013\n\007SUBVIEW\020\005B\034\n\030org.sonar.batch.pr" +
252      "otocolH\001"
253    };
254    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
255      new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
256        public com.google.protobuf.ExtensionRegistry assignDescriptors(
257            com.google.protobuf.Descriptors.FileDescriptor root) {
258          descriptor = root;
259          return null;
260        }
261      };
262    com.google.protobuf.Descriptors.FileDescriptor
263      .internalBuildGeneratedFileFrom(descriptorData,
264        new com.google.protobuf.Descriptors.FileDescriptor[] {
265        }, assigner);
266  }
267
268  // @@protoc_insertion_point(outer_class_scope)
269}