Module: Google::Protobuf

Defined in:
lib/google/protobuf/any_pb.rb,
lib/google/protobuf/api_pb.rb,
lib/google/protobuf/type_pb.rb,
lib/google/protobuf/empty_pb.rb,
lib/google/protobuf/struct_pb.rb,
lib/google/protobuf/duration_pb.rb,
lib/google/protobuf/wrappers_pb.rb,
lib/google/protobuf/timestamp_pb.rb,
lib/google/protobuf/descriptor_pb.rb,
lib/google/protobuf/field_mask_pb.rb,
lib/google/protobuf/source_context_pb.rb

Defined Under Namespace

Classes: Any, Api, BoolValue, BytesValue, DescriptorProto, DoubleValue, Duration, Edition, Empty, Enum, EnumDescriptorProto, EnumOptions, EnumValue, EnumValueDescriptorProto, EnumValueOptions, ExtensionRangeOptions, FeatureSet, FeatureSetDefaults, Field, FieldDescriptorProto, FieldMask, FieldOptions, FileDescriptorProto, FileDescriptorSet, FileOptions, FloatValue, GeneratedCodeInfo, Int32Value, Int64Value, ListValue, MessageOptions, Method, MethodDescriptorProto, MethodOptions, Mixin, NullValue, OneofDescriptorProto, OneofOptions, Option, ServiceDescriptorProto, ServiceOptions, SourceCodeInfo, SourceContext, StringValue, Struct, Syntax, Timestamp, Type, UInt32Value, UInt64Value, UninterpretedOption, Value

Class Method Summary collapse

Class Method Details

.register_any_protos(registry) ⇒ Object



179
180
181
# File 'lib/google/protobuf/any_pb.rb', line 179

def self.register_any_protos(registry)
  registry.register(Google::Protobuf::Any)
end

.register_api_protos(registry) ⇒ Object



278
279
280
281
282
283
284
# File 'lib/google/protobuf/api_pb.rb', line 278

def self.register_api_protos(registry)
  Google::Protobuf.register_source_context_protos(registry)
  Google::Protobuf.register_type_protos(registry)
  registry.register(Google::Protobuf::Api)
  registry.register(Google::Protobuf::Method)
  registry.register(Google::Protobuf::Mixin)
end

.register_descriptor_protos(registry) ⇒ Object



1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
# File 'lib/google/protobuf/descriptor_pb.rb', line 1768

def self.register_descriptor_protos(registry)
  registry.register(Google::Protobuf::FileDescriptorSet)
  registry.register(Google::Protobuf::Edition)
  registry.register(Google::Protobuf::FileDescriptorProto)
  registry.register(Google::Protobuf::DescriptorProto)
  registry.register(Google::Protobuf::DescriptorProto::ExtensionRange)
  registry.register(Google::Protobuf::DescriptorProto::ReservedRange)
  registry.register(Google::Protobuf::ExtensionRangeOptions)
  registry.register(Google::Protobuf::ExtensionRangeOptions::Declaration)
  registry.register(
    Google::Protobuf::ExtensionRangeOptions::VerificationState
  )
  registry.register(Google::Protobuf::FieldDescriptorProto)
  registry.register(Google::Protobuf::FieldDescriptorProto::Type)
  registry.register(Google::Protobuf::FieldDescriptorProto::Label)
  registry.register(Google::Protobuf::OneofDescriptorProto)
  registry.register(Google::Protobuf::EnumDescriptorProto)
  registry.register(
    Google::Protobuf::EnumDescriptorProto::EnumReservedRange
  )
  registry.register(Google::Protobuf::EnumValueDescriptorProto)
  registry.register(Google::Protobuf::ServiceDescriptorProto)
  registry.register(Google::Protobuf::MethodDescriptorProto)
  registry.register(Google::Protobuf::FileOptions)
  registry.register(Google::Protobuf::FileOptions::OptimizeMode)
  registry.register(Google::Protobuf::MessageOptions)
  registry.register(Google::Protobuf::FieldOptions)
  registry.register(Google::Protobuf::FieldOptions::CType)
  registry.register(Google::Protobuf::FieldOptions::JSType)
  registry.register(Google::Protobuf::FieldOptions::OptionRetention)
  registry.register(Google::Protobuf::FieldOptions::OptionTargetType)
  registry.register(Google::Protobuf::FieldOptions::EditionDefault)
  registry.register(Google::Protobuf::OneofOptions)
  registry.register(Google::Protobuf::EnumOptions)
  registry.register(Google::Protobuf::EnumValueOptions)
  registry.register(Google::Protobuf::ServiceOptions)
  registry.register(Google::Protobuf::MethodOptions)
  registry.register(Google::Protobuf::MethodOptions::IdempotencyLevel)
  registry.register(Google::Protobuf::UninterpretedOption)
  registry.register(Google::Protobuf::UninterpretedOption::NamePart)
  registry.register(Google::Protobuf::FeatureSet)
  registry.register(Google::Protobuf::FeatureSet::FieldPresence)
  registry.register(Google::Protobuf::FeatureSet::EnumType)
  registry.register(Google::Protobuf::FeatureSet::RepeatedFieldEncoding)
  registry.register(Google::Protobuf::FeatureSet::Utf8Validation)
  registry.register(Google::Protobuf::FeatureSet::MessageEncoding)
  registry.register(Google::Protobuf::FeatureSet::JsonFormat)
  registry.register(Google::Protobuf::FeatureSetDefaults)
  registry.register(
    Google::Protobuf::FeatureSetDefaults::FeatureSetEditionDefault
  )
  registry.register(Google::Protobuf::SourceCodeInfo)
  registry.register(Google::Protobuf::SourceCodeInfo::Location)
  registry.register(Google::Protobuf::GeneratedCodeInfo)
  registry.register(Google::Protobuf::GeneratedCodeInfo::Annotation)
  registry.register(
    Google::Protobuf::GeneratedCodeInfo::Annotation::Semantic
  )
