/** Add an extension from a generated file to the registry. */ public void add(final GeneratedMessage.GeneratedExtension<?, ?> extension) { add((Extension<?, ?>) extension); }
public void init(MarshallerReaderContext context) { ExtensionRegistry registry = (ExtensionRegistry) context.parameterObject; registry.add( JBPMMessages.processInstance ); registry.add( JBPMMessages.processTimer ); registry.add( JBPMMessages.procTimer ); registry.add( JBPMMessages.workItem ); registry.add( JBPMMessages.timerId ); }
/** 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."); } ExtensionInfo info = new ExtensionInfo(type, null); add(info, Extension.ExtensionType.IMMUTABLE); add(info, Extension.ExtensionType.MUTABLE); }
/** 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), Extension.ExtensionType.IMMUTABLE); }
/** Add an extension from a generated file to the registry. */ public void add(final Extension<?, ?> extension) { if (extension.getExtensionType() != Extension.ExtensionType.IMMUTABLE && extension.getExtensionType() != Extension.ExtensionType.MUTABLE) { // do not support other extension types. ignore return; } add(newExtensionInfo(extension), extension.getExtensionType()); }
/** 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)); } }
public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registry.add(CpuMemoryUtilizationOuterClass.cpuMemoryUtilExt); } public interface CpuMemoryUtilizationOrBuilder extends
public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registry.add(LspStatsOuterClass.jnprLspStatisticsExt); } public interface LspStatsOrBuilder extends
public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registry.add(LogicalPortOuterClass.jnprLogicalInterfaceExt); } public interface LogicalPortOrBuilder extends
public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registry.add(com.apple.foundationdb.record.RecordMetaDataOptionsProto.schema); registry.add(com.apple.foundationdb.record.RecordMetaDataOptionsProto.record); registry.add(com.apple.foundationdb.record.RecordMetaDataOptionsProto.field); } public interface SchemaOptionsOrBuilder extends
public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registry.add(protobuf_unittest.MultipleFilesTestProto.enumValueOption); registry.add(protobuf_unittest.MultipleFilesTestProto.extensionWithOuter); } public static final int ENUM_VALUE_OPTION_FIELD_NUMBER = 7654321;
public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registry.add(com.baidu.brpc.protocol.Options.serviceTimeout); registry.add(com.baidu.brpc.protocol.Options.requestTalkType); registry.add(com.baidu.brpc.protocol.Options.responseTalkType); registry.add(com.baidu.brpc.protocol.Options.methodTimeout); registry.add(com.baidu.brpc.protocol.Options.requestCompression); registry.add(com.baidu.brpc.protocol.Options.responseCompression); } /**
public void init(MarshallerReaderContext context) { ExtensionRegistry registry = (ExtensionRegistry) context.parameterObject; registry.add( JBPMMessages.processInstance ); registry.add( JBPMMessages.processTimer ); registry.add( JBPMMessages.procTimer ); registry.add( JBPMMessages.workItem ); registry.add( JBPMMessages.timerId ); }
public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registry.add(ScopeDescriptor.version); registry.add(ScopeDescriptor.coreRelease); registry.add(ScopeDescriptor.draft); registry.add(ScopeDescriptor.cppClass); registry.add(ScopeDescriptor.cppHfile); registry.add(ScopeDescriptor.cppResponse); } public static final int VERSION_FIELD_NUMBER = 50000;
public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registry.add(ScopeDescriptor.version); registry.add(ScopeDescriptor.coreRelease); registry.add(ScopeDescriptor.draft); registry.add(ScopeDescriptor.cppClass); registry.add(ScopeDescriptor.cppHfile); registry.add(ScopeDescriptor.cppResponse); } public static final int VERSION_FIELD_NUMBER = 50000;
public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registry.add(google.protobuf.no_generic_services_test.UnittestNoGenericServices.testExtension); } /**
public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registry.add(protobuf_unittest.UnittestOptimizeFor.TestOptimizedForSize.testExtension); registry.add(protobuf_unittest.UnittestOptimizeFor.TestOptimizedForSize.testExtension2); } public interface TestOptimizedForSizeOrBuilder extends