boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: break; default: { if (!input.skipField(tag)) { done = true; throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: break; default: { if (!input.skipField(tag)) { done = true; throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
static <K, V> Map.Entry<K, V> parseEntry( CodedInputStream input, Metadata<K, V> metadata, ExtensionRegistryLite extensionRegistry) throws IOException{ K key = metadata.defaultKey; V value = metadata.defaultValue; while (true) { int tag = input.readTag(); if (tag == 0) { break; } if (tag == WireFormat.makeTag(KEY_FIELD_NUMBER, metadata.keyType.getWireType())) { key = parseField(input, extensionRegistry, metadata.keyType, key); } else if (tag == WireFormat.makeTag(VALUE_FIELD_NUMBER, metadata.valueType.getWireType())) { value = parseField(input, extensionRegistry, metadata.valueType, value); } else { if (!input.skipField(tag)) { break; } } } return new AbstractMap.SimpleImmutableEntry<K, V>(key, value); }
boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: break; default: { if (!input.skipField(tag)) { done = true; java.lang.String s = input.readStringRequireUtf8(); throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
/** * Parses an entry off of the input into the map. This helper avoids allocaton of a * {@link MapEntryLite} by parsing directly into the provided {@link MapFieldLite}. */ public void parseInto( MapFieldLite<K, V> map, CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException { int length = input.readRawVarint32(); final int oldLimit = input.pushLimit(length); K key = metadata.defaultKey; V value = metadata.defaultValue; while (true) { int tag = input.readTag(); if (tag == 0) { break; } if (tag == WireFormat.makeTag(KEY_FIELD_NUMBER, metadata.keyType.getWireType())) { key = parseField(input, extensionRegistry, metadata.keyType, key); } else if (tag == WireFormat.makeTag(VALUE_FIELD_NUMBER, metadata.valueType.getWireType())) { value = parseField(input, extensionRegistry, metadata.valueType, value); } else { if (!input.skipField(tag)) { break; } } } input.checkLastTagWas(0); input.popLimit(oldLimit); map.put(key, value); }
boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: break; default: { if (!input.skipField(tag)) { done = true; java.lang.String s = input.readStringRequireUtf8(); throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: break; default: { if (!input.skipField(tag)) { done = true; java.lang.String s = input.readStringRequireUtf8(); throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: break; default: { if (!input.skipField(tag)) { done = true; input.readMessage(io.grpc.examples.routeguide.Feature.parser(), extensionRegistry)); break; throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: break; default: { if (!input.skipField(tag)) { done = true; java.lang.String s = input.readStringRequireUtf8(); throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: break; default: { if (!input.skipField(tag)) { done = true; throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: break; default: { if (!input.skipField(tag)) { done = true; throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: break; default: { if (!input.skipField(tag)) { done = true; throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: break; default: { if (!input.skipField(tag)) { done = true; throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: break; default: { if (!input.skipField(tag)) { done = true; throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: break; default: { if (!input.skipField(tag)) { done = true; throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: break; default: { if (!input.skipField(tag)) { done = true; input.readMessage(io.grpc.examples.routeguide.Feature.parser(), extensionRegistry)); break; throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {