Module: Google::Protobuf

Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf/any_pb.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf/api_pb.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf/type_pb.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf/empty_pb.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf/struct_pb.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf/duration_pb.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf/wrappers_pb.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf/message_exts.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf/timestamp_pb.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf/descriptor_pb.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf/field_mask_pb.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf/descriptor_dsl.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf/repeated_field.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf/well_known_types.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf/source_context_pb.rb

Defined Under Namespace

Modules: Internal, MessageExts Classes: DescriptorPool, Error, ParseError, RepeatedField, TypeError, UnexpectedStructType

Constant Summary collapse

Any =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Any").msgclass
Api =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Api").msgclass
Method =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Method").msgclass
Mixin =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Mixin").msgclass
Type =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Type").msgclass
Field =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Field").msgclass
Enum =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Enum").msgclass
EnumValue =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.EnumValue").msgclass
Option =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Option").msgclass
Syntax =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Syntax").enummodule
Empty =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Empty").msgclass
Struct =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Struct").msgclass
Value =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Value").msgclass
ListValue =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.ListValue").msgclass
NullValue =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.NullValue").enummodule
Duration =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Duration").msgclass
DoubleValue =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.DoubleValue").msgclass
FloatValue =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.FloatValue").msgclass
Int64Value =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Int64Value").msgclass
UInt64Value =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.UInt64Value").msgclass
Int32Value =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Int32Value").msgclass
UInt32Value =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.UInt32Value").msgclass
BoolValue =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.BoolValue").msgclass
StringValue =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.StringValue").msgclass
BytesValue =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.BytesValue").msgclass
Timestamp =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Timestamp").msgclass
FileDescriptorSet =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.FileDescriptorSet").msgclass
FileDescriptorProto =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.FileDescriptorProto").msgclass
DescriptorProto =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.DescriptorProto").msgclass
FieldMask =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.FieldMask").msgclass
SourceContext =
::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.SourceContext").msgclass

Class Method Summary collapse

Class Method Details

.decode(klass, proto, options = {}) ⇒ Object



70
71
72
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf.rb', line 70

def self.decode(klass, proto, options = {})
  klass.decode(proto, options)
end

.decode_json(klass, json, options = {}) ⇒ Object



74
75
76
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf.rb', line 74

def self.decode_json(klass, json, options = {})
  klass.decode_json(json, options)
end

.encode(msg, options = {}) ⇒ Object



62
63
64
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf.rb', line 62

def self.encode(msg, options = {})
  msg.to_proto(options)
end

.encode_json(msg, options = {}) ⇒ Object



66
67
68
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/lib/google/protobuf.rb', line 66

def self.encode_json(msg, options = {})
  msg.to_json(options)
end