end

.register_duration_protos(registry) ⇒ Object



127
128
129
# File 'lib/google/protobuf/duration_pb.rb', line 127

def self.register_duration_protos(registry)
  registry.register(Google::Protobuf::Duration)
end

.register_empty_protos(registry) ⇒ Object



64
65
66
# File 'lib/google/protobuf/empty_pb.rb', line 64

def self.register_empty_protos(registry)
  registry.register(Google::Protobuf::Empty)
end

.register_field_mask_protos(registry) ⇒ Object



259
260
261
# File 'lib/google/protobuf/field_mask_pb.rb', line 259

def self.register_field_mask_protos(registry)
  registry.register(Google::Protobuf::FieldMask)
end

.register_source_context_protos(registry) ⇒ Object



68
69
70
# File 'lib/google/protobuf/source_context_pb.rb', line 68

def self.register_source_context_protos(registry)
  registry.register(Google::Protobuf::SourceContext)
end

.register_struct_protos(registry) ⇒ Object



176
177
178
179
180
181
# File 'lib/google/protobuf/struct_pb.rb', line 176

def self.register_struct_protos(registry)
  registry.register(Google::Protobuf::Struct)
  registry.register(Google::Protobuf::Value)
  registry.register(Google::Protobuf::NullValue)
  registry.register(Google::Protobuf::ListValue)
end

.register_timestamp_protos(registry) ⇒ Object



156
157
158
# File 'lib/google/protobuf/timestamp_pb.rb', line 156

def self.register_timestamp_protos(registry)
  registry.register(Google::Protobuf::Timestamp)
end

.register_type_protos(registry) ⇒ Object



333
334
335
336
337
338
339
340
341
342
343
344
# File 'lib/google/protobuf/type_pb.rb', line 333

def self.register_type_protos(registry)
  Google::Protobuf.register_any_protos(registry)
  Google::Protobuf.register_source_context_protos(registry)
  registry.register(Google::Protobuf::Type)
  registry.register(Google::Protobuf::Field)
  registry.register(Google::Protobuf::Field::Kind)
  registry.register(Google::Protobuf::Field::Cardinality)
  registry.register(Google::Protobuf::Enum)
  registry.register(Google::Protobuf::EnumValue)
  registry.register(Google::Protobuf::Option)
  registry.register(Google::Protobuf::Syntax)
end

.register_wrappers_protos(registry) ⇒ Object



169
170
171
172
173
174
175
176
177
178
179
# File 'lib/google/protobuf/wrappers_pb.rb', line 169

def self.register_wrappers_protos(registry)
  registry.register(Google::Protobuf::DoubleValue)
  registry.register(Google::Protobuf::FloatValue)
  registry.register(Google::Protobuf::Int64Value)
  registry.register(Google::Protobuf::UInt64Value)
  registry.register(Google::Protobuf::Int32Value)
  registry.register(Google::Protobuf::UInt32Value)
  registry.register(Google::Protobuf::BoolValue)
  registry.register(Google::Protobuf::StringValue)
  registry.register(Google::Protobuf::BytesValue)
end