Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.google.protobuf.jruby.RubyMessage Class Reference
Inheritance diagram for com.google.protobuf.jruby.RubyMessage:
Inheritance graph
[legend]

Public Member Functions

IRubyObject dup (ThreadContext context)
 
IRubyObject eq (ThreadContext context, IRubyObject other)
 
IRubyObject hash (ThreadContext context)
 
IRubyObject index (ThreadContext context, IRubyObject fieldName)
 
IRubyObject indexSet (ThreadContext context, IRubyObject fieldName, IRubyObject value)
 
IRubyObject initialize (final ThreadContext context, IRubyObject[] args)
 
IRubyObject inspect ()
 
IRubyObject methodMissing (ThreadContext context, IRubyObject[] args)
 
 RubyMessage (Ruby ruby, RubyClass klazz, Descriptors.Descriptor descriptor)
 
IRubyObject toHash (ThreadContext context)
 

Static Public Member Functions

static IRubyObject decode (ThreadContext context, IRubyObject recv, IRubyObject data)
 
static IRubyObject decodeJson (ThreadContext context, IRubyObject recv, IRubyObject json)
 
static IRubyObject encode (ThreadContext context, IRubyObject recv, IRubyObject value)
 
static IRubyObject encodeJson (ThreadContext context, IRubyObject recv, IRubyObject msgRb)
 
static IRubyObject getDescriptor (ThreadContext context, IRubyObject recv)
 

Protected Member Functions

DynamicMessage build (ThreadContext context)
 
DynamicMessage build (ThreadContext context, int depth)
 
IRubyObject deepCopy (ThreadContext context)
 
Descriptors.Descriptor getDescriptor ()
 
IRubyObject getField (ThreadContext context, Descriptors.FieldDescriptor fieldDescriptor)
 
IRubyObject setField (ThreadContext context, Descriptors.FieldDescriptor fieldDescriptor, IRubyObject value)
 

Private Member Functions

void addRepeatedField (Descriptors.FieldDescriptor fieldDescriptor, RubyRepeatedField repeatedField)
 
IRubyObject buildFrom (ThreadContext context, DynamicMessage dynamicMessage)
 
void checkRepeatedFieldType (ThreadContext context, IRubyObject value, Descriptors.FieldDescriptor fieldDescriptor)
 
Object convert (ThreadContext context, Descriptors.FieldDescriptor fieldDescriptor, IRubyObject value, int depth)
 
Descriptors.FieldDescriptor findField (ThreadContext context, IRubyObject fieldName)
 
IRubyObject getDescriptorForField (ThreadContext context, Descriptors.FieldDescriptor fieldDescriptor)
 
Descriptors.FieldDescriptor getOneofCase (Descriptors.OneofDescriptor oneof)
 
RubyRepeatedField getRepeatedField (ThreadContext context, Descriptors.FieldDescriptor fieldDescriptor)
 
boolean hasField (IRubyObject fieldName)
 
String layoutInspect ()
 
RubyMap newMapForField (ThreadContext context, Descriptors.FieldDescriptor fieldDescriptor)
 
RubyRepeatedField repeatedFieldForFieldDescriptor (ThreadContext context, Descriptors.FieldDescriptor fieldDescriptor)
 
RubyRepeatedField rubyToRepeatedField (ThreadContext context, Descriptors.FieldDescriptor fieldDescriptor, IRubyObject value)
 
IRubyObject wrapField (ThreadContext context, Descriptors.FieldDescriptor fieldDescriptor, Object value)
 

Private Attributes

DynamicMessage.Builder builder
 
RubyClass cMap
 
RubyClass cRepeatedField
 
Descriptors.Descriptor descriptor
 
Map< Descriptors.FieldDescriptor, IRubyObject > fields
 
Map< Descriptors.FieldDescriptor, RubyMapmaps
 
Map< Descriptors.OneofDescriptor, Descriptors.FieldDescriptoroneofCases
 
Map< Descriptors.FieldDescriptor, RubyRepeatedFieldrepeatedFields
 

Static Private Attributes

static final int SINK_MAXIMUM_NESTING = 64
 

Detailed Description

Definition at line 49 of file RubyMessage.java.

Constructor & Destructor Documentation

◆ RubyMessage()

com.google.protobuf.jruby.RubyMessage.RubyMessage ( Ruby  ruby,
RubyClass  klazz,
Descriptors.Descriptor  descriptor 
)
inline

Definition at line 50 of file RubyMessage.java.

Member Function Documentation

◆ addRepeatedField()

void com.google.protobuf.jruby.RubyMessage.addRepeatedField ( Descriptors.FieldDescriptor  fieldDescriptor,
RubyRepeatedField  repeatedField 
)
inlineprivate

Definition at line 463 of file RubyMessage.java.

◆ build() [1/2]

DynamicMessage com.google.protobuf.jruby.RubyMessage.build ( ThreadContext  context)
inlineprotected

Definition at line 401 of file RubyMessage.java.

◆ build() [2/2]

DynamicMessage com.google.protobuf.jruby.RubyMessage.build ( ThreadContext  context,
int  depth 
)
inlineprotected

Definition at line 405 of file RubyMessage.java.

◆ buildFrom()

IRubyObject com.google.protobuf.jruby.RubyMessage.buildFrom ( ThreadContext  context,
DynamicMessage  dynamicMessage 
)
inlineprivate

Definition at line 467 of file RubyMessage.java.

◆ checkRepeatedFieldType()

void com.google.protobuf.jruby.RubyMessage.checkRepeatedFieldType ( ThreadContext  context,
IRubyObject  value,
Descriptors.FieldDescriptor  fieldDescriptor 
)
inlineprivate

Definition at line 485 of file RubyMessage.java.

◆ convert()

Object com.google.protobuf.jruby.RubyMessage.convert ( ThreadContext  context,
Descriptors.FieldDescriptor  fieldDescriptor,
IRubyObject  value,
int  depth 
)
inlineprivate

Definition at line 494 of file RubyMessage.java.

◆ decode()

static IRubyObject com.google.protobuf.jruby.RubyMessage.decode ( ThreadContext  context,
IRubyObject  recv,
IRubyObject  data 
)
inlinestatic

Definition at line 328 of file RubyMessage.java.

◆ decodeJson()

static IRubyObject com.google.protobuf.jruby.RubyMessage.decodeJson ( ThreadContext  context,
IRubyObject  recv,
IRubyObject  json 
)
inlinestatic

Definition at line 360 of file RubyMessage.java.

◆ deepCopy()

IRubyObject com.google.protobuf.jruby.RubyMessage.deepCopy ( ThreadContext  context)
inlineprotected

Definition at line 436 of file RubyMessage.java.

◆ dup()

IRubyObject com.google.protobuf.jruby.RubyMessage.dup ( ThreadContext  context)
inline

call-seq: Message.dup => new_message Performs a shallow copy of this message and returns the new copy.

Definition at line 276 of file RubyMessage.java.

◆ encode()

static IRubyObject com.google.protobuf.jruby.RubyMessage.encode ( ThreadContext  context,
IRubyObject  recv,
IRubyObject  value 
)
inlinestatic

Definition at line 314 of file RubyMessage.java.

◆ encodeJson()

static IRubyObject com.google.protobuf.jruby.RubyMessage.encodeJson ( ThreadContext  context,
IRubyObject  recv,
IRubyObject  msgRb 
)
inlinestatic

Definition at line 346 of file RubyMessage.java.

◆ eq()

IRubyObject com.google.protobuf.jruby.RubyMessage.eq ( ThreadContext  context,
IRubyObject  other 
)
inline

Definition at line 204 of file RubyMessage.java.

◆ findField()

Descriptors.FieldDescriptor com.google.protobuf.jruby.RubyMessage.findField ( ThreadContext  context,
IRubyObject  fieldName 
)
inlineprivate

Definition at line 472 of file RubyMessage.java.

◆ getDescriptor() [1/2]

Descriptors.Descriptor com.google.protobuf.jruby.RubyMessage.getDescriptor ( )
inlineprotected

Definition at line 431 of file RubyMessage.java.

◆ getDescriptor() [2/2]

static IRubyObject com.google.protobuf.jruby.RubyMessage.getDescriptor ( ThreadContext  context,
IRubyObject  recv 
)
inlinestatic

Definition at line 302 of file RubyMessage.java.

◆ getDescriptorForField()

IRubyObject com.google.protobuf.jruby.RubyMessage.getDescriptorForField ( ThreadContext  context,
Descriptors.FieldDescriptor  fieldDescriptor 
)
inlineprivate

Definition at line 748 of file RubyMessage.java.

◆ getField()

IRubyObject com.google.protobuf.jruby.RubyMessage.getField ( ThreadContext  context,
Descriptors.FieldDescriptor  fieldDescriptor 
)
inlineprotected

Definition at line 620 of file RubyMessage.java.

◆ getOneofCase()

Descriptors.FieldDescriptor com.google.protobuf.jruby.RubyMessage.getOneofCase ( Descriptors.OneofDescriptor  oneof)
inlineprivate

Definition at line 792 of file RubyMessage.java.

◆ getRepeatedField()

RubyRepeatedField com.google.protobuf.jruby.RubyMessage.getRepeatedField ( ThreadContext  context,
Descriptors.FieldDescriptor  fieldDescriptor 
)
inlineprivate

Definition at line 450 of file RubyMessage.java.

◆ hasField()

boolean com.google.protobuf.jruby.RubyMessage.hasField ( IRubyObject  fieldName)
inlineprivate

Definition at line 480 of file RubyMessage.java.

