proto-lens-0.4.0.0: A lens-based implementation of protocol buffers in Haskell.

Safe HaskellNone
LanguageHaskell2010

Data.ProtoLens.Default

Description

A compatibility layer for older code to create default protocol buffer messages.

In older versions of proto-lens, messages could be constructed with Data.Default.Class.def. However, for proto-lens >= 0.4, that is no longer the case and Data.ProtoLens.defMessage should be used instead.

This module provides a compatibility layer that may be used to upgrade older code without substantial code changes.

Synopsis

Documentation

def :: Message a => a Source #

A message with all fields set to their default values.

For new code, prefer defMessage.

class Message msg Source #

Every protocol buffer is an instance of Message. This class enables serialization by providing reflection of all of the fields that may be used by this type.

Minimal complete definition

messageName, defMessage, fieldsByTag, unknownFields

Instances
Message UninterpretedOption'NamePart Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message UninterpretedOption Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message SourceCodeInfo'Location Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message SourceCodeInfo Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message ServiceOptions Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message ServiceDescriptorProto Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message OneofOptions Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message OneofDescriptorProto Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message MethodOptions Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message MethodDescriptorProto Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message MessageOptions Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message GeneratedCodeInfo'Annotation Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message GeneratedCodeInfo Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message FileOptions Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message FileDescriptorSet Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message FileDescriptorProto Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message FieldOptions Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message FieldDescriptorProto Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message ExtensionRangeOptions Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message EnumValueOptions Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message EnumValueDescriptorProto Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message EnumOptions Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message EnumDescriptorProto'EnumReservedRange Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message EnumDescriptorProto Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message DescriptorProto'ReservedRange Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message DescriptorProto'ExtensionRange Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message DescriptorProto Source # 
Instance details

Defined in Proto.Google.Protobuf.Descriptor

Message Version Source # 
Instance details

Defined in Proto.Google.Protobuf.Compiler.Plugin

Message CodeGeneratorResponse'File Source # 
Instance details

Defined in Proto.Google.Protobuf.Compiler.Plugin

Message CodeGeneratorResponse Source # 
Instance details

Defined in Proto.Google.Protobuf.Compiler.Plugin

Message CodeGeneratorRequest Source # 
Instance details

Defined in Proto.Google.Protobuf.Compiler.Plugin