Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
z
Classes
Class List
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
grpc
third_party
protobuf
ruby
src
main
java
google
protobuf/ruby/src/main/java/google/ProtobufJavaService.java
Go to the documentation of this file.
1
/*
2
* Protocol Buffers - Google's data interchange format
3
* Copyright 2014 Google Inc. All rights reserved.
4
* https://developers.google.com/protocol-buffers/
5
*
6
* Redistribution and use in source and binary forms, with or without
7
* modification, are permitted provided that the following conditions are
8
* met:
9
*
10
* * Redistributions of source code must retain the above copyright
11
* notice, this list of conditions and the following disclaimer.
12
* * Redistributions in binary form must reproduce the above
13
* copyright notice, this list of conditions and the following disclaimer
14
* in the documentation and/or other materials provided with the
15
* distribution.
16
* * Neither the name of Google Inc. nor the names of its
17
* contributors may be used to endorse or promote products derived from
18
* this software without specific prior written permission.
19
*
20
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
*/
32
33
package
google;
34
35
import
com
.
google
.
protobuf
.
jruby
.*;
36
import
org.jruby.
Ruby
;
37
import
org.jruby.runtime.load.BasicLibraryService;
38
39
import
java
.io.IOException;
40
41
public
class
ProtobufJavaService
implements
BasicLibraryService {
42
@Override
43
public
boolean
basicLoad
(Ruby ruby)
throws
IOException {
44
ruby.defineModule(
"Google"
);
45
46
/*
47
* The order these happen in is important because we
48
* save a static reference to some classes and they
49
* need to exist before we try to save a reference to them
50
*/
51
RubyProtobuf
.
createProtobuf
(ruby);
52
RubyFileDescriptor
.
createRubyFileDescriptor
(ruby);
53
RubyEnumDescriptor
.
createRubyEnumDescriptor
(ruby);
54
RubyRepeatedField
.
createRubyRepeatedField
(ruby);
55
RubyFieldDescriptor
.
createRubyFieldDescriptor
(ruby);
56
RubyMap
.
createRubyMap
(ruby);
57
RubyOneofDescriptor
.
createRubyOneofDescriptor
(ruby);
58
RubyDescriptor
.
createRubyDescriptor
(ruby);
59
RubyDescriptorPool
.
createRubyDescriptorPool
(ruby);
60
return
true
;
61
}
62
}
com.google.protobuf.jruby
Definition:
RubyBuilder.java:33
com.google.protobuf.jruby.RubyRepeatedField
Definition:
bloaty/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyRepeatedField.java:46
com.google.protobuf.jruby.RubyFileDescriptor
Definition:
RubyFileDescriptor.java:48
com.google.protobuf.jruby.RubyOneofDescriptor
Definition:
bloaty/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyOneofDescriptor.java:19
com.google.protobuf
Definition:
bloaty/third_party/protobuf/benchmarks/java/src/main/java/com/google/protobuf/ProtoCaliperBenchmark.java:2
com.google.protobuf.jruby.RubyRepeatedField.createRubyRepeatedField
static void createRubyRepeatedField(Ruby runtime)
Definition:
bloaty/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyRepeatedField.java:47
com.google.protobuf.jruby.RubyProtobuf
Definition:
bloaty/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyProtobuf.java:43
com.google.protobuf.jruby.RubyDescriptor.createRubyDescriptor
static void createRubyDescriptor(Ruby runtime)
Definition:
bloaty/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyDescriptor.java:51
com.google.protobuf.jruby.RubyMap.createRubyMap
static void createRubyMap(Ruby runtime)
Definition:
bloaty/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyMap.java:57
com.google.protobuf.jruby.RubyProtobuf.createProtobuf
static void createProtobuf(Ruby runtime)
Definition:
bloaty/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyProtobuf.java:45
com.google.protobuf.jruby.RubyFieldDescriptor.createRubyFieldDescriptor
static void createRubyFieldDescriptor(Ruby runtime)
Definition:
protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyFieldDescriptor.java:46
Ruby
com.google.protobuf.jruby.RubyFieldDescriptor
Definition:
bloaty/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyFieldDescriptor.java:45
com.google.protobuf.jruby.RubyEnumDescriptor
Definition:
bloaty/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyEnumDescriptor.java:50
com.google.protobuf.jruby.RubyDescriptorPool.createRubyDescriptorPool
static void createRubyDescriptorPool(Ruby runtime)
Definition:
bloaty/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyDescriptorPool.java:48
java
com.google.protobuf.jruby.RubyOneofDescriptor.createRubyOneofDescriptor
static void createRubyOneofDescriptor(Ruby runtime)
Definition:
bloaty/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyOneofDescriptor.java:21
com.google
com
google.ProtobufJavaService.basicLoad
boolean basicLoad(Ruby ruby)
Definition:
protobuf/ruby/src/main/java/google/ProtobufJavaService.java:43
com.google.protobuf.jruby.RubyFileDescriptor.createRubyFileDescriptor
static void createRubyFileDescriptor(Ruby runtime)
Definition:
RubyFileDescriptor.java:49
com.google.protobuf.jruby.RubyMap
Definition:
bloaty/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyMap.java:56
com.google.protobuf.jruby.RubyEnumDescriptor.createRubyEnumDescriptor
static void createRubyEnumDescriptor(Ruby runtime)
Definition:
bloaty/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyEnumDescriptor.java:51
com.google.protobuf.jruby.RubyDescriptor
Definition:
bloaty/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyDescriptor.java:50
com.google.protobuf.jruby.RubyDescriptorPool
Definition:
bloaty/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/RubyDescriptorPool.java:47
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:57