Lines Matching defs:instanceCreator
56 * Checks if the instanceCreator returns an instance that implements the
58 * @param {function(!Kernel):T} instanceCreator
61 function checkInstanceCreator(instanceCreator) {
63 const emptyMessage = instanceCreator(Kernel.createEmpty());
150 * @param {function(!Kernel):T} instanceCreator
156 indexArray, bufferDecoder, fieldNumber, instanceCreator, pivot) {
160 bufferDecoder, indexArray[i], fieldNumber, instanceCreator, pivot);
208 * @param {function(!Kernel):T} instanceCreator
213 function readMessage(indexArray, bufferDecoder, instanceCreator, pivot) {
214 checkInstanceCreator(instanceCreator);
216 return instanceCreator(accessor);
225 * @param {function(!Kernel):T} instanceCreator
231 indexArray, bufferDecoder, fieldNumber, instanceCreator, pivot) {
232 checkInstanceCreator(instanceCreator);
236 instanceCreator, pivot);
245 * @param {function(!Kernel):T} instanceCreator
251 bufferDecoder, indexEntry, fieldNumber, instanceCreator, pivot) {
261 return instanceCreator(kernel);
773 * @param {function(!Kernel):T} instanceCreator
778 getMessageOrNull(fieldNumber, instanceCreator, pivot = undefined) {
782 readMessage(indexArray, bytes, instanceCreator, pivot),
795 * @param {function(!Kernel):T} instanceCreator
800 getGroupOrNull(fieldNumber, instanceCreator, pivot = undefined) {
804 readGroup(indexArray, bytes, fieldNumber, instanceCreator, pivot),
817 * @param {function(!Kernel):T} instanceCreator
822 getMessageAttach(fieldNumber, instanceCreator, pivot = undefined) {
823 checkInstanceCreator(instanceCreator);
824 let instance = this.getMessageOrNull(fieldNumber, instanceCreator, pivot);
826 instance = instanceCreator(Kernel.createEmpty());
841 * @param {function(!Kernel):T} instanceCreator
846 getGroupAttach(fieldNumber, instanceCreator, pivot = undefined) {
847 checkInstanceCreator(instanceCreator);
848 let instance = this.getGroupOrNull(fieldNumber, instanceCreator, pivot);
850 instance = instanceCreator(Kernel.createEmpty());
869 * @param {function(!Kernel):T} instanceCreator
874 getMessage(fieldNumber, instanceCreator, pivot = undefined) {
875 checkInstanceCreator(instanceCreator);
879 readMessage(indexArray, bytes, instanceCreator, pivot));
883 return message === null ? instanceCreator(Kernel.createEmpty()) : message;
899 * @param {function(!Kernel):T} instanceCreator
904 getGroup(fieldNumber, instanceCreator, pivot = undefined) {
905 checkInstanceCreator(instanceCreator);
909 readGroup(indexArray, bytes, fieldNumber, instanceCreator, pivot));
913 return message === null ? instanceCreator(Kernel.createEmpty()) : message;
1673 * @param {function(!Kernel):T} instanceCreator
1679 getRepeatedMessageArray_(fieldNumber, instanceCreator, pivot) {
1684 checkInstanceCreator(instanceCreator);
1704 instanceCreator(Kernel.fromBufferDecoder_(subMessageBuffer, pivot));
1714 * @param {function(!Kernel):T} instanceCreator
1721 fieldNumber, instanceCreator, index, pivot = undefined) {
1723 this.getRepeatedMessageArray_(fieldNumber, instanceCreator, pivot);
1732 * @param {function(!Kernel):T} instanceCreator
1737 getRepeatedMessageIterable(fieldNumber, instanceCreator, pivot = undefined) {
1742 this.getRepeatedMessageArray_(fieldNumber, instanceCreator, pivot));
1776 * @param {function(!Kernel):T} instanceCreator
1781 getRepeatedMessageSize(fieldNumber, instanceCreator, pivot = undefined) {
1782 return this.getRepeatedMessageArray_(fieldNumber, instanceCreator, pivot)
1790 * @param {function(!Kernel):T} instanceCreator
1796 getRepeatedGroupArray_(fieldNumber, instanceCreator, pivot) {
1800 indexArray, bufferDecoder, fieldNumber, instanceCreator, pivot),
1807 * @param {function(!Kernel):T} instanceCreator
1814 fieldNumber, instanceCreator, index, pivot = undefined) {
1816 this.getRepeatedGroupArray_(fieldNumber, instanceCreator, pivot);
1825 * @param {function(!Kernel):T} instanceCreator
1830 getRepeatedGroupIterable(fieldNumber, instanceCreator, pivot = undefined) {
1835 this.getRepeatedGroupArray_(fieldNumber, instanceCreator, pivot));
1841 * @param {function(!Kernel):T} instanceCreator
1846 getRepeatedGroupSize(fieldNumber, instanceCreator, pivot = undefined) {
1847 return this.getRepeatedGroupArray_(fieldNumber, instanceCreator, pivot)
4007 * @param {function(!Kernel):!InternalMessage} instanceCreator
4011 fieldNumber, values, instanceCreator, pivot = undefined) {
4013 ...this.getRepeatedMessageArray_(fieldNumber, instanceCreator, pivot),
4029 * @param {function(!Kernel):!InternalMessage} instanceCreator
4035 fieldNumber, value, instanceCreator, index, pivot = undefined) {
4036 checkInstanceCreator(instanceCreator);
4040 this.getRepeatedMessageArray_(fieldNumber, instanceCreator, pivot);
4049 * @param {function(!Kernel):!InternalMessage} instanceCreator
4053 fieldNumber, value, instanceCreator, pivot = undefined) {
4055 fieldNumber, [value], instanceCreator, pivot);
4074 * @param {function(!Kernel):!InternalMessage} instanceCreator
4078 fieldNumber, values, instanceCreator, pivot = undefined) {
4080 ...this.getRepeatedGroupArray_(fieldNumber, instanceCreator, pivot),
4093 * @param {function(!Kernel):!InternalMessage} instanceCreator
4099 fieldNumber, value, instanceCreator, index, pivot = undefined) {
4100 checkInstanceCreator(instanceCreator);
4104 this.getRepeatedGroupArray_(fieldNumber, instanceCreator, pivot);
4113 * @param {function(!Kernel):!InternalMessage} instanceCreator
4117 fieldNumber, value, instanceCreator, pivot = undefined) {
4118 this.addRepeatedGroupIterable(fieldNumber, [value], instanceCreator, pivot);