001 // Generated by the protocol buffer compiler. DO NOT EDIT!
002 // source: GetUserMappingsProtocol.proto
003
004 package org.apache.hadoop.tools.proto;
005
006 public final class GetUserMappingsProtocolProtos {
007 private GetUserMappingsProtocolProtos() {}
008 public static void registerAllExtensions(
009 com.google.protobuf.ExtensionRegistry registry) {
010 }
011 public interface GetGroupsForUserRequestProtoOrBuilder
012 extends com.google.protobuf.MessageOrBuilder {
013
014 // required string user = 1;
015 /**
016 * <code>required string user = 1;</code>
017 */
018 boolean hasUser();
019 /**
020 * <code>required string user = 1;</code>
021 */
022 java.lang.String getUser();
023 /**
024 * <code>required string user = 1;</code>
025 */
026 com.google.protobuf.ByteString
027 getUserBytes();
028 }
029 /**
030 * Protobuf type {@code hadoop.common.GetGroupsForUserRequestProto}
031 *
032 * <pre>
033 **
034 * Get groups for user request.
035 * </pre>
036 */
037 public static final class GetGroupsForUserRequestProto extends
038 com.google.protobuf.GeneratedMessage
039 implements GetGroupsForUserRequestProtoOrBuilder {
040 // Use GetGroupsForUserRequestProto.newBuilder() to construct.
041 private GetGroupsForUserRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
042 super(builder);
043 this.unknownFields = builder.getUnknownFields();
044 }
045 private GetGroupsForUserRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
046
047 private static final GetGroupsForUserRequestProto defaultInstance;
048 public static GetGroupsForUserRequestProto getDefaultInstance() {
049 return defaultInstance;
050 }
051
052 public GetGroupsForUserRequestProto getDefaultInstanceForType() {
053 return defaultInstance;
054 }
055
056 private final com.google.protobuf.UnknownFieldSet unknownFields;
057 @java.lang.Override
058 public final com.google.protobuf.UnknownFieldSet
059 getUnknownFields() {
060 return this.unknownFields;
061 }
062 private GetGroupsForUserRequestProto(
063 com.google.protobuf.CodedInputStream input,
064 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
065 throws com.google.protobuf.InvalidProtocolBufferException {
066 initFields();
067 int mutable_bitField0_ = 0;
068 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
069 com.google.protobuf.UnknownFieldSet.newBuilder();
070 try {
071 boolean done = false;
072 while (!done) {
073 int tag = input.readTag();
074 switch (tag) {
075 case 0:
076 done = true;
077 break;
078 default: {
079 if (!parseUnknownField(input, unknownFields,
080 extensionRegistry, tag)) {
081 done = true;
082 }
083 break;
084 }
085 case 10: {
086 bitField0_ |= 0x00000001;
087 user_ = input.readBytes();
088 break;
089 }
090 }
091 }
092 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
093 throw e.setUnfinishedMessage(this);
094 } catch (java.io.IOException e) {
095 throw new com.google.protobuf.InvalidProtocolBufferException(
096 e.getMessage()).setUnfinishedMessage(this);
097 } finally {
098 this.unknownFields = unknownFields.build();
099 makeExtensionsImmutable();
100 }
101 }
102 public static final com.google.protobuf.Descriptors.Descriptor
103 getDescriptor() {
104 return org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.internal_static_hadoop_common_GetGroupsForUserRequestProto_descriptor;
105 }
106
107 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
108 internalGetFieldAccessorTable() {
109 return org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.internal_static_hadoop_common_GetGroupsForUserRequestProto_fieldAccessorTable
110 .ensureFieldAccessorsInitialized(
111 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto.class, org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto.Builder.class);
112 }
113
114 public static com.google.protobuf.Parser<GetGroupsForUserRequestProto> PARSER =
115 new com.google.protobuf.AbstractParser<GetGroupsForUserRequestProto>() {
116 public GetGroupsForUserRequestProto parsePartialFrom(
117 com.google.protobuf.CodedInputStream input,
118 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
119 throws com.google.protobuf.InvalidProtocolBufferException {
120 return new GetGroupsForUserRequestProto(input, extensionRegistry);
121 }
122 };
123
124 @java.lang.Override
125 public com.google.protobuf.Parser<GetGroupsForUserRequestProto> getParserForType() {
126 return PARSER;
127 }
128
129 private int bitField0_;
130 // required string user = 1;
131 public static final int USER_FIELD_NUMBER = 1;
132 private java.lang.Object user_;
133 /**
134 * <code>required string user = 1;</code>
135 */
136 public boolean hasUser() {
137 return ((bitField0_ & 0x00000001) == 0x00000001);
138 }
139 /**
140 * <code>required string user = 1;</code>
141 */
142 public java.lang.String getUser() {
143 java.lang.Object ref = user_;
144 if (ref instanceof java.lang.String) {
145 return (java.lang.String) ref;
146 } else {
147 com.google.protobuf.ByteString bs =
148 (com.google.protobuf.ByteString) ref;
149 java.lang.String s = bs.toStringUtf8();
150 if (bs.isValidUtf8()) {
151 user_ = s;
152 }
153 return s;
154 }
155 }
156 /**
157 * <code>required string user = 1;</code>
158 */
159 public com.google.protobuf.ByteString
160 getUserBytes() {
161 java.lang.Object ref = user_;
162 if (ref instanceof java.lang.String) {
163 com.google.protobuf.ByteString b =
164 com.google.protobuf.ByteString.copyFromUtf8(
165 (java.lang.String) ref);
166 user_ = b;
167 return b;
168 } else {
169 return (com.google.protobuf.ByteString) ref;
170 }
171 }
172
173 private void initFields() {
174 user_ = "";
175 }
176 private byte memoizedIsInitialized = -1;
177 public final boolean isInitialized() {
178 byte isInitialized = memoizedIsInitialized;
179 if (isInitialized != -1) return isInitialized == 1;
180
181 if (!hasUser()) {
182 memoizedIsInitialized = 0;
183 return false;
184 }
185 memoizedIsInitialized = 1;
186 return true;
187 }
188
189 public void writeTo(com.google.protobuf.CodedOutputStream output)
190 throws java.io.IOException {
191 getSerializedSize();
192 if (((bitField0_ & 0x00000001) == 0x00000001)) {
193 output.writeBytes(1, getUserBytes());
194 }
195 getUnknownFields().writeTo(output);
196 }
197
198 private int memoizedSerializedSize = -1;
199 public int getSerializedSize() {
200 int size = memoizedSerializedSize;
201 if (size != -1) return size;
202
203 size = 0;
204 if (((bitField0_ & 0x00000001) == 0x00000001)) {
205 size += com.google.protobuf.CodedOutputStream
206 .computeBytesSize(1, getUserBytes());
207 }
208 size += getUnknownFields().getSerializedSize();
209 memoizedSerializedSize = size;
210 return size;
211 }
212
213 private static final long serialVersionUID = 0L;
214 @java.lang.Override
215 protected java.lang.Object writeReplace()
216 throws java.io.ObjectStreamException {
217 return super.writeReplace();
218 }
219
220 @java.lang.Override
221 public boolean equals(final java.lang.Object obj) {
222 if (obj == this) {
223 return true;
224 }
225 if (!(obj instanceof org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto)) {
226 return super.equals(obj);
227 }
228 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto other = (org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto) obj;
229
230 boolean result = true;
231 result = result && (hasUser() == other.hasUser());
232 if (hasUser()) {
233 result = result && getUser()
234 .equals(other.getUser());
235 }
236 result = result &&
237 getUnknownFields().equals(other.getUnknownFields());
238 return result;
239 }
240
241 private int memoizedHashCode = 0;
242 @java.lang.Override
243 public int hashCode() {
244 if (memoizedHashCode != 0) {
245 return memoizedHashCode;
246 }
247 int hash = 41;
248 hash = (19 * hash) + getDescriptorForType().hashCode();
249 if (hasUser()) {
250 hash = (37 * hash) + USER_FIELD_NUMBER;
251 hash = (53 * hash) + getUser().hashCode();
252 }
253 hash = (29 * hash) + getUnknownFields().hashCode();
254 memoizedHashCode = hash;
255 return hash;
256 }
257
258 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto parseFrom(
259 com.google.protobuf.ByteString data)
260 throws com.google.protobuf.InvalidProtocolBufferException {
261 return PARSER.parseFrom(data);
262 }
263 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto parseFrom(
264 com.google.protobuf.ByteString data,
265 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
266 throws com.google.protobuf.InvalidProtocolBufferException {
267 return PARSER.parseFrom(data, extensionRegistry);
268 }
269 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto parseFrom(byte[] data)
270 throws com.google.protobuf.InvalidProtocolBufferException {
271 return PARSER.parseFrom(data);
272 }
273 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto parseFrom(
274 byte[] data,
275 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
276 throws com.google.protobuf.InvalidProtocolBufferException {
277 return PARSER.parseFrom(data, extensionRegistry);
278 }
279 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto parseFrom(java.io.InputStream input)
280 throws java.io.IOException {
281 return PARSER.parseFrom(input);
282 }
283 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto parseFrom(
284 java.io.InputStream input,
285 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
286 throws java.io.IOException {
287 return PARSER.parseFrom(input, extensionRegistry);
288 }
289 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto parseDelimitedFrom(java.io.InputStream input)
290 throws java.io.IOException {
291 return PARSER.parseDelimitedFrom(input);
292 }
293 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto parseDelimitedFrom(
294 java.io.InputStream input,
295 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
296 throws java.io.IOException {
297 return PARSER.parseDelimitedFrom(input, extensionRegistry);
298 }
299 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto parseFrom(
300 com.google.protobuf.CodedInputStream input)
301 throws java.io.IOException {
302 return PARSER.parseFrom(input);
303 }
304 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto parseFrom(
305 com.google.protobuf.CodedInputStream input,
306 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
307 throws java.io.IOException {
308 return PARSER.parseFrom(input, extensionRegistry);
309 }
310
311 public static Builder newBuilder() { return Builder.create(); }
312 public Builder newBuilderForType() { return newBuilder(); }
313 public static Builder newBuilder(org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto prototype) {
314 return newBuilder().mergeFrom(prototype);
315 }
316 public Builder toBuilder() { return newBuilder(this); }
317
318 @java.lang.Override
319 protected Builder newBuilderForType(
320 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
321 Builder builder = new Builder(parent);
322 return builder;
323 }
324 /**
325 * Protobuf type {@code hadoop.common.GetGroupsForUserRequestProto}
326 *
327 * <pre>
328 **
329 * Get groups for user request.
330 * </pre>
331 */
332 public static final class Builder extends
333 com.google.protobuf.GeneratedMessage.Builder<Builder>
334 implements org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProtoOrBuilder {
335 public static final com.google.protobuf.Descriptors.Descriptor
336 getDescriptor() {
337 return org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.internal_static_hadoop_common_GetGroupsForUserRequestProto_descriptor;
338 }
339
340 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
341 internalGetFieldAccessorTable() {
342 return org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.internal_static_hadoop_common_GetGroupsForUserRequestProto_fieldAccessorTable
343 .ensureFieldAccessorsInitialized(
344 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto.class, org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto.Builder.class);
345 }
346
347 // Construct using org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto.newBuilder()
348 private Builder() {
349 maybeForceBuilderInitialization();
350 }
351
352 private Builder(
353 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
354 super(parent);
355 maybeForceBuilderInitialization();
356 }
357 private void maybeForceBuilderInitialization() {
358 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
359 }
360 }
361 private static Builder create() {
362 return new Builder();
363 }
364
365 public Builder clear() {
366 super.clear();
367 user_ = "";
368 bitField0_ = (bitField0_ & ~0x00000001);
369 return this;
370 }
371
372 public Builder clone() {
373 return create().mergeFrom(buildPartial());
374 }
375
376 public com.google.protobuf.Descriptors.Descriptor
377 getDescriptorForType() {
378 return org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.internal_static_hadoop_common_GetGroupsForUserRequestProto_descriptor;
379 }
380
381 public org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto getDefaultInstanceForType() {
382 return org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto.getDefaultInstance();
383 }
384
385 public org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto build() {
386 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto result = buildPartial();
387 if (!result.isInitialized()) {
388 throw newUninitializedMessageException(result);
389 }
390 return result;
391 }
392
393 public org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto buildPartial() {
394 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto result = new org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto(this);
395 int from_bitField0_ = bitField0_;
396 int to_bitField0_ = 0;
397 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
398 to_bitField0_ |= 0x00000001;
399 }
400 result.user_ = user_;
401 result.bitField0_ = to_bitField0_;
402 onBuilt();
403 return result;
404 }
405
406 public Builder mergeFrom(com.google.protobuf.Message other) {
407 if (other instanceof org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto) {
408 return mergeFrom((org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto)other);
409 } else {
410 super.mergeFrom(other);
411 return this;
412 }
413 }
414
415 public Builder mergeFrom(org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto other) {
416 if (other == org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto.getDefaultInstance()) return this;
417 if (other.hasUser()) {
418 bitField0_ |= 0x00000001;
419 user_ = other.user_;
420 onChanged();
421 }
422 this.mergeUnknownFields(other.getUnknownFields());
423 return this;
424 }
425
426 public final boolean isInitialized() {
427 if (!hasUser()) {
428
429 return false;
430 }
431 return true;
432 }
433
434 public Builder mergeFrom(
435 com.google.protobuf.CodedInputStream input,
436 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
437 throws java.io.IOException {
438 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto parsedMessage = null;
439 try {
440 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
441 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
442 parsedMessage = (org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto) e.getUnfinishedMessage();
443 throw e;
444 } finally {
445 if (parsedMessage != null) {
446 mergeFrom(parsedMessage);
447 }
448 }
449 return this;
450 }
451 private int bitField0_;
452
453 // required string user = 1;
454 private java.lang.Object user_ = "";
455 /**
456 * <code>required string user = 1;</code>
457 */
458 public boolean hasUser() {
459 return ((bitField0_ & 0x00000001) == 0x00000001);
460 }
461 /**
462 * <code>required string user = 1;</code>
463 */
464 public java.lang.String getUser() {
465 java.lang.Object ref = user_;
466 if (!(ref instanceof java.lang.String)) {
467 java.lang.String s = ((com.google.protobuf.ByteString) ref)
468 .toStringUtf8();
469 user_ = s;
470 return s;
471 } else {
472 return (java.lang.String) ref;
473 }
474 }
475 /**
476 * <code>required string user = 1;</code>
477 */
478 public com.google.protobuf.ByteString
479 getUserBytes() {
480 java.lang.Object ref = user_;
481 if (ref instanceof String) {
482 com.google.protobuf.ByteString b =
483 com.google.protobuf.ByteString.copyFromUtf8(
484 (java.lang.String) ref);
485 user_ = b;
486 return b;
487 } else {
488 return (com.google.protobuf.ByteString) ref;
489 }
490 }
491 /**
492 * <code>required string user = 1;</code>
493 */
494 public Builder setUser(
495 java.lang.String value) {
496 if (value == null) {
497 throw new NullPointerException();
498 }
499 bitField0_ |= 0x00000001;
500 user_ = value;
501 onChanged();
502 return this;
503 }
504 /**
505 * <code>required string user = 1;</code>
506 */
507 public Builder clearUser() {
508 bitField0_ = (bitField0_ & ~0x00000001);
509 user_ = getDefaultInstance().getUser();
510 onChanged();
511 return this;
512 }
513 /**
514 * <code>required string user = 1;</code>
515 */
516 public Builder setUserBytes(
517 com.google.protobuf.ByteString value) {
518 if (value == null) {
519 throw new NullPointerException();
520 }
521 bitField0_ |= 0x00000001;
522 user_ = value;
523 onChanged();
524 return this;
525 }
526
527 // @@protoc_insertion_point(builder_scope:hadoop.common.GetGroupsForUserRequestProto)
528 }
529
530 static {
531 defaultInstance = new GetGroupsForUserRequestProto(true);
532 defaultInstance.initFields();
533 }
534
535 // @@protoc_insertion_point(class_scope:hadoop.common.GetGroupsForUserRequestProto)
536 }
537
538 public interface GetGroupsForUserResponseProtoOrBuilder
539 extends com.google.protobuf.MessageOrBuilder {
540
541 // repeated string groups = 1;
542 /**
543 * <code>repeated string groups = 1;</code>
544 */
545 java.util.List<java.lang.String>
546 getGroupsList();
547 /**
548 * <code>repeated string groups = 1;</code>
549 */
550 int getGroupsCount();
551 /**
552 * <code>repeated string groups = 1;</code>
553 */
554 java.lang.String getGroups(int index);
555 /**
556 * <code>repeated string groups = 1;</code>
557 */
558 com.google.protobuf.ByteString
559 getGroupsBytes(int index);
560 }
561 /**
562 * Protobuf type {@code hadoop.common.GetGroupsForUserResponseProto}
563 *
564 * <pre>
565 **
566 * Response for get groups.
567 * </pre>
568 */
569 public static final class GetGroupsForUserResponseProto extends
570 com.google.protobuf.GeneratedMessage
571 implements GetGroupsForUserResponseProtoOrBuilder {
572 // Use GetGroupsForUserResponseProto.newBuilder() to construct.
573 private GetGroupsForUserResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
574 super(builder);
575 this.unknownFields = builder.getUnknownFields();
576 }
577 private GetGroupsForUserResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
578
579 private static final GetGroupsForUserResponseProto defaultInstance;
580 public static GetGroupsForUserResponseProto getDefaultInstance() {
581 return defaultInstance;
582 }
583
584 public GetGroupsForUserResponseProto getDefaultInstanceForType() {
585 return defaultInstance;
586 }
587
588 private final com.google.protobuf.UnknownFieldSet unknownFields;
589 @java.lang.Override
590 public final com.google.protobuf.UnknownFieldSet
591 getUnknownFields() {
592 return this.unknownFields;
593 }
594 private GetGroupsForUserResponseProto(
595 com.google.protobuf.CodedInputStream input,
596 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
597 throws com.google.protobuf.InvalidProtocolBufferException {
598 initFields();
599 int mutable_bitField0_ = 0;
600 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
601 com.google.protobuf.UnknownFieldSet.newBuilder();
602 try {
603 boolean done = false;
604 while (!done) {
605 int tag = input.readTag();
606 switch (tag) {
607 case 0:
608 done = true;
609 break;
610 default: {
611 if (!parseUnknownField(input, unknownFields,
612 extensionRegistry, tag)) {
613 done = true;
614 }
615 break;
616 }
617 case 10: {
618 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
619 groups_ = new com.google.protobuf.LazyStringArrayList();
620 mutable_bitField0_ |= 0x00000001;
621 }
622 groups_.add(input.readBytes());
623 break;
624 }
625 }
626 }
627 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
628 throw e.setUnfinishedMessage(this);
629 } catch (java.io.IOException e) {
630 throw new com.google.protobuf.InvalidProtocolBufferException(
631 e.getMessage()).setUnfinishedMessage(this);
632 } finally {
633 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
634 groups_ = new com.google.protobuf.UnmodifiableLazyStringList(groups_);
635 }
636 this.unknownFields = unknownFields.build();
637 makeExtensionsImmutable();
638 }
639 }
640 public static final com.google.protobuf.Descriptors.Descriptor
641 getDescriptor() {
642 return org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.internal_static_hadoop_common_GetGroupsForUserResponseProto_descriptor;
643 }
644
645 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
646 internalGetFieldAccessorTable() {
647 return org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.internal_static_hadoop_common_GetGroupsForUserResponseProto_fieldAccessorTable
648 .ensureFieldAccessorsInitialized(
649 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto.class, org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto.Builder.class);
650 }
651
652 public static com.google.protobuf.Parser<GetGroupsForUserResponseProto> PARSER =
653 new com.google.protobuf.AbstractParser<GetGroupsForUserResponseProto>() {
654 public GetGroupsForUserResponseProto parsePartialFrom(
655 com.google.protobuf.CodedInputStream input,
656 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
657 throws com.google.protobuf.InvalidProtocolBufferException {
658 return new GetGroupsForUserResponseProto(input, extensionRegistry);
659 }
660 };
661
662 @java.lang.Override
663 public com.google.protobuf.Parser<GetGroupsForUserResponseProto> getParserForType() {
664 return PARSER;
665 }
666
667 // repeated string groups = 1;
668 public static final int GROUPS_FIELD_NUMBER = 1;
669 private com.google.protobuf.LazyStringList groups_;
670 /**
671 * <code>repeated string groups = 1;</code>
672 */
673 public java.util.List<java.lang.String>
674 getGroupsList() {
675 return groups_;
676 }
677 /**
678 * <code>repeated string groups = 1;</code>
679 */
680 public int getGroupsCount() {
681 return groups_.size();
682 }
683 /**
684 * <code>repeated string groups = 1;</code>
685 */
686 public java.lang.String getGroups(int index) {
687 return groups_.get(index);
688 }
689 /**
690 * <code>repeated string groups = 1;</code>
691 */
692 public com.google.protobuf.ByteString
693 getGroupsBytes(int index) {
694 return groups_.getByteString(index);
695 }
696
697 private void initFields() {
698 groups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
699 }
700 private byte memoizedIsInitialized = -1;
701 public final boolean isInitialized() {
702 byte isInitialized = memoizedIsInitialized;
703 if (isInitialized != -1) return isInitialized == 1;
704
705 memoizedIsInitialized = 1;
706 return true;
707 }
708
709 public void writeTo(com.google.protobuf.CodedOutputStream output)
710 throws java.io.IOException {
711 getSerializedSize();
712 for (int i = 0; i < groups_.size(); i++) {
713 output.writeBytes(1, groups_.getByteString(i));
714 }
715 getUnknownFields().writeTo(output);
716 }
717
718 private int memoizedSerializedSize = -1;
719 public int getSerializedSize() {
720 int size = memoizedSerializedSize;
721 if (size != -1) return size;
722
723 size = 0;
724 {
725 int dataSize = 0;
726 for (int i = 0; i < groups_.size(); i++) {
727 dataSize += com.google.protobuf.CodedOutputStream
728 .computeBytesSizeNoTag(groups_.getByteString(i));
729 }
730 size += dataSize;
731 size += 1 * getGroupsList().size();
732 }
733 size += getUnknownFields().getSerializedSize();
734 memoizedSerializedSize = size;
735 return size;
736 }
737
738 private static final long serialVersionUID = 0L;
739 @java.lang.Override
740 protected java.lang.Object writeReplace()
741 throws java.io.ObjectStreamException {
742 return super.writeReplace();
743 }
744
745 @java.lang.Override
746 public boolean equals(final java.lang.Object obj) {
747 if (obj == this) {
748 return true;
749 }
750 if (!(obj instanceof org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto)) {
751 return super.equals(obj);
752 }
753 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto other = (org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto) obj;
754
755 boolean result = true;
756 result = result && getGroupsList()
757 .equals(other.getGroupsList());
758 result = result &&
759 getUnknownFields().equals(other.getUnknownFields());
760 return result;
761 }
762
763 private int memoizedHashCode = 0;
764 @java.lang.Override
765 public int hashCode() {
766 if (memoizedHashCode != 0) {
767 return memoizedHashCode;
768 }
769 int hash = 41;
770 hash = (19 * hash) + getDescriptorForType().hashCode();
771 if (getGroupsCount() > 0) {
772 hash = (37 * hash) + GROUPS_FIELD_NUMBER;
773 hash = (53 * hash) + getGroupsList().hashCode();
774 }
775 hash = (29 * hash) + getUnknownFields().hashCode();
776 memoizedHashCode = hash;
777 return hash;
778 }
779
780 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto parseFrom(
781 com.google.protobuf.ByteString data)
782 throws com.google.protobuf.InvalidProtocolBufferException {
783 return PARSER.parseFrom(data);
784 }
785 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto parseFrom(
786 com.google.protobuf.ByteString data,
787 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
788 throws com.google.protobuf.InvalidProtocolBufferException {
789 return PARSER.parseFrom(data, extensionRegistry);
790 }
791 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto parseFrom(byte[] data)
792 throws com.google.protobuf.InvalidProtocolBufferException {
793 return PARSER.parseFrom(data);
794 }
795 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto parseFrom(
796 byte[] data,
797 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
798 throws com.google.protobuf.InvalidProtocolBufferException {
799 return PARSER.parseFrom(data, extensionRegistry);
800 }
801 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto parseFrom(java.io.InputStream input)
802 throws java.io.IOException {
803 return PARSER.parseFrom(input);
804 }
805 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto parseFrom(
806 java.io.InputStream input,
807 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
808 throws java.io.IOException {
809 return PARSER.parseFrom(input, extensionRegistry);
810 }
811 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto parseDelimitedFrom(java.io.InputStream input)
812 throws java.io.IOException {
813 return PARSER.parseDelimitedFrom(input);
814 }
815 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto parseDelimitedFrom(
816 java.io.InputStream input,
817 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
818 throws java.io.IOException {
819 return PARSER.parseDelimitedFrom(input, extensionRegistry);
820 }
821 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto parseFrom(
822 com.google.protobuf.CodedInputStream input)
823 throws java.io.IOException {
824 return PARSER.parseFrom(input);
825 }
826 public static org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto parseFrom(
827 com.google.protobuf.CodedInputStream input,
828 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
829 throws java.io.IOException {
830 return PARSER.parseFrom(input, extensionRegistry);
831 }
832
833 public static Builder newBuilder() { return Builder.create(); }
834 public Builder newBuilderForType() { return newBuilder(); }
835 public static Builder newBuilder(org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto prototype) {
836 return newBuilder().mergeFrom(prototype);
837 }
838 public Builder toBuilder() { return newBuilder(this); }
839
840 @java.lang.Override
841 protected Builder newBuilderForType(
842 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
843 Builder builder = new Builder(parent);
844 return builder;
845 }
846 /**
847 * Protobuf type {@code hadoop.common.GetGroupsForUserResponseProto}
848 *
849 * <pre>
850 **
851 * Response for get groups.
852 * </pre>
853 */
854 public static final class Builder extends
855 com.google.protobuf.GeneratedMessage.Builder<Builder>
856 implements org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProtoOrBuilder {
857 public static final com.google.protobuf.Descriptors.Descriptor
858 getDescriptor() {
859 return org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.internal_static_hadoop_common_GetGroupsForUserResponseProto_descriptor;
860 }
861
862 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
863 internalGetFieldAccessorTable() {
864 return org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.internal_static_hadoop_common_GetGroupsForUserResponseProto_fieldAccessorTable
865 .ensureFieldAccessorsInitialized(
866 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto.class, org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto.Builder.class);
867 }
868
869 // Construct using org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto.newBuilder()
870 private Builder() {
871 maybeForceBuilderInitialization();
872 }
873
874 private Builder(
875 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
876 super(parent);
877 maybeForceBuilderInitialization();
878 }
879 private void maybeForceBuilderInitialization() {
880 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
881 }
882 }
883 private static Builder create() {
884 return new Builder();
885 }
886
887 public Builder clear() {
888 super.clear();
889 groups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
890 bitField0_ = (bitField0_ & ~0x00000001);
891 return this;
892 }
893
894 public Builder clone() {
895 return create().mergeFrom(buildPartial());
896 }
897
898 public com.google.protobuf.Descriptors.Descriptor
899 getDescriptorForType() {
900 return org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.internal_static_hadoop_common_GetGroupsForUserResponseProto_descriptor;
901 }
902
903 public org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto getDefaultInstanceForType() {
904 return org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto.getDefaultInstance();
905 }
906
907 public org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto build() {
908 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto result = buildPartial();
909 if (!result.isInitialized()) {
910 throw newUninitializedMessageException(result);
911 }
912 return result;
913 }
914
915 public org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto buildPartial() {
916 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto result = new org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto(this);
917 int from_bitField0_ = bitField0_;
918 if (((bitField0_ & 0x00000001) == 0x00000001)) {
919 groups_ = new com.google.protobuf.UnmodifiableLazyStringList(
920 groups_);
921 bitField0_ = (bitField0_ & ~0x00000001);
922 }
923 result.groups_ = groups_;
924 onBuilt();
925 return result;
926 }
927
928 public Builder mergeFrom(com.google.protobuf.Message other) {
929 if (other instanceof org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto) {
930 return mergeFrom((org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto)other);
931 } else {
932 super.mergeFrom(other);
933 return this;
934 }
935 }
936
937 public Builder mergeFrom(org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto other) {
938 if (other == org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto.getDefaultInstance()) return this;
939 if (!other.groups_.isEmpty()) {
940 if (groups_.isEmpty()) {
941 groups_ = other.groups_;
942 bitField0_ = (bitField0_ & ~0x00000001);
943 } else {
944 ensureGroupsIsMutable();
945 groups_.addAll(other.groups_);
946 }
947 onChanged();
948 }
949 this.mergeUnknownFields(other.getUnknownFields());
950 return this;
951 }
952
953 public final boolean isInitialized() {
954 return true;
955 }
956
957 public Builder mergeFrom(
958 com.google.protobuf.CodedInputStream input,
959 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
960 throws java.io.IOException {
961 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto parsedMessage = null;
962 try {
963 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
964 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
965 parsedMessage = (org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto) e.getUnfinishedMessage();
966 throw e;
967 } finally {
968 if (parsedMessage != null) {
969 mergeFrom(parsedMessage);
970 }
971 }
972 return this;
973 }
974 private int bitField0_;
975
976 // repeated string groups = 1;
977 private com.google.protobuf.LazyStringList groups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
978 private void ensureGroupsIsMutable() {
979 if (!((bitField0_ & 0x00000001) == 0x00000001)) {
980 groups_ = new com.google.protobuf.LazyStringArrayList(groups_);
981 bitField0_ |= 0x00000001;
982 }
983 }
984 /**
985 * <code>repeated string groups = 1;</code>
986 */
987 public java.util.List<java.lang.String>
988 getGroupsList() {
989 return java.util.Collections.unmodifiableList(groups_);
990 }
991 /**
992 * <code>repeated string groups = 1;</code>
993 */
994 public int getGroupsCount() {
995 return groups_.size();
996 }
997 /**
998 * <code>repeated string groups = 1;</code>
999 */
1000 public java.lang.String getGroups(int index) {
1001 return groups_.get(index);
1002 }
1003 /**
1004 * <code>repeated string groups = 1;</code>
1005 */
1006 public com.google.protobuf.ByteString
1007 getGroupsBytes(int index) {
1008 return groups_.getByteString(index);
1009 }
1010 /**
1011 * <code>repeated string groups = 1;</code>
1012 */
1013 public Builder setGroups(
1014 int index, java.lang.String value) {
1015 if (value == null) {
1016 throw new NullPointerException();
1017 }
1018 ensureGroupsIsMutable();
1019 groups_.set(index, value);
1020 onChanged();
1021 return this;
1022 }
1023 /**
1024 * <code>repeated string groups = 1;</code>
1025 */
1026 public Builder addGroups(
1027 java.lang.String value) {
1028 if (value == null) {
1029 throw new NullPointerException();
1030 }
1031 ensureGroupsIsMutable();
1032 groups_.add(value);
1033 onChanged();
1034 return this;
1035 }
1036 /**
1037 * <code>repeated string groups = 1;</code>
1038 */
1039 public Builder addAllGroups(
1040 java.lang.Iterable<java.lang.String> values) {
1041 ensureGroupsIsMutable();
1042 super.addAll(values, groups_);
1043 onChanged();
1044 return this;
1045 }
1046 /**
1047 * <code>repeated string groups = 1;</code>
1048 */
1049 public Builder clearGroups() {
1050 groups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
1051 bitField0_ = (bitField0_ & ~0x00000001);
1052 onChanged();
1053 return this;
1054 }
1055 /**
1056 * <code>repeated string groups = 1;</code>
1057 */
1058 public Builder addGroupsBytes(
1059 com.google.protobuf.ByteString value) {
1060 if (value == null) {
1061 throw new NullPointerException();
1062 }
1063 ensureGroupsIsMutable();
1064 groups_.add(value);
1065 onChanged();
1066 return this;
1067 }
1068
1069 // @@protoc_insertion_point(builder_scope:hadoop.common.GetGroupsForUserResponseProto)
1070 }
1071
1072 static {
1073 defaultInstance = new GetGroupsForUserResponseProto(true);
1074 defaultInstance.initFields();
1075 }
1076
1077 // @@protoc_insertion_point(class_scope:hadoop.common.GetGroupsForUserResponseProto)
1078 }
1079
1080 /**
1081 * Protobuf service {@code hadoop.common.GetUserMappingsProtocolService}
1082 *
1083 * <pre>
1084 **
1085 * Protocol which maps users to groups.
1086 * </pre>
1087 */
1088 public static abstract class GetUserMappingsProtocolService
1089 implements com.google.protobuf.Service {
1090 protected GetUserMappingsProtocolService() {}
1091
1092 public interface Interface {
1093 /**
1094 * <code>rpc getGroupsForUser(.hadoop.common.GetGroupsForUserRequestProto) returns (.hadoop.common.GetGroupsForUserResponseProto);</code>
1095 *
1096 * <pre>
1097 **
1098 * Get the groups which are mapped to the given user.
1099 * </pre>
1100 */
1101 public abstract void getGroupsForUser(
1102 com.google.protobuf.RpcController controller,
1103 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto request,
1104 com.google.protobuf.RpcCallback<org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto> done);
1105
1106 }
1107
1108 public static com.google.protobuf.Service newReflectiveService(
1109 final Interface impl) {
1110 return new GetUserMappingsProtocolService() {
1111 @java.lang.Override
1112 public void getGroupsForUser(
1113 com.google.protobuf.RpcController controller,
1114 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto request,
1115 com.google.protobuf.RpcCallback<org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto> done) {
1116 impl.getGroupsForUser(controller, request, done);
1117 }
1118
1119 };
1120 }
1121
1122 public static com.google.protobuf.BlockingService
1123 newReflectiveBlockingService(final BlockingInterface impl) {
1124 return new com.google.protobuf.BlockingService() {
1125 public final com.google.protobuf.Descriptors.ServiceDescriptor
1126 getDescriptorForType() {
1127 return getDescriptor();
1128 }
1129
1130 public final com.google.protobuf.Message callBlockingMethod(
1131 com.google.protobuf.Descriptors.MethodDescriptor method,
1132 com.google.protobuf.RpcController controller,
1133 com.google.protobuf.Message request)
1134 throws com.google.protobuf.ServiceException {
1135 if (method.getService() != getDescriptor()) {
1136 throw new java.lang.IllegalArgumentException(
1137 "Service.callBlockingMethod() given method descriptor for " +
1138 "wrong service type.");
1139 }
1140 switch(method.getIndex()) {
1141 case 0:
1142 return impl.getGroupsForUser(controller, (org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto)request);
1143 default:
1144 throw new java.lang.AssertionError("Can't get here.");
1145 }
1146 }
1147
1148 public final com.google.protobuf.Message
1149 getRequestPrototype(
1150 com.google.protobuf.Descriptors.MethodDescriptor method) {
1151 if (method.getService() != getDescriptor()) {
1152 throw new java.lang.IllegalArgumentException(
1153 "Service.getRequestPrototype() given method " +
1154 "descriptor for wrong service type.");
1155 }
1156 switch(method.getIndex()) {
1157 case 0:
1158 return org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto.getDefaultInstance();
1159 default:
1160 throw new java.lang.AssertionError("Can't get here.");
1161 }
1162 }
1163
1164 public final com.google.protobuf.Message
1165 getResponsePrototype(
1166 com.google.protobuf.Descriptors.MethodDescriptor method) {
1167 if (method.getService() != getDescriptor()) {
1168 throw new java.lang.IllegalArgumentException(
1169 "Service.getResponsePrototype() given method " +
1170 "descriptor for wrong service type.");
1171 }
1172 switch(method.getIndex()) {
1173 case 0:
1174 return org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto.getDefaultInstance();
1175 default:
1176 throw new java.lang.AssertionError("Can't get here.");
1177 }
1178 }
1179
1180 };
1181 }
1182
1183 /**
1184 * <code>rpc getGroupsForUser(.hadoop.common.GetGroupsForUserRequestProto) returns (.hadoop.common.GetGroupsForUserResponseProto);</code>
1185 *
1186 * <pre>
1187 **
1188 * Get the groups which are mapped to the given user.
1189 * </pre>
1190 */
1191 public abstract void getGroupsForUser(
1192 com.google.protobuf.RpcController controller,
1193 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto request,
1194 com.google.protobuf.RpcCallback<org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto> done);
1195
1196 public static final
1197 com.google.protobuf.Descriptors.ServiceDescriptor
1198 getDescriptor() {
1199 return org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.getDescriptor().getServices().get(0);
1200 }
1201 public final com.google.protobuf.Descriptors.ServiceDescriptor
1202 getDescriptorForType() {
1203 return getDescriptor();
1204 }
1205
1206 public final void callMethod(
1207 com.google.protobuf.Descriptors.MethodDescriptor method,
1208 com.google.protobuf.RpcController controller,
1209 com.google.protobuf.Message request,
1210 com.google.protobuf.RpcCallback<
1211 com.google.protobuf.Message> done) {
1212 if (method.getService() != getDescriptor()) {
1213 throw new java.lang.IllegalArgumentException(
1214 "Service.callMethod() given method descriptor for wrong " +
1215 "service type.");
1216 }
1217 switch(method.getIndex()) {
1218 case 0:
1219 this.getGroupsForUser(controller, (org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto)request,
1220 com.google.protobuf.RpcUtil.<org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto>specializeCallback(
1221 done));
1222 return;
1223 default:
1224 throw new java.lang.AssertionError("Can't get here.");
1225 }
1226 }
1227
1228 public final com.google.protobuf.Message
1229 getRequestPrototype(
1230 com.google.protobuf.Descriptors.MethodDescriptor method) {
1231 if (method.getService() != getDescriptor()) {
1232 throw new java.lang.IllegalArgumentException(
1233 "Service.getRequestPrototype() given method " +
1234 "descriptor for wrong service type.");
1235 }
1236 switch(method.getIndex()) {
1237 case 0:
1238 return org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto.getDefaultInstance();
1239 default:
1240 throw new java.lang.AssertionError("Can't get here.");
1241 }
1242 }
1243
1244 public final com.google.protobuf.Message
1245 getResponsePrototype(
1246 com.google.protobuf.Descriptors.MethodDescriptor method) {
1247 if (method.getService() != getDescriptor()) {
1248 throw new java.lang.IllegalArgumentException(
1249 "Service.getResponsePrototype() given method " +
1250 "descriptor for wrong service type.");
1251 }
1252 switch(method.getIndex()) {
1253 case 0:
1254 return org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto.getDefaultInstance();
1255 default:
1256 throw new java.lang.AssertionError("Can't get here.");
1257 }
1258 }
1259
1260 public static Stub newStub(
1261 com.google.protobuf.RpcChannel channel) {
1262 return new Stub(channel);
1263 }
1264
1265 public static final class Stub extends org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetUserMappingsProtocolService implements Interface {
1266 private Stub(com.google.protobuf.RpcChannel channel) {
1267 this.channel = channel;
1268 }
1269
1270 private final com.google.protobuf.RpcChannel channel;
1271
1272 public com.google.protobuf.RpcChannel getChannel() {
1273 return channel;
1274 }
1275
1276 public void getGroupsForUser(
1277 com.google.protobuf.RpcController controller,
1278 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto request,
1279 com.google.protobuf.RpcCallback<org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto> done) {
1280 channel.callMethod(
1281 getDescriptor().getMethods().get(0),
1282 controller,
1283 request,
1284 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto.getDefaultInstance(),
1285 com.google.protobuf.RpcUtil.generalizeCallback(
1286 done,
1287 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto.class,
1288 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto.getDefaultInstance()));
1289 }
1290 }
1291
1292 public static BlockingInterface newBlockingStub(
1293 com.google.protobuf.BlockingRpcChannel channel) {
1294 return new BlockingStub(channel);
1295 }
1296
1297 public interface BlockingInterface {
1298 public org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto getGroupsForUser(
1299 com.google.protobuf.RpcController controller,
1300 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto request)
1301 throws com.google.protobuf.ServiceException;
1302 }
1303
1304 private static final class BlockingStub implements BlockingInterface {
1305 private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
1306 this.channel = channel;
1307 }
1308
1309 private final com.google.protobuf.BlockingRpcChannel channel;
1310
1311 public org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto getGroupsForUser(
1312 com.google.protobuf.RpcController controller,
1313 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto request)
1314 throws com.google.protobuf.ServiceException {
1315 return (org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto) channel.callBlockingMethod(
1316 getDescriptor().getMethods().get(0),
1317 controller,
1318 request,
1319 org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto.getDefaultInstance());
1320 }
1321
1322 }
1323
1324 // @@protoc_insertion_point(class_scope:hadoop.common.GetUserMappingsProtocolService)
1325 }
1326
1327 private static com.google.protobuf.Descriptors.Descriptor
1328 internal_static_hadoop_common_GetGroupsForUserRequestProto_descriptor;
1329 private static
1330 com.google.protobuf.GeneratedMessage.FieldAccessorTable
1331 internal_static_hadoop_common_GetGroupsForUserRequestProto_fieldAccessorTable;
1332 private static com.google.protobuf.Descriptors.Descriptor
1333 internal_static_hadoop_common_GetGroupsForUserResponseProto_descriptor;
1334 private static
1335 com.google.protobuf.GeneratedMessage.FieldAccessorTable
1336 internal_static_hadoop_common_GetGroupsForUserResponseProto_fieldAccessorTable;
1337
1338 public static com.google.protobuf.Descriptors.FileDescriptor
1339 getDescriptor() {
1340 return descriptor;
1341 }
1342 private static com.google.protobuf.Descriptors.FileDescriptor
1343 descriptor;
1344 static {
1345 java.lang.String[] descriptorData = {
1346 "\n\035GetUserMappingsProtocol.proto\022\rhadoop." +
1347 "common\",\n\034GetGroupsForUserRequestProto\022\014" +
1348 "\n\004user\030\001 \002(\t\"/\n\035GetGroupsForUserResponse" +
1349 "Proto\022\016\n\006groups\030\001 \003(\t2\217\001\n\036GetUserMapping" +
1350 "sProtocolService\022m\n\020getGroupsForUser\022+.h" +
1351 "adoop.common.GetGroupsForUserRequestProt" +
1352 "o\032,.hadoop.common.GetGroupsForUserRespon" +
1353 "seProtoBD\n\035org.apache.hadoop.tools.proto" +
1354 "B\035GetUserMappingsProtocolProtos\210\001\001\240\001\001"
1355 };
1356 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
1357 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
1358 public com.google.protobuf.ExtensionRegistry assignDescriptors(
1359 com.google.protobuf.Descriptors.FileDescriptor root) {
1360 descriptor = root;
1361 internal_static_hadoop_common_GetGroupsForUserRequestProto_descriptor =
1362 getDescriptor().getMessageTypes().get(0);
1363 internal_static_hadoop_common_GetGroupsForUserRequestProto_fieldAccessorTable = new
1364 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1365 internal_static_hadoop_common_GetGroupsForUserRequestProto_descriptor,
1366 new java.lang.String[] { "User", });
1367 internal_static_hadoop_common_GetGroupsForUserResponseProto_descriptor =
1368 getDescriptor().getMessageTypes().get(1);
1369 internal_static_hadoop_common_GetGroupsForUserResponseProto_fieldAccessorTable = new
1370 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1371 internal_static_hadoop_common_GetGroupsForUserResponseProto_descriptor,
1372 new java.lang.String[] { "Groups", });
1373 return null;
1374 }
1375 };
1376 com.google.protobuf.Descriptors.FileDescriptor
1377 .internalBuildGeneratedFileFrom(descriptorData,
1378 new com.google.protobuf.Descriptors.FileDescriptor[] {
1379 }, assigner);
1380 }
1381
1382 // @@protoc_insertion_point(outer_class_scope)
1383 }