@Test public void testSetRepeatedStringField() throws Exception { TestRequest.Builder request = TestRequest.newBuilder(); RequestParser.setFieldSafely(request, "rep_str", ImmutableList.of("a", "")); assertThat(request.build().getRepStrList()).isEqualTo(ImmutableList.of("a", "")); }
public static void setFieldSafely(Message.Builder builder, String path, String value) throws InvalidProtocolBufferException { setFieldSafely(builder, path, ImmutableList.of(value)); }
RequestParser { public static void setFieldSafely(Message.Builder builder, String path, String value) throws InvalidProtocolBufferException { setFieldSafely(builder, path, ImmutableList.of(value)); } }
RequestParser { public static void setFieldSafely(Message.Builder builder, String path, String value) throws InvalidProtocolBufferException { setFieldSafely(builder, path, ImmutableList.of(value)); }  }
RequestParser { public static void setFieldSafely(Message.Builder builder, String path, String value) throws InvalidProtocolBufferException { setFieldSafely(builder, path, ImmutableList.of(value)); }  static void parseQueryParams(UriInfo uriInfo,
            V.Builder builder,
            DescriptorProtos.FieldDescriptorProto... pathParams); static void parseQueryParams(UriInfo uriInfo,
            V.Builder builder,
            List<DescriptorProtos.FieldDescriptorProto> pathParams); static T parseHeaders(HttpHeaders headers, T stub); static Metadata parseHeaders(HttpHeaders headers); static void setFieldSafely(Message.Builder builder, String path, String value); static void setFieldSafely(Message.Builder builder, String path, List<String> value); static void setFieldSafely(Message.Builder builder, Descriptors.FieldDescriptor fd, List<String> value); static void handleBody(
            String fieldPath,
            V.Builder builder,
            String body); }
RequestParser { public static void setFieldSafely(Message.Builder builder, String path, String value) throws InvalidProtocolBufferException { setFieldSafely(builder, path, ImmutableList.of(value)); }  static void parseQueryParams(UriInfo uriInfo,
            V.Builder builder,
            DescriptorProtos.FieldDescriptorProto... pathParams); static void parseQueryParams(UriInfo uriInfo,
            V.Builder builder,
            List<DescriptorProtos.FieldDescriptorProto> pathParams); static T parseHeaders(HttpHeaders headers, T stub); static Metadata parseHeaders(HttpHeaders headers); static void setFieldSafely(Message.Builder builder, String path, String value); static void setFieldSafely(Message.Builder builder, String path, List<String> value); static void setFieldSafely(Message.Builder builder, Descriptors.FieldDescriptor fd, List<String> value); static void handleBody(
            String fieldPath,
            V.Builder builder,
            String body);  }