View Javadoc

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