View Javadoc

1   // Generated by the protocol buffer compiler.  DO NOT EDIT!
2   // source: Tracing.proto
3   
4   package org.apache.hadoop.hbase.protobuf.generated;
5   
6   public final class Tracing {
7     private Tracing() {}
8     public static void registerAllExtensions(
9         com.google.protobuf.ExtensionRegistry registry) {
10    }
11    public interface RPCTInfoOrBuilder
12        extends com.google.protobuf.MessageOrBuilder {
13      
14      // optional int64 traceId = 1;
15      boolean hasTraceId();
16      long getTraceId();
17      
18      // optional int64 parentId = 2;
19      boolean hasParentId();
20      long getParentId();
21    }
22    public static final class RPCTInfo extends
23        com.google.protobuf.GeneratedMessage
24        implements RPCTInfoOrBuilder {
25      // Use RPCTInfo.newBuilder() to construct.
26      private RPCTInfo(Builder builder) {
27        super(builder);
28      }
29      private RPCTInfo(boolean noInit) {}
30      
31      private static final RPCTInfo defaultInstance;
32      public static RPCTInfo getDefaultInstance() {
33        return defaultInstance;
34      }
35      
36      public RPCTInfo getDefaultInstanceForType() {
37        return defaultInstance;
38      }
39      
40      public static final com.google.protobuf.Descriptors.Descriptor
41          getDescriptor() {
42        return org.apache.hadoop.hbase.protobuf.generated.Tracing.internal_static_RPCTInfo_descriptor;
43      }
44      
45      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
46          internalGetFieldAccessorTable() {
47        return org.apache.hadoop.hbase.protobuf.generated.Tracing.internal_static_RPCTInfo_fieldAccessorTable;
48      }
49      
50      private int bitField0_;
51      // optional int64 traceId = 1;
52      public static final int TRACEID_FIELD_NUMBER = 1;
53      private long traceId_;
54      public boolean hasTraceId() {
55        return ((bitField0_ & 0x00000001) == 0x00000001);
56      }
57      public long getTraceId() {
58        return traceId_;
59      }
60      
61      // optional int64 parentId = 2;
62      public static final int PARENTID_FIELD_NUMBER = 2;
63      private long parentId_;
64      public boolean hasParentId() {
65        return ((bitField0_ & 0x00000002) == 0x00000002);
66      }
67      public long getParentId() {
68        return parentId_;
69      }
70      
71      private void initFields() {
72        traceId_ = 0L;
73        parentId_ = 0L;
74      }
75      private byte memoizedIsInitialized = -1;
76      public final boolean isInitialized() {
77        byte isInitialized = memoizedIsInitialized;
78        if (isInitialized != -1) return isInitialized == 1;
79        
80        memoizedIsInitialized = 1;
81        return true;
82      }
83      
84      public void writeTo(com.google.protobuf.CodedOutputStream output)
85                          throws java.io.IOException {
86        getSerializedSize();
87        if (((bitField0_ & 0x00000001) == 0x00000001)) {
88          output.writeInt64(1, traceId_);
89        }
90        if (((bitField0_ & 0x00000002) == 0x00000002)) {
91          output.writeInt64(2, parentId_);
92        }
93        getUnknownFields().writeTo(output);
94      }
95      
96      private int memoizedSerializedSize = -1;
97      public int getSerializedSize() {
98        int size = memoizedSerializedSize;
99        if (size != -1) return size;
100     
101       size = 0;
102       if (((bitField0_ & 0x00000001) == 0x00000001)) {
103         size += com.google.protobuf.CodedOutputStream
104           .computeInt64Size(1, traceId_);
105       }
106       if (((bitField0_ & 0x00000002) == 0x00000002)) {
107         size += com.google.protobuf.CodedOutputStream
108           .computeInt64Size(2, parentId_);
109       }
110       size += getUnknownFields().getSerializedSize();
111       memoizedSerializedSize = size;
112       return size;
113     }
114     
115     private static final long serialVersionUID = 0L;
116     @java.lang.Override
117     protected java.lang.Object writeReplace()
118         throws java.io.ObjectStreamException {
119       return super.writeReplace();
120     }
121     
122     @java.lang.Override
123     public boolean equals(final java.lang.Object obj) {
124       if (obj == this) {
125        return true;
126       }
127       if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo)) {
128         return super.equals(obj);
129       }
130       org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo other = (org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo) obj;
131       
132       boolean result = true;
133       result = result && (hasTraceId() == other.hasTraceId());
134       if (hasTraceId()) {
135         result = result && (getTraceId()
136             == other.getTraceId());
137       }
138       result = result && (hasParentId() == other.hasParentId());
139       if (hasParentId()) {
140         result = result && (getParentId()
141             == other.getParentId());
142       }
143       result = result &&
144           getUnknownFields().equals(other.getUnknownFields());
145       return result;
146     }
147     
148     @java.lang.Override
149     public int hashCode() {
150       int hash = 41;
151       hash = (19 * hash) + getDescriptorForType().hashCode();
152       if (hasTraceId()) {
153         hash = (37 * hash) + TRACEID_FIELD_NUMBER;
154         hash = (53 * hash) + hashLong(getTraceId());
155       }
156       if (hasParentId()) {
157         hash = (37 * hash) + PARENTID_FIELD_NUMBER;
158         hash = (53 * hash) + hashLong(getParentId());
159       }
160       hash = (29 * hash) + getUnknownFields().hashCode();
161       return hash;
162     }
163     
164     public static org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo parseFrom(
165         com.google.protobuf.ByteString data)
166         throws com.google.protobuf.InvalidProtocolBufferException {
167       return newBuilder().mergeFrom(data).buildParsed();
168     }
169     public static org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo parseFrom(
170         com.google.protobuf.ByteString data,
171         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
172         throws com.google.protobuf.InvalidProtocolBufferException {
173       return newBuilder().mergeFrom(data, extensionRegistry)
174                .buildParsed();
175     }
176     public static org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo parseFrom(byte[] data)
177         throws com.google.protobuf.InvalidProtocolBufferException {
178       return newBuilder().mergeFrom(data).buildParsed();
179     }
180     public static org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo parseFrom(
181         byte[] data,
182         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
183         throws com.google.protobuf.InvalidProtocolBufferException {
184       return newBuilder().mergeFrom(data, extensionRegistry)
185                .buildParsed();
186     }
187     public static org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo parseFrom(java.io.InputStream input)
188         throws java.io.IOException {
189       return newBuilder().mergeFrom(input).buildParsed();
190     }
191     public static org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo parseFrom(
192         java.io.InputStream input,
193         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
194         throws java.io.IOException {
195       return newBuilder().mergeFrom(input, extensionRegistry)
196                .buildParsed();
197     }
198     public static org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo parseDelimitedFrom(java.io.InputStream input)
199         throws java.io.IOException {
200       Builder builder = newBuilder();
201       if (builder.mergeDelimitedFrom(input)) {
202         return builder.buildParsed();
203       } else {
204         return null;
205       }
206     }
207     public static org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo parseDelimitedFrom(
208         java.io.InputStream input,
209         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
210         throws java.io.IOException {
211       Builder builder = newBuilder();
212       if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
213         return builder.buildParsed();
214       } else {
215         return null;
216       }
217     }
218     public static org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo parseFrom(
219         com.google.protobuf.CodedInputStream input)
220         throws java.io.IOException {
221       return newBuilder().mergeFrom(input).buildParsed();
222     }
223     public static org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo parseFrom(
224         com.google.protobuf.CodedInputStream input,
225         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
226         throws java.io.IOException {
227       return newBuilder().mergeFrom(input, extensionRegistry)
228                .buildParsed();
229     }
230     
231     public static Builder newBuilder() { return Builder.create(); }
232     public Builder newBuilderForType() { return newBuilder(); }
233     public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo prototype) {
234       return newBuilder().mergeFrom(prototype);
235     }
236     public Builder toBuilder() { return newBuilder(this); }
237     
238     @java.lang.Override
239     protected Builder newBuilderForType(
240         com.google.protobuf.GeneratedMessage.BuilderParent parent) {
241       Builder builder = new Builder(parent);
242       return builder;
243     }
244     public static final class Builder extends
245         com.google.protobuf.GeneratedMessage.Builder<Builder>
246        implements org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfoOrBuilder {
247       public static final com.google.protobuf.Descriptors.Descriptor
248           getDescriptor() {
249         return org.apache.hadoop.hbase.protobuf.generated.Tracing.internal_static_RPCTInfo_descriptor;
250       }
251       
252       protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
253           internalGetFieldAccessorTable() {
254         return org.apache.hadoop.hbase.protobuf.generated.Tracing.internal_static_RPCTInfo_fieldAccessorTable;
255       }
256       
257       // Construct using org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo.newBuilder()
258       private Builder() {
259         maybeForceBuilderInitialization();
260       }
261       
262       private Builder(BuilderParent parent) {
263         super(parent);
264         maybeForceBuilderInitialization();
265       }
266       private void maybeForceBuilderInitialization() {
267         if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
268         }
269       }
270       private static Builder create() {
271         return new Builder();
272       }
273       
274       public Builder clear() {
275         super.clear();
276         traceId_ = 0L;
277         bitField0_ = (bitField0_ & ~0x00000001);
278         parentId_ = 0L;
279         bitField0_ = (bitField0_ & ~0x00000002);
280         return this;
281       }
282       
283       public Builder clone() {
284         return create().mergeFrom(buildPartial());
285       }
286       
287       public com.google.protobuf.Descriptors.Descriptor
288           getDescriptorForType() {
289         return org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo.getDescriptor();
290       }
291       
292       public org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo getDefaultInstanceForType() {
293         return org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo.getDefaultInstance();
294       }
295       
296       public org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo build() {
297         org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo result = buildPartial();
298         if (!result.isInitialized()) {
299           throw newUninitializedMessageException(result);
300         }
301         return result;
302       }
303       
304       private org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo buildParsed()
305           throws com.google.protobuf.InvalidProtocolBufferException {
306         org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo result = buildPartial();
307         if (!result.isInitialized()) {
308           throw newUninitializedMessageException(
309             result).asInvalidProtocolBufferException();
310         }
311         return result;
312       }
313       
314       public org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo buildPartial() {
315         org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo result = new org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo(this);
316         int from_bitField0_ = bitField0_;
317         int to_bitField0_ = 0;
318         if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
319           to_bitField0_ |= 0x00000001;
320         }
321         result.traceId_ = traceId_;
322         if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
323           to_bitField0_ |= 0x00000002;
324         }
325         result.parentId_ = parentId_;
326         result.bitField0_ = to_bitField0_;
327         onBuilt();
328         return result;
329       }
330       
331       public Builder mergeFrom(com.google.protobuf.Message other) {
332         if (other instanceof org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo) {
333           return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo)other);
334         } else {
335           super.mergeFrom(other);
336           return this;
337         }
338       }
339       
340       public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo other) {
341         if (other == org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo.getDefaultInstance()) return this;
342         if (other.hasTraceId()) {
343           setTraceId(other.getTraceId());
344         }
345         if (other.hasParentId()) {
346           setParentId(other.getParentId());
347         }
348         this.mergeUnknownFields(other.getUnknownFields());
349         return this;
350       }
351       
352       public final boolean isInitialized() {
353         return true;
354       }
355       
356       public Builder mergeFrom(
357           com.google.protobuf.CodedInputStream input,
358           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
359           throws java.io.IOException {
360         com.google.protobuf.UnknownFieldSet.Builder unknownFields =
361           com.google.protobuf.UnknownFieldSet.newBuilder(
362             this.getUnknownFields());
363         while (true) {
364           int tag = input.readTag();
365           switch (tag) {
366             case 0:
367               this.setUnknownFields(unknownFields.build());
368               onChanged();
369               return this;
370             default: {
371               if (!parseUnknownField(input, unknownFields,
372                                      extensionRegistry, tag)) {
373                 this.setUnknownFields(unknownFields.build());
374                 onChanged();
375                 return this;
376               }
377               break;
378             }
379             case 8: {
380               bitField0_ |= 0x00000001;
381               traceId_ = input.readInt64();
382               break;
383             }
384             case 16: {
385               bitField0_ |= 0x00000002;
386               parentId_ = input.readInt64();
387               break;
388             }
389           }
390         }
391       }
392       
393       private int bitField0_;
394       
395       // optional int64 traceId = 1;
396       private long traceId_ ;
397       public boolean hasTraceId() {
398         return ((bitField0_ & 0x00000001) == 0x00000001);
399       }
400       public long getTraceId() {
401         return traceId_;
402       }
403       public Builder setTraceId(long value) {
404         bitField0_ |= 0x00000001;
405         traceId_ = value;
406         onChanged();
407         return this;
408       }
409       public Builder clearTraceId() {
410         bitField0_ = (bitField0_ & ~0x00000001);
411         traceId_ = 0L;
412         onChanged();
413         return this;
414       }
415       
416       // optional int64 parentId = 2;
417       private long parentId_ ;
418       public boolean hasParentId() {
419         return ((bitField0_ & 0x00000002) == 0x00000002);
420       }
421       public long getParentId() {
422         return parentId_;
423       }
424       public Builder setParentId(long value) {
425         bitField0_ |= 0x00000002;
426         parentId_ = value;
427         onChanged();
428         return this;
429       }
430       public Builder clearParentId() {
431         bitField0_ = (bitField0_ & ~0x00000002);
432         parentId_ = 0L;
433         onChanged();
434         return this;
435       }
436       
437       // @@protoc_insertion_point(builder_scope:RPCTInfo)
438     }
439     
440     static {
441       defaultInstance = new RPCTInfo(true);
442       defaultInstance.initFields();
443     }
444     
445     // @@protoc_insertion_point(class_scope:RPCTInfo)
446   }
447   
448   private static com.google.protobuf.Descriptors.Descriptor
449     internal_static_RPCTInfo_descriptor;
450   private static
451     com.google.protobuf.GeneratedMessage.FieldAccessorTable
452       internal_static_RPCTInfo_fieldAccessorTable;
453   
454   public static com.google.protobuf.Descriptors.FileDescriptor
455       getDescriptor() {
456     return descriptor;
457   }
458   private static com.google.protobuf.Descriptors.FileDescriptor
459       descriptor;
460   static {
461     java.lang.String[] descriptorData = {
462       "\n\rTracing.proto\"-\n\010RPCTInfo\022\017\n\007traceId\030\001" +
463       " \001(\003\022\020\n\010parentId\030\002 \001(\003B:\n*org.apache.had" +
464       "oop.hbase.protobuf.generatedB\007TracingH\001\240" +
465       "\001\001"
466     };
467     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
468       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
469         public com.google.protobuf.ExtensionRegistry assignDescriptors(
470             com.google.protobuf.Descriptors.FileDescriptor root) {
471           descriptor = root;
472           internal_static_RPCTInfo_descriptor =
473             getDescriptor().getMessageTypes().get(0);
474           internal_static_RPCTInfo_fieldAccessorTable = new
475             com.google.protobuf.GeneratedMessage.FieldAccessorTable(
476               internal_static_RPCTInfo_descriptor,
477               new java.lang.String[] { "TraceId", "ParentId", },
478               org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo.class,
479               org.apache.hadoop.hbase.protobuf.generated.Tracing.RPCTInfo.Builder.class);
480           return null;
481         }
482       };
483     com.google.protobuf.Descriptors.FileDescriptor
484       .internalBuildGeneratedFileFrom(descriptorData,
485         new com.google.protobuf.Descriptors.FileDescriptor[] {
486         }, assigner);
487   }
488   
489   // @@protoc_insertion_point(outer_class_scope)
490 }