1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: io/grpc/reflection/testing/reflection_test_depth_two.proto 3 4 package io.grpc.reflection.testing; 5 6 /** 7 * Protobuf type {@code grpc.reflection.testing.Reply} 8 */ 9 public final class Reply extends 10 com.google.protobuf.GeneratedMessageV3 implements 11 // @@protoc_insertion_point(message_implements:grpc.reflection.testing.Reply) 12 ReplyOrBuilder { 13 private static final long serialVersionUID = 0L; 14 // Use Reply.newBuilder() to construct. Reply(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)15 private Reply(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 16 super(builder); 17 } Reply()18 private Reply() { 19 message_ = ""; 20 } 21 22 @java.lang.Override 23 public final com.google.protobuf.UnknownFieldSet getUnknownFields()24 getUnknownFields() { 25 return this.unknownFields; 26 } Reply( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)27 private Reply( 28 com.google.protobuf.CodedInputStream input, 29 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 30 throws com.google.protobuf.InvalidProtocolBufferException { 31 this(); 32 if (extensionRegistry == null) { 33 throw new java.lang.NullPointerException(); 34 } 35 int mutable_bitField0_ = 0; 36 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 37 com.google.protobuf.UnknownFieldSet.newBuilder(); 38 try { 39 boolean done = false; 40 while (!done) { 41 int tag = input.readTag(); 42 switch (tag) { 43 case 0: 44 done = true; 45 break; 46 default: { 47 if (!parseUnknownField( 48 input, unknownFields, extensionRegistry, tag)) { 49 done = true; 50 } 51 break; 52 } 53 case 10: { 54 com.google.protobuf.ByteString bs = input.readBytes(); 55 bitField0_ |= 0x00000001; 56 message_ = bs; 57 break; 58 } 59 } 60 } 61 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 62 throw e.setUnfinishedMessage(this); 63 } catch (java.io.IOException e) { 64 throw new com.google.protobuf.InvalidProtocolBufferException( 65 e).setUnfinishedMessage(this); 66 } finally { 67 this.unknownFields = unknownFields.build(); 68 makeExtensionsImmutable(); 69 } 70 } 71 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()72 getDescriptor() { 73 return io.grpc.reflection.testing.ReflectionTestDepthTwoProto.internal_static_grpc_reflection_testing_Reply_descriptor; 74 } 75 76 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()77 internalGetFieldAccessorTable() { 78 return io.grpc.reflection.testing.ReflectionTestDepthTwoProto.internal_static_grpc_reflection_testing_Reply_fieldAccessorTable 79 .ensureFieldAccessorsInitialized( 80 io.grpc.reflection.testing.Reply.class, io.grpc.reflection.testing.Reply.Builder.class); 81 } 82 83 private int bitField0_; 84 public static final int MESSAGE_FIELD_NUMBER = 1; 85 private volatile java.lang.Object message_; 86 /** 87 * <code>optional string message = 1;</code> 88 */ hasMessage()89 public boolean hasMessage() { 90 return ((bitField0_ & 0x00000001) == 0x00000001); 91 } 92 /** 93 * <code>optional string message = 1;</code> 94 */ getMessage()95 public java.lang.String getMessage() { 96 java.lang.Object ref = message_; 97 if (ref instanceof java.lang.String) { 98 return (java.lang.String) ref; 99 } else { 100 com.google.protobuf.ByteString bs = 101 (com.google.protobuf.ByteString) ref; 102 java.lang.String s = bs.toStringUtf8(); 103 if (bs.isValidUtf8()) { 104 message_ = s; 105 } 106 return s; 107 } 108 } 109 /** 110 * <code>optional string message = 1;</code> 111 */ 112 public com.google.protobuf.ByteString getMessageBytes()113 getMessageBytes() { 114 java.lang.Object ref = message_; 115 if (ref instanceof java.lang.String) { 116 com.google.protobuf.ByteString b = 117 com.google.protobuf.ByteString.copyFromUtf8( 118 (java.lang.String) ref); 119 message_ = b; 120 return b; 121 } else { 122 return (com.google.protobuf.ByteString) ref; 123 } 124 } 125 126 private byte memoizedIsInitialized = -1; isInitialized()127 public final boolean isInitialized() { 128 byte isInitialized = memoizedIsInitialized; 129 if (isInitialized == 1) return true; 130 if (isInitialized == 0) return false; 131 132 memoizedIsInitialized = 1; 133 return true; 134 } 135 writeTo(com.google.protobuf.CodedOutputStream output)136 public void writeTo(com.google.protobuf.CodedOutputStream output) 137 throws java.io.IOException { 138 if (((bitField0_ & 0x00000001) == 0x00000001)) { 139 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); 140 } 141 unknownFields.writeTo(output); 142 } 143 getSerializedSize()144 public int getSerializedSize() { 145 int size = memoizedSize; 146 if (size != -1) return size; 147 148 size = 0; 149 if (((bitField0_ & 0x00000001) == 0x00000001)) { 150 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); 151 } 152 size += unknownFields.getSerializedSize(); 153 memoizedSize = size; 154 return size; 155 } 156 157 @java.lang.Override equals(final java.lang.Object obj)158 public boolean equals(final java.lang.Object obj) { 159 if (obj == this) { 160 return true; 161 } 162 if (!(obj instanceof io.grpc.reflection.testing.Reply)) { 163 return super.equals(obj); 164 } 165 io.grpc.reflection.testing.Reply other = (io.grpc.reflection.testing.Reply) obj; 166 167 boolean result = true; 168 result = result && (hasMessage() == other.hasMessage()); 169 if (hasMessage()) { 170 result = result && getMessage() 171 .equals(other.getMessage()); 172 } 173 result = result && unknownFields.equals(other.unknownFields); 174 return result; 175 } 176 177 @java.lang.Override hashCode()178 public int hashCode() { 179 if (memoizedHashCode != 0) { 180 return memoizedHashCode; 181 } 182 int hash = 41; 183 hash = (19 * hash) + getDescriptor().hashCode(); 184 if (hasMessage()) { 185 hash = (37 * hash) + MESSAGE_FIELD_NUMBER; 186 hash = (53 * hash) + getMessage().hashCode(); 187 } 188 hash = (29 * hash) + unknownFields.hashCode(); 189 memoizedHashCode = hash; 190 return hash; 191 } 192 parseFrom( java.nio.ByteBuffer data)193 public static io.grpc.reflection.testing.Reply parseFrom( 194 java.nio.ByteBuffer data) 195 throws com.google.protobuf.InvalidProtocolBufferException { 196 return PARSER.parseFrom(data); 197 } parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)198 public static io.grpc.reflection.testing.Reply parseFrom( 199 java.nio.ByteBuffer data, 200 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 201 throws com.google.protobuf.InvalidProtocolBufferException { 202 return PARSER.parseFrom(data, extensionRegistry); 203 } parseFrom( com.google.protobuf.ByteString data)204 public static io.grpc.reflection.testing.Reply parseFrom( 205 com.google.protobuf.ByteString data) 206 throws com.google.protobuf.InvalidProtocolBufferException { 207 return PARSER.parseFrom(data); 208 } parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)209 public static io.grpc.reflection.testing.Reply parseFrom( 210 com.google.protobuf.ByteString data, 211 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 212 throws com.google.protobuf.InvalidProtocolBufferException { 213 return PARSER.parseFrom(data, extensionRegistry); 214 } parseFrom(byte[] data)215 public static io.grpc.reflection.testing.Reply parseFrom(byte[] data) 216 throws com.google.protobuf.InvalidProtocolBufferException { 217 return PARSER.parseFrom(data); 218 } parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)219 public static io.grpc.reflection.testing.Reply parseFrom( 220 byte[] data, 221 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 222 throws com.google.protobuf.InvalidProtocolBufferException { 223 return PARSER.parseFrom(data, extensionRegistry); 224 } parseFrom(java.io.InputStream input)225 public static io.grpc.reflection.testing.Reply parseFrom(java.io.InputStream input) 226 throws java.io.IOException { 227 return com.google.protobuf.GeneratedMessageV3 228 .parseWithIOException(PARSER, input); 229 } parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)230 public static io.grpc.reflection.testing.Reply parseFrom( 231 java.io.InputStream input, 232 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 233 throws java.io.IOException { 234 return com.google.protobuf.GeneratedMessageV3 235 .parseWithIOException(PARSER, input, extensionRegistry); 236 } parseDelimitedFrom(java.io.InputStream input)237 public static io.grpc.reflection.testing.Reply parseDelimitedFrom(java.io.InputStream input) 238 throws java.io.IOException { 239 return com.google.protobuf.GeneratedMessageV3 240 .parseDelimitedWithIOException(PARSER, input); 241 } parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)242 public static io.grpc.reflection.testing.Reply parseDelimitedFrom( 243 java.io.InputStream input, 244 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 245 throws java.io.IOException { 246 return com.google.protobuf.GeneratedMessageV3 247 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 248 } parseFrom( com.google.protobuf.CodedInputStream input)249 public static io.grpc.reflection.testing.Reply parseFrom( 250 com.google.protobuf.CodedInputStream input) 251 throws java.io.IOException { 252 return com.google.protobuf.GeneratedMessageV3 253 .parseWithIOException(PARSER, input); 254 } parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)255 public static io.grpc.reflection.testing.Reply parseFrom( 256 com.google.protobuf.CodedInputStream input, 257 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 258 throws java.io.IOException { 259 return com.google.protobuf.GeneratedMessageV3 260 .parseWithIOException(PARSER, input, extensionRegistry); 261 } 262 newBuilderForType()263 public Builder newBuilderForType() { return newBuilder(); } newBuilder()264 public static Builder newBuilder() { 265 return DEFAULT_INSTANCE.toBuilder(); 266 } newBuilder(io.grpc.reflection.testing.Reply prototype)267 public static Builder newBuilder(io.grpc.reflection.testing.Reply prototype) { 268 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 269 } toBuilder()270 public Builder toBuilder() { 271 return this == DEFAULT_INSTANCE 272 ? new Builder() : new Builder().mergeFrom(this); 273 } 274 275 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)276 protected Builder newBuilderForType( 277 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 278 Builder builder = new Builder(parent); 279 return builder; 280 } 281 /** 282 * Protobuf type {@code grpc.reflection.testing.Reply} 283 */ 284 public static final class Builder extends 285 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 286 // @@protoc_insertion_point(builder_implements:grpc.reflection.testing.Reply) 287 io.grpc.reflection.testing.ReplyOrBuilder { 288 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()289 getDescriptor() { 290 return io.grpc.reflection.testing.ReflectionTestDepthTwoProto.internal_static_grpc_reflection_testing_Reply_descriptor; 291 } 292 293 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()294 internalGetFieldAccessorTable() { 295 return io.grpc.reflection.testing.ReflectionTestDepthTwoProto.internal_static_grpc_reflection_testing_Reply_fieldAccessorTable 296 .ensureFieldAccessorsInitialized( 297 io.grpc.reflection.testing.Reply.class, io.grpc.reflection.testing.Reply.Builder.class); 298 } 299 300 // Construct using io.grpc.reflection.testing.Reply.newBuilder() Builder()301 private Builder() { 302 maybeForceBuilderInitialization(); 303 } 304 Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)305 private Builder( 306 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 307 super(parent); 308 maybeForceBuilderInitialization(); 309 } maybeForceBuilderInitialization()310 private void maybeForceBuilderInitialization() { 311 if (com.google.protobuf.GeneratedMessageV3 312 .alwaysUseFieldBuilders) { 313 } 314 } clear()315 public Builder clear() { 316 super.clear(); 317 message_ = ""; 318 bitField0_ = (bitField0_ & ~0x00000001); 319 return this; 320 } 321 322 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()323 getDescriptorForType() { 324 return io.grpc.reflection.testing.ReflectionTestDepthTwoProto.internal_static_grpc_reflection_testing_Reply_descriptor; 325 } 326 getDefaultInstanceForType()327 public io.grpc.reflection.testing.Reply getDefaultInstanceForType() { 328 return io.grpc.reflection.testing.Reply.getDefaultInstance(); 329 } 330 build()331 public io.grpc.reflection.testing.Reply build() { 332 io.grpc.reflection.testing.Reply result = buildPartial(); 333 if (!result.isInitialized()) { 334 throw newUninitializedMessageException(result); 335 } 336 return result; 337 } 338 buildPartial()339 public io.grpc.reflection.testing.Reply buildPartial() { 340 io.grpc.reflection.testing.Reply result = new io.grpc.reflection.testing.Reply(this); 341 int from_bitField0_ = bitField0_; 342 int to_bitField0_ = 0; 343 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 344 to_bitField0_ |= 0x00000001; 345 } 346 result.message_ = message_; 347 result.bitField0_ = to_bitField0_; 348 onBuilt(); 349 return result; 350 } 351 clone()352 public Builder clone() { 353 return (Builder) super.clone(); 354 } setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)355 public Builder setField( 356 com.google.protobuf.Descriptors.FieldDescriptor field, 357 java.lang.Object value) { 358 return (Builder) super.setField(field, value); 359 } clearField( com.google.protobuf.Descriptors.FieldDescriptor field)360 public Builder clearField( 361 com.google.protobuf.Descriptors.FieldDescriptor field) { 362 return (Builder) super.clearField(field); 363 } clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof)364 public Builder clearOneof( 365 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 366 return (Builder) super.clearOneof(oneof); 367 } setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)368 public Builder setRepeatedField( 369 com.google.protobuf.Descriptors.FieldDescriptor field, 370 int index, java.lang.Object value) { 371 return (Builder) super.setRepeatedField(field, index, value); 372 } addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)373 public Builder addRepeatedField( 374 com.google.protobuf.Descriptors.FieldDescriptor field, 375 java.lang.Object value) { 376 return (Builder) super.addRepeatedField(field, value); 377 } mergeFrom(com.google.protobuf.Message other)378 public Builder mergeFrom(com.google.protobuf.Message other) { 379 if (other instanceof io.grpc.reflection.testing.Reply) { 380 return mergeFrom((io.grpc.reflection.testing.Reply)other); 381 } else { 382 super.mergeFrom(other); 383 return this; 384 } 385 } 386 mergeFrom(io.grpc.reflection.testing.Reply other)387 public Builder mergeFrom(io.grpc.reflection.testing.Reply other) { 388 if (other == io.grpc.reflection.testing.Reply.getDefaultInstance()) return this; 389 if (other.hasMessage()) { 390 bitField0_ |= 0x00000001; 391 message_ = other.message_; 392 onChanged(); 393 } 394 this.mergeUnknownFields(other.unknownFields); 395 onChanged(); 396 return this; 397 } 398 isInitialized()399 public final boolean isInitialized() { 400 return true; 401 } 402 mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)403 public Builder mergeFrom( 404 com.google.protobuf.CodedInputStream input, 405 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 406 throws java.io.IOException { 407 io.grpc.reflection.testing.Reply parsedMessage = null; 408 try { 409 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 410 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 411 parsedMessage = (io.grpc.reflection.testing.Reply) e.getUnfinishedMessage(); 412 throw e.unwrapIOException(); 413 } finally { 414 if (parsedMessage != null) { 415 mergeFrom(parsedMessage); 416 } 417 } 418 return this; 419 } 420 private int bitField0_; 421 422 private java.lang.Object message_ = ""; 423 /** 424 * <code>optional string message = 1;</code> 425 */ hasMessage()426 public boolean hasMessage() { 427 return ((bitField0_ & 0x00000001) == 0x00000001); 428 } 429 /** 430 * <code>optional string message = 1;</code> 431 */ getMessage()432 public java.lang.String getMessage() { 433 java.lang.Object ref = message_; 434 if (!(ref instanceof java.lang.String)) { 435 com.google.protobuf.ByteString bs = 436 (com.google.protobuf.ByteString) ref; 437 java.lang.String s = bs.toStringUtf8(); 438 if (bs.isValidUtf8()) { 439 message_ = s; 440 } 441 return s; 442 } else { 443 return (java.lang.String) ref; 444 } 445 } 446 /** 447 * <code>optional string message = 1;</code> 448 */ 449 public com.google.protobuf.ByteString getMessageBytes()450 getMessageBytes() { 451 java.lang.Object ref = message_; 452 if (ref instanceof String) { 453 com.google.protobuf.ByteString b = 454 com.google.protobuf.ByteString.copyFromUtf8( 455 (java.lang.String) ref); 456 message_ = b; 457 return b; 458 } else { 459 return (com.google.protobuf.ByteString) ref; 460 } 461 } 462 /** 463 * <code>optional string message = 1;</code> 464 */ setMessage( java.lang.String value)465 public Builder setMessage( 466 java.lang.String value) { 467 if (value == null) { 468 throw new NullPointerException(); 469 } 470 bitField0_ |= 0x00000001; 471 message_ = value; 472 onChanged(); 473 return this; 474 } 475 /** 476 * <code>optional string message = 1;</code> 477 */ clearMessage()478 public Builder clearMessage() { 479 bitField0_ = (bitField0_ & ~0x00000001); 480 message_ = getDefaultInstance().getMessage(); 481 onChanged(); 482 return this; 483 } 484 /** 485 * <code>optional string message = 1;</code> 486 */ setMessageBytes( com.google.protobuf.ByteString value)487 public Builder setMessageBytes( 488 com.google.protobuf.ByteString value) { 489 if (value == null) { 490 throw new NullPointerException(); 491 } 492 bitField0_ |= 0x00000001; 493 message_ = value; 494 onChanged(); 495 return this; 496 } setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)497 public final Builder setUnknownFields( 498 final com.google.protobuf.UnknownFieldSet unknownFields) { 499 return super.setUnknownFields(unknownFields); 500 } 501 mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)502 public final Builder mergeUnknownFields( 503 final com.google.protobuf.UnknownFieldSet unknownFields) { 504 return super.mergeUnknownFields(unknownFields); 505 } 506 507 508 // @@protoc_insertion_point(builder_scope:grpc.reflection.testing.Reply) 509 } 510 511 // @@protoc_insertion_point(class_scope:grpc.reflection.testing.Reply) 512 private static final io.grpc.reflection.testing.Reply DEFAULT_INSTANCE; 513 static { 514 DEFAULT_INSTANCE = new io.grpc.reflection.testing.Reply(); 515 } 516 getDefaultInstance()517 public static io.grpc.reflection.testing.Reply getDefaultInstance() { 518 return DEFAULT_INSTANCE; 519 } 520 521 @java.lang.Deprecated public static final com.google.protobuf.Parser<Reply> 522 PARSER = new com.google.protobuf.AbstractParser<Reply>() { 523 public Reply parsePartialFrom( 524 com.google.protobuf.CodedInputStream input, 525 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 526 throws com.google.protobuf.InvalidProtocolBufferException { 527 return new Reply(input, extensionRegistry); 528 } 529 }; 530 parser()531 public static com.google.protobuf.Parser<Reply> parser() { 532 return PARSER; 533 } 534 535 @java.lang.Override getParserForType()536 public com.google.protobuf.Parser<Reply> getParserForType() { 537 return PARSER; 538 } 539 getDefaultInstanceForType()540 public io.grpc.reflection.testing.Reply getDefaultInstanceForType() { 541 return DEFAULT_INSTANCE; 542 } 543 544 } 545 546