◆ hash()

IRubyObject com.google.protobuf.jruby.RubyMessage.hash ( ThreadContext  context)
inline

Definition at line 176 of file RubyMessage.java.

◆ index()

IRubyObject com.google.protobuf.jruby.RubyMessage.index ( ThreadContext  context,
IRubyObject  fieldName 
)
inline

Definition at line 144 of file RubyMessage.java.

◆ indexSet()

IRubyObject com.google.protobuf.jruby.RubyMessage.indexSet ( ThreadContext  context,
IRubyObject  fieldName,
IRubyObject  value 
)
inline

Definition at line 131 of file RubyMessage.java.

◆ initialize()

IRubyObject com.google.protobuf.jruby.RubyMessage.initialize ( final ThreadContext  context,
IRubyObject[]  args 
)
inline

Definition at line 68 of file RubyMessage.java.

◆ inspect()

IRubyObject com.google.protobuf.jruby.RubyMessage.inspect ( )
inline

Definition at line 158 of file RubyMessage.java.

◆ layoutInspect()

String com.google.protobuf.jruby.RubyMessage.layoutInspect ( )
inlineprivate

Definition at line 736 of file RubyMessage.java.

◆ methodMissing()

IRubyObject com.google.protobuf.jruby.RubyMessage.methodMissing ( ThreadContext  context,
IRubyObject[]  args 
)
inline

Definition at line 238 of file RubyMessage.java.

◆ newMapForField()

RubyMap com.google.protobuf.jruby.RubyMessage.newMapForField ( ThreadContext  context,
Descriptors.FieldDescriptor  fieldDescriptor 
)
inlineprivate

Definition at line 775 of file RubyMessage.java.

◆ repeatedFieldForFieldDescriptor()

RubyRepeatedField com.google.protobuf.jruby.RubyMessage.repeatedFieldForFieldDescriptor ( ThreadContext  context,
Descriptors.FieldDescriptor  fieldDescriptor 
)
inlineprivate

Definition at line 605 of file RubyMessage.java.

◆ rubyToRepeatedField()

RubyRepeatedField com.google.protobuf.jruby.RubyMessage.rubyToRepeatedField ( ThreadContext  context,
Descriptors.FieldDescriptor  fieldDescriptor,
IRubyObject  value 
)
inlineprivate

Definition at line 753 of file RubyMessage.java.

◆ setField()

IRubyObject com.google.protobuf.jruby.RubyMessage.setField ( ThreadContext  context,
Descriptors.FieldDescriptor  fieldDescriptor,
IRubyObject  value 
)
inlineprotected

Definition at line 677 of file RubyMessage.java.

◆ toHash()

IRubyObject com.google.protobuf.jruby.RubyMessage.toHash ( ThreadContext  context)
inline

Definition at line 372 of file RubyMessage.java.

◆ wrapField()

IRubyObject com.google.protobuf.jruby.RubyMessage.wrapField ( ThreadContext  context,
Descriptors.FieldDescriptor  fieldDescriptor,
Object  value 
)
inlineprivate

Definition at line 574 of file RubyMessage.java.

Member Data Documentation

◆ builder

DynamicMessage.Builder com.google.protobuf.jruby.RubyMessage.builder
private

Definition at line 800 of file RubyMessage.java.

◆ cMap

RubyClass com.google.protobuf.jruby.RubyMessage.cMap
private

Definition at line 802 of file RubyMessage.java.

◆ cRepeatedField

RubyClass com.google.protobuf.jruby.RubyMessage.cRepeatedField
private

Definition at line 801 of file RubyMessage.java.

◆ descriptor

Descriptors.Descriptor com.google.protobuf.jruby.RubyMessage.descriptor
private

Definition at line 799 of file RubyMessage.java.

◆ fields

Map<Descriptors.FieldDescriptor, IRubyObject> com.google.protobuf.jruby.RubyMessage.fields
private

Definition at line 805 of file RubyMessage.java.

◆ maps

Map<Descriptors.FieldDescriptor, RubyMap> com.google.protobuf.jruby.RubyMessage.maps
private

Definition at line 804 of file RubyMessage.java.

◆ oneofCases

Map<Descriptors.OneofDescriptor, Descriptors.FieldDescriptor> com.google.protobuf.jruby.RubyMessage.oneofCases
private

Definition at line 806 of file RubyMessage.java.

◆ repeatedFields

Map<Descriptors.FieldDescriptor, RubyRepeatedField> com.google.protobuf.jruby.RubyMessage.repeatedFields
private

Definition at line 803 of file RubyMessage.java.

◆ SINK_MAXIMUM_NESTING

final int com.google.protobuf.jruby.RubyMessage.SINK_MAXIMUM_NESTING = 64
staticprivate

Definition at line 808 of file RubyMessage.java.


The documentation for this class was generated from the following file:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:08