example.remote.interface.demo/src/terra/harvest/standalone/demo/RemoteInterfaceStandaloneDemo.java
private TerraHarvestMessage createTerraHarvestMsg(Namespace namespace, Message.Builder namespaceBuilder)
    {
        final TerraHarvestPayload payLoad = 
                TerraHarvestPayload.newBuilder().setNamespace(namespace).setNamespaceMessage(
                namespaceBuilder.build().toByteString()).build();
        return TerraHarvestMessage.newBuilder()
            .setVersion(RemoteConstants.SPEC_VERSION)
            .setSourceId(1)
            // send message back to source
            .setDestId(0)
            .setMessageId(this.uniqueID++)
            .setTerraHarvestPayload(payLoad.toByteString()).build();
    }
/**
     * Create a builder for a {@link TerraHarvestMessage} that fills in the source and destination id.
     */
Create a builder for a  TerraHarvestMessage that fills in the source and destination id.
Create a builder for a TerraHarvestMessage that fills in the source and destination id .
private TerraHarvestMessage createTerraHarvestMsg(Namespace namespace, Message.Builder namespaceBuilder)
    {
        final TerraHarvestPayload payLoad = 
                TerraHarvestPayload.newBuilder().setNamespace(namespace).setNamespaceMessage(
                namespaceBuilder.build().toByteString()).build();
        return TerraHarvestMessage.newBuilder()
            .setVersion(RemoteConstants.SPEC_VERSION)
            .setSourceId(1)
            .setDestId(0)
            .setMessageId(this.uniqueID++)
            .setTerraHarvestPayload(payLoad.toByteString()).build();
    }
private TerraHarvestMessage createTerraHarvestMsg ( Namespace namespace , Message . Builder namespaceBuilder ) { final TerraHarvestPayload payLoad = TerraHarvestPayload . newBuilder ( ) . setNamespace ( namespace ) . setNamespaceMessage ( namespaceBuilder . build ( ) . toByteString ( ) ) . build ( ) ; return TerraHarvestMessage . newBuilder ( ) . setVersion ( RemoteConstants . SPEC_VERSION ) . setSourceId ( 1 ) . setDestId ( 0 ) . setMessageId ( this . uniqueID ++ ) . setTerraHarvestPayload ( payLoad . toByteString ( ) ) . build ( ) ; }
Create a builder for a {@link TerraHarvestMessage} that fills in the source and destination id.
Create a builder for a { @link TerraHarvestMessage } that fills in the source and destination id .
// send message back to source