Home
last modified time | relevance | path

Searched refs:Descriptors (Results 1 – 25 of 78) sorted by relevance

1234

/external/protobuf/java/core/src/main/java/com/google/protobuf/
DMessageReflection.java33 import com.google.protobuf.Descriptors.FieldDescriptor;
65 for (final Map.Entry<Descriptors.FieldDescriptor, Object> entry : in writeMessageTo()
67 final Descriptors.FieldDescriptor field = entry.getKey(); in writeMessageTo()
70 field.getType() == Descriptors.FieldDescriptor.Type.MESSAGE && in writeMessageTo()
93 for (final Map.Entry<Descriptors.FieldDescriptor, Object> entry : in getSerializedSize()
95 final Descriptors.FieldDescriptor field = entry.getKey(); in getSerializedSize()
98 field.getType() == Descriptors.FieldDescriptor.Type.MESSAGE && in getSerializedSize()
130 for (final Descriptors.FieldDescriptor field : message in isInitialized()
141 for (final Map.Entry<Descriptors.FieldDescriptor, Object> entry : in isInitialized()
143 final Descriptors.FieldDescriptor field = entry.getKey(); in isInitialized()
[all …]
DMessageOrBuilder.java73 Descriptors.Descriptor getDescriptorForType(); in getDescriptorForType()
89 Map<Descriptors.FieldDescriptor, Object> getAllFields(); in getAllFields()
96 boolean hasOneof(Descriptors.OneofDescriptor oneof); in hasOneof()
102 Descriptors.FieldDescriptor getOneofFieldDescriptor( in getOneofFieldDescriptor()
103 Descriptors.OneofDescriptor oneof); in getOneofFieldDescriptor()
111 boolean hasField(Descriptors.FieldDescriptor field); in hasField()
120 Object getField(Descriptors.FieldDescriptor field); in getField()
129 int getRepeatedFieldCount(Descriptors.FieldDescriptor field); in getRepeatedFieldCount()
139 Object getRepeatedField(Descriptors.FieldDescriptor field, int index); in getRepeatedField()
DMessage.java160 Descriptors.Descriptor getDescriptorForType(); in getDescriptorForType()
167 Builder newBuilderForField(Descriptors.FieldDescriptor field); in newBuilderForField()
185 Builder getFieldBuilder(Descriptors.FieldDescriptor field); in getFieldBuilder()
203 Builder getRepeatedFieldBuilder(Descriptors.FieldDescriptor field, in getRepeatedFieldBuilder()
211 Builder setField(Descriptors.FieldDescriptor field, Object value); in setField()
217 Builder clearField(Descriptors.FieldDescriptor field); in clearField()
223 Builder clearOneof(Descriptors.OneofDescriptor oneof); in clearOneof()
233 Builder setRepeatedField(Descriptors.FieldDescriptor field, in setRepeatedField()
241 Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value); in addRepeatedField()
DBlockingService.java43 Descriptors.ServiceDescriptor getDescriptorForType(); in getDescriptorForType()
51 Message callBlockingMethod(Descriptors.MethodDescriptor method, in callBlockingMethod()
58 Message getRequestPrototype(Descriptors.MethodDescriptor method); in getRequestPrototype()
63 Message getResponsePrototype(Descriptors.MethodDescriptor method); in getResponsePrototype()
DService.java52 Descriptors.ServiceDescriptor getDescriptorForType(); in getDescriptorForType()
84 void callMethod(Descriptors.MethodDescriptor method, in callMethod()
107 Message getRequestPrototype(Descriptors.MethodDescriptor method); in getRequestPrototype()
116 Message getResponsePrototype(Descriptors.MethodDescriptor method); in getResponsePrototype()
DProtocolMessageEnum.java33 import com.google.protobuf.Descriptors.EnumDescriptor;
34 import com.google.protobuf.Descriptors.EnumValueDescriptor;
DAbstractMessage.java33 import com.google.protobuf.Descriptors.EnumValueDescriptor;
34 import com.google.protobuf.Descriptors.FieldDescriptor;
35 import com.google.protobuf.Descriptors.OneofDescriptor;
170 Descriptors.Descriptor descriptor = entry.getDescriptorForType(); in convertMapEntryListToMap()
171 Descriptors.FieldDescriptor key = descriptor.findFieldByName("key"); in convertMapEntryListToMap()
172 Descriptors.FieldDescriptor value = descriptor.findFieldByName("value"); in convertMapEntryListToMap()
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyMessage.java48 public RubyMessage(Ruby ruby, RubyClass klazz, Descriptors.Descriptor descriptor) { in RubyMessage()
71 this.repeatedFields = new HashMap<Descriptors.FieldDescriptor, RubyRepeatedField>(); in initialize()
72 this.maps = new HashMap<Descriptors.FieldDescriptor, RubyMap>(); in initialize()
73 this.fields = new HashMap<Descriptors.FieldDescriptor, IRubyObject>(); in initialize()
74 this.oneofCases = new HashMap<Descriptors.OneofDescriptor, Descriptors.FieldDescriptor>(); in initialize()
85 final Descriptors.FieldDescriptor fieldDescriptor = findField(context, key); in initialize()
100 Descriptors.OneofDescriptor oneof = fieldDescriptor.getContainingOneof(); in initialize()
122 Descriptors.FieldDescriptor fieldDescriptor = findField(context, fieldName); in indexSet()
135 Descriptors.FieldDescriptor fieldDescriptor = findField(context, fieldName); in index()
190 for (Descriptors.FieldDescriptor fdef : descriptor.getFields()) { in eq()
[all …]
DUtils.java37 import com.google.protobuf.Descriptors;
50 public static Descriptors.FieldDescriptor.Type rubyToFieldType(IRubyObject typeClass) { in rubyToFieldType()
51 return Descriptors.FieldDescriptor.Type.valueOf(typeClass.asJavaString().toUpperCase()); in rubyToFieldType()
54 …public static IRubyObject fieldTypeToRuby(ThreadContext context, Descriptors.FieldDescriptor.Type … in fieldTypeToRuby()
67 public static void checkType(ThreadContext context, Descriptors.FieldDescriptor.Type fieldType, in checkType()
118 Descriptors.EnumDescriptor enumDescriptor = in checkType()
132 …public static IRubyObject wrapPrimaryValue(ThreadContext context, Descriptors.FieldDescriptor.Type… in wrapPrimaryValue()
183 …public static void validateStringEncoding(Ruby runtime, Descriptors.FieldDescriptor.Type type, IRu… in validateStringEncoding()
227 public static boolean isMapEntry(Descriptors.FieldDescriptor fieldDescriptor) { in isMapEntry()
228 return fieldDescriptor.getType() == Descriptors.FieldDescriptor.Type.MESSAGE && in isMapEntry()
[all …]
DRubyDescriptorPool.java36 import com.google.protobuf.Descriptors;
125 final Descriptors.FileDescriptor fileDescriptor = Descriptors.FileDescriptor.buildFrom( in buildFileDescriptor()
126 this.builder.build(), new Descriptors.FileDescriptor[]{}); in buildFileDescriptor()
128 for (Descriptors.EnumDescriptor enumDescriptor : fileDescriptor.getEnumTypes()) { in buildFileDescriptor()
137 for (Descriptors.Descriptor descriptor : fileDescriptor.getMessageTypes()) { in buildFileDescriptor()
140 for (Descriptors.FieldDescriptor fieldDescriptor : descriptor.getFields()) { in buildFileDescriptor()
146 if (fieldDescriptor.getType() == Descriptors.FieldDescriptor.Type.MESSAGE) { in buildFileDescriptor()
151 if (fieldDescriptor.getType() == Descriptors.FieldDescriptor.Type.ENUM) { in buildFileDescriptor()
159 } catch (Descriptors.DescriptorValidationException e) { in buildFileDescriptor()
DRubyEnum.java35 import com.google.protobuf.Descriptors;
53 Descriptors.EnumDescriptor descriptor = rubyEnumDescriptorescriptor.getDescriptor(); in lookup()
54Descriptors.EnumValueDescriptor value = descriptor.findValueByNumber(RubyNumeric.num2int(number)); in lookup()
69 Descriptors.EnumDescriptor descriptor = rubyEnumDescriptorescriptor.getDescriptor(); in resolve()
70 Descriptors.EnumValueDescriptor value = descriptor.findValueByName(name.asJavaString()); in resolve()
DRubyEnumDescriptor.java36 import com.google.protobuf.Descriptors;
133 for (Descriptors.EnumValueDescriptor enumValueDescriptor : descriptor.getValues()) { in each()
155 public void setDescriptor(Descriptors.EnumDescriptor descriptor) { in setDescriptor()
159 public Descriptors.EnumDescriptor getDescriptor() { in getDescriptor()
172 for (Descriptors.EnumValueDescriptor value : descriptor.getValues()) { in buildModuleFromDescriptor()
183 private Descriptors.EnumDescriptor descriptor;
DSentinelOuterClass.java125 public static final com.google.protobuf.Descriptors.Descriptor
342 public static final com.google.protobuf.Descriptors.Descriptor
391 public com.google.protobuf.Descriptors.Descriptor
733 private static final com.google.protobuf.Descriptors.Descriptor
739 public static com.google.protobuf.Descriptors.FileDescriptor
743 private static com.google.protobuf.Descriptors.FileDescriptor
755 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
756 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
758 com.google.protobuf.Descriptors.FileDescriptor root) {
763 com.google.protobuf.Descriptors.FileDescriptor
[all …]
DRubyMap.java35 import com.google.protobuf.Descriptors;
154 if (valueType == Descriptors.FieldDescriptor.Type.ENUM && in indexSet()
367 Descriptors.FieldDescriptor keyField = descriptor.lookup("key").getFieldDef(); in build()
368 Descriptors.FieldDescriptor valueField = descriptor.lookup("value").getFieldDef(); in build()
420 private boolean needTypeclass(Descriptors.FieldDescriptor.Type type) { in needTypeclass()
430 private Descriptors.FieldDescriptor.Type keyType;
431 private Descriptors.FieldDescriptor.Type valueType;
DRubyRepeatedField.java35 import com.google.protobuf.Descriptors;
64 …public RubyRepeatedField(Ruby runtime, RubyClass klazz, Descriptors.FieldDescriptor.Type fieldType… in RubyRepeatedField()
80 if (fieldType == Descriptors.FieldDescriptor.Type.MESSAGE in initialize()
81 || fieldType == Descriptors.FieldDescriptor.Type.ENUM) { in initialize()
167 if (!(fieldType == Descriptors.FieldDescriptor.Type.MESSAGE && in push()
338 if (fieldType == Descriptors.FieldDescriptor.Type.MESSAGE) { in deepCopy()
407 private Descriptors.FieldDescriptor.Type fieldType;
DRubyFieldDescriptor.java36 import com.google.protobuf.Descriptors;
241 protected void setFieldDef(Descriptors.FieldDescriptor fieldDescriptor) { in setFieldDef()
258 protected Descriptors.FieldDescriptor getFieldDef() { in getFieldDef()
274 private Descriptors.FieldDescriptor fieldDef;
DRubyDescriptor.java36 import com.google.protobuf.Descriptors;
220 public void setDescriptor(Descriptors.Descriptor descriptor) { in setDescriptor()
224 public Descriptors.Descriptor getDescriptor() { in getDescriptor()
266 private Descriptors.Descriptor descriptor;
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DAbstractMessageTest.java33 import com.google.protobuf.Descriptors.FieldDescriptor;
68 public Descriptors.Descriptor getDescriptorForType() { in getDescriptorForType()
77 public Map<Descriptors.FieldDescriptor, Object> getAllFields() { in getAllFields()
81 public boolean hasField(Descriptors.FieldDescriptor field) { in hasField()
85 public Object getField(Descriptors.FieldDescriptor field) { in getField()
89 public int getRepeatedFieldCount(Descriptors.FieldDescriptor field) { in getRepeatedFieldCount()
93 public Object getRepeatedField(Descriptors.FieldDescriptor field, int index) { in getRepeatedField()
133 public Descriptors.Descriptor getDescriptorForType() { in getDescriptorForType()
142 public Map<Descriptors.FieldDescriptor, Object> getAllFields() { in getAllFields()
146 public Builder newBuilderForField(Descriptors.FieldDescriptor field) { in newBuilderForField()
[all …]
DDescriptorsTest.java38 import com.google.protobuf.Descriptors.Descriptor;
39 import com.google.protobuf.Descriptors.DescriptorValidationException;
40 import com.google.protobuf.Descriptors.EnumDescriptor;
41 import com.google.protobuf.Descriptors.EnumValueDescriptor;
42 import com.google.protobuf.Descriptors.FieldDescriptor;
43 import com.google.protobuf.Descriptors.FileDescriptor;
44 import com.google.protobuf.Descriptors.MethodDescriptor;
45 import com.google.protobuf.Descriptors.OneofDescriptor;
46 import com.google.protobuf.Descriptors.ServiceDescriptor;
466 Descriptors.FileDescriptor.buildFrom(fileDescriptorProto, in testDescriptorValidatorException()
[all …]
DWellKnownTypesTest.java33 import com.google.protobuf.Descriptors.Descriptor;
34 import com.google.protobuf.Descriptors.EnumDescriptor;
35 import com.google.protobuf.Descriptors.EnumValueDescriptor;
36 import com.google.protobuf.Descriptors.FieldDescriptor;
DTestBadIdentifiers.java51 Descriptors.FileDescriptor fileDescriptor = in testGetDescriptor()
55 Descriptors.Descriptor protoDescriptor = TestBadIdentifiersProto.Descriptor in testGetDescriptor()
59 Descriptors.Descriptor nestedProtoDescriptor = TestBadIdentifiersProto in testGetDescriptor()
DMessageTest.java168 Descriptors.Descriptor descriptor = TestRequired.getDescriptor(); in testRequiredDynamic()
181 Descriptors.Descriptor descriptor = TestRequiredForeign.getDescriptor(); in testRequiredDynamicForeign()
308 Descriptors.Descriptor descriptor = TestRequired.getDescriptor(); in testDynamicParseUnititialized()
318 Descriptors.Descriptor descriptor = TestRequired.getDescriptor(); in testDynamicRepeatedMessageNull()
342 Descriptors.Descriptor descriptor = TestRequired.getDescriptor(); in testDynamicRepeatedMessageNotNull()
/external/emma/core/java12/com/vladium/emma/report/
DReportDataModel.java15 import com.vladium.util.Descriptors;
63 …tring packageName = packageVMName.length () == 0 ? "default package" : Descriptors.vmNameToJavaNam… in getView()
76 … final String fullSrcFileName = Descriptors.combineVMName (packageVMName, srcFileName); in getView()
96 … new Object [] { Descriptors.vmNameToJavaName (cls.getClassVMName ()) }); in getView()
/external/emma/tools/java/com/vladium/tools/
DClassDep.java32 import com.vladium.util.Descriptors;
128 queue.add (Descriptors.javaNameToVMName (m_rootSet [i])); in getDependencies()
148 …throw new IllegalArgumentException ("class [" + Descriptors.vmNameToJavaName (classVMName) + "] no… in getDependencies()
171 if (_result.add (Descriptors.vmNameToJavaName (classDepVMName))) in getDependencies()
/external/google-tv-pairing-protocol/java/jar/
Dprotobuf-java-2.2.0-lite.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...

1234