public static void registerAllExtensions( akka.protobuf.ExtensionRegistry registry) { registry.add(akka.cluster.protobuf.msg.ClusterMessages.UncheckedConfig.checkConfig); registry.add(akka.cluster.protobuf.msg.ClusterMessages.IncompatibleConfig.checkConfig); registry.add(akka.cluster.protobuf.msg.ClusterMessages.CompatibleConfig.checkConfig); } /**
public static void registerAllExtensions( akka.protobuf.ExtensionRegistry registry) { registry.add(akka.cluster.protobuf.msg.ClusterMessages.UncheckedConfig.checkConfig); registry.add(akka.cluster.protobuf.msg.ClusterMessages.IncompatibleConfig.checkConfig); registry.add(akka.cluster.protobuf.msg.ClusterMessages.CompatibleConfig.checkConfig); } /**
public static void registerAllExtensions( akka.protobuf.ExtensionRegistry registry) { registry.add(akka.cluster.protobuf.msg.ClusterMessages.UncheckedConfig.checkConfig); registry.add(akka.cluster.protobuf.msg.ClusterMessages.IncompatibleConfig.checkConfig); registry.add(akka.cluster.protobuf.msg.ClusterMessages.CompatibleConfig.checkConfig); } /**
/** Add a non-message-type extension to the registry by descriptor. */ public void add(final FieldDescriptor type) { if (type.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { throw new IllegalArgumentException( "ExtensionRegistry.add() must be provided a default instance when " + "adding an embedded message extension."); } add(new ExtensionInfo(type, null)); }
/** Add a message-type extension to the registry by descriptor. */ public void add(final FieldDescriptor type, final Message defaultInstance) { if (type.getJavaType() != FieldDescriptor.JavaType.MESSAGE) { throw new IllegalArgumentException( "ExtensionRegistry.add() provided a default instance for a " + "non-message extension."); } add(new ExtensionInfo(type, defaultInstance)); }
/** Add a message-type extension to the registry by descriptor. */ public void add(final FieldDescriptor type, final Message defaultInstance) { if (type.getJavaType() != FieldDescriptor.JavaType.MESSAGE) { throw new IllegalArgumentException( "ExtensionRegistry.add() provided a default instance for a " + "non-message extension."); } add(new ExtensionInfo(type, defaultInstance)); }
/** Add a non-message-type extension to the registry by descriptor. */ public void add(final FieldDescriptor type) { if (type.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { throw new IllegalArgumentException( "ExtensionRegistry.add() must be provided a default instance when " + "adding an embedded message extension."); } add(new ExtensionInfo(type, null)); }
/** Add a message-type extension to the registry by descriptor. */ public void add(final FieldDescriptor type, final Message defaultInstance) { if (type.getJavaType() != FieldDescriptor.JavaType.MESSAGE) { throw new IllegalArgumentException( "ExtensionRegistry.add() provided a default instance for a " + "non-message extension."); } add(new ExtensionInfo(type, defaultInstance)); }
/** Add a non-message-type extension to the registry by descriptor. */ public void add(final FieldDescriptor type) { if (type.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { throw new IllegalArgumentException( "ExtensionRegistry.add() must be provided a default instance when " + "adding an embedded message extension."); } add(new ExtensionInfo(type, null)); }
/** Add an extension from a generated file to the registry. */ public void add(final GeneratedMessage.GeneratedExtension<?, ?> extension) { if (extension.getDescriptor().getJavaType() == FieldDescriptor.JavaType.MESSAGE) { if (extension.getMessageDefaultInstance() == null) { throw new IllegalStateException( "Registered message-type extension had null default instance: " + extension.getDescriptor().getFullName()); } add(new ExtensionInfo(extension.getDescriptor(), extension.getMessageDefaultInstance())); } else { add(new ExtensionInfo(extension.getDescriptor(), null)); } }
/** Add an extension from a generated file to the registry. */ public void add(final GeneratedMessage.GeneratedExtension<?, ?> extension) { if (extension.getDescriptor().getJavaType() == FieldDescriptor.JavaType.MESSAGE) { if (extension.getMessageDefaultInstance() == null) { throw new IllegalStateException( "Registered message-type extension had null default instance: " + extension.getDescriptor().getFullName()); } add(new ExtensionInfo(extension.getDescriptor(), extension.getMessageDefaultInstance())); } else { add(new ExtensionInfo(extension.getDescriptor(), null)); } }
/** Add an extension from a generated file to the registry. */ public void add(final GeneratedMessage.GeneratedExtension<?, ?> extension) { if (extension.getDescriptor().getJavaType() == FieldDescriptor.JavaType.MESSAGE) { if (extension.getMessageDefaultInstance() == null) { throw new IllegalStateException( "Registered message-type extension had null default instance: " + extension.getDescriptor().getFullName()); } add(new ExtensionInfo(extension.getDescriptor(), extension.getMessageDefaultInstance())); } else { add(new ExtensionInfo(extension.getDescriptor(), null)); } }