@SuppressWarnings("unchecked") public T mergeFrom(T other) { return getThis(); }
@SuppressWarnings("unchecked") public T assertInitialized() throws UninitializedMessageException { java.util.ArrayList<String> missingFields = missingFields(); if (!missingFields.isEmpty()) { throw new UninitializedMessageException(missingFields); } return getThis(); }
public T mergeUnframed(InputStream input) throws IOException { CodedInputStream codedInput = new CodedInputStream(input); mergeUnframed(codedInput); return getThis(); }
@SuppressWarnings("unchecked") protected T checktInitialized() throws InvalidProtocolBufferException { java.util.ArrayList<String> missingFields = missingFields(); if (!missingFields.isEmpty()) { throw new UninitializedMessageException(missingFields).asInvalidProtocolBufferException(); } return getThis(); }
public T mergeUnframed(Buffer data) throws InvalidProtocolBufferException { try { CodedInputStream input = new CodedInputStream(data); mergeUnframed(input); input.checkLastTagWas(0); return getThis(); } catch (InvalidProtocolBufferException e) { throw e; } catch (IOException e) { throw new RuntimeException("An IOException was thrown (should never happen in this method).", e); } }
public T mergeFramed(Buffer data) throws InvalidProtocolBufferException { try { CodedInputStream input = new CodedInputStream(data); mergeFramed(input); input.checkLastTagWas(0); return getThis(); } catch (InvalidProtocolBufferException e) { throw e; } catch (IOException e) { throw new RuntimeException("An IOException was thrown (should never happen in this method).", e); } }