Home
last modified time | relevance | path

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

12345678910

/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()
/external/grpc-grpc-java/services/src/generated/main/java/io/grpc/channelz/v1/
DChannelzProto.java17 static final com.google.protobuf.Descriptors.Descriptor
22 static final com.google.protobuf.Descriptors.Descriptor
27 static final com.google.protobuf.Descriptors.Descriptor
32 static final com.google.protobuf.Descriptors.Descriptor
37 static final com.google.protobuf.Descriptors.Descriptor
42 static final com.google.protobuf.Descriptors.Descriptor
47 static final com.google.protobuf.Descriptors.Descriptor
52 static final com.google.protobuf.Descriptors.Descriptor
57 static final com.google.protobuf.Descriptors.Descriptor
62 static final com.google.protobuf.Descriptors.Descriptor
[all …]
/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()
/external/grpc-grpc-java/grpclb/src/generated/main/java/io/grpc/lb/v1/
DLoadBalancerProto.java17 static final com.google.protobuf.Descriptors.Descriptor
22 static final com.google.protobuf.Descriptors.Descriptor
27 static final com.google.protobuf.Descriptors.Descriptor
32 static final com.google.protobuf.Descriptors.Descriptor
37 static final com.google.protobuf.Descriptors.Descriptor
42 static final com.google.protobuf.Descriptors.Descriptor
47 static final com.google.protobuf.Descriptors.Descriptor
52 static final com.google.protobuf.Descriptors.Descriptor
58 public static com.google.protobuf.Descriptors.FileDescriptor
62 private static com.google.protobuf.Descriptors.FileDescriptor
[all …]
/external/grpc-grpc-java/services/src/generated/main/java/io/grpc/reflection/v1alpha/
DServerReflectionProto.java17 static final com.google.protobuf.Descriptors.Descriptor
22 static final com.google.protobuf.Descriptors.Descriptor
27 static final com.google.protobuf.Descriptors.Descriptor
32 static final com.google.protobuf.Descriptors.Descriptor
37 static final com.google.protobuf.Descriptors.Descriptor
42 static final com.google.protobuf.Descriptors.Descriptor
47 static final com.google.protobuf.Descriptors.Descriptor
52 static final com.google.protobuf.Descriptors.Descriptor
58 public static com.google.protobuf.Descriptors.FileDescriptor
62 private static com.google.protobuf.Descriptors.FileDescriptor
[all …]
/external/grpc-grpc-java/services/src/generated/main/java/io/grpc/binarylog/v1alpha/
DBinaryLogProto.java17 static final com.google.protobuf.Descriptors.Descriptor
22 static final com.google.protobuf.Descriptors.Descriptor
27 static final com.google.protobuf.Descriptors.Descriptor
32 static final com.google.protobuf.Descriptors.Descriptor
37 static final com.google.protobuf.Descriptors.Descriptor
42 static final com.google.protobuf.Descriptors.Descriptor
48 public static com.google.protobuf.Descriptors.FileDescriptor
52 private static com.google.protobuf.Descriptors.FileDescriptor
90 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
91 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
[all …]
/external/grpc-grpc-java/services/src/generated/test/java/io/grpc/reflection/testing/
DReflectionTestDepthThreeProto.java17 static final com.google.protobuf.Descriptors.Descriptor
22 static final com.google.protobuf.Descriptors.Descriptor
27 static final com.google.protobuf.Descriptors.Descriptor
32 static final com.google.protobuf.Descriptors.Descriptor
37 static final com.google.protobuf.Descriptors.Descriptor
43 public static com.google.protobuf.Descriptors.FileDescriptor
47 private static com.google.protobuf.Descriptors.FileDescriptor
59 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
60 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
62 com.google.protobuf.Descriptors.FileDescriptor root) {
[all …]
DDynamicReflectionTestDepthTwoProto.java29 static final com.google.protobuf.Descriptors.Descriptor
34 static final com.google.protobuf.Descriptors.Descriptor
39 static final com.google.protobuf.Descriptors.Descriptor
45 public static com.google.protobuf.Descriptors.FileDescriptor
49 private static com.google.protobuf.Descriptors.FileDescriptor
63 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
64 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
66 com.google.protobuf.Descriptors.FileDescriptor root) {
71 com.google.protobuf.Descriptors.FileDescriptor
73 new com.google.protobuf.Descriptors.FileDescriptor[] { in internalBuildGeneratedFileFrom()
DReflectionTestDepthTwoProto.java29 static final com.google.protobuf.Descriptors.Descriptor
34 static final com.google.protobuf.Descriptors.Descriptor
40 public static com.google.protobuf.Descriptors.FileDescriptor
44 private static com.google.protobuf.Descriptors.FileDescriptor
59 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
60 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
62 com.google.protobuf.Descriptors.FileDescriptor root) {
67 com.google.protobuf.Descriptors.FileDescriptor
69 new com.google.protobuf.Descriptors.FileDescriptor[] { in internalBuildGeneratedFileFrom()
DReflectionTestDepthTwoAlternateProto.java18 public static com.google.protobuf.Descriptors.FileDescriptor
22 private static com.google.protobuf.Descriptors.FileDescriptor
33 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
34 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
36 com.google.protobuf.Descriptors.FileDescriptor root) {
41 com.google.protobuf.Descriptors.FileDescriptor
43 new com.google.protobuf.Descriptors.FileDescriptor[] { in internalBuildGeneratedFileFrom()
DDynamicReflectionTestProto.java18 public static com.google.protobuf.Descriptors.FileDescriptor
22 private static com.google.protobuf.Descriptors.FileDescriptor
38 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
39 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
41 com.google.protobuf.Descriptors.FileDescriptor root) {
46 com.google.protobuf.Descriptors.FileDescriptor
48 new com.google.protobuf.Descriptors.FileDescriptor[] { in internalBuildGeneratedFileFrom()
DReflectionTestProto.java30 public static com.google.protobuf.Descriptors.FileDescriptor
34 private static com.google.protobuf.Descriptors.FileDescriptor
50 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
51 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
53 com.google.protobuf.Descriptors.FileDescriptor root) {
58 com.google.protobuf.Descriptors.FileDescriptor
60 new com.google.protobuf.Descriptors.FileDescriptor[] { in internalBuildGeneratedFileFrom()
/external/grpc-grpc-java/testing-proto/src/generated/main/java/io/grpc/testing/protobuf/
DSimpleServiceProto.java17 static final com.google.protobuf.Descriptors.Descriptor
22 static final com.google.protobuf.Descriptors.Descriptor
28 public static com.google.protobuf.Descriptors.FileDescriptor
32 private static com.google.protobuf.Descriptors.FileDescriptor
51 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
52 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
54 com.google.protobuf.Descriptors.FileDescriptor root) {
59 com.google.protobuf.Descriptors.FileDescriptor
61 new com.google.protobuf.Descriptors.FileDescriptor[] { in internalBuildGeneratedFileFrom()
/external/grpc-grpc-java/services/src/generated/main/java/io/grpc/health/v1/
DHealthProto.java17 static final com.google.protobuf.Descriptors.Descriptor
22 static final com.google.protobuf.Descriptors.Descriptor
28 public static com.google.protobuf.Descriptors.FileDescriptor
32 private static com.google.protobuf.Descriptors.FileDescriptor
47 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
48 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
50 com.google.protobuf.Descriptors.FileDescriptor root) {
55 com.google.protobuf.Descriptors.FileDescriptor
57 new com.google.protobuf.Descriptors.FileDescriptor[] { in internalBuildGeneratedFileFrom()
/external/grpc-grpc-java/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/
DServices.java18 public static com.google.protobuf.Descriptors.FileDescriptor
22 private static com.google.protobuf.Descriptors.FileDescriptor
51 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
52 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
54 com.google.protobuf.Descriptors.FileDescriptor root) {
59 com.google.protobuf.Descriptors.FileDescriptor
61 new com.google.protobuf.Descriptors.FileDescriptor[] { in internalBuildGeneratedFileFrom()
/external/grpc-grpc-java/interop-testing/src/generated/main/java/io/grpc/testing/integration/
DTest.java18 public static com.google.protobuf.Descriptors.FileDescriptor
22 private static com.google.protobuf.Descriptors.FileDescriptor
54 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
55 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
57 com.google.protobuf.Descriptors.FileDescriptor root) {
62 com.google.protobuf.Descriptors.FileDescriptor
64 new com.google.protobuf.Descriptors.FileDescriptor[] { in internalBuildGeneratedFileFrom()
/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 …]

12345678910