content
stringlengths 10
4.9M
|
---|
/**
* Servlet implementation class OrderControler.
* With order Servlet we can display order details by defining an instance of class Order.
*
*/
@WebServlet(name = "/order", urlPatterns = {"/order/*"})
public class OrderControler extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* @see HttpServlet#HttpServlet()
*/
public OrderControler() {
super();
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String requestURI = request.getRequestURI();
//if a form calls order servlet without a parameter, then we redirect to index.jsp
String url = "/index.jsp";
if (requestURI.endsWith("/displayOrder"))
url = displayOrder(request, response);
getServletContext().getRequestDispatcher(url).forward(request, response);
}
/**
*
* @param request
* @param response
* @return order.jsp
*/
private String displayOrder(HttpServletRequest request,
HttpServletResponse response) {
HttpSession session = request.getSession();
Product product = (Product) session.getAttribute("product");
//Product product = (Product) session.getAttribute("product");
String url = "/error.jsp";
if (product != null)
{
Order order = new Order();
order.setDate(new Date());
order.setProduct(product);
session.setAttribute("order", order);
url = "/order.jsp";
}
return url;
}
}
|
// Load will return the current session, creating one if necessary. This will
// fail if a store wasn't installed with HandlerWithStore somewhere up the
// call chain.
func Load(ctx context.Context, namespace string) (*Session, error) {
rc, ok := ctx.Value(reqCtxKey).(*reqCtx)
if !ok {
return nil, SessionError.New(
"no session store handler wrapper installed")
}
if rc.cache != nil {
if session, exists := rc.cache[namespace]; exists {
return session, nil
}
}
sessiondata, err := rc.s.Load(ctx, rc.r, namespace)
if err != nil {
return nil, err
}
session := &Session{
SessionData: sessiondata,
store: rc.s,
namespace: namespace}
if rc.cache == nil {
rc.cache = map[string]*Session{namespace: session}
} else {
rc.cache[namespace] = session
}
return session, nil
}
|
def do_analysis(self):
roc_mean, roc_std = self._roc_score()
z_score = (roc_mean - RANDOM_CLASSIFIER_AUROC) / (roc_std + EPSILON)
print(f'mean roc: {roc_mean:.2f} (std={roc_std:.2f}) '
f'z_score: {z_score:.2f} - {interpret(roc_mean, z_score)}')
return roc_mean, z_score
|
import tensorflow as tf
import numpy as np
from lib.tf_Riemann import op
def tangent_space(covmats, Cref):
"""Project a set of covariance matrices in the tangent space according to the given reference point Cref
:param covmats: Covariance matrices set, Ntrials X Nchannels X Nchannels
:param Cref: The reference covariance matrix
:returns: the Tangent space , a matrix of Ntrials X (Nchannels*(Nchannels+1)/2)
"""
n_epochs = tf.shape(covmats)[0]
n_channel = covmats.shape[1]
Cm12 = tf.linalg.inv(tf.linalg.sqrtm(Cref))
Cm12 = tf.expand_dims(Cm12, 0)
Cm12 = tf.tile(Cm12, (n_epochs, 1, 1))
m = tf.matmul(Cm12, covmats)
m = tf.matmul(m, Cm12)
m = op.logm(m)
coeffs = (np.sqrt(2) * np.triu(np.ones((n_channel, n_channel)), 1) +np.eye(n_channel))
coeffs_tensor = tf.constant(coeffs)
coeffs_tensor = tf.expand_dims(coeffs_tensor, 0)
m = tf.multiply(m, coeffs_tensor)
T_list = []
for i in range(n_channel):
T_list.append(tf.reshape(m[:, i, i:], shape=(n_epochs, -1)))
T = tf.concat(T_list, axis=1)
return T
|
<commit_msg>Add method to escape special chars in Solr queries
<commit_before>from mysolr import Solr
from magpie.settings import settings
_solr = None
def open_solr_connection(core_name):
global _solr
if not _solr:
url = '{}/{}'.format(settings.SOLR_URL, core_name)
_solr = Solr(url)
return _solr<commit_after>from mysolr import Solr
from magpie.settings import settings
_solr = None
def open_solr_connection(core_name):
global _solr
if not _solr:
url = '{}/{}'.format(settings.SOLR_URL, core_name)
_solr = Solr(url)
return _solr
def escape_solr_query(query):
"""
Escape special chars for Solr queries.
"""
chars = ['+', '-', '&&', '||', '!', '(', ')', '{', '}', '[', ']', '^', '"', '~', '*', '?',
':', '/', ' ']
for char in chars:
query = query.replace(char, '\{}'.format(char))
return query
|
<reponame>maciekmm/dokanki<filename>bin/frontend/forms.py<gh_stars>1-10
from flask_wtf import FlaskForm
from wtforms import StringField, IntegerField, SubmitField, SelectField
from wtforms.validators import DataRequired
class InsertForm(FlaskForm):
name = StringField('name', validators=[DataRequired()])
id = IntegerField('id')
level = IntegerField('level')
steps = IntegerField('steps')
type = StringField('type')
out = StringField('out')
url = StringField('url', validators=[DataRequired()])
submit = SubmitField('Submit')
|
H, W, M = map(int, input().split())
A = [list(map(int, input().split())) for i in range(M)]
takasa = [0]*(H)
haba = [0]*(W)
for i in range(M):
takasa[A[i][0]-1] += 1
haba[A[i][1]-1] += 1
mt = max(takasa)
mh = max(haba)
ct = takasa.count(mt)
ch = haba.count(mh)
a = 0
for i in range(M):
if takasa[A[i][0]-1] == mt and haba[A[i][1]-1] == mh:
a += 1
if a == ct*ch:
print(mt+mh-1)
else:
print(mt+mh)
|
With customer demand nearly doubling forecasts, the Un-carrier sees yet another hit with SyncUP DRIVE™
Bellevue, Washington — April 4, 2017 — Un-carrier customers, start your engines. T-Mobile (NASDAQ: TMUS) today announced its first major upgrade to T-Mobile SyncUP DRIVE—the Un-carrier’s exclusive, all-in-one connected car solution that easily transforms your car into a rolling Wi-Fi hotspot and gives you vehicle diagnostics, safety and security features. Starting today, April 4, T-Mobile is adding Allstate Motor Club Roadside Assistance for all SyncUP DRIVE customers on qualifying plans. And no surprise—these new benefits come at absolutely no extra cost to SyncUP DRIVE customers.
Since SyncUP DRIVE launched this past November, demand for the device has nearly doubled early forecasts. And customers are loving the benefits it offers, with early data showing the most popular device feature is GPS location monitoring, followed by vehicle diagnostics and the in-vehicle Wi-Fi hotspot. Other favorites include vehicle maintenance monitoring and family and vehicle security.
“The response to T-Mobile SyncUP DRIVE has been phenomenal! Customers are telling us what they love—and what they want to see next. And, as always, the Un-carrier’s listening,” said John Legere, president and CEO of T-Mobile. “Customers’ No.1 ask has been for roadside help. So we’ve partnered with Allstate Motor Club to roll out dedicated roadside assistance for SyncUP DRIVE customers at no extra charge!!”
T-Mobile SyncUP DRIVE customers needing anything from a jump to a tire change or a tow will be able to quickly connect to a dedicated Allstate Motor Club customer service team via the updated T-Mobile SyncUP DRIVE app – which is available for iOS on the Apple App Store and for Android devices on Google Play. To get Allstate Motor Club Roadside Assistance, customers who have already installed SyncUP DRIVE simply need to accept the update within the SyncUP DRIVE app and enroll with Allstate Motor Club.
Allstate Motor Club is one of the country’s most experienced providers of emergency roadside assistance.
“Allstate has been a leader in providing emergency roadside assistance for 50 years,” said Allstate Roadside Services President Pam Dufour. “We are continuing to enhance our service with a growing network of highly-responsive and professional roadside assistance providers, powered by digital technology to get stranded motorists back on the road faster than ever. We are excited about this relationship with T-Mobile and for what it can mean for SyncUP DRIVE customers who find themselves where no one wants to be – stranded on the side of the road.”
And while the carriers try to charge customers MORE for advanced features like Wi-Fi hotspot, T-Mobile SyncUP DRIVE customers get access to all of these great Un-carrier benefits at one low price, without being forced to sign a two-year service contract or paying activation fees. Right now customers can get T-Mobile SyncUP DRIVE – normally a $149.99 value – for just $48 with 24-month no-cost finance agreement with a 2GB or higher mobile Internet plan.
In addition to roadside assistance, T-Mobile SyncUP DRIVE includes:
Capability for an in-vehicle Wi-Fi hotspot on the nation’s fastest 4G LTE network
Driving behavior analysis
Vehicle and location monitoring
Speed alerts
Vehicle diagnostics
To learn more about T-Mobile SyncUP DRIVE, visit www.t-mobile.com/syncupdrive.
Limited time offers; subject to change. SyncUP DRIVE: Device pricing for well-qualified customers; qualifying service required. $0 down, $2 x 24 mos. total $48, plus device tax. 0% APR. If you cancel wireless service, remaining balance on device is due. Capable smartphone, compatible vehicle, app download, and service req’d for some features. Roadside Assistance: Provided by Allstate Motor Club. Qualifying plan and use of SyncUP DRIVE app and device required. Contact Allstate for details.
About T-Mobile
As America's Un-carrier, T-Mobile US, Inc. (NASDAQ: TMUS) is redefining the way consumers and businesses buy wireless services through leading product and service innovation. The Company's advanced nationwide 4G LTE network delivers outstanding wireless experiences to more than 71.5 million customers who are unwilling to compromise on quality and value. Based in Bellevue, Washington, T-Mobile US provides services through its subsidiaries and operates its flagship brands, T-Mobile and MetroPCS. For more information, please visit http://www.t-mobile.com.
# # #
T-Mobile Media Contacts
T-Mobile US Media Relations
[email protected]
|
import { NodeConfiguration } from "./node-configuration.model";
export class AppConfiguration {
name: string = '';
nodeConfiguration: NodeConfiguration;
constructor() {
this.nodeConfiguration = new NodeConfiguration();
}
}
|
class ContractExpression:
"""Helper class for storing an explicit ``contraction_list`` which can
then be repeatedly called solely with the array arguments.
"""
def __init__(self, contraction, contraction_list, **einsum_kwargs):
self.contraction = contraction
self.contraction_list = contraction_list
self.einsum_kwargs = einsum_kwargs
self.num_args = len(contraction.split('->')[0].split(','))
def _normal_contract(self, arrays, out=None, backend='numpy'):
"""The normal, core contraction.
"""
return _core_contract(list(arrays), self.contraction_list, out=out,
backend=backend, **self.einsum_kwargs)
def _convert_contract(self, arrays, out, backend):
"""Special contraction, i.e. contraction with a different backend
but converting to and from that backend. Checks for
``self._{backend}_contract``, generates it if is missing, then calls it
with ``arrays``.
"""
convert_fn = "_{}_contract".format(backend)
if not hasattr(self, convert_fn):
setattr(self, convert_fn, backends.build_expression(backend, arrays, self))
result = getattr(self, convert_fn)(*arrays)
if out is not None:
out[()] = result
return out
return result
def __call__(self, *arrays, **kwargs):
"""Evaluate this expression with a set of arrays.
Parameters
----------
arrays : seq of array
The arrays to supply as input to the expression.
out : array, optional (default: ``None``)
If specified, output the result into this array.
backend : str, optional (default: ``numpy``)
Perform the contraction with this backend library. If numpy arrays
are supplied then try to convert them to and from the correct
backend array type.
"""
if len(arrays) != self.num_args:
raise ValueError("This `ContractExpression` takes exactly %s array arguments "
"but received %s." % (self.num_args, len(arrays)))
backend = kwargs.pop('backend', 'numpy')
out = kwargs.pop('out', None)
if kwargs:
raise ValueError("The only valid keyword arguments to a `ContractExpression` "
"call are `out=` or `backend=`. Got: %s." % kwargs)
try:
# Check if the backend requires special preparation / calling
# but also ignore non-numpy arrays -> assume user wants same type back
if backend in backends.CONVERT_BACKENDS and isinstance(arrays[0], np.ndarray):
return self._convert_contract(arrays, out, backend)
return self._normal_contract(arrays, out, backend)
except ValueError as err:
original_msg = str(err.args) if err.args else ""
msg = ("Internal error while evaluating `ContractExpression`. Note that few checks are performed"
" - the number and rank of the array arguments must match the original expression. "
"The internal error was: '%s'" % original_msg, )
err.args = msg
raise
def __repr__(self):
return "ContractExpression('%s')" % self.contraction
def __str__(self):
s = "<ContractExpression> for '%s':" % self.contraction
for i, c in enumerate(self.contraction_list):
s += "\n %i. " % (i + 1)
s += "'%s'" % c[2] + (" [%s]" % c[-1] if c[-1] else "")
if self.einsum_kwargs:
s += "\neinsum_kwargs=%s" % self.einsum_kwargs
return s
|
Charles Brandon, portrait miniature by Hans Holbein the Younger, 1541
Charles Brandon, 3rd Duke of Suffolk (1537/1538 – 14 July 1551), known as Lord Charles Brandon until shortly before his death, was the son of the 1st Duke of Suffolk and the suo jure 12th Baroness Willoughby de Eresby.
His father had previously been married to Mary Tudor, sister of King Henry VIII. Following Mary's death, he had married Lady Willoughby de Eresby, who had been originally intended as the bride of his son Henry.
In 1541, Lord Charles Brandon and his older brother Lord Henry Brandon had their miniatures painted by Hans Holbein the Younger.[1]
He died of the sweating sickness one hour after the same disease claimed his elder brother Henry (who had succeeded their father as 2nd Duke of Suffolk in 1545), and because of this holds the record for the shortest tenure of a British peerage. (The 2nd Baron Stamp may claim a shorter tenure, but merely through a legal fiction.) Suffolk died without issue and his title became extinct. They died at the Bishop of Lincoln's Palace, Buckden, in the village of Buckden near Huntingdon, Huntingdonshire, where they had fled in an attempt to escape the epidemic.
A solemn celebration of the funerals of the two Dukes, called a 'Month's Mind', was held on 22 September 1551 with all the funeral equipment in duplicate.[2] The humanist intellectuals Thomas Wilson and Walter Haddon wrote a life of Suffolk and his younger brother shortly after their death.
Further reading [ edit ]
The Life and Career of Charles Brandon, Duke of Suffolk, c. 1484-1545 , by S. J. Gunn (on his father)
, by S. J. Gunn (on his father) Catherine Willoughby, by Evelyn Read (on his mother)
References [ edit ]
|
package mekanism.common.loot.table;
import it.unimi.dsi.fastutil.objects.ObjectOpenHashSet;
import java.util.Collection;
import java.util.List;
import java.util.Map.Entry;
import java.util.Set;
import java.util.function.Function;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import mekanism.api.NBTConstants;
import mekanism.api.providers.IBlockProvider;
import mekanism.common.block.BlockCardboardBox;
import mekanism.common.block.attribute.Attribute;
import mekanism.common.block.attribute.AttributeUpgradeSupport;
import mekanism.common.block.attribute.Attributes.AttributeInventory;
import mekanism.common.block.attribute.Attributes.AttributeRedstone;
import mekanism.common.block.attribute.Attributes.AttributeSecurity;
import mekanism.common.block.interfaces.IHasTileEntity;
import mekanism.common.lib.frequency.IFrequencyHandler;
import mekanism.common.resource.ore.OreBlockType;
import mekanism.common.tile.base.SubstanceType;
import mekanism.common.tile.base.TileEntityMekanism;
import mekanism.common.tile.interfaces.ISideConfiguration;
import mekanism.common.tile.interfaces.ISustainedData;
import mekanism.common.util.EnumUtils;
import net.minecraft.advancements.critereon.EnchantmentPredicate;
import net.minecraft.advancements.critereon.ItemPredicate;
import net.minecraft.advancements.critereon.MinMaxBounds;
import net.minecraft.advancements.critereon.StatePropertiesPredicate;
import net.minecraft.data.loot.BlockLoot;
import net.minecraft.world.item.enchantment.Enchantments;
import net.minecraft.world.level.ItemLike;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.SlabBlock;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.block.state.properties.SlabType;
import net.minecraft.world.level.storage.loot.LootPool;
import net.minecraft.world.level.storage.loot.LootTable;
import net.minecraft.world.level.storage.loot.LootTable.Builder;
import net.minecraft.world.level.storage.loot.entries.LootItem;
import net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer;
import net.minecraft.world.level.storage.loot.functions.ApplyBonusCount;
import net.minecraft.world.level.storage.loot.functions.CopyNameFunction;
import net.minecraft.world.level.storage.loot.functions.CopyNbtFunction;
import net.minecraft.world.level.storage.loot.functions.SetItemCountFunction;
import net.minecraft.world.level.storage.loot.predicates.ConditionUserBuilder;
import net.minecraft.world.level.storage.loot.predicates.ExplosionCondition;
import net.minecraft.world.level.storage.loot.predicates.LootItemBlockStatePropertyCondition;
import net.minecraft.world.level.storage.loot.predicates.LootItemCondition;
import net.minecraft.world.level.storage.loot.predicates.MatchTool;
import net.minecraft.world.level.storage.loot.providers.nbt.ContextNbtProvider;
import net.minecraft.world.level.storage.loot.providers.number.ConstantValue;
import net.minecraft.world.level.storage.loot.providers.number.NumberProvider;
import net.minecraft.world.level.storage.loot.providers.number.UniformGenerator;
import net.minecraftforge.items.IItemHandler;
public abstract class BaseBlockLootTables extends BlockLoot {
private static final LootItemCondition.Builder HAS_SILK_TOUCH = MatchTool.toolMatches(ItemPredicate.Builder.item()
.hasEnchantment(new EnchantmentPredicate(Enchantments.SILK_TOUCH, MinMaxBounds.Ints.atLeast(1))));
private final Set<Block> knownBlocks = new ObjectOpenHashSet<>();
private final Set<Block> toSkip = new ObjectOpenHashSet<>();
@Override
protected abstract void addTables();
@Override
protected void add(@Nonnull Block block, @Nonnull LootTable.Builder table) {
//Overwrite the core register method to add to our list of known blocks
super.add(block, table);
knownBlocks.add(block);
}
@Nonnull
@Override
protected Iterable<Block> getKnownBlocks() {
return knownBlocks;
}
protected void skip(IBlockProvider... blockProviders) {
for (IBlockProvider blockProvider : blockProviders) {
toSkip.add(blockProvider.getBlock());
}
}
protected boolean skipBlock(Block block) {
//Skip any blocks that we already registered a table for or have marked to skip
return knownBlocks.contains(block) || toSkip.contains(block);
}
protected static LootTable.Builder createOreDrop(Block block, ItemLike item) {
return createSilkTouchDispatchTable(block, applyExplosionDecay(block, LootItem.lootTableItem(item.asItem())
.apply(ApplyBonusCount.addOreBonusCount(Enchantments.BLOCK_FORTUNE))
));
}
protected static LootTable.Builder droppingWithFortuneOrRandomly(Block block, ItemLike item, UniformGenerator range) {
return createSilkTouchDispatchTable(block, applyExplosionDecay(block, LootItem.lootTableItem(item.asItem())
.apply(SetItemCountFunction.setCount(range))
.apply(ApplyBonusCount.addOreBonusCount(Enchantments.BLOCK_FORTUNE))
));
}
//IBlockProvider versions of BlockLootTable methods, modified to support varargs
protected void dropSelf(List<IBlockProvider> blockProviders) {
for (IBlockProvider blockProvider : blockProviders) {
Block block = blockProvider.getBlock();
if (!skipBlock(block)) {
dropSelf(block);
}
}
}
protected void add(Function<Block, Builder> factory, Collection<? extends IBlockProvider> blockProviders) {
for (IBlockProvider blockProvider : blockProviders) {
add(blockProvider.getBlock(), factory);
}
}
protected void add(Function<Block, Builder> factory, IBlockProvider... blockProviders) {
for (IBlockProvider blockProvider : blockProviders) {
add(blockProvider.getBlock(), factory);
}
}
protected void add(Function<Block, Builder> factory, OreBlockType... oreTypes) {
for (OreBlockType oreType : oreTypes) {
add(oreType.stoneBlock(), factory);
add(oreType.deepslateBlock(), factory);
}
}
protected void dropSelfWithContents(List<IBlockProvider> blockProviders) {
//TODO: See if there is other stuff we want to be transferring which we currently do not
// For example, when writing this we added dump mode for chemical tanks to getting transferred to the item
for (IBlockProvider blockProvider : blockProviders) {
Block block = blockProvider.getBlock();
if (skipBlock(block)) {
continue;
}
CopyNbtFunction.Builder nbtBuilder = CopyNbtFunction.copyData(ContextNbtProvider.BLOCK_ENTITY);
boolean hasData = false;
boolean hasContents = false;
boolean isNameable = false;
@Nullable
BlockEntity tile = null;
if (block instanceof IHasTileEntity<?> hasTileEntity) {
tile = hasTileEntity.createDummyBlockEntity();
}
if (tile instanceof IFrequencyHandler frequencyHandler && frequencyHandler.getFrequencyComponent().hasCustomFrequencies()) {
nbtBuilder.copy(NBTConstants.COMPONENT_FREQUENCY, NBTConstants.MEK_DATA + "." + NBTConstants.COMPONENT_FREQUENCY);
hasData = true;
}
if (Attribute.has(block, AttributeSecurity.class)) {
//TODO: Should we just save the entire security component?
nbtBuilder.copy(NBTConstants.COMPONENT_SECURITY + "." + NBTConstants.OWNER_UUID, NBTConstants.MEK_DATA + "." + NBTConstants.OWNER_UUID);
nbtBuilder.copy(NBTConstants.COMPONENT_SECURITY + "." + NBTConstants.SECURITY_MODE, NBTConstants.MEK_DATA + "." + NBTConstants.SECURITY_MODE);
hasData = true;
}
if (Attribute.has(block, AttributeUpgradeSupport.class)) {
nbtBuilder.copy(NBTConstants.COMPONENT_UPGRADE, NBTConstants.MEK_DATA + "." + NBTConstants.COMPONENT_UPGRADE);
hasData = true;
}
if (tile instanceof ISideConfiguration) {
nbtBuilder.copy(NBTConstants.COMPONENT_CONFIG, NBTConstants.MEK_DATA + "." + NBTConstants.COMPONENT_CONFIG);
nbtBuilder.copy(NBTConstants.COMPONENT_EJECTOR, NBTConstants.MEK_DATA + "." + NBTConstants.COMPONENT_EJECTOR);
hasData = true;
}
if (tile instanceof ISustainedData sustainedData) {
Set<Entry<String, String>> remapEntries = sustainedData.getTileDataRemap().entrySet();
for (Entry<String, String> remapEntry : remapEntries) {
nbtBuilder.copy(remapEntry.getKey(), NBTConstants.MEK_DATA + "." + remapEntry.getValue());
}
if (!remapEntries.isEmpty()) {
hasData = true;
}
}
if (Attribute.has(block, AttributeRedstone.class)) {
nbtBuilder.copy(NBTConstants.CONTROL_TYPE, NBTConstants.MEK_DATA + "." + NBTConstants.CONTROL_TYPE);
hasData = true;
}
if (tile instanceof TileEntityMekanism tileEntity) {
if (tileEntity.isNameable()) {
isNameable = true;
}
for (SubstanceType type : EnumUtils.SUBSTANCES) {
if (tileEntity.handles(type) && !type.getContainers(tileEntity).isEmpty()) {
nbtBuilder.copy(type.getContainerTag(), NBTConstants.MEK_DATA + "." + type.getContainerTag());
hasData = true;
if (type != SubstanceType.ENERGY && type != SubstanceType.HEAT) {
hasContents = true;
}
}
}
}
if (Attribute.has(block, AttributeInventory.class)) {
//If the block has an inventory, copy the inventory slots,
// but if it is an IItemHandler, which for most cases of ours it will be,
// then only copy the slots if we actually have any slots because otherwise maybe something just went wrong
if (!(tile instanceof IItemHandler handler) || handler.getSlots() > 0) {
//If we don't actually handle saving an inventory (such as the quantum entangloporter, don't actually add it as something to copy)
if (!(tile instanceof TileEntityMekanism tileMek) || tileMek.persistInventory()) {
nbtBuilder.copy(NBTConstants.ITEMS, NBTConstants.MEK_DATA + "." + NBTConstants.ITEMS);
hasData = true;
hasContents = true;
}
}
}
if (block instanceof BlockCardboardBox) {
//TODO: Do this better so that it doesn't have to be as hard coded to being a cardboard box
nbtBuilder.copy(NBTConstants.DATA, NBTConstants.MEK_DATA + "." + NBTConstants.DATA);
hasData = true;
}
if (!hasData && !isNameable) {
//To keep the json as clean as possible don't bother even registering a blank accept function if we have no
// persistent data that we want to copy. Also log a warning so that we don't have to attempt to check against
// that block
dropSelf(block);
} else {
LootItem.Builder<?> itemLootPool = LootItem.lootTableItem(block);
if (isNameable) {
itemLootPool.apply(CopyNameFunction.copyName(CopyNameFunction.NameSource.BLOCK_ENTITY));
}
if (hasData) {
itemLootPool.apply(nbtBuilder);
}
add(block, LootTable.lootTable().withPool(applyExplosionCondition(hasContents, LootPool.lootPool()
.name("main")
.setRolls(ConstantValue.exactly(1))
.add(itemLootPool)
)));
}
}
}
/**
* Like vanilla's {@link BlockLoot#applyExplosionCondition(ItemLike, ConditionUserBuilder)} except with a boolean for if it is explosion resistant.
*/
private static <T> T applyExplosionCondition(boolean explosionResistant, ConditionUserBuilder<T> condition) {
return explosionResistant ? condition.unwrap() : condition.when(ExplosionCondition.survivesExplosion());
}
/**
* Like vanilla's {@link BlockLoot#createSlabItemTable(Block)} except with a named pool
*/
@Nonnull
protected static LootTable.Builder createSlabItemTable(Block slab) {
return LootTable.lootTable().withPool(LootPool.lootPool()
.name("main")
.setRolls(ConstantValue.exactly(1))
.add(applyExplosionDecay(slab, LootItem.lootTableItem(slab)
.apply(SetItemCountFunction.setCount(ConstantValue.exactly(2))
.when(LootItemBlockStatePropertyCondition.hasBlockStateProperties(slab)
.setProperties(StatePropertiesPredicate.Builder.properties().hasProperty(SlabBlock.TYPE, SlabType.DOUBLE)))
)
)
)
);
}
/**
* Like vanilla's {@link BlockLoot#dropOther(Block, ItemLike)} except with a named pool
*/
@Override
public void dropOther(@Nonnull Block block, @Nonnull ItemLike drop) {
add(block, createSingleItemTable(drop));
}
/**
* Like vanilla's {@link BlockLoot#createSingleItemTable(ItemLike)} except with a named pool
*/
@Nonnull
protected static LootTable.Builder createSingleItemTable(ItemLike item) {
return LootTable.lootTable().withPool(applyExplosionCondition(item, LootPool.lootPool()
.name("main")
.setRolls(ConstantValue.exactly(1))
.add(LootItem.lootTableItem(item))
));
}
/**
* Like vanilla's {@link BlockLoot#createSingleItemTableWithSilkTouch(Block, ItemLike, NumberProvider)} except with a named pool
*/
@Nonnull
protected static LootTable.Builder createSingleItemTableWithSilkTouch(@Nonnull Block block, @Nonnull ItemLike item, @Nonnull NumberProvider range) {
return createSilkTouchDispatchTable(block, applyExplosionDecay(block, LootItem.lootTableItem(item).apply(SetItemCountFunction.setCount(range))));
}
/**
* Like vanilla's {@link BlockLoot#createSilkTouchDispatchTable(Block, LootPoolEntryContainer.Builder)} except with a named pool
*/
@Nonnull
protected static LootTable.Builder createSilkTouchDispatchTable(@Nonnull Block block, @Nonnull LootPoolEntryContainer.Builder<?> builder) {
return createSelfDropDispatchTable(block, HAS_SILK_TOUCH, builder);
}
/**
* Like vanilla's {@link BlockLoot#createSelfDropDispatchTable(Block, LootItemCondition.Builder, LootPoolEntryContainer.Builder)} except with a named pool
*/
@Nonnull
protected static LootTable.Builder createSelfDropDispatchTable(@Nonnull Block block, @Nonnull LootItemCondition.Builder conditionBuilder,
@Nonnull LootPoolEntryContainer.Builder<?> entry) {
return LootTable.lootTable().withPool(LootPool.lootPool()
.name("main")
.setRolls(ConstantValue.exactly(1))
.add(LootItem.lootTableItem(block)
.when(conditionBuilder)
.otherwise(entry)
)
);
}
}
|
//adds an int to a hash value
static int hash(int hashIn, int n) {
int hash = ((hashIn << 5) + hashIn) + (n & 0xFF); /* hash * 33 + c */
hash = ((hash << 5) + hash) + ((n >> 8) & 0xFF);
hash = ((hash << 5) + hash) + ((n >> 16) & 0xFF);
hash = ((hash << 5) + hash) + ((n >> 24) & 0xFF);
hash &= 0x7FFFFFFF;
return hash;
}
|
Seven out of 10 Australian men are now overweight or obese.
Have you ever noticed that almost all advertising around weight loss focuses on women?
This is odd, as it is Australian men who are increasingly losing the battle of the bulge.
Figures from the Australian Institute of Health and Welfare show 70 per cent of Australian men are overweight or obese, compared to 56 per cent of women.
These extra kilos put men at risk of a whole host of health concerns including heart disease, type 2 diabetes and sleep apnoea — to name a few.
There are many reasons why men are carrying more kilos, but Professor John Dixon said in part it was because their support networks and willingness to seek help was often wanting.
"The studies show about 70 to 80 per cent of those attending [weight loss programs] are women, so there is a tendency for men not to seek treatment as often," said Professor Dixon, head of clinical research at the Baker IDI Heart and Diabetes Institute.
Perception problem
Professor Dixon said there was a wider perception weight management programs were designed for women, which he attributes in large part to how they are marketed, and the fact that very few programs specifically target men.
His research into why men and women seek help with their weight shows some marked gender differences.
"Women are far more likely to say they're attending because of issues around body image, embarrassment over their appearance, or social stigmatisation," Professor Dixon said.
"Men are less likely to say those things and are more likely to indicate they're seeking help because they have been diagnosed with heart disease or diabetes or are worried about their physical fitness."
Weighty health issues
Men who are overweight or obese are at higher risk of developing any number of health conditions.
Overweight men are far more likely to develop sleep apnoea, for instance, while the levels of sexual dysfunction — both impotence and fertility issues — are higher for obese men than women, according to Professor Dixon.
"The greatest risks are in young adults, and those of Indigenous and Asian ethnicities," Professor Dixon said.
"For the younger adult males, there's the risk of getting bigger with time and the increased risk of weight-related complications. For high risk ethnic groups, there is a much higher risk of serious metabolic and cardiac complications at a lower BMI."
Men's mental health is also affected by carrying excess kilos, with studies showing increased rates of depression amongst overweight men.
Complex factors at play
So what are the barriers preventing Australian men from maintaining a healthy weight?
Last year researchers from the University of Newcastle asked a group of young men about what hindered and motivated them to eat healthy and exercise.
The 60 men aged 12 to 25 identified the barriers to healthy eating as:
Internal factors such as the perceived effort
Logistical issues including cost
Social factors such as peer influence.
When it came to getting enough physical activity, it was busy lifestyles, logistics, thoughts and feelings of inferiority, and social factors that got in the way.
So what motivated them? Having better physical and mental health, improved physical performance, appearance and social influences all played a part.
Exercise physiologist Alex Lawrence said a lot if it came down to priorities.
"With busy lifestyles, particularly as we get older, it's very easy to put less priority on our health and wellbeing," Mr Lawrence said.
Men's activity levels often decrease once they reach age 45, and by age 75 just a third of Australian men are considered "sufficiently active".
"Many people have developed a negative relationship with things like exercise, where we view it as a chore as opposed to something we do to reward our bodies." Mr Lawrence said.
Get in the kitchen
Dietitian Joel Feren said getting men more involved in cooking the food they eat would go a long way to helping them manage their weight.
Like Professor Dixon, Mr Feren said most of his male clients came to him for help only after they had been diagnosed with a condition.
"No-one comes to see me for disease prevention, it's always about disease management. They have heart disease, high cholesterol, diabetes or blood pressure issues. That's when they act," Mr Feren said.
Mr Feren recently created a social media campaign to help men become more involved in preparing the food they eat.
External Link: Get Your Man in the Kitchen Instagram
"I'm trying to encourage more blokes to get in the kitchen and have a crack at cooking their favourite meals, but trying to make them healthier," he said.
"It's about increasing your fruit and vegetable intake and cutting back on some of those extra sugars and salts."
His approach is to take meals that he believes are popular amongst men, and make them heathier — but no less appealing.
The message, according to Mr Feren, is simple: you do not have to resort to rabbit food.
"In the same amount of time that a take-away pizza takes to be delivered, you can whip up one at home fairly easily," he said.
"I use things like wholegrain wraps, lean meats and smoked salmon, loaded up with vegetables and a low-fat cheese on top."
Small subtle changes
It is important to note there is no magic bullet when it comes to weight loss, and what works to help one person lose weight will not necessarily work for another.
So how do you make sure your approach to weight loss will work for you?
The first step always is to figure out why you want to lose weight and what your health goals are, Mr Lawrence said.
"It might be a man who has young children and he wants to be able to engage with them more. For someone else it might be they have a high-pressure job and they would function and perform better if they weren't carrying excess weight," he said.
"It's really important to understand those personal reasons that are motivating the desire to lose weight."
Weight loss as the sole goal can be problematic, given many people's weight tends to fluctuate; men are often quicker to lose weight but can struggle to keep it off in the long-term.
Finding an activity or exerise you enjoy doing could also be a big help, Mr Lawrence said.
"As humans, we respond to instant gratification, so if we're doing exercise that we like then that enjoyment is instant and we're getting gratification straight away," he said.
Mr Feren's advice is to make small subtle changes that will have a lasting impact.
"It's about portion control, tweaking recipes to make them healthier, maybe cutting down on alcohol, and increasing your fruit and vegetable intake," he said.
"As I tell my patients, it's not about finding the perfect option, it's about finding a better option," he says.
Sources of help: Eat for Health: Australian Dietary Guidelines and tips and resources to help you meet them
Real Men Move: Expert advice, an exercise library, physical challenges and a men's blog
#GetYourManInTheKitchen: Recipes for popular breakfasts, lunches and dinners — made healthier
Needing some extra help
While striving for increased physical activity and a nutritious diet is always beneficial for health, Professor Dixon stresses men who are seriously overweight or obese may require medical assistance.
For these men, their physiology is a significant part of the problem, and therefore weight loss through lifestyle factors alone will likely have limited impact, he argues.
While genetics explains about half the tendency for obesity, environment in the early years of life is also a huge factor, Professor Dixon said.
"Genetics loads the gun and environment pulls the trigger," he said. "This is very poorly understood."
Some men may need to visit their GP for an assessment and to consider things beyond lifestyle changes, such as very low calorie diets, medications to assist with weight loss, or gastro-intestinal devices, Professor Dixon said.
|
{-# OPTIONS_GHC -Wno-unused-imports #-}
{-# OPTIONS_GHC -Wno-dodgy-exports #-}
-- | Arbitrary instances for Update System types.
module Test.Pos.Chain.Update.Arbitrary
( module Test.Pos.Chain.Update.Arbitrary.Core
) where
import Test.Pos.Chain.Update.Arbitrary.Core
|
// accumulate the uvds for later analysis
static void accum_uvd(std::vector<cv::Vec3d>&uvd)
{
static mutex m; lock_guard<mutex> l(m);
static long next_pos = 0;
assert(active_keypoints.size() == uvd.size());
static Mat accum_uvds(50000,2*jvl::active_keypoints.size(),DataType<double>::type,Scalar::all(0));
if(next_pos >= accum_uvds.rows)
return;
for(size_t iter = 0; iter < uvd.size(); ++iter)
{
accum_uvds.at<double>(next_pos,2*iter) = uvd.at(iter)[0];
accum_uvds.at<double>(next_pos,2*iter+1) = uvd.at(iter)[1];
}
next_pos++;
if(next_pos % 1000 == 0)
{
cout << "(INFO) accumulated " << next_pos << " uvds" << endl;
}
if(next_pos >= accum_uvds.rows)
{
cout << "(INFO) writting accum_uvd" << endl;
writeMatToFile(accum_uvds,accum_uvd_filename);
}
}
|
import numpy as np
nparam = 14
nwalkers = 4 * nparam
p0 = np.array([np.random.uniform(1.74, 1.78, nwalkers), # mass [M_sun]
np.random.uniform(44., 46.0, nwalkers), #r_c [AU]
np.random.uniform(110., 115, nwalkers), #T_10 [K]
np.random.uniform(0.60, 0.65, nwalkers), # q
np.random.uniform(-1.0, 0.0, nwalkers), # gamma
np.random.uniform(0.11, 1.0, nwalkers), # log10alpha
np.random.uniform(6.0, 7.0, nwalkers), # beta
np.random.uniform(0.0, 0.2, nwalkers), #log10 Sigma_c [log10 g/cm^2]
np.random.uniform(0.17, 0.18, nwalkers), #xi [km/s]
np.random.uniform(145.0, 150.0, nwalkers), #inc [degrees]
np.random.uniform(350.0, 359.0, nwalkers), #PA [degrees]
np.random.uniform(-31.2, -31.1, nwalkers), #vz [km/s]
np.random.uniform(0.1, 0.2, nwalkers), #mu_a [arcsec]
np.random.uniform(-0.6, -0.4, nwalkers)]) #mu_d [arcsec]
np.save("pos0.npy", p0)
|
President Obama's latest television ad seeks to answer Mitt Romney's primary question: Are you better off now than you were four years ago?
The Obama campaign says yes, saying the economy has recovered from the "worst financial collapse since the Great Depression," and has generated "30 months of private sector job growth, creating 4.6 million new jobs."
The ad says: "We're not there yet. But the real question is: Whose plan is better for you?"
It quotes former President Bill Clinton as saying that Romney plans for tax cuts and fewer regulations are "the same old policies that got us in trouble in the first place."
On the campaign trail, Romney notes that the unemployment rate remains above 8% on Obama's watch, and the federal debt now exceeds $16 trillion.
Romney spokesman Ryan Williams said, "Americans are not better off since President Obama took office: 23 million Americans are struggling for work, our national debt has hit a record-breaking $16 trillion and more Americans are in poverty and on food stamps than ever before."
Romney's plan "would lead to a more prosperous future for middle class families spurring growth and job creation, and ensuring that the next four years are better than the last four," Williams said.
The new ad -- "The Question" -- will air in Colorado, Florida, Iowa, New Hampshire, Nevada, Ohio, and Virginia.
|
//
// WBListController.h
// WBListKit
//
// Created by fangyuxi on 2017/3/28.
// Copyright © 2017年 <EMAIL>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "WBTableViewDataSource.h"
#import "WBCollectionViewDataSource.h"
#import "WBListDataSourceDelegate.h"
#import "WBListRefreshHeaderViewProtocol.h"
#import "WBListRefreshFooterViewProtocol.h"
// 可以理解为一个UIViewController的代理对象,避免了业务方需要继承一个基类控制器
// notice !!! 请不要将UITableView和UICollectionView一起用,
// 如果您的页面设计中存在两个列表,那么创建两个子控制器
// 可能是个更好的选择
@interface WBListController : NSObject<WBListDataSourceDelegate>
/**
创建列表控制器
@param viewController 'UIViewController'
@return listController
*/
- (nullable instancetype)initWithController:(nonnull UIViewController *)viewController;
/**
refresh
*/
- (void)dragToRefresh; //会引发refreshHeaderControl的刷新动画(调用refreshHeaderControl中的begin方法)
- (void)refreshImmediately; //直接刷新数据源,不会引发refreshHeaderControl变化
/**
加载更多的两种方式,通常,这两个方法需要手工调用的情况很少,加载更多的控件会在合适的时机自动调用它们
我能想到的场景就是在做预加载的情况下可以调用
*/
- (void)dragToLoadMore;
- (void)loadMoreImmediately;
/**
提供一个WBTableViewDataSource和UITableView
注意不能同时存在UITableView和UICollectionView,如果同时存在会产生异常
*/
@property (nonatomic, strong, nullable) WBTableViewDataSource *tableDataSource;
@property (nonatomic, strong, nullable) UITableView *tableView;
/**
提供一个WBCollectionViewDataSource和UICollectionView
注意不能同时存在UITableView和UICollectionView,如果同时存在会产生异常
*/
@property (nonatomic, strong, nullable) WBCollectionViewDataSource *collectionDataSource;
@property (nonatomic, strong, nullable) UICollectionView *collectionView;
/**
集成下拉刷新和上拉加载更多的接口,框架内部会在合适的时机调用接口中定义的方法
*/
@property (nonatomic, strong, nullable) id<WBListRefreshHeaderViewProtocol> refreshHeaderControl;
@property (nonatomic, strong, nullable) id<WBListRefreshFooterViewProtocol> loadMoreFooterControl;
@end
|
<filename>GoogleCodeJam2017/Round0/TidyNumbers/TidyNumbers.py
def __main__():
f = open("in.txt", 'r')
o = open("out.txt", 'w')
noOfCases = int(f.readline())
for testNo in range(noOfCases):
counter = 0
data = f.readline()
output = solver(data[:-1])
output = int(output)
o.write("Case #" + str(testNo + 1) + ": " + str(output) + "\n")
def solver(n):
n = list(n)
dex = inOrder(n)
while dex != -1:
n[dex] = str(int(n[dex]) - 1)
n = n[:dex + 1] + ['9'] * (len(n) - dex - 1)
dex = inOrder(n)
return ''.join(n)
def inOrder(n):
for i in range(len(n) - 1):
if n[i] > n[i + 1]:
return i
return -1
if __name__ == '__main__':
__main__()
|
// Free tiledb_query_t that was allocated on heap in c
func (q *Query) Free() {
if q.tiledbQuery != nil {
C.tiledb_query_free(&q.tiledbQuery)
}
}
|
<filename>src/main/java/com/en/adback/entity/adreplace/ResponseModel.java
package com.en.adback.entity.adreplace;
import lombok.Data;
import org.springframework.stereotype.Component;
/**
* @author YSH
* @crerate 201812
* @desc 统一返回实体类
*/
@Data
@Component
public class ResponseModel {
public int code;
public String name;
public String message;
public String detail;
public Object data;
public ResponseModel(int code, String message, Object data) {
this.code = code;
this.message = message;
this.data = data;
}
public ResponseModel(int code, String message) {
this.code = code;
this.message = message;
}
public ResponseModel(int code) {
this.code = code;
}
public ResponseModel() {
}
public int getCode() {
return code;
}
public ResponseModel setCode(int code) {
this.code = code;
return this;
}
public String getMessage() {
return message;
}
public ResponseModel setMessage(String message) {
this.message = message;
return this;
}
public Object getData() {
return data;
}
public ResponseModel setData(Object data) {
this.data = data;
return this;
}
public String getDetail() {
return detail;
}
public ResponseModel setDetail(String detail) {
this.detail = detail;
return this;
}
public String getName() {
return name;
}
public ResponseModel setName(String name) {
this.name = name;
return this;
}
public static ResponseModel warp(BusinessEnum adEnum){
ResponseModel model = new ResponseModel(adEnum.code,adEnum.cname);
model.setName(adEnum.name()).setDetail(adEnum.detail);
return model;
}
}
|
# Generated by Django 3.2.7 on 2021-09-08 06:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('invoice2', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='invoice',
name='invoice_status',
field=models.CharField(choices=[('waiting', 'En cours'), ('done', 'Payée')], default='waiting', max_length=25, verbose_name='Statut'),
),
]
|
// Help get help from given interface and populate the resp
func Help(plugin Interface, resp *string) error {
help, err := plugin.Help()
if err != nil {
return err
}
*resp = help
return nil
}
|
<filename>src/whippi/src/main/java/com/el/whippi/components/EHAlign.java<gh_stars>0
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.el.whippi.components;
/**
*
* @author david
*/
public enum EHAlign {
LEFT("left", "flex-start"),
CENTER("center", "center"),
RIGHT("right", "flex-end");
private final String cssValue;
private final String flexValue;
private EHAlign(String cssValue, String flexValue) {
this.cssValue = cssValue;
this.flexValue = flexValue;
}
public String getCssValue() {
return cssValue;
}
public String getFlexValue() {
return flexValue;
}
}
|
def create_item_from_task(doc, method):
if doc.project:
so_detail = ''
project_template, sales_order = frappe.db.get_value('Project', doc.project, ['project_template', 'sales_order'])
if sales_order:
sales_order_doc = frappe.get_doc("Sales Order", sales_order)
so_detail = [so_item for so_item in sales_order_doc.items if so_item.get('item_code') == doc.subject]
if so_detail and so_detail[0]:
doc.so_detail = so_detail[0].get('name')
if project_template:
project_template_doc = frappe.get_doc("Project Template", project_template)
if project_template_doc:
template_task = [template for template in project_template_doc.tasks if template.get('subject') == doc.subject]
if template_task and template_task[0]:
if len(template_task) > 1:
frappe.throw(_('Project Template contains multiple Tasks with same Subject {}')
.format(bold(template_task[0].get('subject'))), title = _('Did not Create Tasks'))
if template_task[0].get('is_milestone') == 1:
doc.is_milestone = template_task[0].get('is_milestone')
doc.task_item = template_task[0].get('task_item')
doc.task_item_uom = template_task[0].get('task_item_uom')
doc.task_item_group = template_task[0].get('task_item_group')
doc.billable_amount = so_detail[0].get('amount') if so_detail else template_task[0].get('billable_amount')
if not doc.is_milestone:
return
doc.item = get_item_link(doc)
|
Check out this premiere of Junius' new video for “All Shall Float.” The song is culled from the band's album Reports From The Threshold Of Death, out now via Prosthetic. They'll be kicking off a co-headlining tour with O'Brother next week; dates can be seen below.
2/16/12 Washington, DC DC9
2/17/12 Boston, MA Brighton Music Hall
2/18/12 Brooklyn, NY Knitting Factory
2/19/12 Philadelphia,PA North Star Bar
2/21/12 Pittsburgh, PA Stage AE
2/22/12 Columbus, OH Basement
2/23/12 Grand Rapids, MI Pyramid Scheme
2/24/12 Chicago,IL Beat Kitchen
2/25/12 St Louis, MO Firebird
2/26/12 Lawrence,KS Jackpot Saloon
2/28/12 Denver, CO Marquis Theatre
2/29/12 Salt Lake City, UT Kilby Court
3/2/12 San Francisco, CA Bottom Of The Hill
3/3/12 Los Angeles, CA Satellite
3/4/12 San Diego, CA Soda Bar
3/6/12 Tucson, AZ Club Congress
3/7/12 Mesa, AZ Nile Underground
3/9/12 Austin, TX Red 7
3/10/12 Dallas, TX Bryan St. Tavern
3/11/12 Houston, TX Warehouse Live
|
package io.cucumber.messages;
import java.time.Duration;
import java.time.Instant;
public class TimeConversion {
public static Messages.Timestamp javaInstantToTimestamp(Instant instant) {
return Messages.Timestamp.newBuilder()
.setSeconds(instant.getEpochSecond())
.setNanos(instant.getNano())
.build();
}
public static Messages.Duration javaDurationToDuration(Duration duration) {
return Messages.Duration.newBuilder()
.setSeconds(duration.getSeconds())
.setNanos(duration.getNano())
.build();
}
public static Instant timestampToJavaInstant(Messages.Timestamp timestamp) {
return Instant.ofEpochSecond(timestamp.getSeconds(), timestamp.getNanos());
}
public static Duration durationToJavaDuration(Messages.Duration duration) {
return Duration.ofSeconds(duration.getSeconds(), duration.getNanos());
}
}
|
def cli_binparse(binparse_args):
try:
if binparse_args.template:
template_data = json.load(binparse_args.template)
configs = template_data["configs"]
dummy_metadata = create_dummy_metadata(
configs["nb_fw_img"], configs["nb_fw_banks"])
else:
template_data = {"uuids": {"locations": {}, "entries": {}}}
dummy_metadata = create_dummy_metadata(
binparse_args.nb_fw_imgs, binparse_args.nb_banks)
assert validate_metadata(dummy_metadata)
fwupd = fwupd_from_dict(dummy_metadata)
binparse_args.binfile.readinto(fwupd)
if binparse_args.display:
fwupd.display()
data = fwupd_to_dict(fwupd, binparse_args.nb_fw_imgs,
binparse_args.nb_banks,
list(template_data["uuids"]["entries"].keys()),
template_data["uuids"]["locations"])
json.dump(data, binparse_args.jsonfile, indent=4)
finally:
if binparse_args.template:
binparse_args.template.close()
binparse_args.binfile.close()
binparse_args.jsonfile.close()
|
Capt. Nicholas Ingham is loaded onto a bus after his arrival at Bagram air base from Kandahar. (Nikki Kahn/The Washington Post)
Shortly after midnight on this frigid night, Capt. Nicholas Ingham arrived at this massive air base, in the belly of an Air Force C-130. As the back door swung open, flooding the cabin with light, the heavily sedated Marine, strapped onto a stretcher, blinked away a tear. An American flag tattooed on his chest rose and fell gently as a ventilator pumped air into his collapsed lung.
A team of doctors, nurses and medical technicians assigned to the trauma center here gently offloaded Ingham and a handful of other injured troops with mechanical precision, the first stop on their journey home.
It would be the same journey thousands of wounded warriors had made before them.
These days, 12 years after the start of America’s longest war, far fewer U.S. troops are being killed or wounded in Afghanistan. The military’s drawdown has picked up pace, and Afghans have begun to shoulder the brunt of the fighting. But the war continues to churn out American casualties by the dozen each week. Their injuries rarely make headlines.
Still, military health-care experts say those wounded in battle are coming home more severely injured than at any time since 2006, a sobering sign of the strength of the insurgency at the twilight of the war. Many of the injured arrive on the medical evacuation flights that land twice a week at Joint Base Andrews in Maryland physically intact but mentally wrecked, struggling with the demons of multiple deployments over the past decade.
Their caretakers, part of a massive wartime medical evacuation system that is being wound down, have a rare and often grim vantage on the final chapter of the Afghan war — a conflict that is increasingly being endured, rather than fought, largely out of sight.
Medical personnel remove the clutter of machines and wires used in Capt. Nicholas Ingham’s transport to Bagram. (Nikki Kahn/The Washington Post)
Ingham is monitored in the base’s emergency room. The Marine captain was seriously in a suicide bombing in Afghanistan’s Helmand province. (Nikki Kahn/The Washington Post)
“Are you feeling any pain?” Maj. Scott A. Zakaluzny, a surgeon at Bagram’s hospital, asked Ingham as his colleagues inspected the gashes torn into his back, arms and legs by shrapnel from a suicide bombing. Looking miserable, Ingham, 27, opened his eyes slightly and shook his head.
Out of mind
In Washington, among policymakers, the Afghan war is increasingly discussed with exasperation, like a curse. It is the type of warfare the United States must avoid at all cost, President Obama argued during his State of the Union address.
“We must fight the battles that need to be fought,” Obama told those in attendance, among them a soldier disfigured by a roadside bomb in Afghanistan. “Not those that terrorists prefer from us — large-scale deployments that drain our strength and may ultimately feed extremism.”
Also in the House chamber that night was Rep. Adam Kinzinger (R-Ill.), a former Air Force pilot who flew intelligence and medevac missions in Iraq and Afghanistan.
“I think there is a sense in the military that Americans are not paying attention anymore,” he had told a reporter a few weeks earlier, shortly after returning from a visit to Kabul. “I think they’re right, to be honest. There is a sense that it’s over, but it’s not.”
Medical personnel move Ingham at Bagram air base in Afghanistan in December. (Nikki Kahn/The Washington Post)
There are roughly 33,700 U.S. troops in Afghanistan, down from a peak of more than 100,000 in the spring of 2011.
Those who have been wounded here have had a better chance at survival than in any previous U.S. war — a result of stunning achievements in battlefield care. But in some ways, combat medics say, the work in Afghanistan has become more challenging. The injury severity score, a measure that takes into account the extent of a patient’s wounds, has gone up gradually in Afghanistan since 2006, according to data compiled by the military.
Col. Kirby Gross, a physician who studies trauma care for wounded troops and who is deployed at Bagram, struggled to find the right words to explain how insurgents have become so proficient at killing and maiming American service members.
“They’re nimble,” was as much of a compliment as he was willing to pay.
Medical professionals say the combat evacuation system that sprang up at the height of the Iraq war to care for the wounded is being pared down. In December, Bagram became the only base in Afghanistan with a top-tier trauma center, which means that patients across the battlefield in need of specialized care face longer journeys. As the footprint becomes smaller in coming months, the margin of error will widen, said Lt. Col. Mary Danko, the chief Air Force flight nurse in Bagram.
“Right now, it’s a great process we have,” she said. “But you worry about the one life you won’t be able to save because of the lack of resources.”
At the U.S. military hospital in Landstuhl, Germany, the three miles of hallways that were once brimming with war victims are now largely empty. Air Force Lt. Col. David Zonies, the chief of trauma and critical care at Landstuhl, expressed longer-term concerns on this morning, noting that when his tour was up, he wouldn’t be replaced.
“There’s a very serious concern that we will potentially not learn the lessons of this war for the next one,” he said. “After Korea and Vietnam, the money ran out, the resources ran out, skills started to wane. Are we going to make the same mistake after this conflict?”
A doctor, nurse and medical technician tend to Ingham on the eight-hour flight from Bagram to Landstuhl, Germany. (Nikki Kahn/The Washington Post)
‘I felt my lung bubbling’
Ingham had deployed twice before to Afghanistan during periods when U.S. troops battled insurgents every day. His last wartime assignment was to lead a group of Georgian soldiers tasked with preventing militants from firing rockets into a sprawling NATO base in Helmand province, in southwestern Afghanistan.
Early in the afternoon of Dec. 14, a lone driver in a blue sedan steered his vehicle toward a patrol he was leading. The Georgian soldiers appeared edgy, and Ingham worried that if they overreacted, he could have a civilian casualty incident on his watch. So he walked toward the driver, alone, hoping to wave him off.
“Civilian casualties in Afghanistan are a particularly touchy subject,” he would say later. “I was trying to prevent something that could have turned into a very bad event.”
As Ingham moved toward the car, the driver pressed on toward him. The lanky captain raised his rifle in a final effort to get him to back off. By then, he was close enough to hear the man at the wheel utter “Allahu akbar,” or “God is great,” words that could have meant only one thing in that context. Ingham opened fire, pumping 18 bullets into the driver, whose vehicle continued to inch toward him.
“I turned around and got a step and a half and it exploded,” Ingham said, comparing the fury of the blast to a massive wave that thrusts you from behind. The explosion sent the car’s engine flying 100 meters and dug out a massive crater in the ground. As he limped away from the plume of smoke toward his men, Ingham took a breath and realized he had been badly hurt.
The gash on Ingham’s back had mostly healed as he waited for discharge on Jan. 9. (Nikki Kahn/The Washington Post)
“I felt my lung bubbling,” he said, recounting the attack and its aftermath weeks later at Walter Reed National Military Medical Center in Bethesda. “I knew something had gone through my chest.”
Ingham packs his truck after being discharged from Walter Reed Medical Center in Bethesda on Jan. 9. (Nikki Kahn/The Washington Post)
‘They think the war’s over’
Ingham’s doctors expect he will make a full recovery and could soon lead Marines in combat again. But as he spoke on this morning, he was surrounded by service members who won’t. One, Lance Cpl. Paul Shupert, who had been deployed in the same province as Ingham, had arrived at Walter Reed a few weeks before, missing part of his right leg.
“It’s a shame you guys are coming home hurt,” Ingham told the 22-year-old Marine, shaking his head.
“We know what we signed up for,” Shupert replied quietly, his legs draped by a heavy black blanket with leopard-print edges.
Lance Cpl. Paul Shupert arrives at Joint Base Andrews in Maryland from Afghanistan. (Nikki Kahn/The Washington Post)
There was no sense talking Shupert out of following in his father’s footsteps when, at 17, he persuaded his parents in Jefferson City, Tenn., to sign a waiver allowing him to join the Marines. When he deployed to Afghanistan for the first time last summer, his mother was paralyzed by fear.
“Everyone was thinking I was taking it too hard,” Tonya Shupert said. “They think the war’s over.”
Tonya Shupert is nothing if not a patriot, often donning “Marine Corps Mom” T-shirts. But like many in military families, she struggled to understand why men such as her son were still being sent to Afghanistan.
“I think there are some things we shouldn’t be involved in,” she said one evening while doing laundry at the patient living quarters. “Some of those people have been fighting for years and years, and us going there is not going to change that.”
The war changed her son permanently the afternoon of Nov. 25, after he had volunteered to help explosive ordnance disposal experts search a compound. Shupert had carefully followed the footsteps of the Marine in front of him, mindful that the compound could be surrounded by land mines.
“I guess I must have missed a spot,” he would say later. “I did back flips through the air and remember landing on my back and looking at my legs. My pants were blown off, and I saw it had taken off the foot.”
[Read more about Lance Cpl. Shupert’s journey here.]
Shupert has not allowed himself a moment of self-pity since that day, arguing that dwelling on his loss will not make the limb grow back. When he first saw his family at Walter Reed after being evacuated, they were comforted that he had not lost his sense of humor. The ordeal was a perfect excuse for a new tattoo, Shupert told them. He would ink the words “Part A” on his thigh and label his prosthetic leg “Part B.”
At Joint Base Andrews, Army Col. Michael J. Worth greets wounded troops returning from Afghanistan. (Nikki Kahn/The Washington Post)
Keeping a record
After each flight arrives at Andrews, Army Col. Michael J. Worth writes a report with tiny narratives about each wounded warrior he has debriefed.
A few are bizarre, for instance the ordeal of a female lieutenant nurse who was accidentally shot in the foot by her boss.
“She doesn’t know precisely what her boss was doing to cause the discharge,” wrote Worth, who is tasked with making sure patients get to the right final destination for additional care.
Some of the narratives are haunting. Only after failing to get a young soldier to talk after one flight did Worth realize that the Army Ranger had sustained serious wounds to his genitals.
But it is perhaps the mental wounds that trouble the colonel the most. He had recently welcomed home an Army couple. The wife, a staff sergeant assigned to a transportation unit who had been deployed seven times, had shot herself in the abdomen in an apparent suicide attempt. Her husband was relieved to be home but ashen as he escorted his unconscious spouse off the plane.
Like most military officers, Worth tries to focus on the mission and not dwell on the politics of war.
“We execute the lawful orders of the president,” he said. “What I see on the airplane is a consequence of that, and I’m here to help them and deal with them. Any thoughts I have as a private citizen will have to wait until I leave.”
Lance Cpl. Paul Shupert shares a moment in prayer upon his arrival at Joint Base Andrews. (Nikki Kahn/The Washington Post)
And so there was stoic silence among the military personnel awaiting Shupert’s flight on a cold, windy evening in early December. As the plane turned on its landing lights and tipped its nose down, it was commanded to turn back skyward and circle overhead for more than 30 minutes. Vice President Biden’s team was ready to take off for a trip to Asia, so authorities at Andrews froze all other movement on the airfield.
On the ground, some in the medical team awaiting Shupert shivered, but they kept their thoughts to themselves. The Marine never knew the flight was diverted. Told about it later, his only reaction was: “Oh.”
|
/*
* Copyright 2019 <NAME> <<EMAIL>>
*
* This source code is licensed under the MIT license which is detailed in the LICENSE.txt file.
*/
import "jest";
import { ArrayKeyTrie } from "./ArrayKeyTrie";
const TEST_ITEMS: Array<[Array<number>, string]> = [
[[1], "first"],
[[2, 3], "key with two elements"],
[[1, 4], "key with overlapping elements"],
[[1, 4, 5, 6, 7, 8], "long key"],
];
function testData(): ArrayKeyTrie<number, string> {
const trie = new ArrayKeyTrie<number, string>();
for (const kvPair of TEST_ITEMS) {
trie.insert(kvPair[0], kvPair[1]);
}
return trie;
}
describe.each([...TEST_ITEMS, [[575], null]])("Insert/get cases", (key: number[], value: string) => {
test(`insert/get value ${value}`, done => {
const data = testData();
expect(data.get(key)).toBe(value);
done();
});
});
test(`prefix length 3`, done => {
const data = testData();
expect(data.getPrefix([1, 4, 5]).value).toBe(null);
expect(data.getPrefix([1, 4, 5]).length).toBe(3);
done();
});
|
<filename>vendor/github.com/openshift/installer/pkg/asset/installconfig/openstack/validation/machinepool.go
package validation
import (
"fmt"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/apimachinery/pkg/util/validation/field"
guuid "github.com/google/uuid"
"github.com/openshift/installer/pkg/types/openstack"
)
type flavorRequirements struct {
RAM, VCPUs, Disk int
}
const (
minimumStorage = 25
)
var (
ctrlPlaneFlavorMinimums = flavorRequirements{
RAM: 16,
VCPUs: 4,
Disk: minimumStorage,
}
computeFlavorMinimums = flavorRequirements{
RAM: 8,
VCPUs: 2,
Disk: minimumStorage,
}
)
// ValidateMachinePool checks that the specified machine pool is valid.
func ValidateMachinePool(p *openstack.MachinePool, ci *CloudInfo, controlPlane bool, fldPath *field.Path) field.ErrorList {
allErrs := field.ErrorList{}
var checkStorageFlavor bool
// Validate Root Volumes
if p.RootVolume != nil {
if p.RootVolume.Type == "" {
allErrs = append(allErrs, field.Invalid(fldPath.Child("rootVolume").Child("type"), p.RootVolume.Type, "Volume type must be specified to use root volumes"))
}
if p.RootVolume.Size < minimumStorage {
allErrs = append(allErrs, field.Invalid(fldPath.Child("rootVolume").Child("size"), p.RootVolume.Size, fmt.Sprintf("Volume size must be greater than %d to use root volumes, had %d", minimumStorage, p.RootVolume.Size)))
}
} else {
// Not using root volume, so must check flavor
checkStorageFlavor = true
}
if controlPlane {
allErrs = append(allErrs, validateFlavor(p.FlavorName, ci, ctrlPlaneFlavorMinimums, fldPath.Child("type"), checkStorageFlavor)...)
} else {
allErrs = append(allErrs, validateFlavor(p.FlavorName, ci, computeFlavorMinimums, fldPath.Child("type"), checkStorageFlavor)...)
}
allErrs = append(allErrs, validateZones(p.Zones, ci.Zones, fldPath.Child("zones"))...)
allErrs = append(allErrs, validateUUIDV4s(p.AdditionalNetworkIDs, fldPath.Child("additionalNetworkIDs"))...)
allErrs = append(allErrs, validateUUIDV4s(p.AdditionalSecurityGroupIDs, fldPath.Child("additionalSecurityGroupIDs"))...)
return allErrs
}
func validateZones(input []string, available []string, fldPath *field.Path) field.ErrorList {
// check if machinepool default
if len(input) == 1 && input[0] == "" {
return field.ErrorList{}
}
allErrs := field.ErrorList{}
availableZones := sets.NewString(available...)
for idx, zone := range input {
if !availableZones.Has(zone) {
allErrs = append(allErrs, field.Invalid(fldPath.Child("zone").Index(idx), zone, "Zone either does not exist in this cloud, or is not available"))
}
}
return allErrs
}
func validateUUIDV4s(input []string, fldPath *field.Path) field.ErrorList {
allErrs := field.ErrorList{}
for idx, uuid := range input {
if !validUUIDv4(uuid) {
allErrs = append(allErrs, field.Invalid(fldPath.Index(idx), uuid, "valid UUID v4 must be specified"))
}
}
return allErrs
}
// validUUIDv4 checks if string is in UUID v4 format
// For more information: https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)
func validUUIDv4(s string) bool {
uuid, err := guuid.Parse(s)
if err != nil {
return false
}
// check that version of the uuid
if uuid.Version().String() != "VERSION_4" {
return false
}
return true
}
// validate flavor checks to make sure that a given flavor exists and meets the minimum requrement to run a cluster
// this function does not validate proper install config usage
func validateFlavor(flavorName string, ci *CloudInfo, req flavorRequirements, fldPath *field.Path, storage bool) field.ErrorList {
if flavorName == "" {
return nil
}
flavor, _ := ci.Flavors[flavorName]
if flavor.Flavor == nil {
return field.ErrorList{field.NotFound(fldPath, flavorName)}
}
// OpenStack administrators don't always fill in accurate metadata for
// baremetal flavors. Skipping validation.
if flavor.Baremetal {
return field.ErrorList{}
}
errs := []string{}
if flavor.RAM < req.RAM {
errs = append(errs, fmt.Sprintf("Must have minimum of %d GB RAM, had %d GB", req.RAM, flavor.RAM))
}
if flavor.VCPUs < req.VCPUs {
errs = append(errs, fmt.Sprintf("Must have minimum of %d VCPUs, had %d", req.VCPUs, flavor.VCPUs))
}
if flavor.Disk < req.Disk && storage {
errs = append(errs, fmt.Sprintf("Must have minimum of %d GB Disk, had %d GB", req.Disk, flavor.Disk))
}
if len(errs) == 0 {
return field.ErrorList{}
}
errString := "Flavor did not meet the following minimum requirements: "
for i, err := range errs {
errString = errString + err
if i != len(errs)-1 {
errString = errString + "; "
}
}
return field.ErrorList{field.Invalid(fldPath, flavor.Name, errString)}
}
|
Incipient Feature extraction based on singular value decomposition and undecimated lifting scheme packet
Vibration signal measured from machinery is often heavily interfered with by various noises. This paper puts forward a joint method to reduce noises, acquire the enhanced signals from the decomposed subbands and extract the incipient fault features. First, the signals are denoised by the method of singular value decomposition (SVD). Then, the denoised signal is decomposed into four layers by undecimated lifting scheme packet (ULSP). Finally, all 16 subbands of the fourth layer are plotted and the rich-fault-information subbands are used to extract incipient features. The effectiveness of the proposed method is validated with simulated data. Furthermore, in the processing of engineering signal, the weak feature caused by the fault of a valve in reciprocating compressor is bulged and the early failure of spring is detected.
|
package edu.tamu.scholars.middleware.theme.model;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Embeddable;
@Embeddable
public class Navbar {
@Column(name = "navbar_brand_text")
private String brandText;
@Column(name = "navbar_brand_uri")
private String brandUri;
@Column(name = "navbar_logo_uri")
private String logoUri;
@ElementCollection
@CollectionTable(name = "theme_navbar_links")
private List<Link> links;
@ElementCollection
@CollectionTable(name = "theme_navbar_variables")
private List<Style> variables;
public Navbar() {
super();
this.links = new ArrayList<Link>();
this.variables = new ArrayList<Style>();
}
public String getBrandText() {
return brandText;
}
public void setBrandText(String brandText) {
this.brandText = brandText;
}
public String getBrandUri() {
return brandUri;
}
public void setBrandUri(String brandUri) {
this.brandUri = brandUri;
}
public String getLogoUri() {
return logoUri;
}
public void setLogoUri(String logoUri) {
this.logoUri = logoUri;
}
public List<Link> getLinks() {
return links;
}
public void setLinks(List<Link> links) {
this.links = links;
}
public List<Style> getVariables() {
return variables;
}
public void setVariables(List<Style> variables) {
this.variables = variables;
}
}
|
// Author: magician
// File: demo1.go
// Date: 2021/1/1
package main
import "fmt"
func main() {
m := map[int]struct{
name string
age int
}{
1: {"user1", 20},
2: {"user2", 20},
}
println(m[1].name)
//m1 := make(map[string]int, 1000)
m1 := map[string]int{
"a": 1,
}
if v, ok := m1["a"]; ok {
println(v)
}
println(m1["c"])
m1["b"] = 2
delete(m1, "c")
println(len(m1))
for k, v := range m1 {
println(k, v)
}
type user struct {
name string
}
m3 := map[int]user{
1: {"user1"},
}
//m3[1].name = "Tom"
u := m3[1]
u.name = "Tom"
m3[1] = u
fmt.Println(m3)
m4 := map[int]*user{
1: &user{"user1"},
}
m4[1].name = "Jack"
fmt.Println(m4)
for i := 0; i < 5; i++ {
m := map[int]string{
0: "a", 1: "a", 2: "a", 3: "a", 4: "a",
5: "a", 6: "a", 7: "a", 8: "a", 9: "a",
}
for k := range m {
m[k+k] = "x"
delete(m, k)
}
fmt.Println(m)
}
}
|
// WithOAuth2Service applies a custom rest.OAuth2Service to the OAuth2 client
//goland:noinspection GoUnusedExportedFunction
func WithOAuth2Service(oauth2service rest.OAuth2Service) ConfigOpt {
return func(config *Config) {
config.OAuth2Service = oauth2service
}
}
|
-- tests that we don't normalize the bodies of aliases
data Zog = V
{-@ predicate MMin V X Y = (if X < Y then V = X else V = Y) @-}
thing :: Int
thing = 12
{-@ thing :: { MMin 1 1 2 } @-}
main = pure ()
|
def run(
self,
head: Optional[Union[str, pygit2.Commit]] = None,
*,
visitors: Sequence = (),
all_results: bool = False,
) -> Union[Dict[str, Any], Dict[pygit2.Commit, Dict[str, Any]]]:
reflect_worktree = False
if not head:
head = self.repo[self.repo.head.target]
diff_to_head = self.repo.diff(head)
reflect_worktree = diff_to_head.stats.files_changed > 0
elif isinstance(head, str):
head = self.repo[head]
visited_results = self._run_on_history(head, visitors=visitors)
head_result = visited_results[head]
if reflect_worktree:
worktree_result = {}
verflags = self._get_rpmverflags(self.path, name=self.name)
if not verflags:
verflags = self._get_rpmverflags_for_commit(self.repo[self.repo.head.target])
if not verflags:
verflags = {
"epoch-version": None,
"prerelease": False,
"extraver": None,
"snapinfo": None,
"base": 1,
}
worktree_result["epoch-version"] = epoch_version = verflags["epoch-version"]
if epoch_version == head_result["epoch-version"]:
release_number = head_result["release-number"] + 1
else:
release_number = 1
worktree_result["release-number"] = release_number
prerel_str = "0." if verflags["prerelease"] else ""
tag_string = "".join(f".{t}" for t in (verflags["extraver"], verflags["snapinfo"]) if t)
base = verflags["base"]
if base is None:
base = 1
release_number_with_base = release_number + base - 1
worktree_result[
"release-complete"
] = release_complete = f"{prerel_str}{release_number_with_base}{tag_string}"
if not self.specfile.exists():
changelog = ()
else:
previous_changelog = head_result.get("changelog", ())
changed_files = self._files_changed_in_diff(diff_to_head)
skip_for_changelog = all(
any(fnmatchcase(f, path) for path in self.changelog_ignore_patterns)
for f in changed_files
)
if not skip_for_changelog:
try:
signature = self.repo.default_signature
changelog_author = f"{signature.name} <{signature.email}>"
except KeyError:
changelog_author = "Unknown User <[email protected]>"
changelog_date = dt.datetime.utcnow().strftime("%a %b %d %Y")
changelog_evr = f"{epoch_version}-{release_complete}"
changelog_header = f"* {changelog_date} {changelog_author} {changelog_evr}"
changelog_item = "- Uncommitted changes"
changelog_entry = {
"commit-id": None,
"data": f"{changelog_header}\n{changelog_item}",
}
changelog = (changelog_entry,) + previous_changelog
else:
changelog = previous_changelog
worktree_result["changelog"] = changelog
visited_results[None] = worktree_result
if all_results:
return visited_results
elif reflect_worktree:
return worktree_result
else:
return head_result
|
LIST WEEK concludes here at ONCE UPON A GEEK. This time out I’ve assembled a handful of lists to help you get through your Friday. If you’ve got any great lists you’d like to add, feel free to drop them in the comments for everyone to enjoy!
From the Houston Chronicle online comes “Fifteen geek movies to see before you die”. One writers opinion of the top Must-Watch-for-Geek-Cred movies. There are definitely a few surprises here, such as “12 Monkeys” and “Repo Man”.
From Right Wing News comes “The Top 10 Worst Geek Pick-Up Lines“. Mostly Star Trek and Star Wars references, but still a fun list.
From Christian’s & Scott’s Interactive Top Ten List comes “Top Ten Differences between Nerds and Geeks“. Great list. I especially love #5.
From my buddy Stuart Renton comes “Ten TV Shows I Wish They Would Bring Back“. This is a great list! Check out the comments for my thoughts on these particular shows. A follow-up to that post is “Ten TV Shows They Should Never Bring Back“
Finally from Scott Johnson, creator and artist for ExtraLife, comes “The 56 Geeks Project“. This is a really interesting project. It started out as a doodle or two Johnson did in a sketchbook. He was just jotting down some of his favorite geeky stereotypes and thought, “why not flesh this out a bit and do a bunch of them?”. He stopped at 56 geeks because that’s what he could fit on a 20×30 inch poster. Click here to see the full-size image.
That’s all for now. Thanks for reading!
|
//////////
// hyperbolic secant (trigonometric function)
//////////
static ex csch_evalf(const ex & x)
{
if (is_exactly_a<numeric>(x))
return sinh(ex_to<numeric>(x)).inverse();
return csch(x).hold();
}
|
<filename>src/modules/Dimmer/Dimmer.d.ts
import * as React from 'react'
import DimmerDimmable from './DimmerDimmable'
import DimmerInner from './DimmerInner'
export interface DimmerProps {
[key: string]: any
/** An active dimmer will dim its parent container. */
active?: boolean
/** A dimmer can be formatted to be fixed to the page. */
page?: boolean
}
interface DimmerComponent extends React.ComponentClass<DimmerProps> {
Dimmable: typeof DimmerDimmable
Inner: typeof DimmerInner
}
declare const Dimmer: DimmerComponent
export default Dimmer
|
This is a short message to release an IP/ICMPv4 fuzzer, destinated for UTesting, and else.I'd like to thanks Philippe Biondi for making such a library as scapyIn this example we go deep as layer 3 fuzzing, thanks scapy, we fuzz IP and ICMP by disassembling the packet in bytes, and modifing it, and then joining it and sending backYou can simply capture a ping echo (for example) you sended and then fuzz it, you will need to replace the checksum bytes by 00 00 always, for more information :http://www.networksorcery.com/enp/protocol/ip.htmhttp://www.networksorcery.com/enp/protocol/icmp.htmYou can easily adapt this fuzzer to any kind of networking fuzzing.Dont forget it's a prototype, and i ASSUME you know what you're doing, do not ask for help.As blogger is not python friendly: http://pastebin.com/f5c536013Have fun with this concept :)#!/usr/bin/pythonimport random, sys,logging,osfrom random import *from scapy.all import *logging.getLogger("scapy").setLevel(1)##fuzzer core##def onerand(packet):pack = packet[:]byte = str(chr(choice(range(256))))pack[choice(range(len(packet)))]= byteprint "fuzzing rand byte:%s
" % (byte.encode("hex"))return packdef doublerand(packet):pack = packet[:]byte = str(chr(choice(range(256))))byte2 = str(chr(choice(range(256))))pack[choice(range(len(packet)))]= bytepack[choice(range(len(packet)))]= byte2print "fuzzing rand byte:%s byte2:%s
" % (byte.encode("hex"),byte2.encode("hex"))return packdef longrand(packet):pack = packet[:]byte = str(chr(choice(range(256))))lon = randrange(0,600)pack[choice(range(len(packet)))]= byte*lonprint "fuzzing rand byte:%s len:%s
" % (byte.encode("hex"),lon)return packdef longerrand(packet):pack = packet[:]byte = str(chr(choice(range(256))))lon = randrange(0,600)pack[choice(range(len(packet)))]= bytepack[choice(range(len(packet)))]= byte*lonprint "fuzzing rand byte:%s len:%s
" % (byte.encode("hex"),lon)return packdef longerrandnull(packet):pack = packet[:]byte = str(chr(choice(range(256))))lon = randrange(0,600)pack[choice(range(len(packet)))]= bytepack[choice(range(len(packet)))]= byte+"\x00"*lonprint "fuzzing rand byte:%s len:%s
" % (byte.encode("hex"),lon)return packdef opnum(packet):pack = packet[:]byte = str(chr(choice(range(0,2))))pack[choice(range(len(packet)))]= byteprint "fuzzing opnum:%s
" % (byte.encode("hex"))return packdef doubleopnum(packet):pack = packet[:]byte = str(chr(choice(range(0,2))))byte2 = str(chr(choice(range(0,2))))pack[choice(range(len(packet)))]= bytepack[choice(range(len(packet)))]= byte2print "fuzzing opnum:%s et opnum no-2:%s
" % (byte.encode("hex"),byte2.encode("hex"))return packdef remove1(packet):pack = packet[:]i = randrange(0, len(pack)-1)b = pack[:i] + pack[i+1:]print "remove one char fuzz, removed :%s"%(pack[i].encode("hex"))return bdef changenull(packet):pack = packet[:]null = [i for i in range(len(pack)) if pack[i] == '\x00']byte = str(chr(choice(range(256))))pack[choice(null)] = byteprint "replaced one null by a %s"%(byte.encode("hex"))return packdef removenull(packet):pack = packet[:]null = [i for i in range(len(pack)) if pack[i] == '\x00']num = choice(null)del pack[choice(null)]print "deleted null no-:%s"%(num)return packdef randfunc(packet):func = choice([onerand,doublerand,longrand,longerrand,longerrandnull,removenull,changenull,remove1,doubleopnum,opnum])print "using %s fuzzing type (HARD)"%(func.__name__)return func(packet)def zenfunc(packet):func = choice([onerand,removenull,changenull,remove1,doubleopnum,opnum])print "using %s fuzzing type (ZEN)"%(func.__name__)return func(packet)##End fuzzer core##ip = [chr(int(a, 16)) for a in """4e fe 01 08 00 00 40 00 fa 01 00 00 c0 a8 02 64c0 a8 02 65 44 24 0d 01 c0 a8 02 64 04 80 30 7700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00""".split()]icmp = [chr(int(a, 16)) for a in """08 00 00 00 00 00 00 04 75 54 08 4b 00 00 00 0004 6b 0d 00 00 00 00 00 20 20 20 20 20 20 20 2020 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2020 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2020 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2020 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2020 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2020 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2020 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2020 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2020 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2020 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2020 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20""".split()]def longueur(payload):length = struct.pack(">i", len(''.join(payload)))a= length[2:4]pack = payload[:]pack[2:4]= areturn packdef OpIP(packet):pack = packet[:]num = str(chr(choice(range(1,9))))num1 = str(chr(choice(range(0,150))))#pack[0] = num#pack[9] = num1print "fuzzing version OPNUM no-:%s and nh OPNUM no-:%s"%(num.encode("hex"),num1.encode("hex"))return packdef OpIcmp(packet):pack = packet[:]num = str(chr(choice(range(0,42))))pack[0] = numprint "fuzzing ICMP OPNUM no-:%s"%(num.encode("hex"))return pack##checksum calculation and replacement####checksum() ripped from scapy, hard to do better...def checksum(pkt):pkt=str(pkt)s=0if len(pkt) % 2 == 1:pkt += "\0"for i in range(len(pkt)/2):s = s + (struct.unpack("!H",pkt[2*i:2*i+2])[0])s = (s >> 16) + (s & 0xffff)s += s >> 16return ~s & 0xffff##/checksum() ripped from scapy, hard to do better...def add_checksum(packet):a = struct.pack(">i",checksum(''.join(packet)))b = a[2:4]pack = packet[:]pack[2:4]=breturn packdef add_ip_checksum(packet):a = struct.pack(">i",checksum(''.join(packet)))b = a[2:4]pack = packet[:]pack[10:12]=breturn pack##checksum calculation and replacement##### snort is an example of hookin' a prog in your fuzzin'pid = os.system("pidof snort")while os.system("pidof snort") == pid:a = longueur(zenfunc(ip)+add_checksum(randfunc(icmp)))b = ''.join(add_ip_checksum(a))packet = (Ether(dst="ff:ff:ff:ff:ff:ff",type=0x0800)/b)print "packet IP:%s
"%(b.encode("hex"))sendp(packet)##enjoy !
|
Obstetrical lumbosacral plexus injury
Injuries to the lumbosacral plexus during labor and delivery have been reported in the literature for years, but have lacked electrophysiologic testing to substantiate the location of the nerve injury. We report 2 cases with comprehensive electrophysiologic testing which localizes the site of this obstetrical paralysis to the lumbosacral trunk (L4‐5) and S‐1 root where they join and pass over the pelvic rim. The paralysis may be mild or severe. Small maternal size, a large fetus, midforceps rotation, and fetal malposition may place the mother at risk for this nerve injury. © 1992 John Wiley & Sons, Inc.
|
def import_reference(ref_node):
check_reference(ref_node)
ref_file = ''
try:
ref_file = maya.cmds.referenceQuery(ref_node, filename=True)
except Exception:
if maya.cmds.objExists(ref_node):
LOGGER.warning('No file associated with reference! Deleting node "{}"'.format(ref_node))
maya.cmds.lockNode(ref_node, long=False)
maya.cmds.delete(ref_node)
else:
maya.cmds.file(ref_file, importReference=True)
LOGGER.debug('Imported reference "{}" from: "{}"'.format(ref_node, ref_file))
|
Dr. Ben Carson: Health Care Is 'Upside-Down'
Dr. Ben Carson is known for blazing trails in the neurological field — including breakthrough work separating conjoined twins. Now he's making waves for his political views. Host Michel Martin talks with Carson about the current state of health care in America and his upcoming speech at the Conservative Political Action Conference.
MICHEL MARTIN, HOST:
This is TELL ME MORE from NPR News. I'm Michel Martin. We're going to start off the week by meeting people who are involved with some of this country's more challenging debates around health care. In a few minutes, we'll meet the first person in this country to try out a new method for prostate cancer treatment. The treatment worked and now he's hoping his experience would persuade other skeptics, especially other African-Americans to participate in clinical trials.
But first we want to speak with a man of medicine who is now making a splash in the political arena. You might know Dr. Benjamin Carson as one of the preeminent neurosurgeons in the world. He was the first man to successfully separate twins who were born joined at the head. You might know him from his remarkable life story that inspired a movie starring Cuba Gooding, Jr. Or you might know him from his interview on this program after he was awarded the Presidential Medal of Freedom.
But lately, he's been getting a lot of attention for this speech that he gave at the National Prayer Breakfast last month.
(SOUNDBITE OF BREAKFAST SPEECH)
DR. BENJAMIN CARSON: It's very difficult to speak to a large group of people these days and not offend someone. I know people walk around with their feelings on their shoulders waiting for you to say something - ahh - did you hear that? And they can't hear anything else you say. The PC police are out in force at all times.
MARTIN: He went on to criticize President Obama's policies on everything from health care to taxes - all this while the president sat just a few steps away. After the speech, the Wall Street Journal ran an editorial titled "Ben Carson for President." The Atlantic called him a, quote, "new conservative folk hero." Now all eyes are on Dr. Carson for his next speech at the Conservative Political Action Conference, or CPAC, which is this week.
And Dr. Carson took time from his busy schedule to speak with us about it. Dr. Carson, welcome back to the program. Thanks for joining us.
CARSON: Thank you. Good to be back.
MARTIN: Now your concerns about health care in this country, the health care system overall, how it's practiced, are not new. For example, you talked about these issues when you were on this program. Are you talking more about these issues or are more people listening now?
CARSON: Well, you know, I've been talking about it for a long time. If you go back and read my 1999 book called "The Big Picture," a lot in there about health care. I've been very concerned about how we do it. And I wouldn't characterize myself as criticizing the president. I've been talking about these things long before he was on the scene. So it's not so much a criticism of him as it is placing out there some other ideals about how we get this thing under control.
And, you know, we spend twice as much per capita on health care in this country as the next closest nation and yet we have tremendous access problems. And I believe there are some ways that we can do it which would provide very excellent access to everybody at substantially less cost.
MARTIN: Why do you think your speech at the National Prayer Breakfast got so much attention?
CARSON: Well, I think it resonated with a huge number of people. You know, I've gotten literally thousands of contacts from people across the country - and the most poignant ones being elderly people - who said I had given up on America and I was just waiting to die. And now they felt revived. And I think what I really talked about, again, was not a criticism of anything but just some stuff that makes sense, logical things that make sense.
People are starving for that coming out of Washington. And it's not a Democrat thing or a Republican thing. I think it's a politician thing.
MARTIN: I do want to talk more about the substance of some of your ideas, particularly for people who haven't had a chance to read some of your books. In fact, you talk a lot about your ideas about health care in your latest book "America the Beautiful: Rediscovering What Made This Nation Great."
But I want to spend just a couple more minutes talking about where you decided to make these comments, about the conservative syndicated columnist Cal Thomas, who's one of the organizers of the prayer breakfast, said that he felt your remarks was inappropriate for the occasion, that you turned a non-political occasion into a political occasion. And he said it's not about politically correct; it's about being rude.
And I've personally heard you speak about the importance of being courteous. He says you owe the president an apology. Do you think you do?
CARSON: I don't think so at all. In fact, I don't believe that expressing your opinion, regardless of who is there, is being rude. And it's a shame that we've reached a level in our country where we think that you don't have the right to put your opinion out there. And the setting, I think, is extraordinarily appropriate because we're talking about the health of our nation, not only the physical health of our nation but also the spiritual health of our nation.
MARTIN: Do you think that your race plays some role in the attention that is being gotten here? I mean, the fact is that you and the president are both highly achieving African-American men from humble beginnings, if I can put it that way, and that there's something delicious in that confrontation.
CARSON: I suspect that in some people's minds that probably did create a little tasty tidbit, particularly those individuals who tend to think that if you're black you have to think a certain way and you have to act a certain way, which I find really quite offensive.
MARTIN: If you're just joining us, I'm speaking with Dr. Ben Carson. He's the director of pediatric neurosurgery at the Johns Hopkins Hospital. He's speaking at the Conservative Political Action Conference later this week and he's getting a lot of attention for comments he made at the National Prayer Breakfast which was last month. Talk a little bit more, if you would, about - I know your interest in some of these issues goes beyond health care, but health care is, I think, the area that you know best.
What is it that you think - the particular nugget that you would want people to come away with? What you think would be better?
CARSON: Well, first of all, in order to have good health care you need a patient and you need a health care provider. Along has come the middle man to sort of facilitate the relationship and now the middleman has become the primary component with the patient and the health care provider at its beck and call. This is totally upside down, and anything that we do that enhances that middleman and decreases the doctor-patient relationship actually exacerbates the situation rather than making it better.
So what - the reason that I proposed health savings accounts for everybody starting at birth, is because you very quickly accumulate an amount of money that you can use for your interactions with those health care providers. Also, you develop a very good doctor-patient relationship and also because you now have some responsibility for that account, you're going to be looking for good bargains. Other people are going to be making sure that they provide good bargains. You bring the whole health care system into the free market. And that's going to help to control cost as well.
MARTIN: You also talk, though, about the need for some sort of catastrophic insurance to address truly catastrophic situations.
CARSON: Yes.
MARTIN: Is that getting an equal amount of attention?
CARSON: Well, no one's really asking me about that. I appreciate you asking about it. Yes, that obviously does have to be a component of the plan. And that is the place where you can bring the government and where you can bring Medicare or Medicaid in. We can work out a system whereby that's done for considerably less money than we're spending now. Because you're taking the middleman out of the equation for 80 percent of the medical encounters.
MARTIN: I noted that you are talking with the Conservative Political Action Committee next week, CPAC which is, well, in Washington circles it's a big deal. It's considered a platform for people with political aspirations. Do you consider yourself a conservative?
CARSON: I consider myself a logical person and, you know, a lot of people try to categorize me in one way or another. You know, there are some of the things that I say that probably would be considered very much non-conservative. For instance, I think that the medical insurance industry needs to be reformed dramatically because we've put them in an untenable situation.
They make money by denying people care. That's an inherent conflict of interest. That situation needs to be addressed. Some people would say that's not a conservative way of thinking. But I don't think really conservative or liberal; I think what makes sense? What's going to help the American people? What's going to give them what they need? Not only in health care but in terms of jobs, in terms of education, in terms of a whole host of issues that, you know, I addressed in the most recent book, "America the Beautiful."
MARTIN: The Wall Street Journal editorial, as I mentioned, the title of it is "Ben Carson for President." We mentioned that CPAC has been a springboard for people who are aspiring to kind of a broader place in the public debate. Do you have aspirations for a career in public service? Do you have any intention of perhaps finding other platforms to discuss your ideas about policy?
CARSON: Certainly that has been pushed upon me many times in the past and there's no way I'm getting into the cesspool of special interest groups. Wouldn't do it anyway in the world. People say, well, why don't you run for Congress? You could get there very easily. Why would I want to run for Congress and continue to get tainted with all the things that people get tainted with as they come along the system.
I think perhaps a much better role would be to use my voice and to use my influence to help change the tone of this nation, to help us to realize that, you know, we're not enemies. A very wise man once said a house divided against itself cannot stand, and here we find ourselves in a situation where we're more divided than ever and we need to develop the kind of leadership that encourages people to work together, to join together, to utilize their strengths in order to improve our situation, not to continue to exacerbate it.
MARTIN: But on the question of the tone and the timing, could a reasonable person say, you know, the time for you to be heard on this issue was when healthcare reform was being debated, and that was not for a short amount of time. More broadly, one could argue, it's been debated for 40 years; narrowly, in this administration, one could argue, it was debated in the first two years of the administration.
I mean at this point could a reasonable not mean person say that this is a heckler's veto?
CARSON: Well, let me put it this way. During the healthcare debate, I was contacted by the administration to get my views and I was having quite a very decent conversation with the gentleman until he asked me what did I do for the president during the campaign, and I said that I'm an independent and that was the end of that conversation. Two months later I get another call. I guess they thought better of it and I was teaching a lesson.
I said I'm in the middle of teaching a lesson, can we talk in 40 minutes. The person was offended. I mean how could you possibly be doing anything more important than taking to the White House. That was the end of that conversation. You know, I talked to David Axelrod about that, and I tell him about those two conversations. He said, well, you know, we have some young people who perhaps don't exercise the best judgment and you shouldn't judge the whole administration on that basis.
I take him at his word that you shouldn't, but it's not that I haven't made an attempt to influence the direction of things.
MARTIN: That was Dr. Benjamin Carson. He's the director of Pediatric Neurosurgery at Johns Hopkins Hospital. His latest book - he's written many of them - is "America the Beautiful: Rediscovering What Made This Nation Great," and he was kind enough to take time out of his busy schedule to join us from member station WYPR in Baltimore. Dr. Carson, thanks for joining us.
CARSON: My pleasure.
Copyright © 2013 NPR. All rights reserved. Visit our website terms of use and permissions pages at www.npr.org for further information.
NPR transcripts are created on a rush deadline by Verb8tm, Inc., an NPR contractor, and produced using a proprietary transcription process developed with NPR. This text may not be in its final form and may be updated or revised in the future. Accuracy and availability may vary. The authoritative record of NPR’s programming is the audio record.
|
/**
* This class provides a convenient method to open a file in a file viewer that
* is appropriate for the file's content type.
*/
public class ContentHelper {
/**
* Open file in external viewer.
* @param context context
* @param file file
*/
public static void openFileViewer(final Context context,
final File file) {
// Make the content available using our file provider.
final Intent shareIntent = new Intent();
final Uri contentUri = FileProvider.getUriForFile(
context,
context.getString(R.string.content_file_provider_authority),
file);
shareIntent.setDataAndType(contentUri,
context.getContentResolver().getType(contentUri));
shareIntent.addFlags(
Intent.FLAG_GRANT_READ_URI_PERMISSION);
shareIntent.setAction(Intent.ACTION_VIEW);
try {
context.startActivity(shareIntent);
} catch (ActivityNotFoundException ex) {
final AlertDialog.Builder errorDialogBuilder = new AlertDialog.Builder(context);
errorDialogBuilder.setTitle(context.getString(R.string.content_helper_error_title));
errorDialogBuilder.setMessage(
String.format(context.getString(R.string.content_helper_error_no_app),
shareIntent.getType()));
errorDialogBuilder.setNeutralButton(
context.getString(R.string.content_dialog_ok), null);
errorDialogBuilder.show();
}
}
}
|
def on_fileopengcode(self):
self.report_usage("on_fileopengcode")
App.log.debug("on_fileopengcode()")
_filter_ = "G-Code Files (*.txt *.nc *.ncc *.tap *.gcode *.cnc *.ecs *.fnc *.dnc *.ncg *.gc *.fan *.fgc" \
" *.din *.xpi *.hnc *.h *.i *.ncp *.min *.gcd *.rol *.mpr *.ply *.out *.eia *.plt *.sbp *.mpf);;" \
"All Files (*.*)"
try:
filename, _ = QtWidgets.QFileDialog.getOpenFileName(caption="Open G-Code",
directory=self.get_last_folder(), filter=_filter_)
except TypeError:
filename, _ = QtWidgets.QFileDialog.getOpenFileName(caption="Open G-Code", filter=_filter_)
filename = str(filename)
if filename == "":
self.inform.emit("[warning_notcl]Open G-Code cancelled.")
else:
self.worker_task.emit({'fcn': self.open_gcode,
'params': [filename]})
|
/** This method is called if a stack overflows its boundries.
* @param task task handle for violating task
* @param name name of violating task
*/
void vApplicationStackOverflowHook(xTaskHandle task, signed portCHAR *name)
{
overflowed_task = task;
overflowed_task_name = name;
diewith(BLINK_DIE_STACKOVERFLOW);
}
|
// called when plot added or composite type changed
void
CQChartsCompositePlot::
updatePlots()
{
if (compositeType_ == CompositeType::X1X2) {
int i = 0;
for (auto &plot : plots_) {
if (! plot->isVisible())
continue;
if (plot->xAxis())
plot->xAxis()->setSide(CQChartsAxisSide(i == 0 ? CQChartsAxisSide::Type::BOTTOM_LEFT :
CQChartsAxisSide::Type::TOP_RIGHT));
if (plot->yAxis())
plot->yAxis()->setSide(CQChartsAxisSide(CQChartsAxisSide::Type::BOTTOM_LEFT));
++i;
}
}
else if (compositeType_ == CompositeType::Y1Y2) {
int i = 0;
for (auto &plot : plots_) {
if (! plot->isVisible())
continue;
if (plot->xAxis())
plot->xAxis()->setSide(CQChartsAxisSide(CQChartsAxisSide::Type::BOTTOM_LEFT));
if (plot->yAxis())
plot->yAxis()->setSide(CQChartsAxisSide(i == 0 ? CQChartsAxisSide::Type::BOTTOM_LEFT :
CQChartsAxisSide::Type::TOP_RIGHT));
++i;
}
}
else if (compositeType_ == CompositeType::NONE) {
int i = 0;
for (auto &plot : plots_) {
if (! plot->isVisible())
continue;
if (plot->xAxis())
plot->xAxis()->setSide(CQChartsAxisSide(i == 0 ? CQChartsAxisSide::Type::BOTTOM_LEFT :
CQChartsAxisSide::Type::TOP_RIGHT));
if (plot->yAxis())
plot->yAxis()->setSide(CQChartsAxisSide(i == 0 ? CQChartsAxisSide::Type::BOTTOM_LEFT :
CQChartsAxisSide::Type::TOP_RIGHT));
++i;
}
}
else if (compositeType_ == CompositeType::TABBED) {
for (auto &plot : plots_) {
if (plot->xAxis())
plot->xAxis()->setSide(CQChartsAxisSide(CQChartsAxisSide::Type::BOTTOM_LEFT));
if (plot->yAxis())
plot->yAxis()->setSide(CQChartsAxisSide(CQChartsAxisSide::Type::BOTTOM_LEFT));
}
}
}
|
<filename>UICreator/Windows/ToolTray.h
#pragma once
#include <string>
#include <vector>
#include "lvgl/lvgl.h"
#include "../Widgets/TreeView.h"
#include "../Widgets/MinimizableWindow.h"
#include "../LVSerial/Serialization/ObjectUserData.h"
#include <Serialization/ObjectSerializer.h>
#pragma region Object Creation Includes
#include "../ObjectCreation/Arc.h"
#include "../ObjectCreation/Bar.h"
#include "../ObjectCreation/Button.h"
#include "../ObjectCreation/ButtonMatrix.h"
#include "../ObjectCreation/Calendar.h"
#include "../ObjectCreation/Canvas.h"
#pragma endregion
#undef GetObject
class PropertyWindow;
class ToolBar;
class ToolTray
{
public:
ToolTray(lv_obj_t* parent,
TreeView* objectTree,
lv_obj_t* drawSurface,
PropertyWindow* propWin,
ToolBar* toolBar);
private:
lv_obj_t* toolWin;
ToolBar* toolBar;
MinimizableWindow* minWin;
TreeView* objTree;
lv_obj_t* drawSurface;
PropertyWindow* propertyWindow;
void initializeToolMatrix();
void initializeWidgetButtons(lv_obj_t* parent);
uint16_t currentID = 0;
std::vector<lv_obj_t*> widgetButtons;
lv_obj_t* lastWidget = nullptr;
struct sCB
{
ToolTray* toolTray;
int typeID;
};
#pragma region Callbacks
static void create_obj_cb(lv_obj_t* obj, lv_event_t ev);
static void updateProperties(lv_obj_t* obj, lv_event_t ev);
#pragma endregion
};
|
// Proactive applies equality check predicate on the "proactive" field. It's identical to ProactiveEQ.
func Proactive(v bool) predicate.Message {
return predicate.Message(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldProactive), v))
})
}
|
def _cell_generator(self, row):
cells = []
for cell in row("td"):
cells.append(cell.text.strip())
if cell.get('colspan', None):
cells.extend(['' for _ in range(int(cell['colspan']) - 1)])
return cells
|
<reponame>CiaccoDavide/DefinitelyTyped
import CircularDependencyPlugin = require('circular-dependency-plugin');
import webpack = require('webpack');
new CircularDependencyPlugin();
new CircularDependencyPlugin({});
const MAX_CYCLES = 5;
let numCyclesDetected = 0;
new CircularDependencyPlugin({
allowAsyncCycles: false,
cwd: process.cwd(),
exclude: /a\.js|node_modules/,
include: /dir/,
failOnError: true,
onDetected({ module: webpackModuleRecord, paths, compilation }) {
numCyclesDetected++;
compilation.warnings.push(new Error(paths.join(' -> ')));
},
onStart({ compilation }) {
numCyclesDetected = 0;
},
onEnd({ compilation }) {
if (numCyclesDetected > MAX_CYCLES) {
compilation.errors.push(new Error('Too many cycles'));
}
},
});
webpack({ plugins: [new CircularDependencyPlugin()] });
const compiler: webpack.Compiler = new webpack.Compiler();
const plugin: webpack.Plugin = new CircularDependencyPlugin();
plugin.apply(compiler);
|
import { Helper } from './helper';
import { DIRECTIONS } from './enums';
import { Game } from './game';
import { BLOCK_TYPE } from './map';
import { isNullOrUndefined } from 'util';
export class Ghost {
public game: Game;
public name: string;
public size = 0;
public blockSize = 0;
public bornCoordX: any = null;
public bornCoordY: any = null;
public bornCoordI: { begin: number, end: number };
public bornCoordJ: { begin: number, end: number };
public imagesPerState: { [key: string]: HTMLImageElement } = {
WAITING: new Image(),
STOP_WAITING: new Image(),
HUNTING: new Image(),
STUNNED: new Image(),
STUNNED_BLINK: new Image(),
DEAD_GO_HOME: new Image(),
DEAD: new Image()
};
public x = 0;
public y = 0;
public toX = this.x;
public toY = this.y;
public direction = DIRECTIONS.NONE;
public state = STATES.WAITING;
public get image() { return this.imagesPerState[this.state]; };
public leaveWaitingTime = 0;
public renderWaitingTime = 0;
public stunningWaitingTime = 0;
public stunningBlinkAtEndOf = 0;
public howLongIsTheWait = 0;
public destinationToGo: { i: number, j: number, exact: { i: number, j: number } } = null;
public lastDestinationToGo: { i: number, j: number, exact: { i: number, j: number } } = null;
public arrayDirectionsToGo: any[] = [];
public get diffSize() { return this.blockSize - this.size; }
public get leftoverSize() { return this.diffSize / 2; }
constructor(game: Game, name: string) {
this.game = game;
this.name = name;
this.blockSize = this.game.blockSize;
this.bornCoordX = this.game.map.ghostBornCoords.x;
this.bornCoordY = this.game.map.ghostBornCoords.y;
this.bornCoordI = { begin: this.bornCoordY.begin / this.blockSize, end: this.bornCoordY.end / this.blockSize };
this.bornCoordJ = { begin: this.bornCoordX.begin / this.blockSize, end: this.bornCoordX.end / this.blockSize };
this.size = this.blockSize;
this.imagesPerState.HUNTING.src = 'assets/img/game/ghosts/ghost.svg#' + this.name;
this.imagesPerState.WAITING.src = this.imagesPerState.HUNTING.src;
this.imagesPerState.STOP_WAITING.src = this.imagesPerState.HUNTING.src;
this.imagesPerState.STUNNED.src = `assets/img/game/ghosts/${this.name}.png`;
this.imagesPerState.STUNNED_BLINK.src = this.imagesPerState.HUNTING.src;
this.imagesPerState.DEAD_GO_HOME.src = 'assets/img/game/ghosts/ghost.svg#dead';
this.imagesPerState.DEAD.src = 'assets/img/game/ghosts/ghost.svg#dead';
this.leaveWaitingTime = 5000 + ((this.ghostNumber() - 1) * 4000);
this.renderWaitingTime = (this.ghostNumber() - 1) * 4000;
this.stunningWaitingTime = 13000;
this.stunningBlinkAtEndOf = 3000;
this.initialize();
}
ghostNumber() { return parseInt(this.name); }
i(round = false) {
let size = this.blockSize;
let y = this.y;
if (round && this.direction === DIRECTIONS.UP)
y -= size;
let i = Math.floor(y / size);
if (round && y % size > 5)
i++;
return Math.min( i, this.game.map.matriz.length - 1);
};
j(round = false, direction?: string) {
let size = this.blockSize;
let x = this.x;
if (!direction)
direction = this.direction;
if (round && this.direction === DIRECTIONS.LEFT)
x -= size;
let j = Math.floor(x / size);
if (round && x % size > 5)
j++;
return Math.min(j, this.game.map.matriz[0].length - 1);
};
initialize(){
let initI = Helper.randomInterval(this.bornCoordI.begin, this.bornCoordI.end);
let initJ = Helper.randomInterval(this.bornCoordJ.begin, this.bornCoordJ.end);
this.startWaiting(initI, initJ);
};
private startWaiting(initI?: number, initJ?: number) {
if (isNullOrUndefined(initI))
initI = this.i();
if (isNullOrUndefined(initJ))
initJ = this.j();
this.state = STATES.WAITING;
this.x = initJ * this.blockSize;
this.y = initI * this.blockSize;
this.clearWalkCoordinates();
if (this.bornCoordI.begin !== this.bornCoordI.end) {
if (initI > this.bornCoordI.begin)
this.goToTheDirection(DIRECTIONS.UP);
else
this.goToTheDirection(DIRECTIONS.DOWN);
}
else if (this.bornCoordJ.begin !== this.bornCoordJ.end) {
if (initJ > this.bornCoordJ.begin)
this.goToTheDirection(DIRECTIONS.LEFT);
else
this.goToTheDirection(DIRECTIONS.RIGHT);
}
}
render(){
if (this.game.isRunning)
this.updateRenderWaitingTime();
if (this.canRender()) {
this.updateCoordinates();
this.game.context.drawImage(this.image, (this.x + this.leftoverSize), (this.y + this.leftoverSize), this.size, this.size);
}
};
private canRender() {
return this.state !== STATES.WAITING || this.howLongIsTheWait >= this.renderWaitingTime;
}
updateCoordinates(){
if (this.game.isRunning)
switch(this.state) {
case STATES.WAITING: {
let next = this.getNextCoordinates(SPEED.NORMAL);
if (next.x !== this.x || next.y !== this.y)
this.goToNextCoords(next.x, next.y);
else {
if (this.howLongIsTheWait >= this.leaveWaitingTime)
this.stopWaitingAndGoHunting();
else {
let limit = {
x: { min: this.bornCoordJ.begin * this.blockSize, max: this.bornCoordJ.end * this.blockSize },
y: { min: this.bornCoordI.begin * this.blockSize, max: this.bornCoordI.end * this.blockSize }
}
if (this.canGoInTheDirection(this.direction, this.x, this.y, limit))
this.goToTheDirection(this.direction);
else {
let direction = this.getReverseDirection();
if (this.canGoInTheDirection(direction, this.x, this.y, limit))
this.goToTheDirection(direction);
else {
direction = this.getReverseOrientation();
if (this.canGoInTheDirection(direction, this.x, this.y, limit))
this.goToTheDirection(direction);
else {
let direction = this.getReverseDirection();
if (this.canGoInTheDirection(direction, this.x, this.y, limit))
this.goToTheDirection(direction);
}
}
}
}
}
break;
}
case STATES.STOP_WAITING: {
let next = this.getNextCoordinates(SPEED.NORMAL);
if (next.x !== this.x || next.y !== this.y)
this.goToNextCoords(next.x, next.y);
else
this.goHunting();
break;
}
case STATES.HUNTING: {
let alternativePositions = null;
let toGo = this.destinationToGo;
let pecCurrenctPositions = {
i: this.game.pac.iFractioned,
j: this.game.pac.jFractioned
};
if (toGo && (toGo.exact.i !== pecCurrenctPositions.i || toGo.exact.j !== pecCurrenctPositions.j))
alternativePositions = pecCurrenctPositions;
if (!this.checkArriveTheDestination(true, alternativePositions)) {
let next = this.getNextCoordinates(SPEED.NORMAL);
if (next.x !== this.x || next.y !== this.y)
this.goToNextCoords(next.x, next.y);
else {
let pacI = this.game.pac.i();
let pacJ = this.game.pac.j();
let pacIFractioned = this.game.pac.iFractioned;
let pacJFractioned = this.game.pac.jFractioned;
this.executeGoToDestination(pacI, pacJ, { i: pacIFractioned, j: pacJFractioned });
}
}
else
this.game.ghostFoundPac(this);
break;
}
case STATES.STUNNED:
case STATES.STUNNED_BLINK: {
let timeLeft = (this.stunningWaitingTime - this.howLongIsTheWait);
if (timeLeft > 0 && timeLeft <= this.stunningBlinkAtEndOf) {
if (timeLeft === this.stunningBlinkAtEndOf || timeLeft % 300 === 0)
this.state = (this.state === STATES.STUNNED) ? STATES.STUNNED_BLINK : STATES.STUNNED;
}
else
this.state = STATES.STUNNED;
let next = this.getNextCoordinates(SPEED.NORMAL)
if (next.x !== this.x || next.y !== this.y)
this.goToNextCoords(next.x, next.y);
else {
let pacPos = { i: this.game.pac.i(), j: this.game.pac.j() };
if (this.howLongIsTheWait >= this.stunningWaitingTime) {
this.goHunting();
this.updateCoordinates();
}
else if (this.checkCurrentDestinationToGoEquals(pacPos.i, pacPos.j) || this.checkArriveTheDestination()) {
let exceptions = [
{ i: this.i(true), j: this.j(true) },
{ i: this.destinationToGo.i, j: this.destinationToGo.j }
];
let limits = this.createLimitThisPositions(pacPos.i, pacPos.j);
let coordinates = this.game.map.getRandomIndexesBlock([BLOCK_TYPE.BISCUIT, BLOCK_TYPE.PILL], exceptions, limits);
this.executeGoToDestination(coordinates.i, coordinates.j);
}
else
this.executeGoToDestination(this.destinationToGo.i, this.destinationToGo.j);
}
break;
}
case STATES.DEAD_GO_HOME: {
let next = this.getNextCoordinates(SPEED.FAST);
if (next.x !== this.x || next.y !== this.y)
this.goToNextCoords(next.x, next.y);
else if (!this.checkArriveTheDestination())
this.executeGoToDestination(this.destinationToGo.i, this.destinationToGo.j);
else {
this.howLongIsTheWait = this.renderWaitingTime;
this.startWaiting();
}
break;
}
case STATES.DEAD: {
break;
}
}
}
public onPillGetted() {
if (this.state === STATES.HUNTING) {
this.state = STATES.STUNNED;
this.howLongIsTheWait = 0;
this.clearDestinationToGo();
let pacPos = { i: this.game.pac.i(), j: this.game.pac.j() };
let exceptions = [ { i: this.i(), j: this.j() } ];
let limits = this.createLimitThisPositions(pacPos.i, pacPos.j);
let positions = this.game.map.getRandomIndexesBlock([BLOCK_TYPE.BISCUIT, BLOCK_TYPE.PILL], exceptions, limits);
this.destinationToGo = {
i: positions.i,
j: positions.j,
exact: {
i: positions.i,
j: positions.j
}
}
}
}
public goToHomeBecauseDead() {
if (this.state === STATES.STUNNED || this.state === STATES.STUNNED_BLINK) {
this.state = STATES.DEAD_GO_HOME;
this.howLongIsTheWait = 0;
this.clearDestinationToGo();
let i = Helper.randomInterval(this.bornCoordI.begin, this.bornCoordI.end);
let j = Helper.randomInterval(this.bornCoordJ.begin, this.bornCoordJ.end);
this.destinationToGo = {
i,
j,
exact: {
i,
j
}
};
}
}
private createLimitThisPositions(i: number, j: number) {
let limits = {
i: { begin: Math.max(i - 10, 0), end: Math.min(i + 10, this.game.map.lengthY - 1) },
j: { begin: Math.max(j - 10, 0), end: Math.min(j + 10, this.game.map.lengthX - 1) }
};
return limits;
}
private clearDestinationToGo() {
this.lastDestinationToGo = null;
this.destinationToGo = null;
}
private clearWalkCoordinates() {
this.toX = this.x;
this.toY = this.y;
}
private executeGoToDestination(i: number, j: number, exact?: { i: number, j: number }) {
if (!this.arrayDirectionsToGo.length ||
!this.lastDestinationToGo ||
this.lastDestinationToGo.i !== i ||
this.lastDestinationToGo.j !== j)
{
let lastNextDirection = this.arrayDirectionsToGo.length ? this.arrayDirectionsToGo[0] : this.direction;
this.arrayDirectionsToGo = [];
this.lastDestinationToGo = null;
this.destinationToGo = {
i,
j,
exact
};
this.goToDestination(lastNextDirection);
}
if (this.arrayDirectionsToGo.length) {
let direction;
do {
direction = this.arrayDirectionsToGo[0];
this.arrayDirectionsToGo = this.arrayDirectionsToGo.length ? this.arrayDirectionsToGo.slice(1) : [];
}
while(this.arrayDirectionsToGo.length && !this.canGoInTheDirection(direction))
this.goToTheDirection(direction);
this.updateCoordinates();
}
}
getNextCoordinates(rate: number) {
let nextX = this.x;
let nextY = this.y;
if (this.x !== this.toX && this.directionIsX()) {
this.direction = this.x < this.toX ? DIRECTIONS.RIGHT : DIRECTIONS.LEFT;
nextX = this.game.applySmoothCoord(this.x, this.toX, rate);
}
else if (this.x !== this.toX && this.y === this.toY) {
this.direction = this.x < this.toX ? DIRECTIONS.RIGHT : DIRECTIONS.LEFT;
nextX = this.game.applySmoothCoord(this.x, this.toX, rate);
}
else if (this.y !== this.toY && this.directionIsY()) {
this.direction = this.y < this.toY ? DIRECTIONS.DOWN : DIRECTIONS.UP;
nextY = this.game.applySmoothCoord(this.y, this.toY, rate);
}
else if (this.y !== this.toY && this.x === this.toX) {
this.direction = this.y < this.toY ? DIRECTIONS.DOWN : DIRECTIONS.UP;
nextY = this.game.applySmoothCoord(this.y, this.toY, rate);
}
return { x: nextX, y: nextY };
}
goToNextCoords(nextX: number, nextY: number) {
if (!this.game.map.isCollidingWithWall(nextX, nextY, this.blockSize)){
this.x = nextX;
this.y = nextY;
}
else {
this.x = Math.floor(this.j()) * this.blockSize;
this.y = Math.floor(this.i()) * this.blockSize;
this.clearWalkCoordinates();
}
};
goToTheDirection(direction: DIRECTIONS) {
this.direction = direction;
if (direction === DIRECTIONS.UP)
this.toY = this.y - this.blockSize;
else if (direction === DIRECTIONS.DOWN)
this.toY = this.y + this.blockSize;
else if (direction === DIRECTIONS.LEFT)
this.toX = this.x - this.blockSize;
else if (direction === DIRECTIONS.RIGHT)
this.toX = this.x + this.blockSize;
}
canGoInTheDirection(direction: string, x?: number, y?: number, limit?: any) {
if (isNullOrUndefined(x))
x = this.x;
if (isNullOrUndefined(y))
y = this.y;
if (direction === DIRECTIONS.UP)
y -= this.blockSize;
else if (direction === DIRECTIONS.DOWN)
y += this.blockSize;
else if (direction === DIRECTIONS.LEFT)
x -= this.blockSize;
else if (direction === DIRECTIONS.RIGHT)
x += this.blockSize;
if (limit) {
if (x < limit.x.min || x > limit.x.max)
return false;
if (y < limit.y.min || y > limit.y.max)
return false;
}
let block = this.game.map.getBlockByCoordinates(x, y, this.blockSize);
if (this.state === STATES.HUNTING || this.state === STATES.STUNNED)
return block !== BLOCK_TYPE.WALL &&
block !== BLOCK_TYPE.PORTAL &&
block !== BLOCK_TYPE.PORTAL_PATH &&
block !== BLOCK_TYPE.GHOST_HOUSE;
else if (this.state === STATES.DEAD_GO_HOME)
return block !== BLOCK_TYPE.WALL &&
block !== BLOCK_TYPE.PORTAL &&
block !== BLOCK_TYPE.PORTAL_PATH;
else
return block !== BLOCK_TYPE.WALL;
}
stopWaitingAndGoHunting() {
this.state = STATES.STOP_WAITING;
// TRY TO EXIT THE Y AXIS
for (let i = this.bornCoordI.begin; i <= this.bornCoordI.end; i = this.bornCoordI.end) {
for (let j = this.bornCoordJ.begin; j <= this.bornCoordJ.end; j++) {
let direction = null;
let rate = 2;
if (i === this.bornCoordI.begin && this.game.map.getTopBlock(i, j) !== BLOCK_TYPE.WALL) {
rate *= -1;
direction = DIRECTIONS.UP;
}
else if (i === this.bornCoordI.end && this.game.map.getBottomBlock(i, j) !== BLOCK_TYPE.WALL)
direction = DIRECTIONS.DOWN;
if (direction) {
this.toX = j * this.blockSize;
this.toY = (i + rate) * this.blockSize;
if (this.x !== this.toX)
this.direction = this.x < this.toX ? DIRECTIONS.RIGHT : DIRECTIONS.LEFT;
else
this.direction = direction;
return;
}
}
}
// TRY TO EXIT THE X AXIS
for (let j = this.bornCoordJ.begin; j <= this.bornCoordJ.end; j = this.bornCoordJ.end) {
for (let i = this.bornCoordI.begin; i <= this.bornCoordI.end; i++) {
let direction = null;
let rate = 2;
if (j === this.bornCoordJ.begin && this.game.map.getLeftBlock(i, j) !== BLOCK_TYPE.WALL) {
direction = DIRECTIONS.LEFT;
rate *= -1;
}
else if (j === this.bornCoordJ.end && this.game.map.getRightBlock(i, j) !== BLOCK_TYPE.WALL)
direction = DIRECTIONS.RIGHT;
if (direction) {
this.toX = (j + rate) * this.blockSize;
this.toY = i * this.blockSize;
if (this.y !== this.toY)
this.direction = this.y < this.toY ? DIRECTIONS.RIGHT : DIRECTIONS.LEFT;
else
this.direction = direction;
return;
}
}
}
};
private checkArriveTheDestination(enter: boolean = false, alternativePositions?: { i: number, j: number }): boolean {
if (this.destinationToGo || alternativePositions) {
if (enter) {
let diff = 0;
let i = (this.y + this.leftoverSize) / this.blockSize;
let j = (this.x + this.leftoverSize) / this.blockSize;
let toGo;
if (alternativePositions)
toGo = alternativePositions;
else
toGo = this.destinationToGo.exact ? this.destinationToGo.exact : this.destinationToGo;
let iDest = toGo.i;
let jDest = toGo.j;
if (i !== iDest || j !== jDest) {
if (i !== iDest && j !== jDest) {
if (this.directionIsX(this.direction))
i = this.y / this.blockSize;
else
j = this.x / this.blockSize;
if (i !== iDest && j !== jDest)
return false;
}
if (iDest === i)
diff = Math.abs(jDest - j);
else if (jDest === j)
diff = Math.abs(iDest - i);
else
return false;
return diff >= 0 && diff <= .8;
}
return true;
}
else {
let toGo = alternativePositions ? alternativePositions : this.destinationToGo;
return toGo.i === this.i() && toGo.j === this.j();
}
};
return false;
}
private checkCurrentDestinationToGoEquals(i: number, j: number) {
if (this.destinationToGo)
return this.destinationToGo.i === i && this.destinationToGo.j === j;
return false;
}
private goToDestination(lastDirection: DIRECTIONS) {
if (this.destinationToGo && this.destinationToGo.i && this.destinationToGo.j) {
if (this.checkCurrentDestinationToGoEquals(this.i(), this.j()))
return;
this.lastDestinationToGo = this.destinationToGo;
let detination = this.lastDestinationToGo;
let destX = detination.j * this.blockSize;
let destY = detination.i * this.blockSize;
let x = this.x;
let y = this.y;
let diffDistanceX = Math.abs(x - destX);
let diffDistanceY = Math.abs(y - destY);
let destDirectionX = destX < x ? DIRECTIONS.LEFT : DIRECTIONS.RIGHT;
let destDirectionY = destY < y ? DIRECTIONS.UP : DIRECTIONS.DOWN;
let direction = lastDirection ? lastDirection : null;
if (!lastDirection) {
if (Helper.randomInterval(1, 999) % 2 > 0)
direction = (diffDistanceX > diffDistanceY) ? destDirectionX : destDirectionY;
else
direction = (diffDistanceX > diffDistanceY) ? destDirectionY : destDirectionX;
}
let arrayDirections: any[] = [];
let maxI = this.game.map.lengthY - 1;
let maxJ = this.game.map.lengthX - 1;
let getRateMovI = (direction: DIRECTIONS, destDirectionY: DIRECTIONS) => {
let _direction = this.directionIsY(direction)
? direction
: destDirectionY;
return _direction === DIRECTIONS.UP ? -1 : 1;
};
let getRateMovJ = (direction: DIRECTIONS, destDirectionX: DIRECTIONS) => {
let _direction = this.directionIsX(direction)
? direction
: destDirectionX;
return _direction === DIRECTIONS.LEFT ? -1 : 1;
};
let isReturning = (direction: DIRECTIONS) => {
if (arrayDirections.length)
return this.getReverseDirection(direction) === arrayDirections[arrayDirections.length - 1];
return false;
};
buildRoute:
for(let i = this.i(true); i >= 0 && i <= maxI; i += getRateMovI(direction, destDirectionY)) {
for(let j = this.j(true); j >= 0 && j <= maxJ; j += getRateMovJ(direction, destDirectionX)) {
for (let attempts = 1; attempts <= 5; attempts++) {
if (attempts <= 4) {
if (this.canGoInTheDirection(direction, x, y)) {
arrayDirections.push(direction);
let lastDirection = direction;
if (this.directionIsX(direction))
x += this.blockSize * (direction === DIRECTIONS.LEFT ? -1 : 1);
else
y += this.blockSize * (direction === DIRECTIONS.UP ? -1 : 1);
diffDistanceX = Math.abs(x - destX);
diffDistanceY = Math.abs(y - destY);
if (diffDistanceX > 0 || diffDistanceY > 0) {
destDirectionX = destX < x ? DIRECTIONS.LEFT : DIRECTIONS.RIGHT;
destDirectionY = destY < y ? DIRECTIONS.UP : DIRECTIONS.DOWN;
if (this.state !== STATES.DEAD_GO_HOME) {
if (Helper.randomInterval(1, 999) % 2 > 0)
direction = (diffDistanceX > diffDistanceY) ? destDirectionX : destDirectionY;
else
direction = (diffDistanceX > diffDistanceY) ? destDirectionY : destDirectionX;
}
else {
if (diffDistanceX === 0)
direction = destDirectionY;
else if (diffDistanceY === 0)
direction = destDirectionX;
else
direction = (diffDistanceX > diffDistanceY) ? destDirectionX : destDirectionY;
}
if (isReturning(direction))
direction = this.directionIsX(direction) ? destDirectionY : destDirectionX;
if (lastDirection === direction && direction !== destDirectionX && direction !== destDirectionY)
direction = this.directionIsX(direction) ? destDirectionY : destDirectionX;
break;
}
else
break buildRoute;
}
else {
if (attempts % 2 !== 0) {
direction = this.directionIsX(direction) ? destDirectionY : destDirectionX;
if (isReturning(direction))
direction = this.getReverseDirection(direction);
}
else {
if (!isReturning(this.getReverseDirection(direction)))
direction = this.getReverseDirection(direction);
else
direction = this.directionIsX(direction) ? destDirectionY : destDirectionX;
}
}
}
else {
break buildRoute;
}
}
}
}
this.arrayDirectionsToGo = arrayDirections;
}
};
goHunting() {
this.state = STATES.HUNTING;
this.clearDestinationToGo();
};
updateRenderWaitingTime() {
this.howLongIsTheWait += this.game.timeToRerender;
}
directionIsX(direction?: string) {
if (!direction) direction = this.direction;
return direction === DIRECTIONS.LEFT || direction === DIRECTIONS.RIGHT;
};
directionIsY(direction?: string) {
if (!direction) direction = this.direction;
return direction === DIRECTIONS.UP || direction === DIRECTIONS.DOWN;
};
getReverseDirection(direction?: DIRECTIONS) {
if (!direction)
direction = this.direction;
if (direction === DIRECTIONS.UP)
return DIRECTIONS.DOWN;
if (direction === DIRECTIONS.DOWN)
return DIRECTIONS.UP;
if (direction === DIRECTIONS.LEFT)
return DIRECTIONS.RIGHT;
if (direction === DIRECTIONS.RIGHT)
return DIRECTIONS.LEFT;
return DIRECTIONS.NONE;
};
getReverseOrientation(direction?: DIRECTIONS) {
if (!direction)
direction = this.direction;
if (direction === DIRECTIONS.UP)
return DIRECTIONS.LEFT;
if (direction === DIRECTIONS.DOWN)
return DIRECTIONS.RIGHT;
if (direction === DIRECTIONS.LEFT)
return DIRECTIONS.UP;
if (direction === DIRECTIONS.RIGHT)
return DIRECTIONS.DOWN;
return DIRECTIONS.NONE;
};
}
export enum SPEED {
NORMAL = 2,
FAST = 2.5,
SLOW = 1.5,
};
export enum STATES {
WAITING = 'WAITING',
STOP_WAITING = 'STOP_WAITING',
HUNTING = 'HUNTING',
STUNNED = 'STUNNED',
STUNNED_BLINK = 'STUNNED_BLINK',
DEAD_GO_HOME = 'DEAD_GO_HOME',
DEAD = 'DEAD',
};
|
def decode(
self,
logits: np.ndarray,
beam_width: Optional[int] = None,
beam_prune_logp: Optional[float] = None,
token_min_logp: Optional[float] = None,
hotwords: Optional[Iterable[str]] = None,
hotword_weight: Optional[float] = None,
alpha: Optional[float] = None,
beta: Optional[float] = None,
unk_score_offset: Optional[float] = None,
lm_score_boundary: Optional[bool] = None,
output_word_offsets: bool = False,
):
from pyctcdecode.constants import (
DEFAULT_BEAM_WIDTH,
DEFAULT_HOTWORD_WEIGHT,
DEFAULT_MIN_TOKEN_LOGP,
DEFAULT_PRUNE_LOGP,
)
beam_width = beam_width if beam_width is not None else DEFAULT_BEAM_WIDTH
beam_prune_logp = beam_prune_logp if beam_prune_logp is not None else DEFAULT_PRUNE_LOGP
token_min_logp = token_min_logp if token_min_logp is not None else DEFAULT_MIN_TOKEN_LOGP
hotword_weight = hotword_weight if hotword_weight is not None else DEFAULT_HOTWORD_WEIGHT
self.decoder.reset_params(
alpha=alpha, beta=beta, unk_score_offset=unk_score_offset, lm_score_boundary=lm_score_boundary
)
decoded_beams = self.decoder.decode_beams(
logits,
beam_width=beam_width,
beam_prune_logp=beam_prune_logp,
token_min_logp=token_min_logp,
hotwords=hotwords,
hotword_weight=hotword_weight,
)
word_offsets = None
if output_word_offsets:
word_offsets = [
{"word": word, "start_offset": start_offset, "end_offset": end_offset}
for word, (start_offset, end_offset) in decoded_beams[0][2]
]
return Wav2Vec2DecoderWithLMOutput(
text=decoded_beams[0][0],
logit_score=decoded_beams[0][-2],
lm_score=decoded_beams[0][-1],
word_offsets=word_offsets,
)
|
Filters for XML-based Service Discovery in Pervasive Computing
Pervasive computing refers to an emerging trend towards numerous casually accessible devices connected to an increasingly ubiquitous network infrastructure. An important challenge in this context is discovering the appropriate data and services. In this paper, we assume that services and data are described using hierarchically structured metadata. There is no centralized index for the services; instead, appropriately distributed filters are used to route queries to the appropriate nodes. We propose two new types of filter that extend Bloom filters for hierarchical documents. Two alternative ways are considered for building overlay networks of nodes: one based on network proximity and one based on content similarity. Content similarity is derived from the similarity among filters. Our experimental results show that networks based on content similarity outperform those formed based on network proximity for finding all matching documents.
|
// Copyright © 2016 The Things Network
// Use of this source code is governed by the MIT license that can be found in the LICENSE file.
package tokens
import "time"
// TokenStore is the interface of all the token storage engines
type TokenStore interface {
// Get gets a token from the TokenStore, returning
// the empty string if the token does not exist
Get(parent string, scope string) (string, error)
// Set saves a token, but only stores it for a given time
Set(parent string, scope []string, token string, TTL time.Duration) error
}
|
/**
* This is a class for any actions that affect an existing import
*/
public class ImportUpdater
{
private List<NameException> moduleNamingExceptionMap;
public ImportUpdater(@Nullable List<NameException> moduleNamingExceptionMap)
{
if(moduleNamingExceptionMap == null)
{
this.moduleNamingExceptionMap = new ArrayList<NameException>();
}
else
{
this.moduleNamingExceptionMap = moduleNamingExceptionMap;
}
}
/**
* Updates an existing AMD module reference (define literal + the parameter)
*
* @param targetFile the file containing the reference
* @param match a MatchResult that represents the new module reference
* @param statement the define or require statement that is being updated
* @param replacementExpression an expression that will replace the define literal expression
* @param updateReferences if true, will update references to the parameter if it is renamed
*/
public void updateModuleReference(final PsiFile targetFile, final MatchResult match, final DefineStatement statement, final PsiElement replacementExpression, final boolean updateReferences)
{
ApplicationManager.getApplication().runWriteAction(new Runnable() {
@Override
public void run() {
PsiElement defineLiteral = statement.getArguments().getExpressions()[match.getIndex()];
defineLiteral.replace(replacementExpression);
if(!updateReferences)
{
return;
}
// sometimes the lengths of the imports don't match up due to plugins etc.
if(!(match.getIndex() >= statement.getFunction().getParameters().length))
{
// for performance reasons we should only rename a parameter if the name has actually changed
String parameterText = statement.getFunction().getParameters()[match.getIndex()].getText();
String newParameterName = NameResolver.defineToParameter(match.getPath(), moduleNamingExceptionMap);
if(parameterText.equals(newParameterName))
{
return;
}
RenameRefactoring refactoring = RefactoringFactory.getInstance(targetFile.getProject())
.createRename(statement.getFunction().getParameters()[match.getIndex()], newParameterName, false, false);
refactoring.doRefactoring(refactoring.findUsages());
}
}
});
}
/**
* Updates a module's import reference with a new location
*
* @param targetFile the module to update
* @param match the match that holds the location of the import to update
* @param statement the module's parsed define statement
*/
public void updateModuleReference(final PsiFile targetFile, final MatchResult match, final DefineStatement statement, boolean updateReferences)
{
PsiElement defineLiteral = statement.getArguments().getExpressions()[match.getIndex()];
updateModuleReference(targetFile, match, statement, JSUtil.createExpression(defineLiteral.getParent(), match.getQuote() + match.getPath() + match.getPluginResourceId() + match.getQuote()), updateReferences);
}
}
|
Image: GCC, based on Toyota data
Image: GCC, based on Toyota data
Worldwide Prius sales have been buoyed since 2009 by the introduction in Japan of a government subsidy for green cars that propelled Prius to be the top-selling car in Japan for 17 months in a row. In 2007, sales in Japan represented 21% of all Prius sales worldwide and in 2008, 26%. In 2009, that share jumped to 52%, and for Jan-Sep 2010, the figure is 63%. Conversely, North America accounted for 65% of worldwide Prius sales in 2007; 57% in 2008; 36% in 2009; and 26% for Jan-Sep 2010. The subsidy expired on 7 September, and Prius sales in Japan fell 14.2% on the year to 27,249 units for the month. (source)
It was only a couple years ago that I wrote about Toyota reaching the 1 million mark for worldwide Prius hybrid sales. What took about 8-11 years to do (depending on when you start counting, the Prius was first introduced in Japan in 1997, but in low volumes) took only 2 years to do again: Toyota is now celebrating its second million Priuses sold in more than 70 countries. But that's not the only Prius news, there are also pretty solid rumors about 2 new Prius models, one bigger, and one smaller.The Wall Street journal is reporting that Toyota is planning to launch two new Prius models in 2012, according to "people briefed by the company". One would be smaller, abou the size of the Yaris, and the other would be bigger, about the size of a SUV (though if could take the shape of a full wagon, a kind of minivan, or a crossover -- we don't know yet).
This should come at about the same time as the plug-in version of the Prius hybrid, which will have an upgraded lithium-ion battery pack and be able to drive for 13 miles on electricity alone.
Via WSJ, GCC
More on Toyota Hybrids
Toyota to Build Yaris Hybrid in France in 2012
Daimler May License Toyota's Hybrid Technology
The Lexus CT 200h Hybrid Disappoints on MPG (Wake Up Toyota!)
|
// New creates splunk logger driver using configuration passed in context
func New(ctx logger.Context) (logger.Logger, error) {
hostname, err := ctx.Hostname()
if err != nil {
return nil, fmt.Errorf("%s: cannot access hostname to set source field", driverName)
}
splunkURL, err := parseURL(ctx)
if err != nil {
return nil, err
}
splunkToken, ok := ctx.Config[splunkTokenKey]
if !ok {
return nil, fmt.Errorf("%s: %s is expected", driverName, splunkTokenKey)
}
tlsConfig := &tls.Config{}
if insecureSkipVerifyStr, ok := ctx.Config[splunkInsecureSkipVerifyKey]; ok {
insecureSkipVerify, err := strconv.ParseBool(insecureSkipVerifyStr)
if err != nil {
return nil, err
}
tlsConfig.InsecureSkipVerify = insecureSkipVerify
}
if caPath, ok := ctx.Config[splunkCAPathKey]; ok {
caCert, err := ioutil.ReadFile(caPath)
if err != nil {
return nil, err
}
caPool := x509.NewCertPool()
caPool.AppendCertsFromPEM(caCert)
tlsConfig.RootCAs = caPool
}
if caName, ok := ctx.Config[splunkCANameKey]; ok {
tlsConfig.ServerName = caName
}
transport := &http.Transport{
TLSClientConfig: tlsConfig,
}
client := &http.Client{
Transport: transport,
}
var nullMessage = &splunkMessage{
Host: hostname,
}
nullMessage.Source = ctx.Config[splunkSourceKey]
nullMessage.SourceType = ctx.Config[splunkSourceTypeKey]
nullMessage.Index = ctx.Config[splunkIndexKey]
tag, err := loggerutils.ParseLogTag(ctx, "{{.ID}}")
if err != nil {
return nil, err
}
nullMessage.Event.Tag = tag
nullMessage.Event.Attrs = ctx.ExtraAttributes(nil)
logger := &splunkLogger{
client: client,
transport: transport,
url: splunkURL.String(),
auth: "Splunk " + splunkToken,
nullMessage: nullMessage,
}
err = verifySplunkConnection(logger)
if err != nil {
return nil, err
}
return logger, nil
}
|
z = list(map(''.join, zip(input(), input())))
f, s = z.count('47'), z.count('74')
print(f + s - min(f, s))
|
// Version: 1.3.0
#include "vendor/unity.h"
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
extern int find(int *array, int size, int value);
void setUp(void) {
}
void tearDown(void) {
}
void test_finds_a_value_in_an_array_with_one_element(void) {
int array[] = {6};
TEST_ASSERT_EQUAL_INT(0, find(array, ARRAY_SIZE(array), 6));
}
void test_finds_a_value_in_the_middle_of_an_array(void) {
int array[] = {1, 3, 4, 6, 8, 9, 11};
TEST_ASSERT_EQUAL_INT(3, find(array, ARRAY_SIZE(array), 6));
}
void test_finds_a_value_at_the_beginning_of_an_array(void) {
int array[] = {1, 3, 4, 6, 8, 9, 11};
TEST_ASSERT_EQUAL_INT(0, find(array, ARRAY_SIZE(array), 1));
}
void test_finds_a_value_at_the_end_of_an_array(void) {
int array[] = {1, 3, 4, 6, 8, 9, 11};
TEST_ASSERT_EQUAL_INT(6, find(array, ARRAY_SIZE(array), 11));
}
void test_finds_a_value_in_an_array_of_odd_length(void) {
int array[] = {1, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 634};
TEST_ASSERT_EQUAL_INT(9, find(array, ARRAY_SIZE(array), 144));
}
void test_finds_a_value_in_an_array_of_even_length(void) {
int array[] = {1, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377};
TEST_ASSERT_EQUAL_INT(5, find(array, ARRAY_SIZE(array), 21));
}
void test_identifies_that_a_value_is_not_included_in_the_array(void) {
int array[] = {1, 3, 4, 6, 8, 9, 11};
TEST_ASSERT_EQUAL_INT(-1, find(array, ARRAY_SIZE(array), 7));
}
void test_a_value_smaller_than_the_arrays_smallest_value_is_not_found(void) {
int array[] = {1, 3, 4, 6, 8, 9, 11};
TEST_ASSERT_EQUAL_INT(-1, find(array, ARRAY_SIZE(array), 0));
}
void test_a_value_larger_than_the_arrays_largest_value_is_not_found(void) {
int array[] = {1, 3, 4, 6, 8, 9, 11};
TEST_ASSERT_EQUAL_INT(-1, find(array, ARRAY_SIZE(array), 13));
}
void test_nothing_is_found_in_an_empty_array(void) {
TEST_ASSERT_EQUAL_INT(-1, find(NULL, 0, 1));
}
void test_nothing_is_found_when_the_left_and_right_bounds_cross(void) {
int array[] = {1, 2};
TEST_ASSERT_EQUAL_INT(-1, find(array, ARRAY_SIZE(array), 0));
}
int main(void) {
UNITY_BEGIN();
RUN_TEST(test_finds_a_value_in_an_array_with_one_element);
RUN_TEST(test_finds_a_value_in_the_middle_of_an_array);
RUN_TEST(test_finds_a_value_at_the_beginning_of_an_array);
RUN_TEST(test_finds_a_value_at_the_end_of_an_array);
RUN_TEST(test_finds_a_value_in_an_array_of_odd_length);
RUN_TEST(test_finds_a_value_in_an_array_of_even_length);
RUN_TEST(test_identifies_that_a_value_is_not_included_in_the_array);
RUN_TEST(test_a_value_smaller_than_the_arrays_smallest_value_is_not_found);
RUN_TEST(test_a_value_larger_than_the_arrays_largest_value_is_not_found);
RUN_TEST(test_nothing_is_found_in_an_empty_array);
RUN_TEST(test_nothing_is_found_when_the_left_and_right_bounds_cross);
return UNITY_END();
}
|
/**
* This function credits money to the Bill's subtotal.
* @param billCredit - This is the credit to add to the Bill subtotal.
*/
public void credit(double billCredit)
{
if (billCredit > 0)
{
subtotal.set(subtotal.get() + billCredit);
setTotal();
}
}
|
import java.util.Arrays;
import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
static int[] c = new int[3];
static int solve() {
int ret = 0;
int min = Math.min(c[0], Math.min(c[1], c[2]));
for (int i = 0; i <= Math.min(3, min); ++i) {
int count = (c[0] - i) / 3 + (c[1] - i) / 3 + (c[2] - i) / 3 + i;
ret = Math.max(ret, count);
}
return ret;
}
public static void main(String[] args) throws Exception {
while (true) {
Arrays.fill(c, 0);
c[0] += sc.nextInt();
c[1] += sc.nextInt();
c[2] += sc.nextInt();
c[0] += sc.nextInt();
c[1] += sc.nextInt();
c[2] += sc.nextInt();
if (c[0] + c[1] + c[2] == 0) break;
System.out.println(solve());
}
}
}
|
def _get_deprecated_argument_action(old_name, new_name, real_action='store'):
message = '%s has been deprecated. Please use %s in the future.' % (
old_name, new_name
)
from argparse import Action
class _Action(Action):
def __call__(self, parser, namespace, values, option_string=None):
import warnings
warnings.warn(message)
if real_action == 'store':
setattr(namespace, self.dest, values)
elif real_action == 'store_true':
setattr(namespace, self.dest, True)
elif real_action == 'store_false':
setattr(namespace, self.dest, False)
return _Action
|
<reponame>JIANG-CX/data_labeling
__version__ = """1.34.1"""
|
<reponame>leenlab2/TLI-server<gh_stars>1-10
package entities_test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import com.caravantage.entities.Car;
import org.json.JSONObject;
/**
* Testing the Car entity
*/
public class CarTest {
Car carToTest;
@BeforeEach
public void setup(){
carToTest = new Car("Lamborghini", "Aventador", 2021, 400000F);
carToTest.setImage("https://www.topgear.com/sites/default/files/cars-car/image/2017/01/aventador-s_green_050" +
".jpg");
carToTest.setID("TESTID");
carToTest.setVin("TESTVIN");
}
// Test getters
@Test
public void testGetModel() {
assertEquals("Aventador", carToTest.getModel());
}
@Test
public void testGetMake() {
assertEquals("Lamborghini", carToTest.getMake());
}
@Test
public void testGetYear() {
assertEquals(2021, carToTest.getYear());
}
@Test
public void testGetPrice() {
assertEquals(400000F, carToTest.getPrice());
}
@Test
public void testGetVin() {
assertEquals("TESTVIN", carToTest.getVin());
}
@Test
public void testGetID() {
assertEquals("TESTID", carToTest.getID());
}
@Test
public void testGetImage() {
assertEquals("https://www.topgear.com/sites/default/files/cars-car/" +
"image/2017/01/aventador-s_green_050.jpg", carToTest.getImage());
}
// Test setters
@Test
public void testSetImage() {
carToTest.setImage("newTestImage");
assertEquals("newTestImage", carToTest.getImage());
}
@Test
public void testSetID() {
carToTest.setID("newTestID");
assertEquals("newTestID", carToTest.getID());
}
@Test
public void testSetVin() {
carToTest.setVin("newTestVin");
assertEquals("newTestVin", carToTest.getVin());
}
// Test converters
@Test
public void testToJSON() {
JSONObject jsonEquiv = new JSONObject();
jsonEquiv.put("make", "Lamborghini");
jsonEquiv.put("model", "Aventador");
jsonEquiv.put("year", 2021);
jsonEquiv.put("price", 400000F);
jsonEquiv.put("image", "https://www.topgear.com/sites/default/files/cars-car/image/2017/01/" +
"aventador-s_green_050.jpg");
assertEquals(jsonEquiv.length(), carToTest.toJSON().length());
assertEquals(jsonEquiv.get("image"), carToTest.toJSON().get("image"));
}
}
|
#include "error_code.h"
#include "d3d_vertex_buffer.h"
#include "d3d_device.h"
using namespace module::av::stream;
static const uint32_t gFunctionCodeOf420ps30[] =
{
0xffff0300, 0x003ffffe, 0x42415443, 0x0000001c, 0x000000c7, 0xffff0300,
0x00000004, 0x0000001c, 0x20000102, 0x000000c0, 0x0000006c, 0x00010003,
0x00000001, 0x00000074, 0x00000000, 0x00000084, 0x00020003, 0x00000001,
0x00000074, 0x00000000, 0x0000008c, 0x00000003, 0x00000001, 0x00000074,
0x00000000, 0x00000094, 0x00000002, 0x00000001, 0x000000a0, 0x000000b0,
0x78655455, 0x00657574, 0x000c0004, 0x00010001, 0x00000001, 0x00000000,
0x78655456, 0x00657574, 0x78655459, 0x00657574, 0x6e617274, 0x72617073,
0x00746e65, 0x00030000, 0x00010001, 0x00000001, 0x00000000, 0x3f800000,
0x00000000, 0x00000000, 0x00000000, 0x335f7370, 0x4d00305f, 0x6f726369,
0x74666f73, 0x29522820, 0x534c4820, 0x6853204c, 0x72656461, 0x6d6f4320,
0x656c6970, 0x2e392072, 0x392e3432, 0x322e3934, 0x00373033, 0x05000051,
0xa00f0001, 0x3f950a81, 0x3fcc4a9d, 0xbf5fcbb4, 0x00000000, 0x05000051,
0xa00f0002, 0x3f950a81, 0xbec89507, 0xbf501eac, 0x3f081b65, 0x05000051,
0xa00f0003, 0x3f950a81, 0x40011a54, 0xbf8af5f5, 0x00000000, 0x05000051,
0xa00f0004, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x0200001f,
0x80000005, 0x90030000, 0x0200001f, 0x80010005, 0x90030001, 0x0200001f,
0x80020005, 0x90030002, 0x0200001f, 0x90000000, 0xa00f0800, 0x0200001f,
0x90000000, 0xa00f0801, 0x0200001f, 0x90000000, 0xa00f0802, 0x03000042,
0x800f0000, 0x90e40002, 0xa0e40802, 0x02000001, 0x80040000, 0x80000000,
0x03000042, 0x800f0001, 0x90e40000, 0xa0e40800, 0x04000004, 0x80090000,
0x80000001, 0xa0640004, 0xa0250004, 0x03000008, 0x80010800, 0xa0e40001,
0x80f80000, 0x03000042, 0x800f0001, 0x90e40001, 0xa0e40801, 0x02000001,
0x80020000, 0x80000001, 0x03000009, 0x80020800, 0xa0e40002, 0x80e40000,
0x03000008, 0x80040800, 0xa0e40003, 0x80f40000, 0x02000001, 0x80080800,
0xa0000000, 0x0000ffff
};
static const uint32_t gFunctionCodeOf420ps20[] =
{
0xffff0200, 0x003ffffe, 0x42415443, 0x0000001c, 0x000000c7, 0xffff0200,
0x00000004, 0x0000001c, 0x20000102, 0x000000c0, 0x0000006c, 0x00010003,
0x00000001, 0x00000074, 0x00000000, 0x00000084, 0x00020003, 0x00000001,
0x00000074, 0x00000000, 0x0000008c, 0x00000003, 0x00000001, 0x00000074,
0x00000000, 0x00000094, 0x00000002, 0x00000001, 0x000000a0, 0x000000b0,
0x78655455, 0x00657574, 0x000c0004, 0x00010001, 0x00000001, 0x00000000,
0x78655456, 0x00657574, 0x78655459, 0x00657574, 0x6e617274, 0x72617073,
0x00746e65, 0x00030000, 0x00010001, 0x00000001, 0x00000000, 0x3f800000,
0x00000000, 0x00000000, 0x00000000, 0x325f7370, 0x4d00305f, 0x6f726369,
0x74666f73, 0x29522820, 0x534c4820, 0x6853204c, 0x72656461, 0x6d6f4320,
0x656c6970, 0x2e392072, 0x392e3432, 0x322e3934, 0x00373033, 0x05000051,
0xa00f0001, 0x3f950a81, 0x00000000, 0x3fcc4a9d, 0xbf5fcbb4, 0x05000051,
0xa00f0002, 0x3f950a81, 0xbec89507, 0xbf501eac, 0x3f081b65, 0x05000051,
0xa00f0003, 0x3f950a81, 0x40011a54, 0x00000000, 0xbf8af5f5, 0x05000051,
0xa00f0004, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x0200001f,
0x80000000, 0xb0030000, 0x0200001f, 0x80000000, 0xb0030001, 0x0200001f,
0x80000000, 0xb0030002, 0x0200001f, 0x90000000, 0xa00f0800, 0x0200001f,
0x90000000, 0xa00f0801, 0x0200001f, 0x90000000, 0xa00f0802, 0x03000042,
0x800f0000, 0xb0e40000, 0xa0e40800, 0x03000042, 0x800f0001, 0xb0e40001,
0xa0e40801, 0x03000042, 0x800f0002, 0xb0e40002, 0xa0e40802, 0x02000001,
0x80080003, 0xa0000000, 0x02000001, 0x80020000, 0x80000001, 0x02000001,
0x80040000, 0x80000002, 0x02000001, 0x80080000, 0xa0000004, 0x03000009,
0x80010003, 0xa0e40001, 0x80e40000, 0x03000009, 0x80020003, 0xa0e40002,
0x80e40000, 0x03000009, 0x80040003, 0xa0e40003, 0x80e40000, 0x02000001,
0x800f0800, 0x80e40003, 0x0000ffff
};
D3DDevice::D3DDevice()
{}
D3DDevice::~D3DDevice()
{}
IDirect3DDevice9* D3DDevice::createNew(
IDirect3D9* d3d9 /* = nullptr */,
const void* hwnd /* = nullptr */,
const uint32_t width /* = 0 */,
const uint32_t height /* = 0 */)
{
IDirect3DDevice9* device{ nullptr };
if (d3d9 && hwnd && 0 < width && 0 < height)
{
D3DPRESENT_PARAMETERS param{ 0 };
param.hDeviceWindow = (HWND)hwnd;
param.BackBufferWidth = width;
param.BackBufferHeight = height;
param.BackBufferFormat = D3DFMT_UNKNOWN;
param.BackBufferCount = 2;
param.Windowed = TRUE;
param.SwapEffect = D3DSWAPEFFECT_DISCARD;
D3DCAPS9 caps9{};
DWORD flag{ D3DCREATE_SOFTWARE_VERTEXPROCESSING };
if (SUCCEEDED(d3d9->GetDeviceCaps(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, &caps9)))
{
if (caps9.DevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT)
{
flag = D3DCREATE_HARDWARE_VERTEXPROCESSING;
}
if (SUCCEEDED(d3d9->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, param.hDeviceWindow, flag, (D3DPRESENT_PARAMETERS*)¶m, &device)))
{
}
}
}
return device;
}
const uint32_t* D3DDevice::functioncode(IDirect3DDevice9* device /*= NULL*/)
{
uint32_t* fc{ nullptr };
if (device)
{
D3DCAPS9 d3dcaps9{};
if (SUCCEEDED(device->GetDeviceCaps(&d3dcaps9)))
{
fc = const_cast<uint32_t*>(
d3dcaps9.PixelShaderVersion >= D3DPS_VERSION(3, 0) ? gFunctionCodeOf420ps30 : gFunctionCodeOf420ps20);
}
}
return fc;
}
int D3DDevice::setPixelShader(
IDirect3DDevice9* device /* = nullptr */,
IDirect3DPixelShader9* shader /* = nullptr */)
{
int ret{ device && shader ? Error_Code_Success : Error_Code_Invalid_Param };
if (Error_Code_Success == ret)
{
if (SUCCEEDED(device->SetFVF(D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_TEX3)) && SUCCEEDED(device->SetPixelShader(shader)))
{
}
}
return ret;
}
int D3DDevice::setTexture(
IDirect3DDevice9* device /* = nullptr */,
ID3DXConstantTable* constant /* = nullptr */,
IDirect3DTexture9** textures /* = nullptr */)
{
int ret{ device && constant && textures ? Error_Code_Success : Error_Code_Invalid_Param };
if (Error_Code_Success == ret)
{
const char* const names[] =
{
"YTextue", "UTextue", "VTextue"
};
UINT number{ 0 };
D3DXCONSTANT_DESC desc{};
for (int i = 0; i != 3; ++i)
{
D3DXHANDLE handle{ constant->GetConstantByName(nullptr, names[i]) };
if (handle &&
SUCCEEDED(constant->GetConstantDesc(handle, &desc, &number)) &&
SUCCEEDED(device->SetTexture(desc.RegisterIndex, textures[i])))
{
}
else
{
break;
}
}
}
return ret;
}
|
def update_render_label(self, modelIndex):
model = self.associate_control.modelA
self.render_label.setText("Render Geo ({})".format(model.rowCount()))
|
Mewnfarez and Horsepants at BlizzCon 2016: "Ragnaros is insane"
I sat down with popular Heroes streamers Mewnfare and Horsepants and get their rapid-fire opinions on the BlizzCon 2016 Hero reveals.
BlizzCon is massive and even the most dedicated fans need to stop and take a break. I happened to run into Mewnfare and Horsepants, two heroes streamers with a penchant for low-tier heroes and solo queue Hero League grinding. They were enjoying some snacks in the media break room, and I decided to ruin their relaxing time and pester them with questions until they were forced to leave:
Who is more OP? Varian or Ragnaros?
Mewnfarez: Ragnaros
HorsePants: Ragnaros, but Varian is more versatile
What is the most powerful thing about Ragnaros?
MewnFarez: His Lava Wave heroic. The damage is absurd and creepwave clearing and pushing with it is so strong.
HorsePants: His W, Living Meteor. It's low cool down and the damage it's capable of doing.
What about Varian? What is his most powerful feature?
MewnFarez: His damage build seems insane. The heroic where you leap (Colossus Smash) is really good and easy to combo.
HorsePants: I don't have that much play time on him, but his two handed sword build seems powerful.
Ideal heroic choices for the new heroes?
Mewnfarez: Colossus Smash for Varian. Lava wave for Ragnaros
HorsePants: Lava wave is a nice combo, but Sulfuras Smash will be the default.
What do you think about the new Brawl?
Mewnfarez: Brawl is actually pretty fun. It's a good brawl-- not like the last one.
HorsePants: Haven't had a chance to play it.
What do you think about the Fnatic vs. MVP Black upset?
Mewnfarez: Fucking Awesome. The crowd had tons of hype. I had nerd chills.
HorsePants: Breeze is god, incredible play. To me, that upset made BlizzCon
What needs to change about Samuro?
Mewnfarez: Illusions need to be reworked. They are too tanky. You just have to run the moment Samuro uses them.
HorsePants: A lot of new players blame the stealth or his damage, but illusions are the problem. Something needs to be done
What teams will Ragnaros fit in?
Mewnfarez: He is good with combo oriented teams. His strengths are wave clear, strong solo lane, and AoE. I think he will actually make a strong counter pick and not some standard.
HorsePants: Rag will be similar to Thrall. Ranged Poke, sustainability, and in addition, he is a hard counter to Sylvanas. His trait just stops the for push and gives it a new HP bar as well. The range on it is incredibly powerful.
What teams will Varian fit in?
Mewnfarez: His Tank Role is REALLY tanky, but I'm not sure of the utility. I think he will be more of an off tank. He is actually really good at Tank Busting-- like Melee Tychyus. Dual Wield build is great vs. double warrior.
HorsePants: Varian can fit into more comps obviously. He can fit any melee role easily. If you need a melee hero, Varian can do it. Side tank, melee assassin, whatever.
What is your reaction to the Artanis changes?
Mewnfarez: Before, he was a really stale hero. You couldn't out play people. But now, his skill cap is really high. His new combo is awesome and great players will do well on him.
HorsePants: Artanis changes are going to make him beyond viable. I'm sure his other tweaks will be buffs, but we really don't know.
What is your favorite part about BlizzCon?
Mewnfarez: Meeting fans, the squadron party. It's always just great to meet everyone.
HorsePants: The people. I come to meet everyone!
Horsepants stream: https://www.twitch.tv/horsepants
Horsepants Twitter: @horsepantsu
Mewnfarez Stream: https://www.twitch.tv/mewnfarez
Mewnfarez Twitter : @mewnfarez
Follow us on Twitter @GosuGamersHotS and on Facebook for more competitive Heroes of the Storm news and coverage from around the world.
QUICKPOLL Ragnaros or Varian hype? Ragnaros!
Thank you for voting! Varian!
Thank you for voting!
|
def remove_volume_connection(self, context, volume_id, instance):
bdm = blkdev_obj.BlockDeviceMapping.get_by_volume_id(context,
volume_id)
cinfo = jsonutils.loads(bdm['connection_info'])
super(PowerVCComputeManager,
self).remove_volume_connection(context, volume_id, instance)
self.driver.remove_volume_device_at_destination(
context, instance, cinfo)
|
<filename>src/index.tsx
// Must be the first import
// Must be the first import
import "preact/debug"
import { PointerCallback, TimelineOptions } from './types'
import dayjs from 'dayjs'
import { h } from 'preact'
import minMax from 'dayjs/plugin/minMax'
import customParseFormat from 'dayjs/plugin/customParseFormat'
import { render } from 'preact'
import Wrapper from "./wrapper"
const addStyle = (() => {
const style = document.createElement('style');
document.head.append(style);
return (styleString: string) => style.textContent = styleString;
})();
export default class Timeline {
target: any
wrapper: any
static version:string = process.env.VERSION
static git: any = {
sha: process.env.SHA,
tag: process.env.TAG,
date: process.env.COMMIT_DATE
}
static SHA:string = process.env.GIT
constructor(id: string, data: any[] = [], config: TimelineOptions = {}) {
dayjs.extend(minMax)
dayjs.extend(customParseFormat)
if (id.indexOf('.') === 0) {
} else {
this.target = document.getElementById(id)
}
addStyle(`
.timeline-plan:hover {
filter: opacity(0.75);
pointer-events: fill;
}
.timeline-milestone {
pointer-events: visible;
}
.timeline-milestone:hover {
filter: opacity(0.65) drop-shadow(0 0 4px rgba(235, 210, 52, 1));
}
`)
this.initialRender(data, config)
console.log(this)
}
initialRender(data: any[], config: TimelineOptions) {
render(<Wrapper ref={(wrapper: any) => this.wrapper = wrapper} data={data} config={config} />, this.target)
}
updateConfig(config: TimelineOptions) {
if (this.wrapper) {
this.wrapper.setState({
config: config || {}
})
}
}
updateData(data: any[]) {
if (this.wrapper) {
this.wrapper.setState({
data: data
})
}
}
update(data: any[], config: TimelineOptions) {
if (this.wrapper) {
this.wrapper.setState({
data: data,
config: config || {}
})
}
}
on(key: string, callback: PointerCallback) {
if (this.wrapper) {
const events = {
...this.wrapper.state.events
}
events[key] = callback
this.wrapper.setState({
events: events
})
}
}
}
|
// SetInternalIPv4From sets the internal IPv4 with the first global address
// found in that interface.
func SetInternalIPv4From(ifaceName string) error {
l, err := netlink.LinkByName(ifaceName)
if err != nil {
return errors.New("unable to retrieve interface attributes")
}
v4Addrs, err := netlink.AddrList(l, netlink.FAMILY_V4)
if err != nil {
return errors.New("unable to retrieve interface IPv4 address")
}
for _, ip := range v4Addrs {
if netlink.Scope(ip.Scope) == netlink.SCOPE_UNIVERSE {
SetInternalIPv4Router(ip.IP)
return nil
}
}
return errors.New("unable to find IP addresses with scope global")
}
|
<gh_stars>0
package com.stew.parse;
import com.stew.ConfigProperty;
import java.nio.file.Path;
import java.nio.file.Paths;
/**
* Created by stew.bracken on 11/6/16.
*/
public class ParseDestination {
private String fileName;
private String parseDirCache;
private Path pathCache;
boolean fullFileProvided;
public ParseDestination(final String fileName){
this.fileName = fileName;
}
public void fullFile(boolean useFullFile){
fullFileProvided = useFullFile;
}
public final Path fileFromLoc(){
if(pathCache==null){
pathCache = Paths.get(fullPath());
}
return pathCache;
}
public String fullPath(){
if(fullFileProvided){
return this.fileName;
}
return parseDir() + this.fileName;
}
private String parseDir(){
if (parseDirCache==null){
parseDirCache = ConfigProperty.get().getParseDir();
}
return parseDirCache;
}
}
|
#include "Audio.h"
Audio::init(){
}
/*
*plays sound chunk on a specific channel a number of times
* chunk - the chunk object to be played
* channel - the channel the sound is played on
* loops - the number of times the chunk is looped
*/
void Audio::playSound(Mix_Chunk chunk, int channel, int loops){
Mix_PlayChannel(-1, chunk, loops);
}
void Audio::playSound(Mix_Chunk chunk){
}
void Audio::playSound(Mix_Chunk chunk, int x, int y){
}
void Audio::playSound(String path){
}
void Audio::void playSound(String path, int x, int y){
}
/*
* Creates a sound chunk based on the file stored at the file path
* path - the path where the audio is stored
*/
Mix_Chunk Audio::getChunk(String path){
return Mix_LoadWaAV(path);
}
|
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeOperators #-}
module Main (main) where
import qualified System.IO as IO
import System.Exit
import Control.Algebra
import Control.Carrier.Lift
import Control.Effect.Fail
import Control.Monad (unless, forM_)
import Control.Monad.IO.Class
import qualified Data.ByteString.Lazy.Char8 as B8
import Data.Text.Prettyprint.Doc
import qualified Language.SexpGrammar
import qualified Language.Sexp.Located
import qualified Options.Applicative as Opt
import Errors
import Eval
import Expr
import Pretty
import Prim.Base
import Prim.Dyn
import Prim.Exception
import Prim.IO
import Prim.Kappa
import Prim.Link
import Prim.Record
import Prim.Variant
import Syntax.Desugar (desugar)
import Syntax.Grammar (sugaredGrammar)
import TypeChecker (runInfer, inferExprType)
import Types (Type)
----------------------------------------------------------------------
-- Concrete language
type TypeCtors = '[BaseType, KappaType, DynType, RecordType, VariantType]
type PrimTypes = '[BasePrim, DynPrim, RecordPrim, VariantPrim, KappaPrim, IOPrim, LinkPrim, ExceptionPrim]
type ValueTypes = '[LambdaValue (Eval IO), BaseValue, DynValue, RecordValue, VariantValue, KappaValue]
newtype Eval m a = Eval
{ unEval :: RuntimeErrorEffectC (DynEffectC ValueTypes (ExceptionEffectC ValueTypes (EnvEffectC ValueTypes (KappaEffectC (LiftC m))))) a
} deriving (Functor, Applicative, Monad, MonadIO, MonadFail)
instance (MonadIO m) => Algebra
( RuntimeErrorEffect
:+: Fail
:+: DynAllocEffect
:+: DynEnvEffect ValueTypes
:+: ExceptionEffect ValueTypes
:+: EnvEffect ValueTypes
:+: KappaEffect
:+: Lift m
) (Eval m) where
alg hdl sig ctx = Eval $ alg (unEval . hdl) sig ctx
runEval :: Eval IO a -> IO (Either String a)
runEval k = do
result <- runM . runKappa . runEnv . runException . runDyn . runRuntimeError . unEval $ k
pure $ case result of
Left unhandledException -> Left (render $ nest 2 $ vsep ["Unhandled exception:", ppValue unhandledException])
Right (Left runtimeError) -> Left runtimeError
Right (Right res) -> Right res
eval' :: Expr TypeCtors PrimTypes -> IO (Either String (Value ValueTypes))
eval' e = runEval $ do
r <- eval e
case projVal r of
Just vals -> mkVAbs [] <$> toEExpr vals
_other -> pure r
infer' :: Expr TypeCtors PrimTypes -> Either (TCError TypeCtors) (Type TypeCtors)
infer' a = runInfer (inferExprType a)
----------------------------------------------------------------------
data Options = Options
{ optTypecheck :: Bool
, optFilename :: Maybe FilePath
}
parseOptions :: Opt.Parser Options
parseOptions =
Options
<$> (Opt.switch $
Opt.long "check" <>
Opt.help "Typecheck only")
<*> (Opt.optional $ Opt.strArgument $
Opt.metavar "SRC" <>
Opt.help "Source .lf file to process (run or typecheck)")
main :: IO ()
main = do
IO.hSetEncoding IO.stdin IO.utf8
IO.hSetEncoding IO.stdout IO.utf8
IO.hSetEncoding IO.stderr IO.utf8
Options{..} <- Opt.execParser $
Opt.info
(Opt.helper <*> parseOptions)
(Opt.fullDesc <>
Opt.progDesc "Lambda F interpreter")
(fn, str) <-
case optFilename of
Nothing -> (,) <$> pure "<stdin>" <*> B8.getContents
Just fn -> (,) <$> pure fn <*> B8.readFile fn
exprs <-
case Language.Sexp.Located.parseSexps fn str >>=
traverse (Language.SexpGrammar.fromSexp sugaredGrammar)
of
Left err -> die $ "parse error:\n" ++ err
Right s -> pure (map desugar s :: [Expr TypeCtors PrimTypes])
forM_ exprs $ \expr -> do
unless optTypecheck $
putStrLn $ render (ppExpr expr)
case infer' expr of
Left tcerror ->
IO.hPutStrLn IO.stderr
(render (ppError tcerror))
Right ty -> do
unless optTypecheck $ putStrLn $ render $ vsep
[ "----------------------------------------------------------------------"
, ":" <+> ppType ty
, "----------------------------------------------------------------------"
]
unless optTypecheck $ do
res <- eval' expr
case res of
Left err -> putStrLn err
Right p -> putStrLn (render (ppValue p))
|
<filename>src/components/molecules/ContainerCard/ContainerCard.tsx
import React, { useEffect, useState } from 'react';
import { View } from 'react-native';
import { Icon } from '@atoms/Icon/Icon';
import { Typography, TypographyVariants } from '@atoms/Typography/Typography';
import { log } from '@helpers/Logger';
import { readFromStorage, writeToStorage } from '@helpers/Storage';
import { DefaultIcon } from '@molecules/ContainerCard/DefaultIcon';
import type { Container } from '@ridenui/unraid/dist/modules/docker/container';
import * as S from './ContainerCard.styled';
export interface ContainerCardProps {
container: Container;
}
const imagePrefix = 'data:image/png;base64,';
/**
* Description of ContainerCard.
*/
export function ContainerCard({ container }: ContainerCardProps): JSX.Element {
const [image, setImage] = useState(imagePrefix + DefaultIcon);
useEffect(() => {
const loadImage = async () => {
log.debug(`Loading image for container ${container.name}`);
const imageCacheKey = `cache:docker:image:${container.name}`;
const cachedImage = await readFromStorage(imageCacheKey);
if (cachedImage) {
log.debug(`Image-Cache-Hit for ${container.name}.`);
const [checksum, encoded] = cachedImage.split(':');
setImage(imagePrefix + encoded);
const freshChecksum = await container.getImageChecksum();
if (freshChecksum !== checksum) {
log.debug(`Image for ${container.name} has checksum mismatch.`);
const freshImage = await container.getImage(true);
setImage(imagePrefix + freshImage.encoded);
await writeToStorage(imageCacheKey, `${freshImage.checksum}:${freshImage.encoded}`);
} else {
log.debug(`Image for ${container.name} is up-to-date.`);
}
} else {
log.debug(`Image-Cache-Miss for ${container.name}.`);
const freshImage = await container.getImage();
setImage(imagePrefix + freshImage.encoded);
await writeToStorage(imageCacheKey, `${freshImage.checksum}:${freshImage.encoded}`);
}
};
loadImage()
.then(() => log.info(`Loaded image for container ${container.name}`))
.catch((e) => {
log.error(`Unable to load image for container "${container.name}". ${e}`);
});
}, [container]);
return (
<S.ContainerCard>
<S.ContainerIcon source={{ uri: image }} />
<View>
<Typography variant={TypographyVariants.H3}>{container.name}</Typography>
<Typography variant={TypographyVariants.Small}>{container.state}</Typography>
</View>
<S.Icon>
<Icon name={'chevron-right'} size={32} />
</S.Icon>
</S.ContainerCard>
);
}
|
package com.xiaojukeji.kafka.manager.dao.impl;
import com.xiaojukeji.kafka.manager.dao.KafkaFileDao;
import com.xiaojukeji.kafka.manager.common.entity.pojo.KafkaFileDO;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @author zhongyuankai
* @date 2020/5/7
*/
@Repository("kafkaFileDao")
public class KafkaFileDaoImpl implements KafkaFileDao {
@Autowired
private SqlSessionTemplate sqlSession;
public void setSqlSession(SqlSessionTemplate sqlSession) {
this.sqlSession = sqlSession;
}
@Override
public int insert(KafkaFileDO kafkaFileDO) {
return sqlSession.insert("KafkaFileDao.insert", kafkaFileDO);
}
@Override
public int deleteById(Long id) {
return sqlSession.delete("KafkaFileDao.deleteById", id);
}
@Override
public int updateById(KafkaFileDO kafkaFileDO) {
return sqlSession.update("KafkaFileDao.updateById", kafkaFileDO);
}
@Override
public List<KafkaFileDO> list() {
return sqlSession.selectList("KafkaFileDao.list");
}
@Override
public KafkaFileDO getById(Long id) {
return sqlSession.selectOne("KafkaFileDao.getById", id);
}
@Override
public KafkaFileDO getFileByFileName(String fileName) {
return sqlSession.selectOne("KafkaFileDao.getFileByFileName", fileName);
}
}
|
package deviceupdate
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"encoding/json"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/date"
"github.com/Azure/go-autorest/autorest/to"
"github.com/Azure/go-autorest/tracing"
"github.com/gofrs/uuid"
"net/http"
)
// The package's fully qualified name.
const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/deviceupdate/mgmt/2022-04-01-preview/deviceupdate"
// Account device Update account details.
type Account struct {
autorest.Response `json:"-"`
// AccountProperties - Device Update account properties.
*AccountProperties `json:"properties,omitempty"`
// Identity - The type of identity used for the resource.
Identity *ManagedServiceIdentity `json:"identity,omitempty"`
// Tags - Resource tags.
Tags map[string]*string `json:"tags"`
// Location - The geo-location where the resource lives
Location *string `json:"location,omitempty"`
// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string `json:"id,omitempty"`
// Name - READ-ONLY; The name of the resource
Name *string `json:"name,omitempty"`
// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string `json:"type,omitempty"`
// SystemData - READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData `json:"systemData,omitempty"`
}
// MarshalJSON is the custom marshaler for Account.
func (a Account) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if a.AccountProperties != nil {
objectMap["properties"] = a.AccountProperties
}
if a.Identity != nil {
objectMap["identity"] = a.Identity
}
if a.Tags != nil {
objectMap["tags"] = a.Tags
}
if a.Location != nil {
objectMap["location"] = a.Location
}
return json.Marshal(objectMap)
}
// UnmarshalJSON is the custom unmarshaler for Account struct.
func (a *Account) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
err := json.Unmarshal(body, &m)
if err != nil {
return err
}
for k, v := range m {
switch k {
case "properties":
if v != nil {
var accountProperties AccountProperties
err = json.Unmarshal(*v, &accountProperties)
if err != nil {
return err
}
a.AccountProperties = &accountProperties
}
case "identity":
if v != nil {
var identity ManagedServiceIdentity
err = json.Unmarshal(*v, &identity)
if err != nil {
return err
}
a.Identity = &identity
}
case "tags":
if v != nil {
var tags map[string]*string
err = json.Unmarshal(*v, &tags)
if err != nil {
return err
}
a.Tags = tags
}
case "location":
if v != nil {
var location string
err = json.Unmarshal(*v, &location)
if err != nil {
return err
}
a.Location = &location
}
case "id":
if v != nil {
var ID string
err = json.Unmarshal(*v, &ID)
if err != nil {
return err
}
a.ID = &ID
}
case "name":
if v != nil {
var name string
err = json.Unmarshal(*v, &name)
if err != nil {
return err
}
a.Name = &name
}
case "type":
if v != nil {
var typeVar string
err = json.Unmarshal(*v, &typeVar)
if err != nil {
return err
}
a.Type = &typeVar
}
case "systemData":
if v != nil {
var systemData SystemData
err = json.Unmarshal(*v, &systemData)
if err != nil {
return err
}
a.SystemData = &systemData
}
}
}
return nil
}
// AccountList list of Accounts.
type AccountList struct {
autorest.Response `json:"-"`
// NextLink - The link used to get the next page of Accounts list.
NextLink *string `json:"nextLink,omitempty"`
// Value - List of Accounts.
Value *[]Account `json:"value,omitempty"`
}
// AccountListIterator provides access to a complete listing of Account values.
type AccountListIterator struct {
i int
page AccountListPage
}
// NextWithContext advances to the next value. If there was an error making
// the request the iterator does not advance and the error is returned.
func (iter *AccountListIterator) NextWithContext(ctx context.Context) (err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/AccountListIterator.NextWithContext")
defer func() {
sc := -1
if iter.Response().Response.Response != nil {
sc = iter.Response().Response.Response.StatusCode
}
tracing.EndSpan(ctx, sc, err)
}()
}
iter.i++
if iter.i < len(iter.page.Values()) {
return nil
}
err = iter.page.NextWithContext(ctx)
if err != nil {
iter.i--
return err
}
iter.i = 0
return nil
}
// Next advances to the next value. If there was an error making
// the request the iterator does not advance and the error is returned.
// Deprecated: Use NextWithContext() instead.
func (iter *AccountListIterator) Next() error {
return iter.NextWithContext(context.Background())
}
// NotDone returns true if the enumeration should be started or is not yet complete.
func (iter AccountListIterator) NotDone() bool {
return iter.page.NotDone() && iter.i < len(iter.page.Values())
}
// Response returns the raw server response from the last page request.
func (iter AccountListIterator) Response() AccountList {
return iter.page.Response()
}
// Value returns the current value or a zero-initialized value if the
// iterator has advanced beyond the end of the collection.
func (iter AccountListIterator) Value() Account {
if !iter.page.NotDone() {
return Account{}
}
return iter.page.Values()[iter.i]
}
// Creates a new instance of the AccountListIterator type.
func NewAccountListIterator(page AccountListPage) AccountListIterator {
return AccountListIterator{page: page}
}
// IsEmpty returns true if the ListResult contains no values.
func (al AccountList) IsEmpty() bool {
return al.Value == nil || len(*al.Value) == 0
}
// hasNextLink returns true if the NextLink is not empty.
func (al AccountList) hasNextLink() bool {
return al.NextLink != nil && len(*al.NextLink) != 0
}
// accountListPreparer prepares a request to retrieve the next set of results.
// It returns nil if no more results exist.
func (al AccountList) accountListPreparer(ctx context.Context) (*http.Request, error) {
if !al.hasNextLink() {
return nil, nil
}
return autorest.Prepare((&http.Request{}).WithContext(ctx),
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(al.NextLink)))
}
// AccountListPage contains a page of Account values.
type AccountListPage struct {
fn func(context.Context, AccountList) (AccountList, error)
al AccountList
}
// NextWithContext advances to the next page of values. If there was an error making
// the request the page does not advance and the error is returned.
func (page *AccountListPage) NextWithContext(ctx context.Context) (err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/AccountListPage.NextWithContext")
defer func() {
sc := -1
if page.Response().Response.Response != nil {
sc = page.Response().Response.Response.StatusCode
}
tracing.EndSpan(ctx, sc, err)
}()
}
for {
next, err := page.fn(ctx, page.al)
if err != nil {
return err
}
page.al = next
if !next.hasNextLink() || !next.IsEmpty() {
break
}
}
return nil
}
// Next advances to the next page of values. If there was an error making
// the request the page does not advance and the error is returned.
// Deprecated: Use NextWithContext() instead.
func (page *AccountListPage) Next() error {
return page.NextWithContext(context.Background())
}
// NotDone returns true if the page enumeration should be started or is not yet complete.
func (page AccountListPage) NotDone() bool {
return !page.al.IsEmpty()
}
// Response returns the raw server response from the last page request.
func (page AccountListPage) Response() AccountList {
return page.al
}
// Values returns the slice of values for the current page or nil if there are no values.
func (page AccountListPage) Values() []Account {
if page.al.IsEmpty() {
return nil
}
return *page.al.Value
}
// Creates a new instance of the AccountListPage type.
func NewAccountListPage(cur AccountList, getNextPage func(context.Context, AccountList) (AccountList, error)) AccountListPage {
return AccountListPage{
fn: getNextPage,
al: cur,
}
}
// AccountProperties device Update account properties.
type AccountProperties struct {
// ProvisioningState - READ-ONLY; Provisioning state. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateDeleted', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateAccepted', 'ProvisioningStateCreating'
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
// HostName - READ-ONLY; API host name.
HostName *string `json:"hostName,omitempty"`
// PublicNetworkAccess - Whether or not public network access is allowed for the account. Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled'
PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"`
// PrivateEndpointConnections - List of private endpoint connections associated with the account.
PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"`
// Sku - Device Update Sku. Possible values include: 'SKUFree', 'SKUStandard'
Sku SKU `json:"sku,omitempty"`
// Locations - READ-ONLY; Device Update account primary and failover location details
Locations *[]Location `json:"locations,omitempty"`
}
// MarshalJSON is the custom marshaler for AccountProperties.
func (a AccountProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if a.PublicNetworkAccess != "" {
objectMap["publicNetworkAccess"] = a.PublicNetworkAccess
}
if a.PrivateEndpointConnections != nil {
objectMap["privateEndpointConnections"] = a.PrivateEndpointConnections
}
if a.Sku != "" {
objectMap["sku"] = a.Sku
}
return json.Marshal(objectMap)
}
// AccountsCreateFuture an abstraction for monitoring and retrieving the results of a long-running
// operation.
type AccountsCreateFuture struct {
azure.FutureAPI
// Result returns the result of the asynchronous operation.
// If the operation has not completed it will return an error.
Result func(AccountsClient) (Account, error)
}
// UnmarshalJSON is the custom unmarshaller for CreateFuture.
func (future *AccountsCreateFuture) UnmarshalJSON(body []byte) error {
var azFuture azure.Future
if err := json.Unmarshal(body, &azFuture); err != nil {
return err
}
future.FutureAPI = &azFuture
future.Result = future.result
return nil
}
// result is the default implementation for AccountsCreateFuture.Result.
func (future *AccountsCreateFuture) result(client AccountsClient) (a Account, err error) {
var done bool
done, err = future.DoneWithContext(context.Background(), client)
if err != nil {
err = autorest.NewErrorWithError(err, "deviceupdate.AccountsCreateFuture", "Result", future.Response(), "Polling failure")
return
}
if !done {
a.Response.Response = future.Response()
err = azure.NewAsyncOpIncompleteError("deviceupdate.AccountsCreateFuture")
return
}
sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
if a.Response.Response, err = future.GetResult(sender); err == nil && a.Response.Response.StatusCode != http.StatusNoContent {
a, err = client.CreateResponder(a.Response.Response)
if err != nil {
err = autorest.NewErrorWithError(err, "deviceupdate.AccountsCreateFuture", "Result", a.Response.Response, "Failure responding to request")
}
}
return
}
// AccountsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running
// operation.
type AccountsDeleteFuture struct {
azure.FutureAPI
// Result returns the result of the asynchronous operation.
// If the operation has not completed it will return an error.
Result func(AccountsClient) (autorest.Response, error)
}
// UnmarshalJSON is the custom unmarshaller for CreateFuture.
func (future *AccountsDeleteFuture) UnmarshalJSON(body []byte) error {
var azFuture azure.Future
if err := json.Unmarshal(body, &azFuture); err != nil {
return err
}
future.FutureAPI = &azFuture
future.Result = future.result
return nil
}
// result is the default implementation for AccountsDeleteFuture.Result.
func (future *AccountsDeleteFuture) result(client AccountsClient) (ar autorest.Response, err error) {
var done bool
done, err = future.DoneWithContext(context.Background(), client)
if err != nil {
err = autorest.NewErrorWithError(err, "deviceupdate.AccountsDeleteFuture", "Result", future.Response(), "Polling failure")
return
}
if !done {
ar.Response = future.Response()
err = azure.NewAsyncOpIncompleteError("deviceupdate.AccountsDeleteFuture")
return
}
ar.Response = future.Response()
return
}
// AccountsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running
// operation.
type AccountsUpdateFuture struct {
azure.FutureAPI
// Result returns the result of the asynchronous operation.
// If the operation has not completed it will return an error.
Result func(AccountsClient) (Account, error)
}
// UnmarshalJSON is the custom unmarshaller for CreateFuture.
func (future *AccountsUpdateFuture) UnmarshalJSON(body []byte) error {
var azFuture azure.Future
if err := json.Unmarshal(body, &azFuture); err != nil {
return err
}
future.FutureAPI = &azFuture
future.Result = future.result
return nil
}
// result is the default implementation for AccountsUpdateFuture.Result.
func (future *AccountsUpdateFuture) result(client AccountsClient) (a Account, err error) {
var done bool
done, err = future.DoneWithContext(context.Background(), client)
if err != nil {
err = autorest.NewErrorWithError(err, "deviceupdate.AccountsUpdateFuture", "Result", future.Response(), "Polling failure")
return
}
if !done {
a.Response.Response = future.Response()
err = azure.NewAsyncOpIncompleteError("deviceupdate.AccountsUpdateFuture")
return
}
sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
if a.Response.Response, err = future.GetResult(sender); err == nil && a.Response.Response.StatusCode != http.StatusNoContent {
a, err = client.UpdateResponder(a.Response.Response)
if err != nil {
err = autorest.NewErrorWithError(err, "deviceupdate.AccountsUpdateFuture", "Result", a.Response.Response, "Failure responding to request")
}
}
return
}
// AccountUpdate request payload used to update and existing Accounts.
type AccountUpdate struct {
// Identity - The type of identity used for the resource.
Identity *ManagedServiceIdentity `json:"identity,omitempty"`
// Location - The geo-location where the resource lives
Location *string `json:"location,omitempty"`
// Tags - List of key value pairs that describe the resource. This will overwrite the existing tags.
Tags map[string]*string `json:"tags"`
}
// MarshalJSON is the custom marshaler for AccountUpdate.
func (au AccountUpdate) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if au.Identity != nil {
objectMap["identity"] = au.Identity
}
if au.Location != nil {
objectMap["location"] = au.Location
}
if au.Tags != nil {
objectMap["tags"] = au.Tags
}
return json.Marshal(objectMap)
}
// AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag.
type AzureEntityResource struct {
// Etag - READ-ONLY; Resource Etag.
Etag *string `json:"etag,omitempty"`
// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string `json:"id,omitempty"`
// Name - READ-ONLY; The name of the resource
Name *string `json:"name,omitempty"`
// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string `json:"type,omitempty"`
// SystemData - READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData `json:"systemData,omitempty"`
}
// MarshalJSON is the custom marshaler for AzureEntityResource.
func (aer AzureEntityResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
return json.Marshal(objectMap)
}
// CheckNameAvailabilityRequest the check availability request body.
type CheckNameAvailabilityRequest struct {
// Name - The name of the resource for which availability needs to be checked.
Name *string `json:"name,omitempty"`
// Type - The resource type.
Type *string `json:"type,omitempty"`
}
// CheckNameAvailabilityResponse the check availability result.
type CheckNameAvailabilityResponse struct {
autorest.Response `json:"-"`
// NameAvailable - Indicates if the resource name is available.
NameAvailable *bool `json:"nameAvailable,omitempty"`
// Reason - The reason why the given name is not available. Possible values include: 'CheckNameAvailabilityReasonInvalid', 'CheckNameAvailabilityReasonAlreadyExists'
Reason CheckNameAvailabilityReason `json:"reason,omitempty"`
// Message - Detailed reason why the given name is available.
Message *string `json:"message,omitempty"`
}
// ConnectionDetails private endpoint connection proxy object properties.
type ConnectionDetails struct {
// ID - READ-ONLY; Connection details ID.
ID *string `json:"id,omitempty"`
// PrivateIPAddress - READ-ONLY; Private IP address.
PrivateIPAddress *string `json:"privateIpAddress,omitempty"`
// LinkIdentifier - READ-ONLY; Link ID.
LinkIdentifier *string `json:"linkIdentifier,omitempty"`
// GroupID - READ-ONLY; Group ID.
GroupID *string `json:"groupId,omitempty"`
// MemberName - READ-ONLY; Member name.
MemberName *string `json:"memberName,omitempty"`
}
// MarshalJSON is the custom marshaler for ConnectionDetails.
func (cd ConnectionDetails) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
return json.Marshal(objectMap)
}
// DiagnosticStorageProperties customer-initiated diagnostic log collection storage properties
type DiagnosticStorageProperties struct {
// AuthenticationType - Authentication Type
AuthenticationType *string `json:"authenticationType,omitempty"`
// ConnectionString - ConnectionString of the diagnostic storage account
ConnectionString *string `json:"connectionString,omitempty"`
// ResourceID - ResourceId of the diagnostic storage account
ResourceID *string `json:"resourceId,omitempty"`
}
// ErrorAdditionalInfo the resource management error additional info.
type ErrorAdditionalInfo struct {
// Type - READ-ONLY; The additional info type.
Type *string `json:"type,omitempty"`
// Info - READ-ONLY; The additional info.
Info interface{} `json:"info,omitempty"`
}
// MarshalJSON is the custom marshaler for ErrorAdditionalInfo.
func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
return json.Marshal(objectMap)
}
// ErrorDetail the error detail.
type ErrorDetail struct {
// Code - READ-ONLY; The error code.
Code *string `json:"code,omitempty"`
// Message - READ-ONLY; The error message.
Message *string `json:"message,omitempty"`
// Target - READ-ONLY; The error target.
Target *string `json:"target,omitempty"`
// Details - READ-ONLY; The error details.
Details *[]ErrorDetail `json:"details,omitempty"`
// AdditionalInfo - READ-ONLY; The error additional info.
AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"`
}
// MarshalJSON is the custom marshaler for ErrorDetail.
func (ed ErrorDetail) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
return json.Marshal(objectMap)
}
// ErrorResponse common error response for all Azure Resource Manager APIs to return error details for
// failed operations. (This also follows the OData error response format.).
type ErrorResponse struct {
// Error - The error object.
Error *ErrorDetail `json:"error,omitempty"`
}
// GroupConnectivityInformation group connectivity details.
type GroupConnectivityInformation struct {
// GroupID - READ-ONLY; Group ID.
GroupID *string `json:"groupId,omitempty"`
// MemberName - READ-ONLY; Member name.
MemberName *string `json:"memberName,omitempty"`
// CustomerVisibleFqdns - List of customer visible FQDNs.
CustomerVisibleFqdns *[]string `json:"customerVisibleFqdns,omitempty"`
// InternalFqdn - READ-ONLY; Internal FQDN.
InternalFqdn *string `json:"internalFqdn,omitempty"`
// RedirectMapID - Redirect map ID.
RedirectMapID *string `json:"redirectMapId,omitempty"`
// PrivateLinkServiceArmRegion - PrivateLinkService ARM region.
PrivateLinkServiceArmRegion *string `json:"privateLinkServiceArmRegion,omitempty"`
}
// MarshalJSON is the custom marshaler for GroupConnectivityInformation.
func (gci GroupConnectivityInformation) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if gci.CustomerVisibleFqdns != nil {
objectMap["customerVisibleFqdns"] = gci.CustomerVisibleFqdns
}
if gci.RedirectMapID != nil {
objectMap["redirectMapId"] = gci.RedirectMapID
}
if gci.PrivateLinkServiceArmRegion != nil {
objectMap["privateLinkServiceArmRegion"] = gci.PrivateLinkServiceArmRegion
}
return json.Marshal(objectMap)
}
// GroupInformation the group information for creating a private endpoint on an Account
type GroupInformation struct {
autorest.Response `json:"-"`
// GroupInformationProperties - The properties for a group information object
*GroupInformationProperties `json:"properties,omitempty"`
// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string `json:"id,omitempty"`
// Name - READ-ONLY; The name of the resource
Name *string `json:"name,omitempty"`
// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string `json:"type,omitempty"`
// SystemData - READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData `json:"systemData,omitempty"`
}
// MarshalJSON is the custom marshaler for GroupInformation.
func (gi GroupInformation) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if gi.GroupInformationProperties != nil {
objectMap["properties"] = gi.GroupInformationProperties
}
return json.Marshal(objectMap)
}
// UnmarshalJSON is the custom unmarshaler for GroupInformation struct.
func (gi *GroupInformation) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
err := json.Unmarshal(body, &m)
if err != nil {
return err
}
for k, v := range m {
switch k {
case "properties":
if v != nil {
var groupInformationProperties GroupInformationProperties
err = json.Unmarshal(*v, &groupInformationProperties)
if err != nil {
return err
}
gi.GroupInformationProperties = &groupInformationProperties
}
case "id":
if v != nil {
var ID string
err = json.Unmarshal(*v, &ID)
if err != nil {
return err
}
gi.ID = &ID
}
case "name":
if v != nil {
var name string
err = json.Unmarshal(*v, &name)
if err != nil {
return err
}
gi.Name = &name
}
case "type":
if v != nil {
var typeVar string
err = json.Unmarshal(*v, &typeVar)
if err != nil {
return err
}
gi.Type = &typeVar
}
case "systemData":
if v != nil {
var systemData SystemData
err = json.Unmarshal(*v, &systemData)
if err != nil {
return err
}
gi.SystemData = &systemData
}
}
}
return nil
}
// GroupInformationProperties the properties for a group information object
type GroupInformationProperties struct {
// ProvisioningState - READ-ONLY; The provisioning state of private link group ID. Possible values include: 'GroupIDProvisioningStateSucceeded', 'GroupIDProvisioningStateFailed', 'GroupIDProvisioningStateCanceled'
ProvisioningState GroupIDProvisioningState `json:"provisioningState,omitempty"`
// GroupID - READ-ONLY; The private link resource group id.
GroupID *string `json:"groupId,omitempty"`
// RequiredMembers - READ-ONLY; The private link resource required member names.
RequiredMembers *[]string `json:"requiredMembers,omitempty"`
// RequiredZoneNames - The private link resource Private link DNS zone name.
RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"`
}
// MarshalJSON is the custom marshaler for GroupInformationProperties.
func (gip GroupInformationProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if gip.RequiredZoneNames != nil {
objectMap["requiredZoneNames"] = gip.RequiredZoneNames
}
return json.Marshal(objectMap)
}
// Identity identity for the resource.
type Identity struct {
// PrincipalID - READ-ONLY; The principal ID of resource identity.
PrincipalID *string `json:"principalId,omitempty"`
// TenantID - READ-ONLY; The tenant ID of resource.
TenantID *string `json:"tenantId,omitempty"`
// Type - The identity type. Possible values include: 'ResourceIdentityTypeSystemAssigned'
Type ResourceIdentityType `json:"type,omitempty"`
}
// MarshalJSON is the custom marshaler for Identity.
func (i Identity) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if i.Type != "" {
objectMap["type"] = i.Type
}
return json.Marshal(objectMap)
}
// Instance device Update instance details.
type Instance struct {
autorest.Response `json:"-"`
// InstanceProperties - Device Update instance properties.
*InstanceProperties `json:"properties,omitempty"`
// Tags - Resource tags.
Tags map[string]*string `json:"tags"`
// Location - The geo-location where the resource lives
Location *string `json:"location,omitempty"`
// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string `json:"id,omitempty"`
// Name - READ-ONLY; The name of the resource
Name *string `json:"name,omitempty"`
// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string `json:"type,omitempty"`
// SystemData - READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData `json:"systemData,omitempty"`
}
// MarshalJSON is the custom marshaler for Instance.
func (i Instance) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if i.InstanceProperties != nil {
objectMap["properties"] = i.InstanceProperties
}
if i.Tags != nil {
objectMap["tags"] = i.Tags
}
if i.Location != nil {
objectMap["location"] = i.Location
}
return json.Marshal(objectMap)
}
// UnmarshalJSON is the custom unmarshaler for Instance struct.
func (i *Instance) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
err := json.Unmarshal(body, &m)
if err != nil {
return err
}
for k, v := range m {
switch k {
case "properties":
if v != nil {
var instanceProperties InstanceProperties
err = json.Unmarshal(*v, &instanceProperties)
if err != nil {
return err
}
i.InstanceProperties = &instanceProperties
}
case "tags":
if v != nil {
var tags map[string]*string
err = json.Unmarshal(*v, &tags)
if err != nil {
return err
}
i.Tags = tags
}
case "location":
if v != nil {
var location string
err = json.Unmarshal(*v, &location)
if err != nil {
return err
}
i.Location = &location
}
case "id":
if v != nil {
var ID string
err = json.Unmarshal(*v, &ID)
if err != nil {
return err
}
i.ID = &ID
}
case "name":
if v != nil {
var name string
err = json.Unmarshal(*v, &name)
if err != nil {
return err
}
i.Name = &name
}
case "type":
if v != nil {
var typeVar string
err = json.Unmarshal(*v, &typeVar)
if err != nil {
return err
}
i.Type = &typeVar
}
case "systemData":
if v != nil {
var systemData SystemData
err = json.Unmarshal(*v, &systemData)
if err != nil {
return err
}
i.SystemData = &systemData
}
}
}
return nil
}
// InstanceList list of Instances.
type InstanceList struct {
autorest.Response `json:"-"`
// NextLink - The link used to get the next page of Instances list.
NextLink *string `json:"nextLink,omitempty"`
// Value - List of Instances.
Value *[]Instance `json:"value,omitempty"`
}
// InstanceListIterator provides access to a complete listing of Instance values.
type InstanceListIterator struct {
i int
page InstanceListPage
}
// NextWithContext advances to the next value. If there was an error making
// the request the iterator does not advance and the error is returned.
func (iter *InstanceListIterator) NextWithContext(ctx context.Context) (err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/InstanceListIterator.NextWithContext")
defer func() {
sc := -1
if iter.Response().Response.Response != nil {
sc = iter.Response().Response.Response.StatusCode
}
tracing.EndSpan(ctx, sc, err)
}()
}
iter.i++
if iter.i < len(iter.page.Values()) {
return nil
}
err = iter.page.NextWithContext(ctx)
if err != nil {
iter.i--
return err
}
iter.i = 0
return nil
}
// Next advances to the next value. If there was an error making
// the request the iterator does not advance and the error is returned.
// Deprecated: Use NextWithContext() instead.
func (iter *InstanceListIterator) Next() error {
return iter.NextWithContext(context.Background())
}
// NotDone returns true if the enumeration should be started or is not yet complete.
func (iter InstanceListIterator) NotDone() bool {
return iter.page.NotDone() && iter.i < len(iter.page.Values())
}
// Response returns the raw server response from the last page request.
func (iter InstanceListIterator) Response() InstanceList {
return iter.page.Response()
}
// Value returns the current value or a zero-initialized value if the
// iterator has advanced beyond the end of the collection.
func (iter InstanceListIterator) Value() Instance {
if !iter.page.NotDone() {
return Instance{}
}
return iter.page.Values()[iter.i]
}
// Creates a new instance of the InstanceListIterator type.
func NewInstanceListIterator(page InstanceListPage) InstanceListIterator {
return InstanceListIterator{page: page}
}
// IsEmpty returns true if the ListResult contains no values.
func (il InstanceList) IsEmpty() bool {
return il.Value == nil || len(*il.Value) == 0
}
// hasNextLink returns true if the NextLink is not empty.
func (il InstanceList) hasNextLink() bool {
return il.NextLink != nil && len(*il.NextLink) != 0
}
// instanceListPreparer prepares a request to retrieve the next set of results.
// It returns nil if no more results exist.
func (il InstanceList) instanceListPreparer(ctx context.Context) (*http.Request, error) {
if !il.hasNextLink() {
return nil, nil
}
return autorest.Prepare((&http.Request{}).WithContext(ctx),
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(il.NextLink)))
}
// InstanceListPage contains a page of Instance values.
type InstanceListPage struct {
fn func(context.Context, InstanceList) (InstanceList, error)
il InstanceList
}
// NextWithContext advances to the next page of values. If there was an error making
// the request the page does not advance and the error is returned.
func (page *InstanceListPage) NextWithContext(ctx context.Context) (err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/InstanceListPage.NextWithContext")
defer func() {
sc := -1
if page.Response().Response.Response != nil {
sc = page.Response().Response.Response.StatusCode
}
tracing.EndSpan(ctx, sc, err)
}()
}
for {
next, err := page.fn(ctx, page.il)
if err != nil {
return err
}
page.il = next
if !next.hasNextLink() || !next.IsEmpty() {
break
}
}
return nil
}
// Next advances to the next page of values. If there was an error making
// the request the page does not advance and the error is returned.
// Deprecated: Use NextWithContext() instead.
func (page *InstanceListPage) Next() error {
return page.NextWithContext(context.Background())
}
// NotDone returns true if the page enumeration should be started or is not yet complete.
func (page InstanceListPage) NotDone() bool {
return !page.il.IsEmpty()
}
// Response returns the raw server response from the last page request.
func (page InstanceListPage) Response() InstanceList {
return page.il
}
// Values returns the slice of values for the current page or nil if there are no values.
func (page InstanceListPage) Values() []Instance {
if page.il.IsEmpty() {
return nil
}
return *page.il.Value
}
// Creates a new instance of the InstanceListPage type.
func NewInstanceListPage(cur InstanceList, getNextPage func(context.Context, InstanceList) (InstanceList, error)) InstanceListPage {
return InstanceListPage{
fn: getNextPage,
il: cur,
}
}
// InstanceProperties device Update instance properties.
type InstanceProperties struct {
// ProvisioningState - READ-ONLY; Provisioning state. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateDeleted', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateAccepted', 'ProvisioningStateCreating'
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
// AccountName - READ-ONLY; Parent Device Update Account name which Instance belongs to.
AccountName *string `json:"accountName,omitempty"`
// IotHubs - List of IoT Hubs associated with the account.
IotHubs *[]IotHubSettings `json:"iotHubs,omitempty"`
// EnableDiagnostics - Enables or Disables the diagnostic logs collection
EnableDiagnostics *bool `json:"enableDiagnostics,omitempty"`
DiagnosticStorageProperties *DiagnosticStorageProperties `json:"diagnosticStorageProperties,omitempty"`
}
// MarshalJSON is the custom marshaler for InstanceProperties.
func (i InstanceProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if i.IotHubs != nil {
objectMap["iotHubs"] = i.IotHubs
}
if i.EnableDiagnostics != nil {
objectMap["enableDiagnostics"] = i.EnableDiagnostics
}
if i.DiagnosticStorageProperties != nil {
objectMap["diagnosticStorageProperties"] = i.DiagnosticStorageProperties
}
return json.Marshal(objectMap)
}
// InstancesCreateFuture an abstraction for monitoring and retrieving the results of a long-running
// operation.
type InstancesCreateFuture struct {
azure.FutureAPI
// Result returns the result of the asynchronous operation.
// If the operation has not completed it will return an error.
Result func(InstancesClient) (Instance, error)
}
// UnmarshalJSON is the custom unmarshaller for CreateFuture.
func (future *InstancesCreateFuture) UnmarshalJSON(body []byte) error {
var azFuture azure.Future
if err := json.Unmarshal(body, &azFuture); err != nil {
return err
}
future.FutureAPI = &azFuture
future.Result = future.result
return nil
}
// result is the default implementation for InstancesCreateFuture.Result.
func (future *InstancesCreateFuture) result(client InstancesClient) (i Instance, err error) {
var done bool
done, err = future.DoneWithContext(context.Background(), client)
if err != nil {
err = autorest.NewErrorWithError(err, "deviceupdate.InstancesCreateFuture", "Result", future.Response(), "Polling failure")
return
}
if !done {
i.Response.Response = future.Response()
err = azure.NewAsyncOpIncompleteError("deviceupdate.InstancesCreateFuture")
return
}
sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
if i.Response.Response, err = future.GetResult(sender); err == nil && i.Response.Response.StatusCode != http.StatusNoContent {
i, err = client.CreateResponder(i.Response.Response)
if err != nil {
err = autorest.NewErrorWithError(err, "deviceupdate.InstancesCreateFuture", "Result", i.Response.Response, "Failure responding to request")
}
}
return
}
// InstancesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running
// operation.
type InstancesDeleteFuture struct {
azure.FutureAPI
// Result returns the result of the asynchronous operation.
// If the operation has not completed it will return an error.
Result func(InstancesClient) (autorest.Response, error)
}
// UnmarshalJSON is the custom unmarshaller for CreateFuture.
func (future *InstancesDeleteFuture) UnmarshalJSON(body []byte) error {
var azFuture azure.Future
if err := json.Unmarshal(body, &azFuture); err != nil {
return err
}
future.FutureAPI = &azFuture
future.Result = future.result
return nil
}
// result is the default implementation for InstancesDeleteFuture.Result.
func (future *InstancesDeleteFuture) result(client InstancesClient) (ar autorest.Response, err error) {
var done bool
done, err = future.DoneWithContext(context.Background(), client)
if err != nil {
err = autorest.NewErrorWithError(err, "deviceupdate.InstancesDeleteFuture", "Result", future.Response(), "Polling failure")
return
}
if !done {
ar.Response = future.Response()
err = azure.NewAsyncOpIncompleteError("deviceupdate.InstancesDeleteFuture")
return
}
ar.Response = future.Response()
return
}
// IotHubSettings device Update account integration with IoT Hub settings.
type IotHubSettings struct {
// ResourceID - IoTHub resource ID
ResourceID *string `json:"resourceId,omitempty"`
}
// Location ...
type Location struct {
Name *string `json:"name,omitempty"`
// Role - Whether the location is primary or failover. Possible values include: 'RolePrimary', 'RoleFailover'
Role Role `json:"role,omitempty"`
}
// ManagedServiceIdentity managed service identity (system assigned and/or user assigned identities)
type ManagedServiceIdentity struct {
// PrincipalID - READ-ONLY; The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
PrincipalID *uuid.UUID `json:"principalId,omitempty"`
// TenantID - READ-ONLY; The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
TenantID *uuid.UUID `json:"tenantId,omitempty"`
// Type - Possible values include: 'ManagedServiceIdentityTypeNone', 'ManagedServiceIdentityTypeSystemAssigned', 'ManagedServiceIdentityTypeUserAssigned', 'ManagedServiceIdentityTypeSystemAssignedUserAssigned'
Type ManagedServiceIdentityType `json:"type,omitempty"`
UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities"`
}
// MarshalJSON is the custom marshaler for ManagedServiceIdentity.
func (msi ManagedServiceIdentity) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if msi.Type != "" {
objectMap["type"] = msi.Type
}
if msi.UserAssignedIdentities != nil {
objectMap["userAssignedIdentities"] = msi.UserAssignedIdentities
}
return json.Marshal(objectMap)
}
// Operation details of a REST API operation, returned from the Resource Provider Operations API
type Operation struct {
// Name - READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
Name *string `json:"name,omitempty"`
// IsDataAction - READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations.
IsDataAction *bool `json:"isDataAction,omitempty"`
// Display - Localized display information for this particular operation.
Display *OperationDisplay `json:"display,omitempty"`
// Origin - READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system". Possible values include: 'OriginUser', 'OriginSystem', 'OriginUsersystem'
Origin Origin `json:"origin,omitempty"`
// ActionType - READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. Possible values include: 'ActionTypeInternal'
ActionType ActionType `json:"actionType,omitempty"`
}
// MarshalJSON is the custom marshaler for Operation.
func (o Operation) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if o.Display != nil {
objectMap["display"] = o.Display
}
return json.Marshal(objectMap)
}
// OperationDisplay localized display information for this particular operation.
type OperationDisplay struct {
// Provider - READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
Provider *string `json:"provider,omitempty"`
// Resource - READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
Resource *string `json:"resource,omitempty"`
// Operation - READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
Operation *string `json:"operation,omitempty"`
// Description - READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views.
Description *string `json:"description,omitempty"`
}
// MarshalJSON is the custom marshaler for OperationDisplay.
func (o OperationDisplay) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
return json.Marshal(objectMap)
}
// OperationListResult a list of REST API operations supported by an Azure Resource Provider. It contains
// an URL link to get the next set of results.
type OperationListResult struct {
autorest.Response `json:"-"`
// Value - READ-ONLY; List of operations supported by the resource provider
Value *[]Operation `json:"value,omitempty"`
// NextLink - READ-ONLY; URL to get the next set of operation list results (if there are any).
NextLink *string `json:"nextLink,omitempty"`
}
// MarshalJSON is the custom marshaler for OperationListResult.
func (olr OperationListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
return json.Marshal(objectMap)
}
// OperationListResultIterator provides access to a complete listing of Operation values.
type OperationListResultIterator struct {
i int
page OperationListResultPage
}
// NextWithContext advances to the next value. If there was an error making
// the request the iterator does not advance and the error is returned.
func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultIterator.NextWithContext")
defer func() {
sc := -1
if iter.Response().Response.Response != nil {
sc = iter.Response().Response.Response.StatusCode
}
tracing.EndSpan(ctx, sc, err)
}()
}
iter.i++
if iter.i < len(iter.page.Values()) {
return nil
}
err = iter.page.NextWithContext(ctx)
if err != nil {
iter.i--
return err
}
iter.i = 0
return nil
}
// Next advances to the next value. If there was an error making
// the request the iterator does not advance and the error is returned.
// Deprecated: Use NextWithContext() instead.
func (iter *OperationListResultIterator) Next() error {
return iter.NextWithContext(context.Background())
}
// NotDone returns true if the enumeration should be started or is not yet complete.
func (iter OperationListResultIterator) NotDone() bool {
return iter.page.NotDone() && iter.i < len(iter.page.Values())
}
// Response returns the raw server response from the last page request.
func (iter OperationListResultIterator) Response() OperationListResult {
return iter.page.Response()
}
// Value returns the current value or a zero-initialized value if the
// iterator has advanced beyond the end of the collection.
func (iter OperationListResultIterator) Value() Operation {
if !iter.page.NotDone() {
return Operation{}
}
return iter.page.Values()[iter.i]
}
// Creates a new instance of the OperationListResultIterator type.
func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator {
return OperationListResultIterator{page: page}
}
// IsEmpty returns true if the ListResult contains no values.
func (olr OperationListResult) IsEmpty() bool {
return olr.Value == nil || len(*olr.Value) == 0
}
// hasNextLink returns true if the NextLink is not empty.
func (olr OperationListResult) hasNextLink() bool {
return olr.NextLink != nil && len(*olr.NextLink) != 0
}
// operationListResultPreparer prepares a request to retrieve the next set of results.
// It returns nil if no more results exist.
func (olr OperationListResult) operationListResultPreparer(ctx context.Context) (*http.Request, error) {
if !olr.hasNextLink() {
return nil, nil
}
return autorest.Prepare((&http.Request{}).WithContext(ctx),
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(olr.NextLink)))
}
// OperationListResultPage contains a page of Operation values.
type OperationListResultPage struct {
fn func(context.Context, OperationListResult) (OperationListResult, error)
olr OperationListResult
}
// NextWithContext advances to the next page of values. If there was an error making
// the request the page does not advance and the error is returned.
func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultPage.NextWithContext")
defer func() {
sc := -1
if page.Response().Response.Response != nil {
sc = page.Response().Response.Response.StatusCode
}
tracing.EndSpan(ctx, sc, err)
}()
}
for {
next, err := page.fn(ctx, page.olr)
if err != nil {
return err
}
page.olr = next
if !next.hasNextLink() || !next.IsEmpty() {
break
}
}
return nil
}
// Next advances to the next page of values. If there was an error making
// the request the page does not advance and the error is returned.
// Deprecated: Use NextWithContext() instead.
func (page *OperationListResultPage) Next() error {
return page.NextWithContext(context.Background())
}
// NotDone returns true if the page enumeration should be started or is not yet complete.
func (page OperationListResultPage) NotDone() bool {
return !page.olr.IsEmpty()
}
// Response returns the raw server response from the last page request.
func (page OperationListResultPage) Response() OperationListResult {
return page.olr
}
// Values returns the slice of values for the current page or nil if there are no values.
func (page OperationListResultPage) Values() []Operation {
if page.olr.IsEmpty() {
return nil
}
return *page.olr.Value
}
// Creates a new instance of the OperationListResultPage type.
func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage {
return OperationListResultPage{
fn: getNextPage,
olr: cur,
}
}
// Plan plan for the resource.
type Plan struct {
// Name - A user defined name of the 3rd Party Artifact that is being procured.
Name *string `json:"name,omitempty"`
// Publisher - The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
Publisher *string `json:"publisher,omitempty"`
// Product - The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding.
Product *string `json:"product,omitempty"`
// PromotionCode - A publisher provided promotion code as provisioned in Data Market for the said product/artifact.
PromotionCode *string `json:"promotionCode,omitempty"`
// Version - The version of the desired product/artifact.
Version *string `json:"version,omitempty"`
}
// PrivateEndpoint the Private Endpoint resource.
type PrivateEndpoint struct {
// ID - READ-ONLY; The ARM identifier for Private Endpoint
ID *string `json:"id,omitempty"`
}
// MarshalJSON is the custom marshaler for PrivateEndpoint.
func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
return json.Marshal(objectMap)
}
// PrivateEndpointConnection the Private Endpoint Connection resource.
type PrivateEndpointConnection struct {
autorest.Response `json:"-"`
// PrivateEndpointConnectionProperties - Resource properties.
*PrivateEndpointConnectionProperties `json:"properties,omitempty"`
// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string `json:"id,omitempty"`
// Name - READ-ONLY; The name of the resource
Name *string `json:"name,omitempty"`
// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string `json:"type,omitempty"`
// SystemData - READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData `json:"systemData,omitempty"`
}
// MarshalJSON is the custom marshaler for PrivateEndpointConnection.
func (pec PrivateEndpointConnection) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if pec.PrivateEndpointConnectionProperties != nil {
objectMap["properties"] = pec.PrivateEndpointConnectionProperties
}
return json.Marshal(objectMap)
}
// UnmarshalJSON is the custom unmarshaler for PrivateEndpointConnection struct.
func (pec *PrivateEndpointConnection) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
err := json.Unmarshal(body, &m)
if err != nil {
return err
}
for k, v := range m {
switch k {
case "properties":
if v != nil {
var privateEndpointConnectionProperties PrivateEndpointConnectionProperties
err = json.Unmarshal(*v, &privateEndpointConnectionProperties)
if err != nil {
return err
}
pec.PrivateEndpointConnectionProperties = &privateEndpointConnectionProperties
}
case "id":
if v != nil {
var ID string
err = json.Unmarshal(*v, &ID)
if err != nil {
return err
}
pec.ID = &ID
}
case "name":
if v != nil {
var name string
err = json.Unmarshal(*v, &name)
if err != nil {
return err
}
pec.Name = &name
}
case "type":
if v != nil {
var typeVar string
err = json.Unmarshal(*v, &typeVar)
if err != nil {
return err
}
pec.Type = &typeVar
}
case "systemData":
if v != nil {
var systemData SystemData
err = json.Unmarshal(*v, &systemData)
if err != nil {
return err
}
pec.SystemData = &systemData
}
}
}
return nil
}
// PrivateEndpointConnectionListResult list of private endpoint connection associated with the specified
// storage account
type PrivateEndpointConnectionListResult struct {
autorest.Response `json:"-"`
// Value - Array of private endpoint connections
Value *[]PrivateEndpointConnection `json:"value,omitempty"`
}
// PrivateEndpointConnectionProperties properties of the PrivateEndpointConnectProperties.
type PrivateEndpointConnectionProperties struct {
// PrivateEndpoint - The resource of private end point.
PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"`
// PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider.
PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"`
// GroupIds - Array of group IDs.
GroupIds *[]string `json:"groupIds,omitempty"`
// ProvisioningState - The provisioning state of the private endpoint connection resource. Possible values include: 'PrivateEndpointConnectionProvisioningStateSucceeded', 'PrivateEndpointConnectionProvisioningStateCreating', 'PrivateEndpointConnectionProvisioningStateDeleting', 'PrivateEndpointConnectionProvisioningStateFailed'
ProvisioningState PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"`
}
// PrivateEndpointConnectionProxiesCreateOrUpdateFuture an abstraction for monitoring and retrieving the
// results of a long-running operation.
type PrivateEndpointConnectionProxiesCreateOrUpdateFuture struct {
azure.FutureAPI
// Result returns the result of the asynchronous operation.
// If the operation has not completed it will return an error.
Result func(PrivateEndpointConnectionProxiesClient) (PrivateEndpointConnectionProxy, error)
}
// UnmarshalJSON is the custom unmarshaller for CreateFuture.
func (future *PrivateEndpointConnectionProxiesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error {
var azFuture azure.Future
if err := json.Unmarshal(body, &azFuture); err != nil {
return err
}
future.FutureAPI = &azFuture
future.Result = future.result
return nil
}
// result is the default implementation for PrivateEndpointConnectionProxiesCreateOrUpdateFuture.Result.
func (future *PrivateEndpointConnectionProxiesCreateOrUpdateFuture) result(client PrivateEndpointConnectionProxiesClient) (pecp PrivateEndpointConnectionProxy, err error) {
var done bool
done, err = future.DoneWithContext(context.Background(), client)
if err != nil {
err = autorest.NewErrorWithError(err, "deviceupdate.PrivateEndpointConnectionProxiesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure")
return
}
if !done {
pecp.Response.Response = future.Response()
err = azure.NewAsyncOpIncompleteError("deviceupdate.PrivateEndpointConnectionProxiesCreateOrUpdateFuture")
return
}
sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
if pecp.Response.Response, err = future.GetResult(sender); err == nil && pecp.Response.Response.StatusCode != http.StatusNoContent {
pecp, err = client.CreateOrUpdateResponder(pecp.Response.Response)
if err != nil {
err = autorest.NewErrorWithError(err, "deviceupdate.PrivateEndpointConnectionProxiesCreateOrUpdateFuture", "Result", pecp.Response.Response, "Failure responding to request")
}
}
return
}
// PrivateEndpointConnectionProxiesDeleteFuture an abstraction for monitoring and retrieving the results of
// a long-running operation.
type PrivateEndpointConnectionProxiesDeleteFuture struct {
azure.FutureAPI
// Result returns the result of the asynchronous operation.
// If the operation has not completed it will return an error.
Result func(PrivateEndpointConnectionProxiesClient) (autorest.Response, error)
}
// UnmarshalJSON is the custom unmarshaller for CreateFuture.
func (future *PrivateEndpointConnectionProxiesDeleteFuture) UnmarshalJSON(body []byte) error {
var azFuture azure.Future
if err := json.Unmarshal(body, &azFuture); err != nil {
return err
}
future.FutureAPI = &azFuture
future.Result = future.result
return nil
}
// result is the default implementation for PrivateEndpointConnectionProxiesDeleteFuture.Result.
func (future *PrivateEndpointConnectionProxiesDeleteFuture) result(client PrivateEndpointConnectionProxiesClient) (ar autorest.Response, err error) {
var done bool
done, err = future.DoneWithContext(context.Background(), client)
if err != nil {
err = autorest.NewErrorWithError(err, "deviceupdate.PrivateEndpointConnectionProxiesDeleteFuture", "Result", future.Response(), "Polling failure")
return
}
if !done {
ar.Response = future.Response()
err = azure.NewAsyncOpIncompleteError("deviceupdate.PrivateEndpointConnectionProxiesDeleteFuture")
return
}
ar.Response = future.Response()
return
}
// PrivateEndpointConnectionProxy private endpoint connection proxy details.
type PrivateEndpointConnectionProxy struct {
autorest.Response `json:"-"`
// ETag - READ-ONLY; ETag from NRP.
ETag *string `json:"eTag,omitempty"`
// RemotePrivateEndpoint - Remote private endpoint details.
RemotePrivateEndpoint *RemotePrivateEndpoint `json:"remotePrivateEndpoint,omitempty"`
// Status - Operation status.
Status *string `json:"status,omitempty"`
// PrivateEndpointConnectionProxyProperties - Private endpoint connection proxy object property bag.
*PrivateEndpointConnectionProxyProperties `json:"properties,omitempty"`
}
// MarshalJSON is the custom marshaler for PrivateEndpointConnectionProxy.
func (pecp PrivateEndpointConnectionProxy) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if pecp.RemotePrivateEndpoint != nil {
objectMap["remotePrivateEndpoint"] = pecp.RemotePrivateEndpoint
}
if pecp.Status != nil {
objectMap["status"] = pecp.Status
}
if pecp.PrivateEndpointConnectionProxyProperties != nil {
objectMap["properties"] = pecp.PrivateEndpointConnectionProxyProperties
}
return json.Marshal(objectMap)
}
// UnmarshalJSON is the custom unmarshaler for PrivateEndpointConnectionProxy struct.
func (pecp *PrivateEndpointConnectionProxy) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
err := json.Unmarshal(body, &m)
if err != nil {
return err
}
for k, v := range m {
switch k {
case "eTag":
if v != nil {
var eTag string
err = json.Unmarshal(*v, &eTag)
if err != nil {
return err
}
pecp.ETag = &eTag
}
case "remotePrivateEndpoint":
if v != nil {
var remotePrivateEndpoint RemotePrivateEndpoint
err = json.Unmarshal(*v, &remotePrivateEndpoint)
if err != nil {
return err
}
pecp.RemotePrivateEndpoint = &remotePrivateEndpoint
}
case "status":
if v != nil {
var status string
err = json.Unmarshal(*v, &status)
if err != nil {
return err
}
pecp.Status = &status
}
case "properties":
if v != nil {
var privateEndpointConnectionProxyProperties PrivateEndpointConnectionProxyProperties
err = json.Unmarshal(*v, &privateEndpointConnectionProxyProperties)
if err != nil {
return err
}
pecp.PrivateEndpointConnectionProxyProperties = &privateEndpointConnectionProxyProperties
}
}
}
return nil
}
// PrivateEndpointConnectionProxyListResult the available private endpoint connection proxies for an
// Account (not to be used by anyone, here because of ARM requirements)
type PrivateEndpointConnectionProxyListResult struct {
autorest.Response `json:"-"`
// Value - The list of available private endpoint connection proxies for an Account
Value *[]PrivateEndpointConnectionProxy `json:"value,omitempty"`
// NextLink - The URI that can be used to request the next list of private endpoint connection proxies.
NextLink *string `json:"nextLink,omitempty"`
}
// PrivateEndpointConnectionProxyProperties private endpoint connection proxy object property bag.
type PrivateEndpointConnectionProxyProperties struct {
// ProvisioningState - The provisioning state of the private endpoint connection proxy resource. Possible values include: 'PrivateEndpointConnectionProxyProvisioningStateSucceeded', 'PrivateEndpointConnectionProxyProvisioningStateCreating', 'PrivateEndpointConnectionProxyProvisioningStateDeleting', 'PrivateEndpointConnectionProxyProvisioningStateFailed'
ProvisioningState PrivateEndpointConnectionProxyProvisioningState `json:"provisioningState,omitempty"`
}
// PrivateEndpointConnectionProxyPropertiesModel private endpoint connection proxy object properties.
type PrivateEndpointConnectionProxyPropertiesModel struct {
// ETag - READ-ONLY; ETag from NRP.
ETag *string `json:"eTag,omitempty"`
// RemotePrivateEndpoint - Remote private endpoint details.
RemotePrivateEndpoint *RemotePrivateEndpoint `json:"remotePrivateEndpoint,omitempty"`
// Status - Operation status.
Status *string `json:"status,omitempty"`
}
// MarshalJSON is the custom marshaler for PrivateEndpointConnectionProxyPropertiesModel.
func (pecppm PrivateEndpointConnectionProxyPropertiesModel) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if pecppm.RemotePrivateEndpoint != nil {
objectMap["remotePrivateEndpoint"] = pecppm.RemotePrivateEndpoint
}
if pecppm.Status != nil {
objectMap["status"] = pecppm.Status
}
return json.Marshal(objectMap)
}
// PrivateEndpointConnectionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results
// of a long-running operation.
type PrivateEndpointConnectionsCreateOrUpdateFuture struct {
azure.FutureAPI
// Result returns the result of the asynchronous operation.
// If the operation has not completed it will return an error.
Result func(PrivateEndpointConnectionsClient) (PrivateEndpointConnection, error)
}
// UnmarshalJSON is the custom unmarshaller for CreateFuture.
func (future *PrivateEndpointConnectionsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error {
var azFuture azure.Future
if err := json.Unmarshal(body, &azFuture); err != nil {
return err
}
future.FutureAPI = &azFuture
future.Result = future.result
return nil
}
// result is the default implementation for PrivateEndpointConnectionsCreateOrUpdateFuture.Result.
func (future *PrivateEndpointConnectionsCreateOrUpdateFuture) result(client PrivateEndpointConnectionsClient) (pec PrivateEndpointConnection, err error) {
var done bool
done, err = future.DoneWithContext(context.Background(), client)
if err != nil {
err = autorest.NewErrorWithError(err, "deviceupdate.PrivateEndpointConnectionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure")
return
}
if !done {
pec.Response.Response = future.Response()
err = azure.NewAsyncOpIncompleteError("deviceupdate.PrivateEndpointConnectionsCreateOrUpdateFuture")
return
}
sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
if pec.Response.Response, err = future.GetResult(sender); err == nil && pec.Response.Response.StatusCode != http.StatusNoContent {
pec, err = client.CreateOrUpdateResponder(pec.Response.Response)
if err != nil {
err = autorest.NewErrorWithError(err, "deviceupdate.PrivateEndpointConnectionsCreateOrUpdateFuture", "Result", pec.Response.Response, "Failure responding to request")
}
}
return
}
// PrivateEndpointConnectionsDeleteFuture an abstraction for monitoring and retrieving the results of a
// long-running operation.
type PrivateEndpointConnectionsDeleteFuture struct {
azure.FutureAPI
// Result returns the result of the asynchronous operation.
// If the operation has not completed it will return an error.
Result func(PrivateEndpointConnectionsClient) (autorest.Response, error)
}
// UnmarshalJSON is the custom unmarshaller for CreateFuture.
func (future *PrivateEndpointConnectionsDeleteFuture) UnmarshalJSON(body []byte) error {
var azFuture azure.Future
if err := json.Unmarshal(body, &azFuture); err != nil {
return err
}
future.FutureAPI = &azFuture
future.Result = future.result
return nil
}
// result is the default implementation for PrivateEndpointConnectionsDeleteFuture.Result.
func (future *PrivateEndpointConnectionsDeleteFuture) result(client PrivateEndpointConnectionsClient) (ar autorest.Response, err error) {
var done bool
done, err = future.DoneWithContext(context.Background(), client)
if err != nil {
err = autorest.NewErrorWithError(err, "deviceupdate.PrivateEndpointConnectionsDeleteFuture", "Result", future.Response(), "Polling failure")
return
}
if !done {
ar.Response = future.Response()
err = azure.NewAsyncOpIncompleteError("deviceupdate.PrivateEndpointConnectionsDeleteFuture")
return
}
ar.Response = future.Response()
return
}
// PrivateEndpointUpdate private endpoint update details.
type PrivateEndpointUpdate struct {
// ID - Remote endpoint resource ID.
ID *string `json:"id,omitempty"`
// Location - ARM location of the remote private endpoint.
Location *string `json:"location,omitempty"`
// ImmutableSubscriptionID - Original subscription ID needed by Microsoft.Network.
ImmutableSubscriptionID *string `json:"immutableSubscriptionId,omitempty"`
// ImmutableResourceID - Original resource ID needed by Microsoft.Network.
ImmutableResourceID *string `json:"immutableResourceId,omitempty"`
// VnetTrafficTag - Virtual network traffic tag.
VnetTrafficTag *string `json:"vnetTrafficTag,omitempty"`
}
// PrivateLinkResourceListResult the available private link resources for an Account
type PrivateLinkResourceListResult struct {
autorest.Response `json:"-"`
// Value - The list of available private link resources for an Account
Value *[]GroupInformation `json:"value,omitempty"`
// NextLink - The URI that can be used to request the next list of private link resources.
NextLink *string `json:"nextLink,omitempty"`
}
// PrivateLinkResourceProperties properties of a private link resource.
type PrivateLinkResourceProperties struct {
// GroupID - READ-ONLY; The private link resource group id.
GroupID *string `json:"groupId,omitempty"`
// RequiredMembers - READ-ONLY; The private link resource required member names.
RequiredMembers *[]string `json:"requiredMembers,omitempty"`
// RequiredZoneNames - The private link resource Private link DNS zone name.
RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"`
}
// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties.
func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if plrp.RequiredZoneNames != nil {
objectMap["requiredZoneNames"] = plrp.RequiredZoneNames
}
return json.Marshal(objectMap)
}
// PrivateLinkServiceConnection private link service connection details.
type PrivateLinkServiceConnection struct {
// Name - Private link service connection name.
Name *string `json:"name,omitempty"`
// GroupIds - List of group IDs.
GroupIds *[]string `json:"groupIds,omitempty"`
// RequestMessage - Request message.
RequestMessage *string `json:"requestMessage,omitempty"`
}
// PrivateLinkServiceConnectionState a collection of information about the state of the connection between
// service consumer and provider.
type PrivateLinkServiceConnectionState struct {
// Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Possible values include: 'PrivateEndpointServiceConnectionStatusPending', 'PrivateEndpointServiceConnectionStatusApproved', 'PrivateEndpointServiceConnectionStatusRejected'
Status PrivateEndpointServiceConnectionStatus `json:"status,omitempty"`
// Description - The reason for approval/rejection of the connection.
Description *string `json:"description,omitempty"`
// ActionsRequired - A message indicating if changes on the service provider require any updates on the consumer.
ActionsRequired *string `json:"actionsRequired,omitempty"`
}
// PrivateLinkServiceProxy private link service proxy details.
type PrivateLinkServiceProxy struct {
// ID - NRP resource ID.
ID *string `json:"id,omitempty"`
// RemotePrivateLinkServiceConnectionState - Remote private link service connection state
RemotePrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"remotePrivateLinkServiceConnectionState,omitempty"`
// RemotePrivateEndpointConnection - Remote private endpoint connection details.
RemotePrivateEndpointConnection *PrivateLinkServiceProxyRemotePrivateEndpointConnection `json:"remotePrivateEndpointConnection,omitempty"`
// GroupConnectivityInformation - Group connectivity information.
GroupConnectivityInformation *[]GroupConnectivityInformation `json:"groupConnectivityInformation,omitempty"`
}
// PrivateLinkServiceProxyRemotePrivateEndpointConnection remote private endpoint connection details.
type PrivateLinkServiceProxyRemotePrivateEndpointConnection struct {
// ID - READ-ONLY; Remote private endpoint connection ID.
ID *string `json:"id,omitempty"`
}
// MarshalJSON is the custom marshaler for PrivateLinkServiceProxyRemotePrivateEndpointConnection.
func (plspPec PrivateLinkServiceProxyRemotePrivateEndpointConnection) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
return json.Marshal(objectMap)
}
// ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not
// have tags and a location
type ProxyResource struct {
// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string `json:"id,omitempty"`
// Name - READ-ONLY; The name of the resource
Name *string `json:"name,omitempty"`
// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string `json:"type,omitempty"`
// SystemData - READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData `json:"systemData,omitempty"`
}
// MarshalJSON is the custom marshaler for ProxyResource.
func (pr ProxyResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
return json.Marshal(objectMap)
}
// RemotePrivateEndpoint remote private endpoint details.
type RemotePrivateEndpoint struct {
// ID - Remote endpoint resource ID.
ID *string `json:"id,omitempty"`
// Location - ARM location of the remote private endpoint.
Location *string `json:"location,omitempty"`
// ImmutableSubscriptionID - Original subscription ID needed by Microsoft.Network.
ImmutableSubscriptionID *string `json:"immutableSubscriptionId,omitempty"`
// ImmutableResourceID - Original resource ID needed by Microsoft.Network.
ImmutableResourceID *string `json:"immutableResourceId,omitempty"`
// VnetTrafficTag - Virtual network traffic tag.
VnetTrafficTag *string `json:"vnetTrafficTag,omitempty"`
// ManualPrivateLinkServiceConnections - List of private link service connections that need manual approval.
ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"`
// PrivateLinkServiceConnections - List of automatically approved private link service connections.
PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"`
// PrivateLinkServiceProxies - List of private link service proxies.
PrivateLinkServiceProxies *[]PrivateLinkServiceProxy `json:"privateLinkServiceProxies,omitempty"`
// ConnectionDetails - List of connection details.
ConnectionDetails *[]ConnectionDetails `json:"connectionDetails,omitempty"`
}
// RemotePrivateEndpointConnection remote private endpoint connection details.
type RemotePrivateEndpointConnection struct {
// ID - READ-ONLY; Remote private endpoint connection ID.
ID *string `json:"id,omitempty"`
}
// MarshalJSON is the custom marshaler for RemotePrivateEndpointConnection.
func (rpec RemotePrivateEndpointConnection) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
return json.Marshal(objectMap)
}
// Resource common fields that are returned in the response for all Azure Resource Manager resources
type Resource struct {
// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string `json:"id,omitempty"`
// Name - READ-ONLY; The name of the resource
Name *string `json:"name,omitempty"`
// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string `json:"type,omitempty"`
// SystemData - READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData `json:"systemData,omitempty"`
}
// MarshalJSON is the custom marshaler for Resource.
func (r Resource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
return json.Marshal(objectMap)
}
// ResourceModelWithAllowedPropertySet the resource model definition containing the full set of allowed
// properties for a resource. Except properties bag, there cannot be a top level property outside of this
// set.
type ResourceModelWithAllowedPropertySet struct {
// ManagedBy - The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
ManagedBy *string `json:"managedBy,omitempty"`
// Kind - Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
Kind *string `json:"kind,omitempty"`
// Etag - READ-ONLY; The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
Etag *string `json:"etag,omitempty"`
Identity *ResourceModelWithAllowedPropertySetIdentity `json:"identity,omitempty"`
Sku *ResourceModelWithAllowedPropertySetSku `json:"sku,omitempty"`
Plan *ResourceModelWithAllowedPropertySetPlan `json:"plan,omitempty"`
// Tags - Resource tags.
Tags map[string]*string `json:"tags"`
// Location - The geo-location where the resource lives
Location *string `json:"location,omitempty"`
// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string `json:"id,omitempty"`
// Name - READ-ONLY; The name of the resource
Name *string `json:"name,omitempty"`
// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string `json:"type,omitempty"`
// SystemData - READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData `json:"systemData,omitempty"`
}
// MarshalJSON is the custom marshaler for ResourceModelWithAllowedPropertySet.
func (rmwaps ResourceModelWithAllowedPropertySet) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if rmwaps.ManagedBy != nil {
objectMap["managedBy"] = rmwaps.ManagedBy
}
if rmwaps.Kind != nil {
objectMap["kind"] = rmwaps.Kind
}
if rmwaps.Identity != nil {
objectMap["identity"] = rmwaps.Identity
}
if rmwaps.Sku != nil {
objectMap["sku"] = rmwaps.Sku
}
if rmwaps.Plan != nil {
objectMap["plan"] = rmwaps.Plan
}
if rmwaps.Tags != nil {
objectMap["tags"] = rmwaps.Tags
}
if rmwaps.Location != nil {
objectMap["location"] = rmwaps.Location
}
return json.Marshal(objectMap)
}
// ResourceModelWithAllowedPropertySetIdentity ...
type ResourceModelWithAllowedPropertySetIdentity struct {
// PrincipalID - READ-ONLY; The principal ID of resource identity.
PrincipalID *string `json:"principalId,omitempty"`
// TenantID - READ-ONLY; The tenant ID of resource.
TenantID *string `json:"tenantId,omitempty"`
// Type - The identity type. Possible values include: 'ResourceIdentityTypeSystemAssigned'
Type ResourceIdentityType `json:"type,omitempty"`
}
// MarshalJSON is the custom marshaler for ResourceModelWithAllowedPropertySetIdentity.
func (rmwaps ResourceModelWithAllowedPropertySetIdentity) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if rmwaps.Type != "" {
objectMap["type"] = rmwaps.Type
}
return json.Marshal(objectMap)
}
// ResourceModelWithAllowedPropertySetPlan ...
type ResourceModelWithAllowedPropertySetPlan struct {
// Name - A user defined name of the 3rd Party Artifact that is being procured.
Name *string `json:"name,omitempty"`
// Publisher - The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
Publisher *string `json:"publisher,omitempty"`
// Product - The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding.
Product *string `json:"product,omitempty"`
// PromotionCode - A publisher provided promotion code as provisioned in Data Market for the said product/artifact.
PromotionCode *string `json:"promotionCode,omitempty"`
// Version - The version of the desired product/artifact.
Version *string `json:"version,omitempty"`
}
// ResourceModelWithAllowedPropertySetSku ...
type ResourceModelWithAllowedPropertySetSku struct {
// Name - The name of the SKU. Ex - P3. It is typically a letter+number code
Name *string `json:"name,omitempty"`
// Tier - Possible values include: 'SkuTierFree', 'SkuTierBasic', 'SkuTierStandard', 'SkuTierPremium'
Tier SkuTier `json:"tier,omitempty"`
// Size - The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
Size *string `json:"size,omitempty"`
// Family - If the service has different generations of hardware, for the same SKU, then that can be captured here.
Family *string `json:"family,omitempty"`
// Capacity - If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
Capacity *int32 `json:"capacity,omitempty"`
}
// Sku the resource model definition representing SKU
type Sku struct {
// Name - The name of the SKU. Ex - P3. It is typically a letter+number code
Name *string `json:"name,omitempty"`
// Tier - Possible values include: 'SkuTierFree', 'SkuTierBasic', 'SkuTierStandard', 'SkuTierPremium'
Tier SkuTier `json:"tier,omitempty"`
// Size - The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
Size *string `json:"size,omitempty"`
// Family - If the service has different generations of hardware, for the same SKU, then that can be captured here.
Family *string `json:"family,omitempty"`
// Capacity - If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
Capacity *int32 `json:"capacity,omitempty"`
}
// SystemData metadata pertaining to creation and last modification of the resource.
type SystemData struct {
// CreatedBy - The identity that created the resource.
CreatedBy *string `json:"createdBy,omitempty"`
// CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey'
CreatedByType CreatedByType `json:"createdByType,omitempty"`
// CreatedAt - The timestamp of resource creation (UTC).
CreatedAt *date.Time `json:"createdAt,omitempty"`
// LastModifiedBy - The identity that last modified the resource.
LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
// LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey'
LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"`
// LastModifiedAt - The timestamp of resource last modification (UTC)
LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"`
}
// TagUpdate request payload used to update an existing resource's tags.
type TagUpdate struct {
// Tags - List of key value pairs that describe the resource. This will overwrite the existing tags.
Tags map[string]*string `json:"tags"`
}
// MarshalJSON is the custom marshaler for TagUpdate.
func (tu TagUpdate) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if tu.Tags != nil {
objectMap["tags"] = tu.Tags
}
return json.Marshal(objectMap)
}
// TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource
// which has 'tags' and a 'location'
type TrackedResource struct {
// Tags - Resource tags.
Tags map[string]*string `json:"tags"`
// Location - The geo-location where the resource lives
Location *string `json:"location,omitempty"`
// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string `json:"id,omitempty"`
// Name - READ-ONLY; The name of the resource
Name *string `json:"name,omitempty"`
// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string `json:"type,omitempty"`
// SystemData - READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData `json:"systemData,omitempty"`
}
// MarshalJSON is the custom marshaler for TrackedResource.
func (tr TrackedResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if tr.Tags != nil {
objectMap["tags"] = tr.Tags
}
if tr.Location != nil {
objectMap["location"] = tr.Location
}
return json.Marshal(objectMap)
}
// UserAssignedIdentity user assigned identity properties
type UserAssignedIdentity struct {
// PrincipalID - READ-ONLY; The principal ID of the assigned identity.
PrincipalID *uuid.UUID `json:"principalId,omitempty"`
// ClientID - READ-ONLY; The client ID of the assigned identity.
ClientID *uuid.UUID `json:"clientId,omitempty"`
}
// MarshalJSON is the custom marshaler for UserAssignedIdentity.
func (uai UserAssignedIdentity) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
return json.Marshal(objectMap)
}
|
package com.nateshao.hot100.include;
import java.util.List;
/**
* Definition for a singly-linked list node
*/
public class ListNode {
public int val;
public ListNode next;
ListNode() {}
public ListNode(int val) { this.val = val; }
ListNode(int val, ListNode next) { this.val = val; this.next = next; }
/**
* Generate a linked list with an array
* @param arr
* @return
*/
public static ListNode arrToLinkedList(int[] arr) {
ListNode dum = new ListNode(0);
ListNode head = dum;
for (int val : arr) {
head.next = new ListNode(val);
head = head.next;
}
return dum.next;
}
/**
* Get a list node with specific value from a linked list
* @param head
* @param val
* @return
*/
public static ListNode getListNode(ListNode head, int val) {
while (head != null && head.val != val) {
head = head.next;
}
return head;
}
}
|
// Close closes the database and deletes the underlying file.
func (tdb *DB) Close() error {
p := tdb.DB.Path()
defer os.Remove(p)
return tdb.DB.Close()
}
|
/**
* lorsque un message est dans le brooker
*/
@MessageEndpoint
class ReservationProcessor{
@ServiceActivator(inputChannel = "input")
public void onNewReservation(Personne msg){
System.out.println("\n \n\n \tFrom BRooker"+msg.toString());
this.reservationRepository.save(msg);
}
private PersonneRepository reservationRepository;
@Autowired
public ReservationProcessor(PersonneRepository reservationRepository) {
this.reservationRepository = reservationRepository;
}
}
|
class value_formatter:
"""
Format function default values as needed for inspect.formatargspec.
The interesting part is a hard-coded list of functions used
as defaults in pyplot methods.
"""
def __init__(self, value):
if value is mlab.detrend_none:
self._repr = "mlab.detrend_none"
elif value is mlab.window_hanning:
self._repr = "mlab.window_hanning"
elif value is np.mean:
self._repr = "np.mean"
else:
self._repr = repr(value)
def __repr__(self):
return self._repr
|
Copyright © 1993 by James Redfield
Author's Note copyright © 2006 by James Redfield
All rights reserved. Except as permitted under the U.S. Copyright Act of 1976, no part of this publication may be reproduced, distributed, or transmitted in any form or by any means, or stored in a database or retrieval system, without the prior written permission of the publisher.
Grand Central Publishing
Hachette Book Group, USA
237 Park Avenue, New York, NY 10017
Visit our Web site at www.HachetteBookGroupUSA.com.
First eBook Edition: November 1997
ISBN: 978-0-446-54555-6
_Cover design by Vic Donatic/Oz ideas_
Contents
Dedication
Acknowledgments
Author's Note
A Critical Mass
The Longer Now
A Matter of Energy
The Struggle for Power
The Message of the Mystics
Clearing the Past
Engaging the Flow
The Interpersonal Ethic
The Emerging Culture
THEY READ IT AND THEY FELT ITS TRUTH. NOW IT'S YOUR TURN TO EXPERIENCE _THE CELESTINE PROPHECY_ "THE MANUAL FOR THE NEXT MILLENNIUM."*
"An astonishing parable....[A] complex book, one which sheds light even for the skeptic."
**—San Gabriel Valley Newspapers**
"Rich in moral and spiritual issues."
**— _Morning News_ (Tacoma, WA)**
"Fast-paced from the onset...a timely message."
**— _Lexington Herald-Leader_ (KY)**
"A compelling spiritual parable describing the growth of human consciousness...[that] pinpoints feelings and experiences that we all share."
**— _Movingwords_**
"A how-to manual on understanding the meaning of life....There is much to praise in this work."
**— _*Calgary Herald_**
"Penetrating, stimulating, spiritually constructive."
**_—The Phoenix_**
"Reveals insights which provoke reflection and discussion."
**— _Aquarius_**
"The message is powerful, just as all lasting fables and parables are powerful. It taps our need to establish meaning for our lives."
**_—Toledo Blade_**
"Philosophically ground-shaking....My strongest recommendation is that you obtain a copy as quickly as possible."
**—Dr. Avram Leiv, _New Frontier Magazine_**
"It has made and continues to make a profound shift in my consciousness and life."
**—Terry Cole Whittaker, author of _Love and Power in a World Without Limits_**
"I can recommend THE CELESTINE PROPHECY wholeheartedly."
**—Fred Alan Wolf, author of _Taking the Quantum Leap_**
"The most entertaining map to spiritual growth I've ever read."
**—Ken Keyes, Jr., author of _Handbook to Higher Consciousness_**
"Simple, direct, and eloquently to the point."
**—David Applebaum, _Parabola_ magazine**
"A delight."
**—Karen Sherman, Ph.D., _The New Times_**
"A gripping adventure story filled with intrigue, suspense, and spiritual revelations."
**— _Commonwealth Journal_ (KY)**
_For_
_Sarah Virginia Redfield_
And those who have insight will
shine brightly like the brightness of
the expanse of Heaven, and those who
lead the many to righteousness, like the
stars forever and ever.
But for you, Daniel, conceal these
words and seal up the book until the end
of time. Many will go back and forth,
and knowledge will increase.
DANIEL 12:3-4
**ACKNOWLEDGMENTS**
So many people influenced this book that it would be impossible to mention them all. But I must say special thanks to Alan Shields, Jim Gamble, Mark Lafountain, Marc and Debra McElhaney, Dan Questenberry, BJ Jones, Bobby Hudson, Joy and Bob Kwapien, Michael Ryce, author of the tape series "Why is this happening to me again," and most of all, to my wife, Salle.
**AUTHOR'S NOTE**
If you find yourself reading this book, then you may be sensing something stirring out there in human culture: a tweaking of the senses, an opening to life's mystery. Many commentators have called it an emerging new world view or a period of uncertainty and searching in human affairs. But I believe what we're intuiting goes much deeper than any of these labels.
It goes to the heart of how we think about the history of the cosmos and of who we are as human beings. It is nothing less than the discovery of another way of pursuing life that is decidedly spiritual, but yet is not antiscience or antievolution, or dependent on any one religious tradition for that matter. It entails a shift in our direct, everyday experience of the transcendent, as experience, quite apart from whatever tradition we come from.
What is occurring now is more of an awakening, a natural filling out of our innate potential, the unused parts of our brain, the rest of our DNA that's been waiting to fire off. All happening quite spontaneously as a natural consequence of every discovery in human searching that has taken place in the eons that have come before us.
Our "ah ha" today falls in the same line of discovery that began with the jolting observation, long ago, that our tribal mates were actually dying, which meant we were going to die as well, which first lifted us out of our primeval sleep. Our ability to stay awake expanded even more when we unleashed our reflective power on the sides of caves, initiating the first artistic reflection on our world. And this awareness began to be instituted fully with the sense of courageous objectivity we achieved when we finally invented science. All these steps perked us up a bit more to the real human condition that we most want to repress: the fact that we find ourselves here in life with no real certainty as to why.
It's this more awakened state that fuels the current exploration of spiritual consciousness. We are asking the same age-old questions. Why are we here? Where are we going? How are my actions part of all this? The only difference is that now there are more of us asking. And the answers are finally arriving.
Greatest of all is that because of all the searching before us, these answers are less abstract, more connected to our real lives. We can prove them to ourselves. We're here to experience and become part of what I think of as a mystical "evolutionary flow" that will finish the whole evolution of the cosmos, of life, and of human culture in a way that was always inevitable. But I'm getting ahead of myself. Better to stop... and leave the details to the reading of book.
[A
CRITICAL
MASS](CelestineProph_toc.html#chap-1)
I drove up to the restaurant and parked, then leaned back in my seat to think for a moment. Charlene, I knew, would already be inside, waiting to talk with me. But why? I hadn't heard a word from her in six years. Why would she have shown up now, just when I had sequestered myself in the woods for a week?
I stepped out of the truck and walked toward the restaurant. Behind me, the last glow of a sunset sank in the west and cast highlights of golden amber across the wet parking lot. Everything had been drenched an hour earlier by a brief thunderstorm, and now the summer evening felt cool and renewed, and because of the fading light, almost surreal. A half moon hung overhead.
As I walked, old images of Charlene filled my mind. Was she still beautiful, intense? How would time have changed her? And what was I to think of this manuscript she had mentioned—this ancient artifact found in South America that she couldn't wait to tell me about?
"I have a two-hour layover at the airport," she had said on the telephone. "Can you meet me for dinner? You're going to love what this manuscript says—it's just your kind of mystery."
My kind of mystery? What did she mean by that?
Inside, the restaurant was crowded. Several couples waited for tables. When I found the hostess, she told me Charlene had already been seated and directed me toward a terraced area above the main dining room.
I walked up the steps and became aware of a crowd of people surrounding one of the tables. The crowd included two policemen. Suddenly, the policemen turned and rushed past me and down the steps. As the rest of the people dispersed, I could see past them to the person who seemed to have been the center of attention—a woman, still seated at the table... Charlene!
I quickly walked up to her. "Charlene, what's going on? Is anything wrong?"
She tossed her head back in mock exasperation and stood up, flashing her famous smile. I noticed that her hair was perhaps different, but her face was exactly as I remembered: small delicate features, wide mouth, huge blue eyes.
"You wouldn't believe it," she said, pulling me into a friendly hug. "I went to the rest room a few minutes ago and while I was gone, someone stole my briefcase."
"What was in it?"
"Nothing of importance, just some books and magazines I was taking along for the trip. It's crazy. The people at the other tables told me someone just walked-in, picked it up, and walked out. They gave the police a description and the officers said they would search the area."
"Maybe I should help them look?"
"No, no. Let's forget about it. I don't have much time and I want to talk with you."
I nodded and Charlene suggested we sit down. A waiter approached so we looked over the menu and gave him our order. Afterward, we spent ten or fifteen minutes chatting in general. I tried to underplay my self-imposed isolation but Charlene picked up on my vagueness. She leaned over and gave me that smile again.
"So what's _really_ going on with you?" she asked.
I looked at her eyes, at the intense way she was looking at me. "You want the whole story immediately, don't you?"
"Always," she said.
"Well, the truth is, I'm taking some time for myself right now and staying at the lake. I've been working hard and I'm thinking about changing directions in my life."
"I remember you talking about that lake. I thought you and your sister had to sell it."
"Not yet, but the problem is property taxes. Because the land is so close to the city, the taxes keep increasing."
She nodded. "So what are you going to do next?"
"I don't know yet. Something different."
She gave me an intriguing look. "Sounds as if you're as restless as everyone else."
"I suppose," I said. "Why do you ask?"
"It's in the Manuscript."
There was silence as I returned her gaze.
"Tell me about this Manuscript," I said.
She leaned back in her chair as if to gather her thoughts, then looked me in the eye again. "I mentioned on the phone, I think, that I left the newspaper several years ago and joined a research firm that investigates cultural and demographic changes for the U.N. My last assignment was in Peru.
"While I was there, completing some research at the University of Lima, I kept hearing rumors about an old manuscript that had been discovered—only no one could give me any of the details, not even at the departments of archeology or anthropology. And when I contacted the government about it, they denied any knowledge whatsoever.
"One person told me that the government was actually working to suppress this document for some reason. Although, again, he had no direct knowledge.
"You know me," she continued. "I'm curious. When my assignment was over, I decided to stay around for a couple of days to see what I could find out. At first, every lead I pursued turned out to be another dead end, but then while I was eating lunch in a cafe outside of Lima, I noticed a priest watching me. After a few minutes, he walked over and admitted that he had heard me inquiring about the Manuscript earlier in the day. He wouldn't reveal his name but he agreed to answer all my questions."
She hesitated for a moment, still looking at me intensely. "He said the Manuscript dates back to about 600 B.C. It predicts a massive transformation in human society."
"Beginning when?" I asked.
"In the last decades of the twentieth century."
"Now?!"
"Yes, now."
"What kind of transformation is it supposed to be?" I asked.
She looked embarrassed for a moment, then with force said, "The priest told me it's a kind of renaissance in consciousness, occurring very slowly. It's not religious in nature, but it is spiritual. We're discovering something new about human life on this planet, about what our existence means, and according to the priest, this knowledge will alter human culture dramatically."
She paused again, then added, "The priest told me the Manuscript is divided into segments, or chapters, each devoted to a particular insight into life. The Manuscript predicts that in this time period human beings will begin to grasp these insights sequentially, one insight then another, as we move from where we are now to a completely spiritual culture on Earth."
I shook my head and raised an eyebrow cynically. "Do you really believe all this?"
"Well," she said. "I think..."
"Look around," I interrupted, pointing at the crowd sitting in the room below us. "This is the real world. Do you see anything changing out there?"
Just as I said that, an angry remark erupted from a table near the far wall, a remark I couldn't understand, but which was loud enough to hush the entire room. At first I thought the disturbance was another robbery, but then I realized it was only an argument. A woman appearing to be in her thirties was standing up and staring indignantly at a man seated across from her.
"No," she yelled. "The problem is that this relationship is not happening the way I wanted! Do you understand? It's not happening!" She composed herself, tossed her napkin on the table, and walked out.
Charlene and I stared at each other, shocked that the outburst had occurred at the very moment we were discussing the people below us. Finally Charlene nodded toward the table where the man remained alone and said, "It's the real world that's changing."
"How?" I asked, still off balance.
"The transformation is beginning with the First Insight, and according to the priest, this insight always surfaces unconsciously at first, as a profound sense of restlessness."
"Restlessness?"
"Yes."
"What are we looking for?"
"That's just it! At first we aren't sure. According to the Manuscript, we're beginning to glimpse an alternative kind of experience... moments in our lives that feel different somehow, more intense and inspiring. But we don't know what this experience is or how to make it last, and when it ends we're left feeling dissatisfied and restless with a life that seems ordinary again."
"You think this restlessness was behind the woman's anger?"
"Yes. She's just like the rest of us. We're all looking for more fulfillment in our lives, and we won't put up with anything that seems to bring us down. This restless searching is what's behind the 'me–first' attitude that has characterized recent decades, and it's affecting everyone, from Wall Street to street gangs."
She looked directly at me. "And when it comes to relationships, we're so demanding that we're making them near impossible."
Her remark brought back the memory of my last two relationships. Both had begun intensely and both within a year had failed. When I focused on Charlene again, she was waiting patiently.
"What exactly are we doing to our romantic relationships?" I asked.
"I talked with the priest a long time about this," she replied. "He said that when both partners in a relationship are overly demanding, when each expects the other to live in his or her world, to always be there to join in his or her chosen activities, an ego battle inevitably develops."
What she said struck home. My last two relationships had indeed degenerated into power struggles. In both situations, we had found ourselves in a conflict of agendas. The pace had been too fast. We had too little time to coordinate our different ideas about what to do, where to go, what interests to pursue. In the end, the issue of who would lead, who would determine the direction for the day, had become an irresolvable difficulty.
"Because of this control battle," Charlene continued, "the Manuscript says we will find it very difficult to stay with the same person for any length of time."
"That doesn't seem very spiritual," I said.
"That's exactly what I told the priest," she replied. "He said to remember that while most of society's recent ills can be traced to this restlessness and searching, this problem is temporary, and will come to an end. We're finally becoming conscious of what we're actually looking for, of what this other, more fulfilling experience really is. When we grasp it fully, we'll have attained the First Insight."
Our dinner arrived so we paused for several minutes as the waiter poured more wine, and to taste each other's food. When she reached across the table to take a bite of salmon from my plate, Charlene wrinkled her nose and giggled. I realized how easy it was to be with her.
"Okay," I said. "What is this experience we're looking for? What is the First Insight?"
She hesitated, as though unsure how to begin.
"This is hard to explain," she said. "But the priest put it this way. He said the First Insight occurs when we become conscious of the _coincidences_ in our lives."
She leaned toward me. "Have you ever had a hunch or intuition concerning something you wanted to do? Some course you wanted to take in your life? And wondered how it might happen? And then, after you had half forgotten about it and focused on other things, you suddenly met someone or read something or went somewhere that led to the very opportunity you envisioned?
"Well," she continued, "according to the priest, these coincidences are happening more and more frequently and that, when they do, they strike us as beyond what would be expected by pure chance. They feel destined, as though our lives had been guided by some unexplained force. The experience induces a feeling of mystery and excitement and, as a result, we feel more alive.
"The priest told me that this is the experience that we've glimpsed and that we're now trying to manifest all the time. More people every day are convinced that this mysterious movement is real and that it means something, that something else is going on beneath everyday life. This awareness is the First Insight.
She looked at me expectantly, but I said nothing.
"Don't you see?" she asked. "The First Insight is a reconsideration of the inherent mystery that surrounds our individual lives on this planet. We are experiencing these mysterious coincidences, and even though we don't understand them yet, we know they are real. We are sensing again, as in childhood, that there is another side of life that we have yet to discover, some other process operating behind the scenes."
Charlene was leaning further toward me, gesturing with her hands as she spoke.
"You're really into this, aren't you?" I asked.
"I can remember a time," she said, sternly, "when you talked about these kinds of experiences."
Her comment jolted me. She was right. There had been a period in my life when I had indeed experienced such coincidences and had even tried to understand them psychologically. Somewhere along the way, my view had changed. I had begun to regard such perceptions as immature and unrealistic for some reason, and I had stopped even noticing.
I looked directly at Charlene, then said defensively, "I was probably reading Eastern Philosophy or Christian Mysticism at that time. That's what you remember. Anyway, what you're calling the First Insight has been written about many times, Charlene. What's different now? How is a perception of mysterious occurrences going to lead to a cultural transformation?"
Charlene looked down at the table for an instant and then back at me. "Don't misunderstand," she said. "Certainly this consciousness has been experienced and described before. In fact, the priest made a point to say that the first insight wasn't new. He said individuals have been aware of these unexplained coincidences throughout history, that this has been the perception behind many great attempts at philosophy and religion. But the difference now lies in the numbers. According to the priest, the transformation is occurring now because of the number of individuals having this awareness all at the same time."
"What did he mean, exactly?" I asked.
"He told me the Manuscript says the number of people who are conscious of such coincidences would begin to grow dramatically in the sixth decade of the twentieth century. He said that this growth would continue until sometime near the beginning of the following century, when we would reach a specific level of such individuals—a level I think of as a critical mass.
"The Manuscript predicts," she went on, "that once we reach this critical mass, the entire culture will begin to take these coincidental experiences seriously. We will wonder, in mass, what mysterious process underlies human life on this planet. And it will be this question, asked at the same time by enough people, that will allow the other insights to also come into consciousness—because according to the Manuscript, when a sufficient number of individuals seriously question what's going on in life, we will begin to find out. The other insights will be revealed... one after the other."
She paused to take a bite of food.
"And when we grasp the other insights," I asked, "then the culture will shift?"
"That's what the priest told me," she said.
I looked at her for a moment, contemplating the idea of a critical mass, then said, "You know, all this sounds awfully sophisticated for a Manuscript written in 600 B.C."
"I know," she replied. "I raised the question myself. But the priest assured me that the scholars who first translated the Manuscript were absolutely convinced of its authenticity. Mainly because it was written in Aramaic, the same language in which much of the Old Testament was written."
"Aramaic in South America? How did it get there in 600 B.C?"
"The priest didn't know."
"Does his church support the Manuscript?" I asked.
"No," she said. "He told me that most of the clergy were bitterly trying to suppress the Manuscript. That's why he couldn't tell me his name. Apparently talking about it at all was very dangerous for him."
"Did he say why most church officials were fighting against it?"
"Yes, because it challenges the completeness of their religion."
"How?"
"I don't know exactly. He didn't discuss it much, but apparently the other insights extend some of the church's traditional ideas in a way that alarms the church elders, who think things are fine the way they are."
"I see."
"The priest did say," Charlene went on, "that he doesn't think the Manuscript undermines any of the church's principles. If anything, it clarifies exactly what is meant by these spiritual truths. He felt strongly that the church leaders would see this fact if they would try to see life as a mystery again and then proceed through the other insights."
"Did he tell you how many insights there were?"
"No, but he did mention the Second Insight. He told me it is a more correct interpretation of recent history, one that further clarifies the transformation."
"Did he elaborate on that?"
"No, he didn't have time. He said he had to leave to take care of some business. We agreed to meet back at his house that afternoon, but when I arrived he wasn't there. I waited three hours and he still didn't show up. Finally, I had to leave to catch my flight home."
"You mean you weren't able to talk with him any more?"
"That's right. I never saw him again."
"And you never received any confirmation about the Manuscript from the government?"
"None."
"And how long ago did this take place?"
"About a month and a half."
For several minutes we ate in silence. Finally Charlene looked up and asked, "So what do you think?"
"I don't know," I said. Part of me remained skeptical of the idea that human beings could really change. But another part of me was amazed to think that a Manuscript which spoke in these terms might actually exist.
"Did he show you a copy or anything?" I asked.
"No. All I have are my notes."
Again we were silent.
"You know," she said, "I had thought you would be really excited by these ideas."
I looked at her. "I guess I need some proof that what this Manuscript says is true."
She smiled broadly again.
"What?" I asked.
"That's exactly what I said, too."
"To whom, the priest?"
"Yes."
"What did he say?"
"He said that experience is the evidence."
"What did he mean by that?"
"He meant that our experience validates what the Manuscript says. When we truly reflect on how we feel inside, on how our lives are proceeding at this point in history, we can see that the ideas in the Manuscript make sense, that they ring true." She hesitated. "Does it make sense to you?"
I thought for a moment. Does it make sense? Is everyone as restless as me, and if so, does our restlessness result from the simple insight—the simple awareness built up for thirty years—that there is really more to life than we know, more that we can experience?
"I'm not sure," I finally said, "I guess I need some time to think about it."
I walked out to the garden beside the restaurant and stood behind a cedar bench facing the fountain. To my right I could see the pulsating lights at the airport and hear the roaring engines of a jet ready for take off.
"What beautiful flowers," Charlene said from behind me. I turned to see her walking toward me along the walkway, admiring the rows of petunias and begonias which bordered the sitting area. She stood beside me and I put my arm around her. Memories flooded my mind. Years ago, when we had both lived in Charlottesville, Virginia, we had spent regular evenings together, talking. Most of our discussions were about academic theories and psychological growth. We had both been fascinated by the conversations and by each other. Yet it struck me how platonic our relationship had always been.
"I can't tell you," she said, "how nice it is to see you again."
"I know," I replied. "Seeing you brings back a lot of memories."
"I wonder why we didn't stay in touch?" She asked.
Her question took me back again. I recalled the last time I had seen Charlene. She was telling me good-bye at my car. At the time I felt full of new ideas and was departing for my home town to work with severely abused children. I thought I knew how such children could transcend the intense reactions, the obsessive acting out, that kept them from going on with their lives. But as time had progressed, my approach had failed. I had to admit my ignorance. How humans might liberate themselves from their pasts was still an enigma to me.
Looking back over the previous six years I now felt sure the experience had been worthwhile. Yet I also felt the urge to move on. But to where? To do what? I had thought of Charlene only a few times since she had helped me crystallize my ideas about childhood trauma, and now here she was again, back in my life—and our conversation felt just as exciting as before.
"I guess I got totally absorbed in my work," I said.
"So did I," she replied. "At the paper it was one story after another. I didn't have time to look up. I forgot about everything else."
I squeezed her shoulder. "You know, Charlene, I had forgotten how well we talk together; our conversation seems so easy and spontaneous."
Her eyes and smile confirmed my perception. "I know," she said, "conversations with you give me so much energy."
I was about to make another comment when Charlene stared past me toward the entrance to the restaurant. Her face grew anxious and pale.
"What's wrong?" I asked, turning to look in that direction. Several people were walking toward the parking lot, talking casually, but nothing seemed out of the ordinary. I turned to face Charlene again. She still appeared alarmed and confused.
"What was it?" I repeated.
"Over by the first row of cars—did you see that man in the gray shirt?"
I looked toward the parking lot again. Another group was exiting through the door. "What man?"
"I guess he's not there now," she said, straining to see.
She looked directly into my eyes. "When the people at the other tables described the man who stole my briefcase, they said he had thinning hair and a beard, and wore a gray shirt. I think I just saw him over there by the cars... watching us."
A knot of anxiety formed in my stomach. I told Charlene I would be right back and walked to the parking lot to look around, careful not to get too far away. I saw no one who fit the description.
When I returned to the bench, Charlene took a step closer to me and said softly, "Do you suppose this person thinks I have a copy of the manuscript? And that's why he took my briefcase? He's trying to get it back?"
"I don't know," I said. "But we're going to call the police again and tell them what you saw. I think they also ought to check out the passengers on your flight."
We walked inside and called the police, and when they arrived we informed them of what had occurred. They spent twenty minutes checking each car, then explained that they could invest no more time. They did agree to check all the passengers boarding the plane Charlene would be on.
After the police had left, Charlene and I found ourselves standing alone again by the fountain.
"What were we talking about, anyway?" she asked. "Before I saw that man?"
"We were talking about us," I replied. "Charlene, why did you think to contact me about all this?"
She gave me a perplexed look. "When I was in Peru and the priest was telling me about the Manuscript, you kept popping into my mind."
"Oh yeah?"
"I didn't think too much about it then," she continued, "but later, after I returned to Virginia, every time I would think of the Manuscript, I would think of you. I started to call several times but I always got distracted. Then, I received this assignment in Miami that I'm headed to now and discovered, after I had boarded the plane, that I had a layover here. When I landed I looked up your number. Your answering machine said to contact you at the lake only in an emergency, but I decided it would be okay to call."
I looked at her for a moment, unsure of what to think. "Of course," I finally replied. "I'm glad you did."
Charlene glanced at her watch. "It's getting late. I'd better get back to the airport."
"I'll drive you," I said.
We drove to the main terminal and walked toward the embarkation area. I watched carefully for anything unusual. When we arrived, the plane was already boarding and one of the policemen we had met was observing each passenger. When we approached him, he told us that he had observed everyone scheduled to board and no one fit the description of the thief.
We thanked him and after he had left, Charlene turned and smiled at me. "I guess I'd better go," she said, reaching out to hug my neck. "Here are my numbers. Let's keep in touch this time."
"Listen," I said. "I want you to be careful. If you see anything strange, call the police!"
"Don't worry about me," she replied. "I'll be fine."
For an instant we looked deeply into each other's eyes.
"What are you going to do about this Manuscript?" I asked.
"I don't know. Listen for news reports about it, I guess."
"What if it's suppressed?"
She gave me another of her full smiles. "I knew it," she said. "You're hooked. I told you you'd love it. What are _you_ going to do?"
I shrugged. "See if I can find out more about it, probably."
"Good. If you do, let me know."
We said good-bye again and she walked away. I watched as she turned once and waved, then disappeared down the boarding corridor. I walked to my truck and drove back to the lake, stopping only for gas.
When I arrived, I walked out to the screened porch and sat in one of the rockers. The evening was loud with crickets and tree frogs and in the distance I could hear a whippoorwill. Across the lake, the moon had sunk lower in the west and sent a rippled line of reflection toward me on the water's surface.
The evening had been interesting, but I was still skeptical about the whole idea of a cultural transformation. Like many people, I had been caught up in the social idealism of the Sixties and Seventies, and even in the spiritual interests of the Eighties. But it was hard to judge what was really happening. What kind of new information could possibly alter the entire human world? It all sounded too idealistic and far-fetched. After all, humans had been alive on this planet for a long time. Why would we suddenly gain insight into existence now, at this late date? I gazed out at the water for a few more minutes, then turned off the lights and went into the bedroom to read.
The next morning I awoke suddenly with a dream still fresh in my mind. For a minute or two I stared at the bedroom ceiling, remembering it fully. I had been making my way through a forest searching for something. The forest was large and exceptionally beautiful.
In my quest I found myself in a number of situations in which I felt totally lost and bewildered, unable to decide how to proceed. Incredibly, at each of these moments, a person would appear out of nowhere as though by design to clarify where I needed to go next. I never became aware of the object of my search but the dream had left me feeling incredibly upbeat and confident.
I sat up and noticed a beam of sunlight coming through the window across the room. It sparkled with suspended dust particles. I walked over and pulled back the curtains. The day was radiant: blue sky, bright sunshine. A stiff breeze gently rocked the trees. The lake would be rippled and glistening this time of day, and the wind chilly against a swimmer's wet skin.
I walked outside and dove in. I surfaced and swam out to the middle of the lake, turning on my back to look at the familiar mountains. The lake rested in a deep valley where three mountain ridges converged, a perfect lake site discovered by my grandfather in his youth.
It had now been a hundred years since he had first walked these ridges, a child explorer, a prodigy growing up in a world that was still wild with cougar and boar and Creek Indians that lived in primitive cabins up the north ridge. He had sworn at the time that one day he would live in this perfect valley with its massive old trees and seven springs, and finally he had—later to build a lake and a cabin and to take countless walks with a young grandson. I never quite understood my grandfather's fascination with this valley, but I had always tried to preserve the land, even when civilization encroached, then surrounded.
From the middle of the lake, I could see a particular rock outcropping near the crest of the north ridge. The day before, in the tradition of my grandfather, I had climbed to that overhang, trying to find some peace in the view and in the smells and in the way the wind whirled in the tree tops. And as I had sat up there, surveying the lake and the dense foliage in the valley below, I had slowly felt better, as if the energy and the perspective were dissolving some block in my mind. A few hours later I had been talking with Charlene and hearing about the Manuscript.
I swam back and pulled myself up on the wooden pier in front of the cabin. I knew all this was too much to believe. I mean, here I was hiding out in these hills, feeling totally disenchanted with my life, when out of the blue, Charlene shows up and explains the cause of my restlessness—quoting some old manuscript that promises the secret of human existence.
Yet I also knew that Charlene's arrival was exactly the sort of coincidence of which the Manuscript spoke, one that seemed too unlikely to be a mere chance event. Could this ancient document be correct? Have we been slowly building, in spite of our denial and cynicism, a critical mass of people conscious of these coincidences? Were humans now in a position to understand this phenomenon and thus, finally, to understand the purpose behind life itself?
What, I wondered, would this new understanding be? Would the remaining insights in the Manuscript tell us, as the priest had said?
I faced a decision. Because of the Manuscript I felt a new direction open in my life, a new point of interest. The question was what to do now? I could remain here or I could find a way to explore further. The issue of danger entered my mind. Who had stolen Charlene's briefcase? Was it someone working to suppress the Manuscript? How could I know?
I thought about the possible risk for a long time, but finally my mood of optimism prevailed. I decided not to worry. I would be careful and go slowly. I walked inside and called the travel agency with the largest ad in the yellow pages. The agent with whom I spoke said he could indeed arrange a trip to Peru. In fact, by chance, there was a cancellation I could fill—a flight with reservations already confirmed at a hotel in Lima. I could have the whole package at a discount, he said... if I could leave in three hours.
Three hours?
[THE
LONGER
NOW](CelestineProph_toc.html#chap-2)
After a frenzy of packing and a wild ride on the freeway, I arrived at the airport with just enough time to pick up my ticket and board the flight for Peru. As I walked into the plane's tail section and sat down in a window seat, fatigue swept over me.
I thought about a nap, but when I stretched out and closed my eyes, I found I couldn't relax. I suddenly felt nervous and ambivalent about the trip. Was it crazy to depart with no preparation? Where would I go in Peru? To whom would I talk?
The confidence I had experienced at the lake was quickly fading back into skepticism. Both the First Insight and the idea of a cultural transformation again seemed fanciful and unrealistic. And as I thought about it, the concept of a Second Insight seemed just as unlikely. How could a new historical perspective institute our perception of these coincidences and keep them conscious in the public mind?
I stretched out further and took a deep breath. Maybe it would be a useless trip, I concluded, just a quick run to Peru and back. A waste of money perhaps but no real harm done.
The plane jerked forward and taxied out to the runway. I closed my eyes and felt a mild dizziness as the big jet reached the critical speed and lifted into a thick cloud cover. When we reached cruising altitude, I finally relaxed and drifted into sleep. Thirty or forty minutes later, a stretch of turbulence woke me up and I decided to go to the rest room.
As I made my way through the lounge area I noticed a tall man with round glasses standing near the window talking to a flight attendant. He glanced at me briefly, then continued speaking. He had dark brown hair and appeared to be about forty-five years old. For an instant I thought I recognized him, but after looking at his features closely, I concluded he was no one I knew. As I walked past I could hear part of the conversation.
"Thanks anyway," the man said, "I just thought since you travel to Peru so often that perhaps you had heard something about the Manuscript." He turned away and walked toward the front of the plane.
I was dumbstruck. Was he speaking of the same Manuscript? I walked into the rest room and tried to decide what to do. Part of me wanted to forget about it. Probably he was talking about something else, some other book.
I returned to my seat and closed my eyes again, content to write off the incident, glad I didn't have to ask the man what he meant. But as I sat there, I thought about the excitement I had felt at the lake. What if this man actually had information about the Manuscript? What might happen then? If I didn't inquire, I would never know.
I wavered several more times in my mind, then finally stood up and walked toward the front of the plane, finding him about midway up the aisle. Directly behind him was an empty seat. I walked back and told an attendant I wanted to move, then gathered my things and took the seat. After a few minutes, I tapped him on the shoulder.
"Excuse me," I said. "I heard you mention a manuscript. Were you speaking of the one found in Peru?"
He looked surprised, then cautious. "Yes, I was," he said tentatively.
I introduced myself and explained that a friend had been in Peru recently and had informed me of the Manuscript's existence. He visibly relaxed and introduced himself as Wayne Dobson, an assistant professor of history from New York University.
As we spoke, I noticed a look of irritation coming from the gentleman sitting next to me. He had leaned back in his seat and was attempting to sleep.
"Have you seen the Manuscript?" I asked the professor.
"Parts of it," he said. "Have you?"
"No, but my friend told me about the First Insight." The man beside me changed his position.
Dobson looked his way. "Excuse me, sir. I know we're disturbing you. Would it be too much trouble for you to exchange seats with me?"
"No," the man said. "That would be preferable."
We all stepped into the aisle and then I slid back into the window seat and Dobson sat beside me.
"Tell me what you heard concerning the First Insight," Dobson said.
I paused for a moment, trying to sum up in my mind what I understood. "I guess the First Insight is an awareness of the mysterious occurrences that change one's life, the feeling that some other process is operating."
I felt absurd as I said it.
Dobson picked up on my discomfort. "What do you think of that insight?" He asked.
"I don't know," I said.
"It doesn't quite fit with our modern day common sense, does it? Wouldn't you feel better dismissing the whole idea and getting back to thinking about practical matters?"
I laughed and nodded affirmatively.
"Well, that's everyone's tendency. Even though we occasionally have the clear insight that something more is going on in life, our habitual way of thinking is to consider such ideas unknowable and then to shrug off the awareness altogether. That's why the Second Insight is necessary. Once we see the historical background to our awareness, it seems more valid."
I nodded. "Then as a historian you think the Manuscript's prediction of a global transformation is accurate?"
"Yes."
"As a historian?"
"Yes! But you have to look at history in the correct way." He took a deep breath. "Believe me, I say this as one who has spent a lot of years studying and teaching history in the wrong way! I used to focus solely on the technological accomplishments of civilization and the great men who brought about this progress."
"What's wrong with that approach?"
"Nothing, as far as it goes. But what's really important is the world view of each historical period, what the people were feeling and thinking. It took me a long time to understand that. History is supposed to provide a knowledge of the longer context within which our lives take place. History is not just the evolution of technology; it is the evolution of thought. By understanding the reality of the people who came before us, we can see why we look at the world the way we do, and what our contribution is toward further progress. We can pinpoint where we come in, so to speak, in the longer development of Civilization, and that gives us a sense of where we are going."
He paused, then added, "The effect of the Second Insight is to provide exactly this kind of historical perspective, at least from the point of view of western thought. It places the Manuscript's predictions in a longer context that makes them seem not only plausible, but inevitable."
I asked Dobson how many insights he had seen and he told me only the first two. He had found them, he said, after a rumor about the Manuscript prompted a short trip to Peru three weeks ago.
"Once I arrived in Peru," he continued, "I met a couple of people who confirmed the Manuscript's existence yet seemed scared to death to talk much about it. They said the government had gone a little loco and was making physical threats against anyone who had copies or dispersed information."
His face turned serious. "That made me nervous. But later a waiter at my hotel told me about a priest he knew who often spoke of the Manuscript. The waiter said the priest was trying to fight the government's effort to suppress the artifact. I couldn't resist going to a private dwelling where this priest supposedly spent most of his time."
I must have looked surprised, because Dobson asked, "What's wrong?"
"My friend," I replied, "the one who told me about the Manuscript, learned what she knew from a priest. He wouldn't give his name, but she talked with him once about the First Insight. She was scheduled to meet with him again but he never showed up."
"It may have been the same man," Dobson said. "Because I couldn't find him either. The house was locked up and looked deserted."
"You never saw him?"
"No, but I decided to look around. There was an old storage building in the back that was open and for some reason I decided to explore inside. Behind some trash, under a loose board in the wall, I found translations of the First and Second Insights."
He looked at me knowingly.
"You just happened to find them?" I asked.
"Yes."
"Did you bring the Insights with you on this trip?
He shook his head. "No. I decided to study them thoroughly and then leave them with some of my colleagues."
"Could you give me a summary of the Second Insight?" I asked.
There was a long pause, then Dobson smiled and nodded. "I guess that's why we're here."
"The Second Insight," he said, "puts our current awareness into a longer historical perspective. After all, when the decade of the nineties is over, we'll be finishing up not only the twentieth century but a thousand year period of history as well. We'll be completing the entire second millennium. Before we in the west can understand where we are, and what is going to occur next, we must understand what has really been happening during this current thousand year period."
"What does the Manuscript say exactly?" I asked.
"It says that at the close of the second millennium—that's now—we will be able to see that entire period of history as a whole, and we will identify a particular preoccupation that developed during the later half of this millennium, in what has been called the Modern Age. Our awareness of the coincidences today represents a kind of awakening from this preoccupation."
"What's the preoccupation?" I asked.
He gave me a mischievous half smile. "Are you ready to relive the millennium?"
"Sure, tell me about it."
"It's not enough for me to tell you about it. Remember what I said before: to understand history, you must grasp how your everyday view of the world developed, how it was created by the reality of the people who lived before you. It took a thousand years to evolve the modern way of looking at things, and to really understand where you are today, you must take yourself back to the year 1000 and then move forward through the entire millennium experientially, as though you actually lived through the whole period yourself in a single lifetime."
"How do I do that?"
"I'll guide you through it."
I hesitated for a moment, glancing out the window at the land formations far below. Time was already beginning to feel different.
"I'll try," I said finally.
"Okay," he replied, "imagine yourself being alive in the year one thousand, in what we have called the Middle Ages. The first thing you must understand is that the reality of this time is being defined by the powerful churchmen of the Christian church. Because of their position, these men hold great influence over the minds of the populace. And the world these churchmen describe as real is, above all, spiritual. They are creating a reality which places their idea about God's plan for mankind at the very center of life.
"Visualize this," he continued. "You find yourself in the class of your father—essentially peasant or aristocrat—and you know that you will always be confined to this class. But regardless of which class you're in, or the particular work that you do, you soon realize that social position is secondary to the spiritual reality of life as defined by the churchmen.
"Life is about passing a spiritual test, you discover. The churchmen explain that God has placed mankind at the center of his universe, surrounded by the entire cosmos, for one solitary purpose: to win or lose salvation. And in this trial you must correctly choose between two opposing forces: the force of God and the lurking temptations of the devil.
"But understand that you don't face this contest alone, "he continued. "In fact, as a mere individual you aren't qualified to determine your status in this regard. This is the province of the churchmen; they are there to interpret the scriptures and to tell you every step of the way whether you are in accordance with God or whether you are being duped by Satan. If you follow their instructions, you are assured that a rewarding afterlife will follow. But if you fail to heed the course they prescribe, then, well... there is excommunication and certain damnation."
Dobson looked at me intensely. "The manuscript says that the important thing to understand here is that every aspect of the Medieval world is defined in other-worldly terms. All the phenomena of life—from the chance thunderstorm or earthquake to the success of crops or the death of a loved one—is defined either as the will of God or as the malice of the devil. There is no concept of weather or geological forces or horticulture or disease. All that comes later. For now, you completely believe the churchmen; the world you take for granted operates solely by spiritual means."
He stopped talking and looked at me. "Are you there?"
"Yes, I can see that reality."
"Well, imagine that reality now beginning to break down."
"What do you mean?"
"The Medieval world view, your world view, begins to fall apart in the fourteenth and fifteenth centuries. First, you notice certain improprieties on the part of the churchmen themselves: secretly violating their vows of chastity, for example, or taking gratuities to look the other way when governmental officials violate scriptural laws.
"These improprieties alarm you because these churchmen hold themselves to be the only connection between yourself and God. Remember they are the only interpreters of the scriptures, the sole arbitrators of your salvation.
"Suddenly you are in the midst of an outright rebellion. A group led by Martin Luther is calling for a complete break from papal Christianity. The churchmen are corrupt, they say, demanding an end to the churchmen's reign over the minds of the people. New churches are being formed based on the idea that each person should be able to have access to the scriptures personally and to interpret them as they wish, with no middlemen.
"As you watch in disbelief, the rebellion succeeds. The churchmen begin to lose. For centuries these men defined reality, and now, before your eyes, they are losing their credibility. Consequently, the whole world is being thrown into question. The clear consensus about the nature of the universe and about humankind's purpose here, based as it was on the churchmen's description, is collapsing—leaving you and all the other humans in western culture in a very precarious place.
"After all, you have grown accustomed to having an authority in your life to define reality, and without that external direction you feel confused and lost. If the churchmen's description of reality and the reason for human existence is wrong, you ask, then what is right?"
He paused for a moment. "Do you see the impact of this collapse on the people of that day?"
"I suppose it was somewhat unsettling," I said.
"To say the least," he replied. "There was a tremendous upheaval. The old world view was being challenged everywhere. In fact, by the 1600s, astronomers had proved beyond a doubt that the sun and stars did not revolve around the Earth as maintained by the church. Clearly the Earth was only one small planet orbiting a minor sun in a galaxy that contained billions of such stars."
He leaned toward me. "This is important. Mankind has lost its place at the center of God's universe. See the effect this had? Now, when you watch the weather, or plants growing, or someone suddenly die, what you feel is an anxious bafflement. In the past, you might have said God was responsible, or the devil. But as the medieval world view breaks down, that certainty goes with it. All the things you took for granted now need new definition, especially the nature of God and your relationship to God.
"With that awareness," he went on, "the Modern Age begins. There is a growing democratic spirit and a mass distrust of papal and royal authority. Definitions of the universe based on speculation or scriptural faith are no longer automatically accepted. In spite of the loss of certainty, we didn't want to risk some new group controlling our reality as the churchmen had. If you had been there you would have participated in the creation of a new mandate for science."
"A what?"
He laughed. "You would have looked out on this vast undefined universe and you would have thought, as did the thinkers of that day, that we needed a method of consensus-building, a way to systematically explore this new world of ours. And you would have called this new way of discovering reality the scientific method, which is nothing more than testing an idea about how the universe works, arriving afterward at some conclusion, and then offering this conclusion to others to see if they agree.
"Then," he continued, "you would have prepared explorers to go out into this new universe, each armed with the scientific method, and you would have given them their historic mission: Explore this place and find out how it works and what it means that we find ourselves alive here.
"You knew you had lost your certainty about a God-ruled universe and, because of that, your certainty about the nature of God himself. But you felt you had a method, a consensus-building process through which you could discover the nature of everything around you, including God, and including the true purpose of mankind's existence on the planet. So you sent these explorers out to find the true nature of your situation and to report back."
He paused and looked at me.
"The Manuscript," he said, "says that at this point we began the preoccupation from which we are awakening now. We sent these explorers out to bring back a complete explanation of our existence, but because of the complexity of the universe they weren't able to return right away."
"What was the preoccupation?"
"Put yourself in that time period again," he said. "When the scientific method couldn't bring back a new picture of God and of mankind's purpose on the planet, the lack of certainty and meaning affected Western culture deeply. We needed something else to do until our questions were answered. Eventually we arrived at what seemed to be a very logical solution. We looked at each other and said: 'Well, since our explorers have not yet returned with our true spiritual situation, why not settle into this new world of ours while we are waiting? We are certainly learning enough to manipulate this new world for our own benefit, so why not work in the meantime to raise our standard of living, our sense of security in the world?'"
He looked at me and grinned. "And that's what we did. Four centuries ago! We shook off our feeling of being lost by taking matters into our own hands, by focusing on conquering the Earth and using its resources to better our situation, and only now, as we approach the end of the millennium can we see what happened. Our focus gradually became a preoccupation. We totally lost ourselves in creating a secular security, an economic security, to replace the spiritual one we had lost. The question of why we were alive, of what was actually going on here spiritually, was slowly pushed aside and repressed altogether."
He looked at me intensely, then said, "Working to establish a more comfortable style of survival has grown to feel complete in and of itself as a reason to live, and we've gradually, methodically, forgotten our original question... We've forgotten that we still don't know what we're surviving for."
Out the window, far below, I could see a large city. Judging from our flight-path, I suspected it was Orlando, Florida. I was struck by the geometric outline of streets and avenues, the planned and ordered configuration of what humans had built. I looked over at Dobson. His eyes were closed and he appeared to be asleep. For an hour he had told me more about the Second Insight, then our lunch had arrived and we had eaten and I had told him about Charlene and why I had decided to come to Peru. Afterward, I wanted only to gaze out at the cloud formations and consider what he had said.
"So what do you think?" he asked suddenly, looking sleepily over at me. "Have you grasped the Second Insight?"
"I'm not sure."
He nodded toward the other passengers. "Do you feel as if you have a clearer perspective on the human world? Do you see how preoccupied everyone has been? This perspective explains a lot. How many people do you know who are obsessed with their work, who are type A or have stress related diseases and who can't slow down? They can't slow down because they use their routine to distract themselves, to reduce life to only its practical considerations. And they do this to avoid recalling how uncertain they are about why they live.
"The Second Insight extends our consciousness of historical time," he added. "It shows us how to observe culture not just from the perspective of our own lifetimes but from the perspective of a whole millennium. It reveals our preoccupation to us and so lifts us above it. You have just experienced this longer history. You now live in a _longer now_. When you look at the human world now, you should be able to clearly see this obsessiveness, the intense preoccupation with economic progress."
"But what's wrong with that?" I protested. "It's what made western civilization great."
He laughed loudly. "Of course, you're right. No one's saying it was wrong. In fact, the Manuscript says the preoccupation was a necessary development, a stage in human evolution. Now, however, we've spent enough time settling into the world. It's time now to wake up from the preoccupation and reconsider our original question. What's behind life on this planet? Why are we really here?"
I looked at him for a long time, then asked, "Do you think the other insights explain this purpose?"
Dobson cocked his head. "I think it's worth a look. I just hope no one destroys the rest of the Manuscript before we have a chance to find out."
"How could the Peruvian government think they could destroy an important artifact and get away with it?" I asked.
"They would do it covertly," he replied. "The official line is that the Manuscript doesn't exist at all."
"I would think the scientific community would be up in arms."
He looked at me with an expression of resolve. "We are. That's why I'm returning to Peru. I represent ten prominent scientists, all of whom demand that the original manuscript be made public. I sent a letter to the relevant department heads within the Peruvian government telling them that I was coming and that I expected cooperation."
"I see. I wonder how they will respond."
"Probably with denials. But at least it will be an official start."
He turned away, deep in thought, and I stared out the window again. As I looked down, it dawned on me that the airplane on which we were riding contained within its technology four centuries of progress. We had learned much about manipulating the resources we had found on the Earth. How many people, I mused, how many generations did it take to create the products and the understanding that enabled this airplane to come into being? And how many spent their whole lives focused on one tiny aspect, one small step, without ever lifting their heads from that preoccupation?
Suddenly, in that instant, the span of history Dobson and I had been discussing seemed to integrate fully into my consciousness. I could see the millennium clearly, as though it was part of my own life history. A thousand years ago we had lived in a world where God and human spirituality were clearly defined. And then we had lost it, or better, we had decided there was more to the story. Accordingly, we had sent explorers out to discover the real truth and to report back, and when they had taken too long we had become preoccupied with a new, secular purpose, one of settling into the world, of making ourselves more comfortable.
And settle we had. We discovered that metallic ores could be melted down and fashioned into all kinds of gadgets. We invented sources of power, first steam then gas and electricity and fission. We systemized farming and mass production and now commanded huge stores of material goods and vast networks of distribution.
Propelling it all was the call to progress, the desire of the individual to provide his own security, his own purpose while he was waiting for the truth. We had decided to create a more comfortable and pleasurable life for ourselves and our children, and in a mere four hundred years our preoccupation had created a human world where all the comforts of life could now be produced. The problem was that our focused, obsessive drive to conquer nature and make ourselves more comfortable had left the natural systems of the planet polluted and on the verge of collapse. We couldn't go on this way.
Dobson was right. The Second Insight did make our new awareness seem inevitable. We were reaching a climax in our cultural purpose. We were accomplishing what we had collectively decided to do, and as this happened, our preoccupation was breaking down and we were waking up to something else. I could almost see the momentum of the Modern Age slowing as we approached the end of the millennium. A four hundred year old obsession had been completed. We had created the means of material security, and now we seemed to be ready—poised, in fact—to find out why we had done it.
In the faces of the passengers around me I could see evidence of the preoccupation, but also I thought I detected brief glimpses of awareness. How many, I wondered, had already noticed the coincidences?
The plane tilted forward and began its descent as the flight attendant announced that we would soon be landing in Lima.
I gave Dobson the name of my hotel and asked where he was staying. He gave me the name of his hotel and said it was only a couple of miles from mine.
"What is your plan?" I asked.
"I've been thinking about that," he replied. "The first thing, I guess, is to visit the American Embassy and tell them why I'm here, just for the record."
"Good idea."
"After that, I'm going to speak with as many Peruvian scientists as I can. The scientists at the University of Lima have already told me that they have no knowledge of the Manuscript, but there are other scientists who are working at various ruins who may be willing to talk. What about you? What are your plans?"
"I have none," I replied. "Do you mind if I tag along?"
"Not at all. I was going to suggest it."
After the plane landed, we picked up our luggage and agreed to meet later at Dobson's hotel. I walked outside and hailed a taxi in the fading twilight. The air was dry and the wind very brisk.
As my cab drove away, I noticed another taxi pull out quickly behind us, then lag back in the traffic. It stayed with us through several turns and I could make out a lone figure in the back. A rush of nervousness filled my stomach. I asked the driver, who could speak English, not to go directly to the hotel, but to drive around for a while. I told him I was interested in sightseeing. He complied without comment. The taxi followed. What was this all about?
When we arrived at my hotel, I told the driver to stay in the car, then I opened my door and pretended to be paying the fare. The taxi following behind us pulled up to the curb some distance away and the man stepped out and walked slowly toward the hotel entrance.
I jumped back into the vehicle and shut the door, telling the cabbie to drive on. As we sped away, the man walked into the street and watched us until we were out of sight. I could see my driver's face in the rear view mirror. He was watching me closely, his expression tense. "Sorry about this," I said. "I've decided to change accommodations." I struggled to smile, then gave him the name of Dobson's hotel—although part of me wanted to go straight to the airport and take the first plane back to the States.
A half block short of our destination I had the driver pull over. "Wait here," I told him. "I'll be right back."
The streets were filled with people, mostly native Peruvians. But here and there I passed some Americans and Europeans. Something about seeing the tourists made me feel safer. When I was within fifty yards of the hotel, I stopped. Something wasn't right. Suddenly, as I watched, gunshots rang out and screams filled the air. The crowd in front of me flung themselves to the ground, opening up my view down the sidewalk. Dobson was running toward me, wild-eyed, panicked. Figures behind him pursued. One fired his gun into the air and ordered Dobson to halt.
As he ran closer, Dobson strained to focus, then recognized me. "Run!" he yelled. "For godsakes run!" I turned and ran down an alley in terror. Ahead was a vertical board fence, six feet high, blocking my way. When I reached it, I leaped as high as I could, catching the top of the boards with my hands and flinging my right leg over the top. As I pulled my left leg over and dropped to the other side I looked back down the alley. Dobson was running desperately. More shots were fired. He stumbled and fell.
I continued to run blindly, leaping piles of trash and stacks of cardboard boxes. For a moment I thought I heard footsteps behind me but I didn't dare look back. Ahead, the alley ran into the next street, which was also crowded with people, seemingly unalarmed. As I entered the street, I dared a glance to my rear, my heart pounding. No one was there. I walked hurriedly down the sidewalk to the right trying to fade into the crowd. Why did Dobson run? I asked myself. Was he killed?
"Wait a minute," someone said in a loud whisper from behind my left shoulder. I started to run but he reached out and grabbed my arm. "Please wait a minute," he said again. "I saw what happened. I'm trying to help you."
"Who are you?" I asked, trembling.
"I'm Wilson James," he said. "I'll explain later. Right now we have to get off these streets."
Something about his voice and demeanor calmed my panic, so I decided to follow him. We walked up the street and into a leather goods store. He nodded to a man behind the counter and led me into a musty spare room in the back. He shut the door and closed the curtains.
He was a man in his sixties, although he seemed much younger. A sparkle in his eyes or something. His skin was dark brown and his hair was black. He looked of Peruvian decent, but the English he spoke sounded almost American. He wore a bright blue t-shirt and jeans.
"You'll be safe here for a while," he said. "Why are they chasing you?"
I didn't respond.
"You're here about the Manuscript, aren't you?" he asked.
"How did you know that?"
"I guess the man with you was here for that reason, too?"
"Yes. His name is Dobson. How did you know there were two of us?"
"I have a room over the alley; I was looking out the window as they were chasing you."
"Did they shoot Dobson?" I asked, terrified by what I might hear in reply.
"I don't know," he said. "I couldn't tell. But once I saw you had escaped, I ran down the back steps to head you off. I thought perhaps I could help."
"Why?"
For an instant he looked at me as though he was uncertain how to answer my question. Then his expression changed to one of warmth. "You won't understand this, but I was standing there at the window and thoughts about an old friend came to me. He's dead now. He died because he thought people should know about the Manuscript. When I saw what was happening in the alley, I felt I should help you."
He was right. I didn't understand. But I had the feeling he was being absolutely truthful with me. I was about to ask another question when he spoke again.
"We can talk about this later," he said. "I think we'd better move to a safer place."
"Wait a minute, Wilson," I said. "I just want to find a way back to the States. How can I do this?"
"Call me Wil," he replied. "I don't think you should try the airport, not yet. If they're still looking for you they will be checking there. I -have some friends who live out of town. They will hide you. There are several other ways out of the country you can choose. When you're ready they will show you where to go."
He opened the door to the room and checked inside the shop, then walked outside and checked the street. When he returned, he motioned for me to follow. We walked down the street to a blue jeep that Wil pointed out. As we got in, I noticed that the back seat was carefully packed with food-stuffs and tents and satchels, as if for an extended trip.
We rode in silence. I leaned back in the passenger seat and tried to think. My stomach was knotted with fear. I had never expected this. What if I had been arrested and thrown into a Peruvian jail, or killed outright? I had to size up my situation. I had no clothes, but I did have money and one credit card, and for some reason I trusted Wil.
"What had you and—who was it, Dobson?—done to get those people after you?" Wil asked suddenly.
"Nothing that I know of," I replied. "I met Dobson on the plane. He's an historian and he was coming down here to investigate the Manuscript officially. He represents a group of other scientists."
Wil looked surprised. "Did the government know he was coming?"
"Yes, he had written certain government officials that he wanted cooperation. I can't believe they tried to arrest him; he didn't even have his copies with him."
"He has copies of the Manuscript?"
"Only of the first two insights."
"I had no idea there were copies in the United States. Where did he get them?"
"On an earlier trip he was told a certain priest knew of the Manuscript. He couldn't find him but he found the copies hidden behind his house."
Wil looked sad. "Jose."
"Who?" I asked.
"He was the friend I told you about, the one who was killed. He was adamant that as many people as possible hear about the Manuscript."
"What happened to him?"
"He was murdered. We don't know by whom. His body was found in the forest miles from his house. But I have to think it was his enemies."
"The government?"
"Certain people in the government or in the Church."
"His church would go that far?"
"Perhaps. The Church is secretly against the Manuscript. There are a few priests who understand the document and advocate it covertly, but they must be very careful. Jose talked of it openly to anyone who wanted to know. I warned him for months before his death to be more subtle, to stop giving copies to anyone who came along. He told me he was doing what he knew he must."
"When was the Manuscript first discovered?" I asked.
"It was first translated three years ago. But no one knows when it was first discovered. The original floated around for years, we think, among the Indians, until it was found by Jose. He alone managed to get it translated. Of course, once the church found out what the Manuscript said, they tried to suppress it totally. Now all we have are copies. We think they destroyed the original."
Wil had driven east out of town and we were riding on a narrow two-lane road through a heavily irrigated area. We passed several small plank dwellings and then a large pasture with expensive fencing.
"Did Dobson tell you about the first two insights?" Wil asked.
"He told me about the Second Insight," I replied. "I have a friend who told me of the first. She talked to a priest at another time, to Jose, I guess."
"Do you understand these two insights?"
"I think so."
"Do you understand that chance encounters often have a deeper meaning?"
"It seems," I said, "like this whole trip has been one coincidental event after another."
"That begins to happen once you become alert and connected with the energy."
"Connected?"
Wil smiled. "That's something mentioned further in the Manuscript."
"I'd like to hear about it," I said.
"Let's talk about it later," he said, indicating with a nod that he was turning the vehicle onto a gravel driveway. A hundred feet ahead was a modest wood frame house. Wil pulled up beneath a large tree to the right of the house and stopped.
"My friend works for the owner of a large farming estate who owns much of the land in this area," he said, "and provides this house. The man is very powerful and secretly supportive of the Manuscript. You'll be safe here."
A porch light flicked on and a short squat man, who appeared to be a native Peruvian, rushed out, smiling broadly, and saying something enthusiastically in Spanish. When he reached the jeep, he patted Wil on the back through the open window and glanced pleasantly over at me. Wil asked him to speak in English, then introduced us.
"He needs a little help," Wil said to the man. "He wants to return to the States but he'll have to be very careful. I guess I'm going to leave him with you."
The man was looking closely at Wil. "You're about to go after the Ninth Insight again, aren't you?" he asked.
"Yes," Wil said, getting out of the jeep.
I opened my door and walked around the vehicle. Wil and his friend were strolling toward the house, having a conversation I couldn't hear.
As I walked up the man said, "I will start the preparations," then walked away. Wil turned to me.
"What did he mean," I asked, "when he questioned you about a Ninth Insight?"
"There is part of the Manuscript that has never been found. There were eight insights with the original text, but one more insight, the Ninth, was mentioned there. Many people have been searching for it."
"Do you know where it is?"
"No, not really."
"Then how are you going to find it?"
Wil smiled. "The same way Jose found the original eight. The same way you found the first two, and then ran into me. If one can connect and build up enough energy, then coincidental events begin to happen consistently."
"Tell me how to do that," I said. "Which insight is it?"
Will looked at me as if assessing my level of understanding. "How to connect is not just one insight; it's all of them. Remember in the Second Insight where it describes how explorers would be sent out into the world utilizing the scientific method to discover the meaning of human life on this planet? But they would not return right away?"
"Yes."
"Well, the remainder of the insights represent the answers finally coming back. But they aren't just coming from institutional science. The answers I'm talking about are coming from many different areas of inquiry. The findings of physics, psychology, mysticism, and religion are all coming together into a new synthesis based on a perception of the coincidences.
"We're learning the details of what the coincidences mean, how they work, and as we do we're constructing a whole new view of life, insight by insight."
"Then I want to hear about each insight," I said. "Can you explain them to me before you go?"
"I've found it doesn't work that way. You must discover each one of them in a different way."
"How?"
"It just happens. It wouldn't work for me to just tell you. You might have the information about each of them but you wouldn't have the insights. You have to discover them in the course of your own life."
We stared at each other in silence. Wil smiled. Talking with him made me feel incredibly alive.
"Why are you going after the Ninth Insight now?" I asked.
"It's the right time. I have been a guide here and I know the terrain and I understand all eight insights. When I was at my window over the alley, thinking of Jose, I had already decided to go north one more time. The Ninth Insight is out there. I know it. And I'm not getting any younger. Besides, I've envisioned myself finding it and achieving what it says. I know it is the most important of the insights. It puts all the others into perspective and gives us the true purpose of life."
He paused suddenly, looking serious. "I would have left thirty minutes earlier but I had this nagging feeling that I had forgotten something." He paused again. "That's precisely when _you_ showed up."
We looked at each other for a long time.
"You think I'm supposed to go with you?" I asked.
"What do you think?"
"I don't know," I said, unsure of myself. I felt confused. The story of my Peruvian trip was flashing before my mind: Charlene, Dobson, now Wil. I had come to Peru because of a mild curiosity and now I found myself in hiding, an unwitting fugitive who didn't even know who his pursuers were. And the strangest thing of all was that at this moment, instead of being terrified, totally panicked, I found myself in a state of excitement. I should have been summoning all my wits and instincts to find a way home, but what I really wanted to do was to go with Wil—into what would undoubtedly be more danger.
As I considered my options, I realized that in reality I had no choice. The Second Insight had ended any possibility of going back to my old preoccupations. If I was going to stay aware, I had to go forward.
"I plan to spend the night," Wil said. "So you will have until tomorrow morning to decide."
"I've already decided," I told him. "I want to go."
[A
MATTER
OF ENERGY](CelestineProph_toc.html#chap-3)
We rose at dawn and drove east all morning in virtual silence. Early on, Wil had mentioned that we would drive straight across the Andes into what he called the High Selva, an area consisting of forest-covered foothills and plateaus, but he had said little else.
I had asked him several questions about his background and about our destination, but he had politely put me off, indicating he wanted to concentrate on driving. Finally I had stopped talking altogether, and had focused instead on the scenery. The views from the mountain peaks were staggering.
About noon, when we had reached the last of the towering ridges, we stopped at an overlook to eat a lunch of sandwiches in the jeep, and to gaze out at the wide, barren valley ahead. On the other side of the valley were smaller foothills, green with plant life. As we ate, Wil said we would spend the night at the Viciente Lodge, an old nineteenth century estate which formerly belonged to the Spanish Catholic Church. Viciente was now owned by a friend of his, he explained, and was operated as a resort specializing in business and scientific conferences.
With only that brief explanation, we departed and rode silently again. An hour later we arrived at Viciente, entering the property through a large iron and stone gate and proceeding northeast up a narrow gravel drive. Once more, I asked a few probing questions concerning Viciente and why we were here, but as he had done earlier, Wil brushed aside my inquiries, only this time he suggested outright that I focus on the landscape.
Immediately the beauty of Viciente touched me. We were surrounded by colorful pastures and orchards, and the grass seemed unusually green and healthy. It grew thickly even under the giant oaks that rose up every hundred feet or so throughout the pastures. Something about these huge trees seemed incredibly attractive, but I couldn't quite grasp what.
After about a mile the road bent east and up a slight rise. At the top of the knoll was the lodge, a large Spanish-style building constructed of hewn timbers and grey stone. The structure appeared to contain at least fifty rooms, and a large screened porch covered the entire south wall. The yard around the lodge was marked by more gigantic oaks and contained beds of exotic plants and walkways trimmed with dazzling flowers and ferns. Groups of people talked idly on the porch and among the trees.
As we got out of the vehicle, Wil lingered a moment and gazed out at the view. Beyond the lodge to the east, the land sloped gradually downward then flattened out into meadows and forests. Another range of foothills appeared bluish purple in the distance.
"I think I'll go in and make sure they have room for us," Wil said. "Why don't you spend some time looking around? You're going to like this place."
"No kidding!" I said.
As he walked away, he turned and looked at me. "Be sure to check out the research gardens. I'll see you at dinner time."
Wil was obviously leaving me alone for some reason, but I didn't care why. I felt great and not the least bit apprehensive. Wil had already told me that because of the substantial tourist dollar Viciente brought into the country, the government had always taken a hands-off approach to the place, even though the Manuscript was often discussed here.
Several large trees and a winding path toward the south attracted me, so I walked that way. Once I reached the trees, I could see that the walkway proceeded through a small iron gate and down several tiers of stone steps to a meadow filled with wild flowers. In the distance was an orchard of some kind and a small creek and more forest land. At the gate I stopped and took several deep breaths, admiring the beauty below.
"It's certainly lovely, isn't it?" a voice from behind asked.
I turned quickly. A woman in her late thirties carrying a hiking pack stood behind me.
"It certainly is," I said. "I've never seen anything quite like it."
For a moment we looked out at the open fields and at the cascading tropical plants in the terraced beds on each side of us, then I asked: "Do you happen to know where the research gardens are?"
"Sure," she said. "I'm heading that way now. I'll show you."
After introducing ourselves, we walked down the steps and onto the well-worn path heading south. Her name was Sarah Lorner and she was sandy-haired and blue-eyed and could have been described as girlish except for her serious demeanor. We walked for several minutes in silence.
"Is this your first visit here?" she asked.
"Yes, it is," I replied." I don't know much about the place."
"Well, I've been here on and off for almost a year now so I can fill you in a bit. About twenty years ago this estate became popular as a sort of international scientific hangout. Various scientific organizations had their meetings here, biologists and physicists mainly. Then a few years ago..."
She hesitated for an instant and looked at me. "Have you heard of the Manuscript that was discovered here in Peru?"
"Yes, I have," I said. "I've heard about the first two insights." I wanted to tell her how fascinated I was with the document but I held back, wondering whether to trust her completely.
"I thought maybe that was the case," she said. "It looked as if you were picking up on the energy here."
We were crossing a wooden bridge which traversed the creek. "What energy?" I asked.
She stopped and leaned back against the railing of the bridge. "Do you know anything about the Third Insight?"
"Nothing."
"It describes a new understanding of the physical world. It says we humans will learn to perceive what was formerly an invisible type of energy. The lodge has become a gathering place for those scientists interested in studying and talking about this phenomenon."
"Then scientists think this energy is real?" I asked.
She was turning to walk across the bridge. "Only a few," she said, "and we take some heat for it."
"You're a scientist, then?"
"I teach physics at a small college in Maine."
"So why are some scientists disagreeing with you?"
She was silent for a moment, as if in thought. "You have to understand the history of science," she said, glancing at me as if to ask whether I wanted to get deeper into the subject. I nodded for her to proceed.
"Think about the Second Insight for a moment. After the fall of the medieval world view, we in the west suddenly became aware that we lived in a totally unknown universe. In attempting to understand the nature of this universe we knew we had to somehow separate fact from superstition. In this regard we scientists assumed a particular attitude known as scientific skepticism, which in effect demands solid evidence for any new assertion about how the world works. Before we would believe anything, we wanted evidence that could be seen and grabbed with the hands. Any idea that couldn't be proved in some physical way was systematically rejected."
"God knows," she continued, "this attitude served us well with the more obvious phenomena in nature, with objects such as rocks and bodies and trees, objects everyone can perceive no matter how skeptical they are. We quickly went out and named every part of the physical world, attempting to discover why the universe operated as it did. We finally concluded that everything that occurs in nature does so according to some natural law, that each event has a direct physical and understandable cause." She smiled at me knowingly. "You see, in many ways scientists have not been that different from others in our time period. We decided along with everyone else to master this place in which we found ourselves. The idea was to create an understanding of the universe that made the world seem safe and manageable, and the skeptical attitude kept us focused on concrete problems that would make our existence seem more secure."
We had followed the meandering path from the bridge through a small meadow and into an area more densely covered with trees.
"With this attitude," she went on, "science systematically removed the uncertain and the esoteric from the world. We concluded, following the thinking of Isaac Newton, that the universe always operated in a predictable manner, like an enormous machine, because for a long time that's all it could be proved to be. Events which happened simultaneously to other events yet had no causal relationship were said to occur only by chance.
"Then, two investigations occurred which opened our eyes again to the mystery in the universe. Much has been written over the past several decades about the revolution in physics, but the changes really stem from two major findings, those of quantum mechanics and those of Albert Einstein.
"The whole of Einstein's life's work was to show that what we perceive as hard matter is mostly empty space with a pattern of energy running through it. This includes ourselves. And what quantum physics has shown is that when we look at these patterns of energy at smaller and smaller levels, startling results can be seen. Experiments have revealed that when you break apart small aspects of this energy, what we call elementary particles, and try to observe how they operate, the act of observation itself alters the results—as if these elementary particles are influenced by what the experimenter expects. This is true even if the particles must appear in places they couldn't possibly go, given the laws of the universe as we know them: two places at the same moment, forward or backward in time, that sort of thing."
She stopped to face me again. "In other words, the basic stuff of the universe, at its core, is looking like a kind of pure energy that is malleable to human intention and expectation in a way that defies our old mechanistic model of the universe—as though our expectation itself causes our energy to flow out into the world and affect other energy systems. Which, of course, is exactly what the Third Insight would lead us to believe."
She shook her head. "Unfortunately, most scientists don't take this idea seriously. They would rather remain skeptical, and wait to see if we can prove it."
"Hey Sarah, here we are over here," a voice called faintly from a distance. To the right about fifty yards through the trees, we could see someone waving.
Sarah looked at me. "I need to go talk with those guys for a few minutes. I have a translation of the Third Insight with me, if you would like to pick out a spot and read some of it while I'm gone."
"I sure would," I said.
She pulled a folder from her pack, handed it to me, and walked away.
I took the folder and looked around for a place to sit down. Here the forest floor was dense with small bushes and was slightly soggy, but to the east the land rose toward what looked like another knoll. I decided to walk in that direction in search of dry ground.
At the top of the rise I was awestruck. It was another spot of incredible beauty. The gnarled oaks were spaced about fifty feet apart and their wide limbs grew completely together at the top, creating a canopy overhead. On the forest floor grew broad-leafed tropical plants which stood four or five feet high and had leaves up to ten inches in width. These plants were interspersed with large ferns and bushes lush with white flowers. I picked out a dry place and sat down. I could smell the musty odor of the leaves and the fragrance of the blossoms.
I opened the folder and turned to the beginning of the translation. A brief introduction explained that the Third Insight brings a transformed understanding of the physical universe. Its words clearly echoed Sarah's summary. Sometime near the end of the second millennium, it predicted, humans would discover a new energy which formed the basis of and radiated outward from all things, including ourselves.
I pondered that idea for a moment, then read something that fascinated me: the Manuscript said the human perception of this energy first begins with a heightened sensitivity to beauty. As I thought about this, the sound of someone walking along the path below drew my attention. I saw Sarah at the exact moment she looked toward the knoll and spotted me.
"This place is great," she said when she reached me. "Have you come to the part about the perception of beauty yet?"
"Yes," I said. "But I'm not sure what that means."
"Further in the Manuscript," she said, "it goes into more detail, but I'll explain it briefly. The perception of beauty is a kind of barometer telling each of us how close we are to actually perceiving the energy. This is clear because once you observe this energy, you realize it's on the same continuum as beauty."
"You sound like you see it," I said.
She looked at me without the slightest self-consciousness. "Yes, I do, but the first thing I developed was a deeper appreciation of beauty."
"But how does that work. Isn't beauty relative?"
She shook her head. "The things that we perceive as beautiful may be different, but the actual characteristics we ascribe to beautiful objects are similar. Think about it. When something strikes us as beautiful, it displays more presence and sharpness of shape and vividness of color, doesn't it? It stands out. It shines. It seems almost iridescent compared to the dullness of other objects less attractive."
I nodded.
"Look at this spot," she continued. "I know you are blown away by it because we all are. This place leaps out at you. The colors and shapes seem magnified Well, the very next level of perception is to see an energy field hovering about everything."
I must have looked bewildered because she laughed, then said very seriously, "Perhaps we should walk on to the gardens. They're about a half mile farther south. I think you'll find them interesting." I thanked her for taking the time to explain the Manuscript to me, a total stranger, and for showing me around Viciente. She shrugged her shoulders.
"You seem like a person friendly to what we're trying to do," she said. "And we all know we're involved in a public relations effort here. For this research to continue, we must get the word out in the United States and elsewhere. The local authorities don't seem to like us much."
Suddenly a voice called out from behind. "Excuse me, please!" We turned to see three men walking quickly up the path toward us. All appeared to be in their late forties and were dressed in stylish clothes.
"Would one of you tell me where the research gardens are?" the taller of the three asked.
"Could you tell me what your business here is?" Sarah asked in return.
"My colleagues and I have permission from the owner of this estate to examine the gardens and to speak with someone about the so-called research being conducted here. We are from the University of Peru."
"Sounds as though you're not in agreement with our findings," Sarah said smiling, obviously trying to lighten the situation.
"Absolutely not," another of the men said. "We think it is preposterous to claim that some mysterious energy can now be seen, when it has never been observed before."
"Have you tried to see it?" Sarah queried.
The man ignored the question and asked again, "Can you direct us to the gardens?"
"Of course," Sarah said. "About a hundred yards ahead you will see a path turning east. Take it and ahead maybe a quarter of a mile you'll run into them."
"Thank you," the tall man said as they hurried on their way.
"You sent them in the wrong direction," I said.
"Not really," she replied. "There are other gardens in that area. And the people there are more prepared to talk with these kinds of skeptics. We get people like this through here occasionally, and not just scientists but curiosity seekers as well, people who can't begin to grasp what we're doing... which points out the problem that exists in scientific understanding."
"What do you mean?" I asked.
"As I said before, the old skeptical attitude was great when exploring the more visible and obvious phenomena in the universe, such as trees or sunshine or thunderstorms. But there is another group of observable phenomena, more subtle, that you can't study—in fact, you can't even tell they're there at all—unless you suspend or bracket your skepticism and try every way possible to perceive them. Once you can, then you return to your rigorous study."
"Interesting," I said.
Ahead the woods ended and I could see dozens of cultivated plots, each one growing a different type plant. Most seemed to be food-bearing types: everything from bananas to spinach. At the eastern border of each crop was a wide gravel path which ran north to what appeared to be a public road. Three metal outbuildings were spaced along the path. Four or five people worked near each one.
"I see some friends of mine," Sarah said, and pointed toward the closest building. "Let's go over there. I'd like for you to meet them."
Sarah introduced me to three men and one woman, all of whom were involved in the research. The men spoke with me briefly then excused themselves to continue their work, but the woman, a biologist named Marjorie, seemed free to talk.
I caught Marjorie's eye. "What exactly are you researching here?" I asked.
She appeared to be taken off guard, but smiled and finally answered. "It's hard to know where to start," she said. "Are you familiar with the Manuscript?"
"The first sections of it," I commented. "I've just begun the Third Insight."
"Well, that's what we're all about here. C'mon, I'll show you." She motioned for me to follow her and we walked around the metal building to a plot of beans. I noticed they appeared to be exceptionally healthy, with no noticeable insect damage or dead leaves. The plants were growing in what appeared to be a highly humus, almost fluffy soil, and each plant was carefully spaced, the stems and leaves of one growing near but never touching those of the next.
She pointed to the closest plant. "We've tried to look at these plants as total energy systems, and think of everything they need to flourish—soil, nutrients, moisture, light. What we have found is that the total ecosystem around each plant is really one living system, one organism. And the health of each of the parts impacts on the health of the whole."
She hesitated, then said, "The basic point is that once we started thinking about the energy relationships all around the plant then we started seeing amazing results. The plants in our studies were not particularly larger, but according to nutritional criteria, they were more potent."
"How was that measured?"
"They contained more protein, carbohydrates, vitamins, minerals."
She looked at me expectantly. "But that wasn't the most amazing thing! We found that the plants which had the most direct human attention were even more potent."
"What kind of attention?" I asked.
"You know," she said, "fiddling with the ground around them, checking them every day. That sort of thing. We set up an experiment with a control group: some getting special attention, others not, and the finding was confirmed. What's more," she continued, "we expanded the concept and had a researcher not just give them attention but to mentally ask them to grow stronger. The person would actually sit with them and focus all his attention and concern on their growth."
"Did they grow stronger?"
"By significant amounts, and they also grew faster."
"That's incredible."
"Yes, it is..." Her voice trailed off as she watched an older man, appearing to be in his sixties, walk toward us.
"The gentleman approaching is a micro-nutritionist," she said discreetly. "He came down here about a year ago for the first time and immediately took a leave of absence from Washington State University. His name is Professor Hains. He's done some great studies."
As he arrived, I was introduced. He was a strongly built man with black hair, gray streaks at his temples. After some prodding from Marjorie, the professor began to summarize his research. He was most interested, he told me, in the functioning of the body's organs as measured by highly sensitive blood tests, especially as this functioning related to the quality of food eaten.
He told me what interested him most were the results of a particular study which showed that while nutritionally rich plants of the kind grown at Viciente increased the body's efficiency dramatically, the increase was beyond what could be reasonably expected from the nutrients themselves as we understand how they work in human physiology. Something inherent in the structure of these plants created an effect not yet accounted for.
I looked at Marjorie, then asked, "Then the focusing of attention on these plants gave them something that boosts human strength in return when they're eaten? Is this the energy mentioned in the Manuscript?"
Marjorie looked at the Professor. He gave me only a half smile. "I don't know yet," he said.
I asked him about his future research, and he explained that he wanted to duplicate the garden at Washington State and set up some long-term studies, to see if people eating these plants had more energy or were healthier over a longer period of time. As he spoke, I couldn't help glancing periodically at Marjorie. Suddenly she looked incredibly beautiful. Her body appeared long and slender, even under her baggy jeans and t-shirt. Her eyes and hair were dark brown, and her hair fell in tapered curls around her face.
I felt a powerful physical attraction. At the exact moment I became aware of this attraction, she turned her head, stared directly into my eyes, and backed away from me a step.
"I've got to meet someone," she said. "Maybe I'll see you later." She told Hains good-bye, smiled coyly at me, and walked past the metal building and down the path.
After a few more minutes of discussion with the professor, I wished him well and strolled back to where Sarah was standing. She was still talking intensely with one of the other researchers but she followed me with her eyes as I walked.
As I approached, the man she was with smiled, rearranged the notes on his clipboard and walked into the building.
"Find out anything?" Sarah asked.
"Yes," I said, distractedly, "it sounds like these folks are doing some interesting things."
I was looking at the ground when she said, "Where did Marjorie go?"
As I glanced up I could see she had an amused look on her face.
"She said she had to meet someone."
"Did you turn her off?" she asked, smiling now.
I laughed. "I guess I did. But I didn't say a thing."
"You didn't have to," she said. "Marjorie could detect a change in your field. It was pretty obvious. I could see it all the way over here."
"A change in my what?"
"In the energy field around your body. Most of us have learned to see them, at least in certain light. When a person has sexual thoughts the person's energy field sort of swirls about and actually propels out toward the person who's the object of the attraction."
This struck me as totally fantastic, but before I could comment, we were distracted by several people coming out of the metal building.
"Time now for the energy projections," Sarah said. "You'll want to see this."
We followed four young men, apparently students, to a plot of corn. As we walked closer, I realized that the plot was made up of two separate subplots, each about ten feet square. The corn in one was about two feet high. In the other, the plants were less than fifteen inches. The four men walked to the plot containing the taller corn then sat down, each on one corner of the plot facing inward. On cue they all seemed to focus their eyes on the plants. The late afternoon sun shone from behind me, bathing the plot in soft, amber light, yet the woods beyond remained dark in the distance. The plot of corn and the students were silhouetted against the almost black background.
Sarah was standing beside me. "This is perfect," she said. "Look! Can you see that?"
"What?"
"They're projecting their energy onto the plants.
I stared intently at the scene but could detect nothing.
"I can't see anything," I said.
"Squat down lower then," Sarah said, "and focus on the space between the people and the plants."
For a moment I thought I saw a flicker of light, but I concluded it was just an after image, or my eyes playing tricks on me. I tried several more times to see something then gave up.
"I can't do it," I said, standing.
Sarah patted me on the shoulder. "Don't worry about it. The first time is the most difficult. It usually takes some experimenting with the way you focus your eyes."
One of the meditators looked over at us and brought his index finger up to his lips, so we walked back toward the building.
"Are you going to be here at Viciente long?" Sarah asked.
"Probably not," I said. "The person I'm with is looking for the last part of the Manuscript."
She looked surprised. "I thought all of it had been located. Though I guess I wouldn't know. I've been so engrossed in the part that pertains to my work that I haven't read much of the rest."
I instinctively reached for my pants pocket, suddenly uncertain where Sarah's translation was. It was rolled up in my back pocket.
"You know," Sarah said. "We've found two periods of the day most conducive to seeing energy fields. One is sunset. The other is sunrise. If you want, I'll meet you at dawn tomorrow and we'll try again."
She reached out for the folder. "That way," she continued, "I can make you a copy of this translation and you can take it with you."
I pondered this suggestion for a few seconds, then decided it couldn't hurt.
"Why not?" I said. "I'll have to check with my friend, though, and make sure we have enough time." I smiled at her. "What makes you think I can learn to see this stuff?"
"Call it a hunch."
We agreed to meet on the hill at 6:00 A.M., and I started the one mile trek to the Lodge alone. The sun had completely disappeared but its light still bathed the grey clouds along the horizon in hues of orange. The air was chilly but no wind blew.
At the lodge a line was forming in front of the serving bar in the huge dining room. Feeling hungry, I walked toward the head of the line to see what food was being served. Wil and Professor Hains were standing near the front, talking casually.
"Well," Wil said, "how did the afternoon go?"
"Great," I said.
"This is William Hains," Wil added.
"Yes," I said, "we met earlier."
The professor nodded.
I mentioned my early morning rendezvous the next day. Wil saw no problem, as he wanted to find a couple of people he hadn't talked to yet, and didn't anticipate leaving before 9:00 A.M.
The line moved forward then and the people behind us invited me to join my friends. I stepped in beside the professor.
"So what do you make of what we're doing here?" Hains asked.
"I don't know," I said. "I'm trying to let it soak in a little. The whole idea of energy fields is new to me."
"The reality of it is new to everyone," he said, "but the interesting thing is that this energy is what science has always been looking for: some common stuff underlying all matter. Since Einstein particularly, physics has sought a unified field theory. I don't know if this is it or not but at the very least this Manuscript has stimulated some interesting research."
"What would it take for science to accept this idea?" I asked.
"A way to measure it," he said. "The existence of this energy is not that foreign actually. Karate masters have talked about an underlying Chi energy responsible for their seemingly impossible stunts of breaking bricks with their hands and of being able to sit in one place unmoved with four men trying to push them over. And we've all seen athletes make spectacular moves, twisting, turning, hanging in the air in ways that defy gravity. It's all the result of this hidden energy that we have access to.
"Of course, it won't really be accepted until more people can actually see it themselves."
"Have you ever observed it?" I asked.
"I've observed something," he said. "It really depends on what I've eaten."
"How so?"
"Well, the people around here who readily see these energy fields eat mostly vegetables. And they usually eat only these highly potent plants they've grown themselves."
He pointed ahead to the food bar. "This is some of it, though thank goodness they serve some fish and fowl for old guys like me who are addicted to meat. But if I force myself to eat differently, yes, I can see something."
I asked him why he didn't change his diet for longer periods of time.
"I don't know," he said. "Old habits die hard."
The line moved forward and I ordered only vegetables. The three of us joined a larger table of guests and talked casually for an hour. Then Wil and I walked out to the jeep to remove our gear. "Have you seen these energy fields?" I asked.
He smiled and nodded. "My room is on the first floor," he said. "Yours is on the third. Room 306. You can pick your key up at the desk."
The room had no phone, but a lodge attendant I saw in the hallway assured me someone would knock on my door at 5:00 A.M. sharp. I lay down and thought for a few minutes. The afternoon had been long and full, and I understood Wil's silence. He wanted me to experience the Third Insight in my own way.
The next thing I knew someone was banging on the door. I looked at my watch: 5:00 A.M. When the attendant knocked again I said, "Thank you," in a voice loud enough for him to hear, then rose and looked out the small frame window. The only sign of morning was a pale glow of light toward the east.
I walked down the hall and showered, then dressed quickly and went downstairs. The dining room was open and a surprising number of people were moving about. I ate only fruit and hurried outside.
Strands of fog drifted across the grounds and clung to the distant meadows. Songbirds called one another from the trees. As I walked away from the lodge, the very top of the sun breached the horizon toward the east. The color was spectacular. The sky was a deep blue above the bright peach horizon.
I arrived at the knoll fifteen minutes early so I sat down and leaned against the trunk of a large tree, fascinated by the web of gnarled branches growing out above my head. In a few minutes I heard someone walking toward me along the path and I looked that way, expecting to see Sarah. Instead I saw someone I didn't know, a man in his mid-forties. He left the path and walked my way without noticing me. When he was within ten feet he saw me with a start, which made me flinch also.
"Oh, hello," he said in a rich Brooklyn accent. He was dressed in jeans and hiking boots and looked exceptionally fit and athletic. His hair was curly and receding.
I nodded.
"Sorry about walking up on you so suddenly," he said.
"No problem."
He told me his name was Phil Stone and I told him who I was and that I was waiting for a friend.
"You must be doing some research here," I added.
"Not really," he replied. "I work for the University of Southern California. We're doing studies in another province on the rain forest depletion, but whenever I get the chance I drive over here and take a break. I like hanging out where the forests are so different."
He looked around. "Do you realize some of the trees here are close to five hundred years old? This is truly a virgin forest, a rare thing. Everything is in perfect balance: the larger trees filtering the sunlight, allowing a multitude of tropical plant life to thrive underneath. The plant life in a rain forest is old too, but it grows differently. It's basically jungle. This is more like what an old forest looks like in a temperate zone, such as in the United States.
"I've never seen anything like this there," I said.
"I know," he said. "Only a few remain. Most of the ones I know of were sold by the government to lumber interests, as though all they could see in a forest like this is board feet of lumber. Damn shame that anyone would mess with a place like this. Look at the energy."
"You can see the energy here?" I asked.
He looked at me closely, as though deciding whether to elaborate.
"Yes, I can," he said finally.
"Well, I haven't been able to," I said. "I tried yesterday when they were meditating with plants at the garden."
"Oh, I couldn't see fields that large at first either," he said. "I had to start by looking at my fingers."
"How do you mean?"
"Let's move over there," he said, pointing to an area where the trees parted slightly and blue sky showed through overhead. "I'll show you."
When we arrived, he said, "Lean back and touch the tips of your index fingers together. Keep the blue sky in the background. Now separate the tips about an inch and look at the area directly between them. What do you see?"
"Dust on the lens of my eye."
"Ignore that," he said. "Take your eyes out of focus a little and move the tips closer, then further apart."
As he talked I moved my fingers around, unsure what he meant by taking my eyes out of focus. I finally placed my gaze vaguely on the area between my fingers. Both finger-tips went slightly blurry, and as this happened I saw something like strands of smoke stretching between the tips.
"Good grief," I said, and explained what I saw.
"That's it! That's it!" he said. "Now just play with that a while."
I touched all four fingers together, then my palms and forearms. In each case I continued to see streaks of energy between the body parts. I dropped my arms and looked at Phil.
"Oh, you want to see mine?" he asked. He stood up and stepped back a few feet, positioning his head and torso so the sky would be directly behind him. I tried for a few minutes but a noise behind us broke my concentration. I turned and saw Sarah.
Phil stepped forward and grinned broadly. "Is this the person you've been waiting for?"
As Sarah approached, she too was smiling. "Hey, I know you," she said, pointing at Phil.
They embraced warmly, then Sarah looked at me and said, "Sorry I'm late. My mental alarm didn't go off for some reason. But now I guess I know why. It gave you two a chance to talk. What have you been doing?"
"He just learned how to see the fields between his fingers," Phil said.
Sarah looked at me. "Last year Phil and I were up here at this very spot learning to do the same thing." She glanced at Phil. "Let's put our backs together. Maybe he can see the energy between us."
They stood back to back in front of me. I suggested they move closer and they stepped toward me until the space between us was about four feet. They were silhouetted against the sky, which was still a dark blue in that direction. To my surprise, the space between them looked lighter. It was yellow, or a yellowish pink.
"He sees it," Phil said, reading my expression.
Sarah turned and grabbed Phil by the arm and they slowly stepped away from me so that their bodies were perhaps ten feet away. Surrounding their upper torsos was a whitish-pink field of energy.
"Okay," Sarah said seriously. She had walked over and crouched down beside me. "Now look at the scene here, the beauty."
I was immediately awed by the shapes and forms around me. I seemed to be able to focus on each of the massive oaks in a total way, not merely on one part, but on the whole form at once. I was immediately struck by the unique shape and configuration of limbs each displayed. I looked from one to the other, turning all around. Doing this somehow increased the feeling of presence each oak exuded to me, as though I was seeing them for the first time, or at least fully appreciating them for the first time.
Suddenly the tropical foliage underneath the huge trees attracted my attention; I again looked at the unique form each plant exhibited. I also noticed the way each type of plant grew together with others of its own kind in what struck me as little communities. For instance, the tall banana tree-type plants were often encircled by small philodendrons who themselves were poised among even smaller fern-like plants. When I looked at these mini-environments, I was again struck by their uniqueness of outline and presence.
Less then ten feet away, a particular foliage plant caught my eye. I had often owned just this type as a house plant, a particular variegated form of philodendron. Dark green, its foliage branched out to about four feet in diameter. The shape of this plant seemed perfectly healthy and vibrant.
"Yeah, focus on that one, but loosely," Sarah said.
As I did so, I played with the focus of my eyes. At one point I tried to focus on the space six inches to one side of each physical part of the plant. Gradually I began to pick up glimpses of light, then with a single adjustment of my focus, I could see a bubble of white light encircling the plant.
"I'm seeing something now," I said.
"Look around some," Sarah said.
I stepped back in shock. Around each plant within my vision was a field of whitish light, visible, yet totally transparent, so that none of the plant's color or form was obscured. I realized that what I was seeing was an extension of each plant's unique beauty. It was as though first I had seen the plants, then I had seen their uniqueness and presence, and then something had amplified in the pure beauty of their physical expression, at which time I had seen the energy fields.
"See if you can see this," Sarah said. She sat down in front of me and faced the philodendron. A plume of the whitish light encircling her body erupted outward and engulfed the philodendron. The diameter of the plant's energy field, in turn, broadened by several feet.
"Damn!" I exclaimed, which provoked laughter between the two friends. Soon I was laughing myself, conscious of the peculiarity of what was happening, but feeling absolutely no uneasiness at seeing, quite readily, phenomena I had totally doubted minutes earlier. I realized that the perception of the fields, rather than evoking a surrealistic sensation, actually made the things about me seem more solid and real than before.
Yet at the same time, everything around me seemed different. The only reference I had for the experience was perhaps a movie which enhanced the color of a forest in order to make it seem mystical and enchanted. The plants, the leaves, the sky now all stood out with a presence and a slight shimmer that suggested life there, and perhaps consciousness, beyond our ordinary assumption. After seeing this, there would be no way to take a forest for granted again.
I looked at Phil. "Sit down and put your energy on the philodendron," I said. "I'd like to compare."
Phil appeared perplexed. "I can't do it," he said. "I don't know why."
I looked at Sarah.
"Some people can and some can't," she said. "We haven't figured it out. Marjorie has to screen her graduate students to see who can do it. A couple of psychologists are trying to correlate this ability with personality characteristics but so far no one knows."
"Let me try it," I said.
"Okay, go ahead," Sarah replied.
I sat down again and faced the plant. Sarah and Phil stood at right angles to me.
"Okay, how do I begin?"
"Just focus your attention on the plant, as though to inflate it with your energy," Sarah said.
I looked at the plant and imagined energy swelling up inside it, then after a few minutes I looked over at the two.
"Sorry," Sarah said wryly, "you're obviously not one of the chosen few."
I shot a mock frown at Phil.
Angry voices from the path below interrupted our conversation. Through the trees we could see a group of men passing, talking harshly among themselves.
"Who are those people?" Phil asked, looking at Sarah.
"I don't know," she said. "More folks upset with what we're doing, I guess."
I looked back at the forest around us. Everything appeared ordinary again.
"Hey, I can't see the energy fields anymore!"
"Some things bring you right down, don't they?" Sarah remarked.
Phil smiled and patted my shoulder. "You can do it again anytime now. It's just like riding a bicycle. All you have to do is see the beauty and then extend from there."
I suddenly remembered to check the time. The sun was much higher in the sky and a light mid-morning breeze swayed the trees. My watch showed 7:50 A.M.
"I guess I had better head back," I said.
Sarah and Phil joined me. As we walked, I looked back at the wooded hillside. "That's one beautiful place," I said. "Too bad there aren't more places like this in the States."
"Once you see the energy fields in other areas," Phil said, "you'll realize just how dynamic this forest is. Look at these oaks. They are very rare in Peru, but they grow here at Viciente. A cut forest, especially one that's been stripped of hardwoods in order to grow pines for profit, has a very low energy field. And a city, except for the people, has a different kind of energy altogether."
I tried to focus on the plants along the path, but the act of walking disrupted my concentration.
"You're sure I'll see these fields again?" I said.
"Absolutely," Sarah replied. "I've never heard of anyone failing to duplicate the experience once they've seen them initially. We had a research ophthalmologist come through here once and he got all excited after he learned to see the fields. Turned out he had been working with certain sight abnormalities, including forms of color blindness, and concluded that some people have what he called lazy receptors in their eyes. He had taught people how to see colors they'd never experienced before. According to him, seeing energy fields was just a matter of doing the same thing, of waking up other dormant receptors, something that everyone, theoretically, can do."
"I wish I lived near a place like this," I said.
"Don't we all," Phil replied, then looked around me at Sarah. "Is Dr. Hains still here?"
"Yes," Sarah said. "He can't leave."
Phil looked at me. "Now there's a guy whose doing some interesting research on what this energy can do for you."
"Yeah," I said. "I talked with him yesterday."
"The last time I was here," Phil continued, "he was telling me about a study he would like to conduct in which he would look at the physical effects of merely being near certain high energy environments, such as that forest back there. He would use the same measurements of organ efficiency and output to see the effect."
"Well, I already know the effect," Sarah said. "Whenever I drive into this estate, I begin to feel better. Everything is amplified. I seem stronger, I can think more clearly, and quickly. And the insights I have into all this and how it relates to my work in physics is amazing."
"What are you working on?" I asked.
"Do you remember me telling you about the perplexing experiments in particle physics, during which these little bits of atoms appeared wherever the scientists expected them to be?"
"Yes."
"Well, I've tried to expand this idea a bit with some experiments of my own. Not to solve the problems those guys were working on in subatomic particles, but to explore questions I told you about before. To what extent does the physical universe as a whole—since it is made up of the same basic energy—respond to our expectations? To what extent do our expectations create all the things that happen to us?"
"The coincidences, you mean?"
"Yes, think of the events of your life. The old Newtonian idea is that everything happens by chance, that one can make good decisions and be prepared, but that every event has its own line of causation independent of our attitude.
"After the recent discoveries of modern physics, we may legitimately ask if the universe is more dynamic than that. Perhaps the universe runs mechanistically as a basic operation, but then also subtly responds to the mental energy we project out into it. I mean, why not? If we can make plants grow faster, maybe we can make certain events come faster—or slower, depending on how we think."
"Does the Manuscript talk about any of this?"
Sarah smiled at me. "Of course, that's where we're getting these ideas." She began to dig around in her pack as we walked, finally pulling out a folder.
"Here's your copy," she said.
I glanced at it briefly and placed it in my pocket. We were crossing the bridge and I hesitated a moment, observing the colors and forms of the plants around me. I altered my focus and immediately saw the energy fields around everything in my view. Both Sarah and Phil had wide fields which seemed to be tinted yellow green, though Sarah's field occasionally flashed with a pinkish color.
Suddenly they both stopped and looked intently up the trail. Ahead about fifty feet, a man walked quickly toward us. A sensation of anxiety filled my stomach but I was determined to maintain my view of the energy. As he approached I recognized him; he was the taller of the scientists from the University of Peru who had asked for directions the day before. Around him I could detect a layer of red.
When he walked up to us he turned to Sarah and condescendingly said, "You're a scientist, aren't you?"
"That's right," Sarah replied.
"Then how can you tolerate this kind of science? I've seen these gardens and I can't believe the sloppiness. You people haven't controlled for anything. There could be many explanations for certain plants growing larger."
"Controlling for everything is impossible, sir. We're looking for general tendencies."
I could detect an edge growing in Sarah's voice.
"But postulating some newly visible energy that underlies the chemistry of living things—that's absurd. You have no proof."
"Proof is what we're looking for."
"But how can you postulate the existence of anything before you get some proof!"
The voices of both individuals sounded angry now, but I was only vaguely listening. What consumed my attention was the dynamics of their energy fields. When the discussion began, Phil and I had backed up a few feet, and Sarah and the taller man had squared off facing each other with a distance of about four feet between them. Immediately, both their energy fields had seemed to grow more dense and excited somehow, as though from an inner vibration. As the conversation progressed, their fields began to intermingle. When one of them made a point, his field would create a movement which seemed to suck at the other's field with what appeared to be a kind of vacuum maneuver. But then as the other person made his rebuttal the energy would move back in his direction. In terms of the dynamics of energy fields, winning the point seemed to mean capturing part of the opponent's field and pulling it into oneself.
"Besides," Sarah was saying to the man, "we have observed the phenomena we're trying to understand."
The man gave Sarah a disdainful look. "Then you are insane as well as incompetent," he said, and walked away.
"You're a dinosaur," Sarah shouted, which made Phil and me laugh. Sarah, however, was still tense.
"These people can make me angry," Sarah said, as we resumed our walk along the path.
"Forget it," Phil said. "These kinds of people come around sometimes."
"But why so many?" Sarah asked. "And why right now?"
As we walked up to the lodge, I could see Wil at the jeep. The doors of the vehicle were open and gear was spread out on top of the hood. He saw me immediately and motioned for me to come over.
"Well, looks like I'm about to take off," I said.
My comment broke a ten minute silence, which had begun when I had tried to explain what I had seen happen to Sarah's energy during the argument. Evidently, I had not put it very well, because my comments had provoked only blank stares, and had cast us all into a long period of self-absorption.
"It's been nice meeting you," Sarah said, offering her hand.
Phil was looking toward the jeep. "Is that Wil James?" he asked. "Is he the guy you're traveling with?"
"Yes," I said. "Why?"
"I just wondered. I've seen him around. He knows the owner of this place and was one of the early group that first encouraged the research on energy fields here."
"Come on up and meet him," I said.
"No, I have to go," he said. "I'll see you around here later on. I know you won't be able to stay away."
"No doubt," I said.
Sarah interjected that she too needed to go, and that I could contact her through the lodge. I delayed them for a few more minutes, expressing my thanks for the lessons.
Sarah's expression grew serious. "Seeing the energy—grasping this new way of perceiving the physical world—grows through a kind of contagion. We don't understand it, but when a person hangs out with others who see this energy, usually they begin to see it, too. So, go show it to someone else."
I nodded and then hurried up to the jeep. Wil greeted me with a smile.
"Are you about ready?" I asked.
"Almost," he said. "How did the morning go?"
"Interesting," I said. "I've got a lot to talk to you about."
"You'd better save it for now," he said. "We need to get out of here. Things are looking unfriendly."
I walked closer to him. "What's going on?" I asked.
"Nothing too serious," he said. "I'll explain later. Get your stuff."
I walked into the lodge and picked up the few items I had left in my room. Wil had told me earlier there would be no charge, courtesy of the owner, so I walked down to the desk and handed the clerk my key and walked back outside to the jeep.
Wil was under the hood, checking something, and he slammed it closed as I walked up.
"Okay," he said. "Let's go."
We drove out of the parking lot, then down the drive toward the main road. Several cars were leaving at the same time.
"So what's happening?" I asked Wil.
"A group of local officials," he replied, "along with some scientific types, have complained about the people associated with this conference center. They're not alleging that anything illegal is going on. Just that some of the folks hanging around here may be what they call undesirable, not legitimate scientists. These officials could cause a lot of trouble, and that could effectively put the lodge out of business."
I looked at him blankly and he continued: "You see, this lodge normally has several groups booked at any one time. Only a small number have anything to do with research associated with the Manuscript. The others are groups focused on their own disciplines who come down here for the beauty. If the officials get too ugly and create a negative climate, these groups will stop meeting here."
"But I thought you said the local officials wouldn't tamper with the tourist money coming into Viciente?"
"I didn't think they would. Someone has them nervous about the Manuscript. Did anyone at the gardens understand what was occurring?"
"No, not really," I said. "They were just wondering why all of a sudden more angry people were around."
Wil remained silent. We drove out the gate and turned southeast. A mile later we took another road which headed due east toward the mountain range in the distance.
"We'll be going right by the gardens," Wil said after a while.
Ahead I saw the plots and the first metal building. As we came alongside, the door opened and I met eyes with the person coming out. It was Marjorie. She smiled and turned toward me as we passed, our gaze lingering for a long moment.
"Who was that?" Wil asked.
"A woman I met yesterday," I answered.
He nodded, then changed the subject, "Did you get a look at the Third Insight?"
"I was given a copy."
Wil didn't reply, appearing to be lost in thought, so I pulled out the translation and found where I had stopped reading. From there, the Third Insight elaborated on the nature of beauty, describing this perception as the one through which humans would eventually learn to observe energy fields. Once this occurred, it said, then our understanding of the physical universe would quickly transform.
For instance, we would begin to eat more foods which were still alive with this energy, and we would become conscious that certain localities radiate more energy than others, the highest radiation coming from old natural environments, especially forests. I was about to read the final pages when Wil suddenly spoke.
"Tell me what you experienced back at the gardens," he said.
As best as I could, I related in detail the events of the two days, including the people I had met. When I told him of the encounter with Marjorie, he looked at me and smiled.
"How much did you talk to these people about the other insights and how these insights relate to what they're doing in the gardens?" he asked.
"I didn't mention them at all," I replied. "I didn't trust them at first and later I just figured they knew more than me."
"I think you could have given them some important information had you been perfectly honest with them."
"What kind of information?"
He looked at me warmly. "Only you know that."
I was at a loss for words, so I looked out at the landscape. The terrain was growing increasingly hilly and rocky. Large granite outcrops overhung the road.
"What do you make of seeing Marjorie again as we passed the gardens?" Wil asked.
I started to say "just a coincidence" but instead I said, "I don't know. What do you think?"
"I don't think anything happens by coincidence. To me it means you two have unfinished business, something you needed to say to each other that you didn't."
The idea intrigued me, but disturbed me as well. I had been accused all my life of remaining too distant, of asking questions but not expressing opinions or committing to a position. Why, I wondered, was this coming up again now?
I also noticed that I was beginning to feel differently. At Viciente I had felt adventurous and competent and now I was feeling what could only be called a growing depression, mixed with anxiety.
"Now you've made me depressed," I said.
He laughed loudly, then replied, "It wasn't me. It was the effect of leaving the Viciente estate. The energy of that place makes you high as a kite. Why do you think all these scientists began hanging around here years ago? They don't have a clue as to why they like it so much." He turned to look directly at me. "But we do, don't we?"
He checked the road, then looked at me again, his face full of regard. "You have to crank up your own energy when you leave a place like that."
I just looked at him, puzzled, and he gave me a reassuring smile. Afterward we were both silent for perhaps a mile when he said: "Tell me more of what happened at the gardens."
I continued the story. When I described actually seeing energy fields, he looked at me with amazement, but said nothing.
"Can you see these fields?" I asked.
He shot me a glance. "Yes," he said. "Go on."
I related the story without interruption until I came to Sarah's argument with the Peruvian scientist and the dynamics of their energy fields during the confrontation.
"What did Sarah and Phil say about that?" he asked.
"Nothing," I said. "They didn't seem to have a frame of reference for it."
"I didn't think so," Wil said. "They're so fascinated with the Third Insight they haven't yet gone forward. How humans compete for energy is the Fourth Insight."
"Compete for energy?" I asked.
He merely smiled, nodding toward the translation I was holding.
I picked up where I had left off. The text pointed clearly to the Fourth Insight. It said that eventually humans would see the universe as comprised of one dynamic energy, an energy that can sustain us and respond to our expectations. Yet we would also see that we have been disconnected from the larger source of this energy, that we have cut ourselves off and so have felt weak and insecure and lacking.
In the face of this deficit, we humans have always sought to increase our personal energy in the only manner we have known: by seeking to psychologically steal it from others—an unconscious competition that underlies all human conflict in the world.
[THE
STRUGGLE
FOR POWER](CelestineProph_toc.html#chap-4)
A pothole in the gravel road jolted the jeep and woke me up. I looked at my watch—3:00 P.M. As I stretched and attempted to fully awaken, I felt a sharp pain in the small of my back.
The drive had been grueling. After leaving Viciente we had traveled the entire day, riding in several different directions as though Wil were looking for something he couldn't find. We had spent the night at a small inn where the beds were hard and lumpy and I had slept little. Now, after traveling hard for the second day in a row, I was ready to complain.
I looked over at Wil. He was focused on the road, and so intent and alert, that I decided not to interrupt him. He seemed to be in the same serious mood he had displayed several hours ago, when he had stopped the jeep and told me we needed to talk.
"Do you remember that I told you the insights had to be discovered one at a time?" he had asked.
"Yes."
"Do you believe that each will indeed present itself?"
"Well, they have so far," I said, half humorously.
Wil looked at me with a serious expression. "Finding the Third Insight was easy. All we had to do was visit Viciente. But from now on, running across the other insights may be much more difficult."
He paused for a moment then said, "I think that we should go south to a small village near Quilabamba, a place called Cula. There is another virgin forest up there that I think you should see. But it is vitally important that you stay alert. Coincidences will occur regularly, but you have to notice them. Do you understand?"
I told him I thought I did and that I would keep what he said in mind. After that, the conversation had lapsed and I had fallen into a deep sleep—a sleep I now regretted because of what it had done to my back. I stretched again and Wil looked over at me.
"Where are we?" I asked.
"In the Andes again," he said.
The hills had turned into high ridges and distant valleys. The vegetation was coarser now, the trees smaller and windblown. Inhaling deeply, I noticed the air was thinner, and cool.
"Better put on this jacket," Wil said, pulling a brown cotton windbreaker from a bag. "It'll be cold up here this afternoon."
Ahead, as the road rounded a bend, we could see a narrow crossroads. On one side, near a white frame store and gas station, a vehicle was parked with the hood open. Tools lay on a cloth covering the fender. As we drove past, a blond man walked out of the store and glanced at us briefly. He was round faced and wore dark-rimmed glasses.
I looked at the man closely, my mind racing back five years.
"I know it wasn't him," I said to Wil. "But that guy looks just like a friend of mine I used to work with. I haven't thought of him in years."
I noticed Wil was scrutinizing me.
"I told you to watch events closely," he said. "Let's go back and see if that fellow needs some help. He didn't look like a local."
We found a place where the shoulders of the road were wide enough and turned around. When we returned to the store, the man was working on the engine. Wil pulled up to the pump and leaned out the window.
"Looks like you have trouble," Wil said.
The man pushed his glasses back up on his nose, a habit my friend also shared.
"Yes," he replied, "I have lost my water pump." The man appeared to be in his early forties and was of a slight build. His English was formal with a French accent.
Wil was quickly out of the vehicle introducing us. The man offered me his hand with a smile that also looked familiar. His name was Chris Reneau.
"You sound French," I said.
"I am," he replied. "But I teach psychology in Brazil. I am here in Peru seeking information about an archaeological artifact that has been found, a manuscript."
I hesitated for a moment, unsure how much I should trust him.
"We're here for the same reason," I finally said.
He looked at me with deep interest. "What can you tell me about it?" he asked. "Have you seen copies?"
Before I could reply, Wil walked out of the building, the screen door slamming behind him. "Great luck," he said to me. "The owner has a place where we can camp, and there's some hot food. We might as well stay for the night." He turned and looked expectantly at Reneau. "If you don't mind sharing your reservations."
"No, no," he said. "I welcome the company. A new pump cannot be delivered here until tomorrow morning."
While he and Wil began a conversation about the mechanics and reliability of Reneau's land cruiser, I leaned back against the jeep, feeling the warmth of the sun, and drifting into a pleasant reverie about the old friend Reneau had brought to mind. My friend had been wide-eyed and curious, very much like Reneau seemed, and a constant reader of books. I could almost recall the theories he liked, but time had obscured my recollection.
"Let's get our stuff down to the campsite," Wil was saying, patting me on the back.
"Okay," I said absently.
He opened the rear door and pulled out the tent and sleeping bags and loaded my arms, then grabbed a duffle bag full of extra clothing. Reneau was locking up his vehicle. We all walked past the store and down a course of steps. The ridge fell away steeply behind the building and we angled to the left along a narrow pathway. After twenty or thirty yards, we could hear water running, and further on we saw a stream cascading down the rocks. The air was cooler and I could smell the strong fragrance of mint.
Directly in front of us, the ground leveled out and the stream formed a pool about twenty-five feet in diameter. Someone had cleared a campsite and built a rock containment for a fire. Wood was stacked against a nearby tree.
"This is fine," Wil said, and began unpacking his large four man tent. Reneau spread his smaller tent to the right of Wil.
"Are you and Wil researchers?" Reneau asked me at one point. Wil had finished with the tent and had walked up to check on dinner.
"Wilson's a guide," I said. "I'm not doing much of anything right now."
Reneau gave me a puzzled look.
I smiled and asked, "Have you been able to see any parts of the Manuscript?"
"I have seen the First and Second Insights," he said, stepping closer. "And I'll tell you something. I think it is all happening just as the Manuscript says. We are changing our world view. I can see it in psychology."
"What do you mean?"
He took a breath. "My field is conflict, looking at why humans treat each other so violently. We've always known that this violence comes from the urge humans feel to control and dominate one another, but only recently have we studied this phenomenon from the inside, from the point of view of the individual's consciousness. We have asked what happens inside a human being that makes him want to control someone else. We have found that when an individual walks up to another person and engages in a conversation, which happens billions of times each day in the world, one of two things can happen. That individual can come away feeling strong or feeling weak, depending on what occurs in the interaction."
I gave him a puzzled look and he appeared slightly embarrassed at having rushed into a long lecture on the subject. I asked him to go on.
"For this reason," he added, "we humans always seem to take a manipulative posture. No matter what the particulars of the situation, or the subject matter, we prepare ourselves to say whatever we must in order to prevail in the conversation. Each of us seeks to find some way to control and thus to remain on top in the encounter. If we are successful, if our viewpoint prevails, then rather than feel weak, we receive a psychological boost.
"In other words we humans seek to outwit and control each other not just because of some tangible goal in the outside world that we're trying to achieve, but because of a lift we get psychologically. This is the reason we see so many irrational conflicts in the world both at the individual level and at the level of nations."
"The consensus in my field is that this whole matter is now emerging into public consciousness. We humans are realizing how much we manipulate each other and consequently we're reevaluating our motivations. We're looking for another way to interact. I think this reevaluation will be part of the new world view that the Manuscript speaks of."
Our conversation was interrupted as Wil walked up. "They're ready to serve us," he said.
We hurried up the path and into the basement level of the building, the family's living quarters. We walked through the living room and into the dining area. On the table was a hot meal of stew, vegetables, and salad.
"Sit down. Sit down," the proprietor was saying in English, pulling out chairs and rushing about. Behind him stood an older woman, apparently his wife, and a teenage girl of about fifteen.
While taking his seat, Wil accidently brushed his fork with an arm. It fell noisily to the floor. The man glared at the woman, who in turn spoke harshly to the young girl who had not yet moved to bring a new one. She hurried into the other room and returned holding a fork, then handed it tentatively to Wil. Her back was stooped and her hand shook slightly. My eyes met Reneau's from across the table.
"Enjoy the food," the man said, handing me one of the dishes. For most of the meal Reneau and Wil talked casually about academic life, the challenges of teaching and publishing. The proprietor had left the room but the woman stood just inside the door.
As the woman and her daughter began serving individual dishes of pie the young girl's elbow hit my water glass, spilling the water on the table in front of me. The older woman rushed over in a rage, shouting at the girl in Spanish and pushing her out of the way.
"I am very sorry," the woman said, wiping up the water. "The girl is so clumsy."
The young girl exploded, flinging the remaining pie at the woman, missing, and splattering pie and broken china across the middle of the table—just as the proprietor returned.
The old man shouted and the girl ran from the room.
"I'm sorry," he said, hurrying to the table.
"It's no problem," I replied. "Don't be so hard on the girl."
Wil was on his feet, figuring the bill, and we quickly left. Reneau had been quiet, but as we walked through the door and down the steps, he spoke.
"Did you see that girl?" he asked, looking at me. "She is a classic example of psychological violence. This is what the human need to control others leads to when taken to the extreme. The old man and woman are dominating the girl totally. Did you see how nervous and stooped she was?"
"Yes," I said. "But it appears she's about fed up."
"Exactly! Her parents have never let up. And from her point of view she has no choice but to lash out violently. It is the only way she can gain some control for herself. Unfortunately, when she grows up, because of this early trauma, she will think she has to seize control and dominate others with the same intensity. This characteristic will be deeply ingrained and will make her just as dominating as her parents are now, especially when she is around people who are vulnerable, such as children.
"In fact, this same trauma no doubt happened to her parents before her. They have to dominate now because of the way their parents dominated them. That's the means through which psychological violence is passed down from one generation to another."
Reneau stopped suddenly. "I need to get my sleeping bag out of the truck," he said. "I'll be down is a second."
I nodded and Wil and I continued toward the campsite.
"You and Reneau have been talking a lot," Wil remarked.
"Yes, we have," I said.
He smiled. "Actually Reneau has been doing most of the talking. You listen and answer direct questions but you don't offer much."
"I'm interested in what he has to say," I said, defensively.
Wil ignored my tone. "Did you see the energy moving between the members of that family? The man and woman were sucking the child's energy into themselves until she was almost dead."
"I forgot to watch the energy flow," I said.
"Well, don't you think Reneau would like to see it? What do you make of running into him in the first place?"
"I don't know."
"Don't you think it has some meaning? We were driving down the road and you see someone who reminds you of an old friend and when we meet him he happens to also be looking for the Manuscript. Doesn't that sound beyond coincidence?"
"Yes."
"Perhaps you met so that you could receive some information that will extend your journey here. And doesn't it follow that perhaps you have some information for him as well?"
"Yes, I guess so. What do you think I should tell him?"
Wil again looked at me with his characteristic warmth. "The truth," he said.
Before I could say anything else, Reneau came bounding down the path toward us.
"I brought a flashlight in case we need it later," he said.
For the first time I became aware of the twilight and looked west. The sun had already set but the sky was still a bright orange. The few clouds in that direction carried a darker, reddish color. For an instant I thought I saw a whitish field of light around the plants in the foreground, but the image faded.
"Beautiful sunset," I said, then noticed Wil had disappeared into his tent and Reneau was pulling his sleeping bag from its case.
"Yes, it is," Reneau said distractedly without looking.
I walked over to where he was working.
He looked up and said, "I didn't get to ask you; what insights have you seen?"
"The first two were only described to me," I replied. "But we just spent the last two days at the Viciente Lodge, near Satipo. While we were there, one of the people doing research gave me a copy of the Third Insight. It's pretty amazing."
His eyes lit up. "Do you have it with you?"
"Yes. Do you want to look at it?"
He jumped at the opportunity and took it into his tent to read. I found some matches and old newspaper and started the fire. After it was burning brightly, Wil crawled out of his tent.
"Where's Reneau?" he asked.
"He's reading the translation Sarah gave me," I said.
Wil walked over and sat on a smooth log someone had placed near the fire area. I joined him. Darkness had finally descended and nothing could be seen except for the bare outline of the trees to our left, the dim lights from the station behind us, and a muted glow from Reneau's tent. The woods were alive with night sounds, some of which I had never heard before.
After about thirty minutes, Reneau emerged from his tent, the flashlight in his hand. He walked over and sat at my left. Wil was yawning.
"That insight is amazing," he said. "Could anyone there actually see those energy fields?"
I briefly told him of my experiences, beginning with our arrival and proceeding through the point where I actually saw fields myself.
He was silent for a minute, then he asked: "They were actually doing experiments where they projected their own energy onto plants and affected the plant's growth?"
"It affected their nutritional potency, too," I said.
"But the main insight is broader than that," he commented, almost to himself. "The Third Insight is that the universe on the whole is made up of this energy, and we can affect perhaps not only plants but other things as well, just by what we do with the energy that belongs to us, the part we can control." He paused for a full minute. "I wonder how we affect other people with our energy?"
Wil looked at me and smiled.
"I'll tell you what I saw," I said. "I witnessed an argument between two people, and their energies were doing really strange things."
Reneau pushed up his glasses again. "Tell me about that."
Wil stood up at this point. "I think I need to turn in," he said. "It's been a long day."
We both said good night and Wil entered his tent. Afterward I described as best I could what Sarah and the other scientist had said to each other, emphasizing the action of their energy fields.
"Now wait a minute," Reneau said. "You saw their energies pulling at each other, trying to, say, capture each other as they argued?"
"That's right," I said.
He was thoughtful for a few seconds. "We must analyze this fully. We had two people arguing over who had the correct view of the situation, over who was right—each seeking to win out over the other, even to the point of invalidating the other's confidence and to outright name calling."
Suddenly he looked up. "Yes, this all makes sense!"
"What do you mean?" I said.
"The movement of this energy, if we can systematically observe it, is a way to understand what humans are receiving when we compete and argue and harm each other. When we control another human being we receive their energy. We fill up at the other's expense and the filling up is what motivates us. Look, I must learn how to see these energy fields. Where is this Viciente Lodge? How do I get there?"
I told him the general location but said he would have to ask Wil for specific directions.
"Yes. I'll do that tomorrow," he said with commitment. "For now I should get some sleep. I want to leave as early as possible."
He said good night, then disappeared into his tent, leaving me alone with the crackling fire and the night sounds.
When I awoke, Wil was already out of the tent. I could smell the aroma of hot cereal. I slipped out of my sleeping bag and looked out through the tent flap. Wil was holding a pan over the fire. Reneau was nowhere to be seen, and his tent was gone.
"Where's Reneau?" I asked, climbing out and walking over to the fire.
"He's already packed up," Wil said. "He's up there working on his truck, getting ready so he can leave as soon as his part comes in."
Wil handed me a bowl of oatmeal and we sat on one of the logs to eat.
"Did you two stay up late talking?" Wil asked.
"Not really," I said. "I told him all I knew."
Just then we heard sounds from the path. Reneau was hurriedly walking down to us.
"I am all prepared," he said. "I must say good-bye."
After several minutes of conversation, Reneau walked back up the steps and left. Wil and I took turns bathing and shaving in the station owner's bathroom, then we packed our gear, filled the vehicle with gas, and departed, heading north.
"How far is Cula?" I asked.
"We should be there before nightfall if we're lucky," he said, then added, "So what did you learn from Reneau?"
I looked closely at him. He seemed to be looking for a specific answer. "I don't know," I said.
"What conception did Reneau leave you with?"
"That we humans, although we are unconscious of it, have the tendency to control and dominate others. We want to win the energy that exists between people. It builds us up somehow, makes us feel better."
Wil was looking straight ahead at the road. He looked as if he was suddenly thinking of something else.
"Why do you ask?" I inquired. "Is this the Fourth Insight?"
He looked at me. "Not quite. You have seen the energy flow between people. But I'm not sure you know how it feels when it happens to you."
"Then tell me how it feels!" I said, growing exasperated. "You accuse me of not talking! Getting information out of you is like pulling teeth! I've been trying for days to find out more about your past experiences with the Manuscript, and all you do is put me off."
He laughed, then shot me a smile. "We had a deal, remember? I have a reason for being secretive. One of the insights concerns how to interpret the events of one's past life. It is a process of becoming clear about who you are, what you are here on this planet to do. I want to wait until we reach this insight before we discuss my background, okay?"
I smiled at his adventurous tone. "Yeah, I guess."
For the remainder of the morning we rode in silence. The day was sunny and the sky blue. Occasionally, as we proceeded higher into the mountains, thick clouds would float across our path, covering the windshield with moisture. Around noon, we pulled over at an overlook that afforded a spectacular view of the mountains and valleys to the east.
"Are you hungry?" Wil asked.
I nodded and he pulled two carefully wrapped sandwiches from a bag on the back seat. After he handed me one of them, he asked, "What do you think about this view."
"It's beautiful."
He smiled slightly and stared at me, giving me the impression that he was observing my energy field.
"What are you doing?" I asked.
"Just looking," he said. "Mountain peaks are special places that can build energy in whomever sits on them. You look as though you have an affinity for mountain overlooks."
I told Wil of my grandfather's valley and of the ridge overlooking the lake and how it had made me feel alert and energized the same day Charlene had arrived.
"Perhaps growing up there," he said, "prepared you for something here, now."
I was about to ask him more about the energy that mountains provide when he added, "When a virgin forest is on a mountain, the energy is amplified even more."
"Is the virgin forest we're headed for on a mountain?" I asked.
"Look for yourself," he said. "You can see it."
He pointed toward the east. Miles away, I could see two ridges which ran parallel to each other for what looked like several miles, then they converged, forming a V shape. In the space between the two ridges lay what looked like a small town, and at the vortex, the point where the two ridges met, the mountain rose sharply and butted off into a rocky summit. The summit appeared slightly higher than the ridge we were on and the area around its base seemed much greener, as though covered with lush foliage.
"That area of green?" I asked.
"Yes," Wil said. "It's like Viciente, yet more powerful and special."
"How is it special?"
"It facilitates one of the other insights."
"How?" I asked.
He started the jeep and pulled back onto the road. "I'm betting," he said, "that you will find out."
Neither of us said much more for an hour or so, then I drifted off to sleep. Sometime later Wil was shaking my arm.
"Wake up," he said. "We're coming into Cula."
I sat up in the seat. Ahead of us, in a valley where two roads came together, was a small town. On both sides were the two ridges we had seen. The trees on the ridges seemed as large as those at Viciente and spectacularly green.
"I want to tell you something before we drive in there," he said. "In spite of the energy of this forest, this town is a lot less civilized than other areas of Peru. It's known as a place to get information about the Manuscript, but the last time I was here, it was full of greedy types who didn't feel the energy and didn't understand the insights. They merely wanted the money or recognition they might get by discovering the Ninth."
I looked at the village. It consisted of four or five streets and avenues. Larger frame buildings lined the two main roads that crossed in the center of town, but the other streets were little more than alleyways lined by small dwellings. Parked at the cross-roads were perhaps a dozen off-the-road vehicles and trucks.
"Why are all these people here?" I asked.
He smiled daringly. "Because it's one of the last places to get gas and supplies before going deeper into the mountains."
He started the jeep and drove slowly into town, then stopped in front of one of the larger buildings. I couldn't read the Spanish signs but from the products in the window I presumed it was a grocery and hardware.
"Wait here for a minute," he said. "I want to go in for a few things."
I nodded and Wil disappeared inside. As I looked around, a truck pulled up across the street and several people got out. One was a dark-haired woman in a fatigue jacket. To my amazement, I realized it was Marjorie. She and a young man in his early twenties crossed the street and walked right in front of me.
I opened my door and got out. "Marjorie," I yelled.
She stopped and looked around, then saw me and smiled. "Hello," she said. As she began to walk toward me, the young man grabbed her arm.
"Robert told us not to talk with anyone," he said very softly, trying not to let me overhear.
"It's okay," she said, "I know this person. Go on in."
He looked at me skeptically, then backed away and went into the store. I tried then, in a stuttering way, to explain what had happened between us at the gardens. She laughed, and told me Sarah had related everything to her. She was about to say something else when Wil walked out with a handful of supplies.
I introduced them, and we all talked for a few minutes as Wil placed the supplies in the back of the jeep.
"I have an idea," Wil said. "Let's get something else to eat across the street."
I looked over at what appeared to be a small cafe. "Sounds good to me," I said.
"I don't know," Marjorie said. "I need to leave soon. My ride."
"Where are you going?" I asked.
"Back to the west a couple of miles. I've come up to visit a group studying the Manuscript."
"We can take you back later, after dinner," Wil commented.
"Well, I guess that will be okay."
Wil looked at me, "I have one more thing to pick up. You two go ahead and order and I'll order something when I get there. I'll only be a few minutes."
We agreed, and Marjorie and I waited as several trucks passed. Wil walked down the street to the south. Suddenly the young man with whom Marjorie had arrived walked out of the store and confronted us again.
"Where are you going?" he said, holding her arm.
"This is a friend of mine," she replied. "We're going to eat and then he can run me back later."
"Look, you can't trust anyone up here. You know Robert wouldn't approve."
"It's okay," she said.
"I want you to come with me, now!"
I took his arm and pulled it off Marjorie. "You heard what she told you," I said. He stepped back and looked at me, suddenly appearing very timid. He turned and walked back into the store.
"Let's go," I said.
We walked across the street and into the small diner. The eating area consisted of one room and just eight tables and was permeated with the smell of grease and smoke. I spotted an unoccupied table on the left. As we walked over, several people glanced up at us for an instant, then returned to what they were doing.
The waitress spoke only Spanish, but Marjorie knew the language well and ordered for us both. Afterward, Marjorie looked at me warmly.
I grinned at her. "Who is that guy you were with?"
"That's Kenny," she said. "I don't know what's wrong with him. Thanks for helping."
She was looking directly into my eyes, and her comment made me feel wonderful. "How did you get connected with that group?" I asked.
"Robert Jensen is an archaeologist. He's formed a group to study the Manuscript and to search for the Ninth Insight. He came by Viciente a few weeks back, then again a couple of days ago... I..."
"What?" I asked.
"Well, I was in a relationship at Viciente that I wanted to get away from. Then I met Robert and he was so charming and what he was doing seemed so interesting. He convinced me that our research at the gardens would be enhanced by the Ninth Insight, and that he was on his way to find it. He said searching for this insight would be the most exciting thing he has ever done, and when he offered me a place on his team for a few months I decided to accept..." She paused again and looked down at the table. She appeared uncomfortable so I changed the subject.
"How many of the insights have you read?"
"Only the one I saw at Viciente. Robert has some others but he believes people have to rid themselves of their traditional beliefs before they can understand them. He says he would rather they learn the key concepts from him."
I must have frowned because she added: "You don't like that much, do you?"
"It sounds suspicious," I said.
She looked at me intensely again. "I wondered about it too. Maybe when you take me back, you can talk with him and tell me what you think."
The waitress arrived and brought our food, and as she was walking away, I saw Wil come in the door. He walked quickly to our table.
"I've got to meet some people about a mile north of here," he said. "I'll be gone about two hours. Take the jeep and take Marjorie back. I'm riding with someone else." He shot me a smile. "We can meet back here."
The thought came to me to tell him about Robert Jensen but I decided against it.
"Okay," I said.
He looked at Marjorie. "Nice to have met you. Wish I had time to stay and talk."
She looked at him with her coy expression. "Maybe some other time."
He nodded, handed me the keys, and walked away.
Marjorie ate for a few minutes, then said: "He seems like a man with a purpose. How did you meet him?"
I told her in detail of my experiences upon first arriving in Peru. As I talked, she listened intently. So intently, in fact, that I found myself telling the story with great ease and expressing the dramatic turns and episodes with insight and true flair. She seemed spell-bound, hanging on every word.
"Goodness," she said at one point, "do you think you're in danger?"
"No, I don't think so," I said. "Not this far from Lima."
She was still looking at me expectantly, so while we finished eating I briefly summarized the events at Viciente up to the point where Sarah and I had arrived at the gardens.
"That's where I met you," I said, "and you ran off."
"Oh, it wasn't like that," she said. "I just didn't know you, and when I saw your feelings, I thought it was best to leave."
"Well, I apologize," I said chuckling, "for letting my energy get out of hand."
She looked at her watch. "I guess I should be getting back. They'll be wondering about me."
I left enough money for the bill and we walked outside to Wil's jeep. The night was chilly and we could see a trace of our breath. As we got in, she said, "Head back north on this road. I'll tell you when to turn."
I nodded, and made a quick u-turn in the street and headed that way.
"Tell me more about this farm we're going to," I said.
"I think Robert rents it. Apparently his group has been using it for a long time while he has studied the insights. Since I've been there everyone has been assembling supplies, and readying the vehicles, things like that. Some of his men seem very rough."
"Why did he invite you along?" I asked.
"He said he wanted a person who could help interpret the last insight, once we found it. At least that's what he said back at Viciente. Here he has only talked about supplies and helping to prepare for the trip."
"Where is he planning to go?"
"I don't know," she replied. "He never answers me when I ask."
After about a mile and a half, she pointed out a turn to the left onto a narrow, rocky road. It meandered up a ridge and down into a flat valley. Ahead was a farmhouse made of rough planking. Behind it were several barns and outbuildings. Three llamas peered at us from a fenced pasture.
As we slowed to a stop, several people walked around a vehicle and stared without smiling. I noticed a gas powered, electric generator humming at the side of the house. Then the door opened and a tall, dark-haired man with strong, lean features walked toward us.
"That's Robert," Marjorie said.
"Good," I said, still feeling strong and confident.
We got out as Jensen walked up to us. He looked at Marjorie.
"I was worried about you," he said. "I understand you ran into a friend."
I introduced myself and he shook my hand firmly.
"I'm Robert Jensen," he said. "Glad you two are all right. Come in."
Inside several people busied themselves with supplies. One carried a tent and camping gear toward the back. Through the dining room, I noticed two Peruvian women in the kitchen, packing food. Jensen sat in one of the chairs in the living room and directed us to two others.
"Why did you say you were glad we were all right?" I asked.
He bent toward me and asked in a sincere tone, "How long have you been in this area?"
"Only since this afternoon."
"Then you couldn't know how dangerous it is here. People are disappearing. Have you heard of the Manuscript, of the missing Ninth Insight?"
"Yes, I have. In fact..."
"Then you need to know what's going on," he interrupted. "The search for the last insight is getting ugly. There are dangerous people involved in this."
"Who?" I asked.
"People who don't care about the archaeological value of this discovery at all. People who just want the insight for their own purposes."
A huge man with a beard and paunch interrupted the conversation and showed Jensen a list. They discussed something briefly in Spanish.
Jensen looked at me again. "Are you here to find the missing insight too?" he asked. "Do you have any idea what you're getting into?"
I felt awkward and had difficulty expressing myself. "Well...I'm mainly interested in finding out more about the entire Manuscript. I haven't seen that much of it yet."
He straightened in his chair, then said: "Do you realize that the Manuscript is a state artifact and that copies of it have been made illegal except by permit?"
"Yes, but some scientists disagree with that. They feel the government is suppressing new..."
"Don't you think the nation of Peru has the right to control its own archaeological treasures? Does the government know that you're in this country?"
I didn't know what to say—the surge of anxiety in my stomach was back.
"Look, don't get me wrong," he said, smiling. "I'm on your side. If you have some sort of academic support from outside the country, then tell me. But I get the feeling you're just floating around."
"Something like that," I said.
I noticed Marjorie's focus had shifted from me to Jensen. "What do you think he should do?" she asked.
Jensen stood up and smiled. "I could perhaps work you into a position with us here. We need more people. Where we are going is relatively safe, I think. And you could find some avenues home along the way if things didn't work out."
He looked at me closely. "But you'll have to be willing to do exactly as I say, every step of the way."
I glanced over at Marjorie. She was still looking at Jensen. I felt confused. Perhaps I should consider Jensen's offer, I thought. If he was in good standing with the government then this might be the only opportunity I had for a legitimate way back to the states. Perhaps I had been fooling myself. Perhaps Jensen was right and I was in way over my head.
"I think you should consider what Robert is saying," Marjorie commented. "It's too frightening out there alone."
Though I knew she might be correct, I still had faith in Wil, in what we were doing. I wanted to express this thought but when I tried to speak, I found I couldn't formulate the words. I could no longer think clearly.
Suddenly the large man walked into the room again and looked out the window. Jensen was quickly up and looking, then he turned to Marjorie and in a casual tone said, "Someone is coming. Go ask Kenny to come up here, please."
She nodded and left. Through the window I could see truck lights approaching. The vehicle parked just outside the fence, fifty feet away.
Jensen opened the door and as he did, I heard my name mentioned outside.
"Who is that?" I asked.
Jensen looked at me sharply. "Be very quiet," he said. He and the large man walked outside and pulled the door closed. Through the window I could see a lone figure silhouetted behind the truck's lights. My first impulse was to stay inside. Jensen's assessment of my situation had filled me with foreboding. But something about the person by the truck seemed familiar. I opened the door and walked outside. As soon as Jensen saw me, he quickly turned and walked my way.
"What are you doing? Go back inside."
Above the generator I thought I heard my name again.
"Go back inside, now!" Jensen said. "It could be a trap." He was standing directly in front of me, blocking my view of the vehicle. "Go back inside now!"
I felt totally confused and panicked, unable to make a decision. Then the figure behind the lights walked closer and I could see his form around Jensen's body. Distinctly I heard: "... come here, I need to talk with you!" Then as the figure approached, my head cleared and I realized that it was Wil. I rushed past Jensen.
"What was wrong with you?" Wil asked quickly. "We need to get out of here."
"But what about Marjorie?" I asked.
"We can't do anything about her right now," Wil said. "We'd better leave."
We started to walk away when Jensen called out. "You'd better stay here. You won't make it."
I glanced back.
Wil stopped and looked at me, giving me a choice to stay or go.
"Let's go," I said.
We passed the truck in which Wil had arrived and I noticed two other men had been waiting in the front seat. When we got to Wil's jeep, he asked me for the keys and we drove away. The truck with Wil's friends followed.
Wil turned and looked at me. "Jensen told me you had decided to stay with his group. What was going on?"
"How do you know his name?" I stammered.
"I just heard all about this guy," Wil replied. "He works for the Peruvian government. He's a real archaeologist, but he's committed to keeping the whole thing secret in return for exclusive rights to study the Manuscript, only he wasn't supposed to go looking for the missing insight. Apparently he's decided to violate that agreement. He is rumored to be leaving soon in pursuit of the Ninth.
"When I learned he was the person Marjorie was with, I thought I'd better get down here. What did he say to you?"
"He told me I was in danger and that I should join up with him and that he'd help me leave the country if that's what I wanted."
Wil shook his head. "He really had you hooked."
"What do you mean?"
"You should have seen your energy field. It was flowing almost totally into his."
"I don't understand."
"Think back to Sarah's argument with the scientist at Viciente.... If you had witnessed one of them winning, convincing the other that he was correct, then you would have seen the loser's energy flowing into the winner's, leaving the loser feeling drained and weak and somewhat confused—the way the girl in the Peruvian family appeared and the way," he smiled, "that you look now."
"You saw that happening to me?" I asked.
"Yes," he replied. "And it was extremely difficult for you to stop his control of you and to pull yourself away. I thought for a minute you weren't going to do it."
"Jesus," I said. "That guy must really be evil."
"Not really," he said. "He's probably only half aware of what he's doing. He thinks he's right to control the situation, and no doubt he learned a long time ago that he could control successfully by following a certain strategy. He first pretends to be your friend, then he finds something wrong with what you're doing, in your case that you were in danger. In effect, he subtly undermines your confidence in your own path until you begin to identify with him. As soon as that happens, he has you."
Wil looked directly at me. "This is only one of many strategies people use to con others out of their energy. You'll learn about the remaining ways later, in the Sixth Insight."
I wasn't listening; my thoughts were on Marjorie. I didn't like leaving her there.
"Do you think we should try to get Marjorie?" I asked.
"Not now," he said. "I don't think she's in any danger. We can drive out tomorrow, as we leave, and try to talk to her."
We were silent for a few minutes, then Wil asked: "Do you understand what I said about Jensen not realizing what he was doing? He's no different from most people. He just does what makes him feel the strongest."
"No, I don't think I understand."
Wil looked thoughtful. "All this is still unconscious in most people. All we know is that we feel weak and when we control others we feel better. What we don't realize is that this sense of feeling better costs the other person. It is their energy that we have stolen. Most people go through their lives in a constant hunt for someone else's energy."
He looked at me with a twinkle in his eye. "Although occasionally it works differently. We meet someone who at least for a little while will voluntarily send us their energy."
"What are you getting at?"
"Think back to when you and Marjorie were eating together at the restaurant in town and I walked in."
"Okay."
"I don't know what you two were talking about but obviously her energy was pouring into you. When I walked in, I could see it clearly. Tell me, how did you feel during that time?"
"I felt good," I said. "In fact, the experiences and concepts I was relating seemed crystal clear to me. I could express myself easily. But what does that mean?"
He smiled. "Occasionally, another person will voluntarily want us to define their situation for them, giving us their energy outright, the way Marjorie did with you. It makes us feel empowered, but you'll see that this gift doesn't usually last. Most people—Marjorie included—aren't strong enough to keep giving energy. That's why most relationships eventually turn into power struggles. Humans link up energy and then fight over who is going to control it. And the loser always pays the price."
He stopped abruptly and looked at me. "Do you get the Fourth Insight? Think about what has happened to you. You observed that energy flows between people and wondered what it meant, and then we ran into Reneau, who told you that psychologists were already searching for some reason humans sought to control each other.
"All that was demonstrated with the Peruvian family. You saw clearly that dominating another makes the dominator feel powerful and knowledgeable, but it sucks the vital energy out of those who are being dominated. It makes no difference if we tell ourselves that we are doing it for the person's own good, or that they are our children, and therefore we should be in control all the time. The damage still occurs.
"Next, you ran into Jensen and got a taste of what this actually feels like. You saw that when someone is dominating you psychically, they actually take your mind away. It was not as if you lost some intellectual debate with Jensen. You didn't have the energy or mental clarity to debate with. All your mental power was going to Jensen. Unfortunately this kind of psychic violence happens all the time throughout human culture, often by otherwise well-meaning people."
I just nodded. Wil had summarized my experience exactly.
"Try to integrate the Fourth Insight fully," Wil continued. "See how it fits together with what you already know. The Third Insight showed you that the physical world is actually a vast system of energy. And now the Fourth points out that for a long time we humans have been unconsciously competing for the only part of this energy we have been open to: the part that flows between people. This is what human conflict has always been about, at every level: from all the petty conflict in families and employment settings to wars between nations. It's the result of feeling insecure and weak and having to steal someone else's energy to feel okay."
"Wait a minute," I protested. "Some wars had to be fought. They were right."
"Of course," Wil replied. "But the only reason that any conflict can't be immediately settled is that one side is holding on to an irrational position, for energy purposes."
Wil appeared to remember something. Reaching into a satchel, he pulled out a bundle of papers clipped together.
"I almost forgot!" he said. "I found a copy of the Fourth Insight."
He handed me the copy and said nothing else, looking straight ahead as he drove.
I picked up the small flashlight Wil kept on the floorboard and for the next twenty minutes read the short document. Understanding the Fourth Insight, it said, is a matter of seeing the human world as a vast competition for energy and thus for power.
Yet, once humans understand their struggle, the insight continued, we would immediately begin to transcend this conflict. We would begin to break free from the competition over mere human energy...because we would finally be able to receive our energy from another source.
I looked at Wil. "What's the other source?" I asked.
He smiled, but said nothing.
[THE
MESSAGE OF
THE MYSTICS](CelestineProph_toc.html#chap-5)
The next morning I awoke as soon as I heard Wil stirring. We had spent the night at a house belonging to one of his friends, and Wil was sitting up in a cot across the room, dressing quickly. It was still dark outside.
"Let's get packed," he whispered.
We gathered our clothes and made several trips out to the jeep with some extra supplies Wil had bought. The center of town was only a few hundred yards away, but few lights penetrated the darkness. Dawn was but a streak of lighter sky toward the east. Other than a few birds signaling the impending morning, there were no sounds.
When we finished, I stayed with the jeep while Wil spoke briefly with his friend who stood sleepily on the porch while we completed our packing. Suddenly we heard noise at the crossroads. We could see the lights of three trucks as they drove into the center of the town and stopped.
"That could be Jensen," Wil said. "Let's walk over there and see what they're doing, but carefully."
We made our way across several streets and into an alley that entered the main road about a hundred feet from the trucks. Two of the vehicles were being filled with fuel and the other was parked in front of the store. Four or five people stood nearby. I saw Marjorie walk out of the store and place something in the truck there, then walk casually toward us, gazing into the adjacent shops.
"Walk over there and see if you can get her to come with us," Wil whispered. "I'll wait for you here."
I slipped around the corner and as I walked toward her I was horrified. Behind her, in front of the store, I noticed for the first time that several of Jensen's men carried automatic weapons. A few moments later my fright intensified. In the street across from me armed soldiers crouched low and slowly approached Jensen's group.
At the exact time Marjorie saw me, Jensen's men saw the others and scattered. A burst of machine gun fire filled the air. Marjorie looked at me with terror in her eyes. I rushed forward and grabbed her. We ducked into the next alley. More shots were being fired amid angry shouting in Spanish. We tripped over a pile of empty cartons and fell, our faces almost touching.
"Let's go!" I said, jumping to my feet. She struggled up, then pulled me down again, nodding ahead to the end of the alley. Two men with weapons were hiding with their backs to us, looking down the next street. We froze. Finally, the men raced across the street to the wooded area beyond.
I knew we had to get back to the house of Wilson's friend, to the jeep. I was sure Wil would go there. We crept carefully to the next street. Angry shouting and gunfire could be heard toward the right, but we could see no one. I looked left; nothing there either—no sign of Wil. I figured he had run ahead of us.
"Let's run across to the woods," I said to Marjorie, who was now alert and looking determined. "Then," I continued, "we'll stay along the edge of the woods and bear left. The jeep is parked in that direction."
"Okay," she said.
We crossed the street quickly and made our way to within a hundred feet or so of the house. The jeep was still there but we could see no movement anywhere. As we prepared to dash across the last street to the house, a military vehicle turned a corner to our left and proceeded slowly toward the dwelling. Simultaneously, Wil ran across the yard, started the jeep, and sped away in the opposite direction. The vehicle pursued.
"Damn!" I said.
"What'll we do now?" Marjorie asked, panic returning to her face.
More shots were being fired in the streets behind us, closer this time. Ahead, the forest thickened and inclined up the ridge which towered over the town and ran north and south. It was the same ridge that I had seen from the overlook earlier.
"Let's get to the top," I said. "Hurry!"
We climbed several hundred yards up the ridge. At an overlook, we stopped and looked back toward the town. Military vehicles seemed to be pouring into the crossroads and numerous soldiers were conducting what seemed to be a house to house search. Below us, at the base of the ridge, I could hear muffled voices.
We rushed further up the mountain. All we could do now was run.
We followed the ridge north all morning stopping only to crouch down when a vehicle traveled along the ridge parallel to us on our left. Most of the traffic was the same steel-gray military jeep we had seen before, but occasionally a civilian vehicle would pass. Ironically, the road provided a lone landmark and point of security against the wilderness all around us.
Ahead the two ridges grew closer together and more steeply sloped. Jagged outcroppings of rock protected the valley floor between. Suddenly, from the north we saw a jeep like Wil's approach, then turn quickly onto a side road which looped down into the valley.
"That looks like Wil," I said, straining to see.
"Let's get down there," Marjorie said.
"Wait a minute. What if it's a trap? What if they've captured him and are using the jeep to lure us out?"
Her face fell.
"You stay here," I said. "I'll go down there and you watch me. If everything's okay, then I'll motion for you to follow."
Reluctantly she agreed, and I started down the steep mountain toward the spot where the jeep had parked. Through the foliage I could vaguely see someone get out of the vehicle, but couldn't see who it was. Holding onto small bushes and trees, I worked my way between the outcroppings, occasionally sliding down in the thick humus.
Finally, the vehicle was directly across from me on the opposite slope, perhaps a hundred yards away. The driver, leaning against a rear fender, was still obscured. I moved to my right to get a better look. It was Wil. I rushed further to my right and felt myself slide. At the last minute, I reached for a tree trunk and pulled myself back up. My stomach twisted with fright, below me was a sheer drop off of thirty feet or more. I had barely avoided killing myself.
Still holding the tree, I stood up and tried to gain Wil's attention. He was surveying the ridge above my head and then his eyes dropped and he looked right at me. He jerked up and walked toward me in the bushes. I pointed down to the steep gorge.
He surveyed the valley floor, then called to me. "I don't see a way across," he said. "You'll have to move down the valley and cross there."
I nodded and was about to signal Marjorie when I heard a vehicle approaching in the distance. Wil jumped into his jeep and sped back toward the main road. I hurried up the hill. I could see Marjorie through the foliage, walking toward me.
Suddenly from the area behind her came loud shouts in Spanish and the sounds of people running. Marjorie hid below a rock overhang. I changed directions, running as quietly as I could to the left. As I ran, I searched for a view of Marjorie through the trees. Just as I caught sight of her, she screamed loudly as two soldiers grabbed her arms and forced her to stand.
I continued to run up the slope, keeping low, her look of panic frozen in my mind. Once at the top of the ridge, I headed north again, my heart pounding with terror and panic.
After running more than a mile, I stopped and listened. I could hear no movement or talking behind me. Lying flat on my back, I tried to relax and think clearly, but the awful specter of Marjorie's capture was overwhelming. Why did I ask her to remain on the ridge alone? What should I do now?
I sat up and took a deep breath, and gazed over at the road on the other ridge. I had seen no traffic while I was running. Again I listened intently: nothing except the usual forest sounds. Slowly I began to calm down. After all, Marjorie had only been captured. She was guilty of nothing except running from gunfire. Probably she would be detained only until her identity as a legitimate scientist could be established.
Once more I headed north, my back aching slightly. I felt dirty and tired, and pangs of hunger erupted in my stomach. For two hours I walked without thinking and without seeing anyone.
Then from the slope to my right I heard sounds of running. I froze and listened again but the sounds had stopped. Here the trees were larger, shielding the ground below from the sun, thinning the underbrush. I could see fifty or sixty yards. Nothing moved. I walked past a large boulder on my right and several trees, stepping as softly as possible. Three other massive outcroppings lay along my path and I moved past two of them. Still no movement. I walked around the third boulder. Twigs cracked behind me. I turned around slowly.
There, next to the rock was the bearded man I had seen at Jensen's farm, his eyes wild, panicked, his arms shaking as he pointed an automatic weapon at my stomach. He seemed to be struggling to remember me.
"Wait a minute," I stammered, "I know Jensen."
He looked at me more closely and lowered the weapon. Then from the woods behind us, we heard the sounds of someone moving. The bearded man ran past me toward the north, holding the rifle in one hand. Instinctively I followed. Both of us were running as fast as we could, dodging limbs and rocks and occasionally glancing back.
After several hundred yards, he stumbled and I raced past him. I collapsed between two rocks to rest and to look back, trying to detect movement. I saw a lone soldier, fifty yards away, raise his rifle toward the huge man, who was struggling to his feet. Before I could utter a warning, the soldier fired. The man's chest exploded as bullets tore through from the rear, splattering me with blood. An echo of rifle fire filled the air.
For an instant he stood motionless, his eyes glazed, then his body arched forward and fell. I reacted blindly, running north again away from the soldier, keeping the trees between me and the area from which the bullets had come. The ridge grew constantly more rugged and rocky and began to incline dramatically upwards.
My entire body shook with exhaustion and terror as I struggled up the spaces between the outcroppings. At one point I slipped and dared a glance backward. The soldier was approaching the body. I slithered around a rock just as the soldier looked up, seemingly right at me. I stayed low to the ground and crawled past several other boulders. Then the slope of the ridge leveled off, blocking the soldier's view so I jumped to my feet again, running as fast as I could between the rocks and trees. My mind was numb. Escape was all I could think of. Though I didn't dare look back, I was sure I heard the soldier running behind me.
The ridge inclined ahead and I fought my way up, my strength beginning to wane. At the top of the rise, the ground leveled out and was thick with tall trees and lush undergrowth. Rising behind them was a sheer rock face that I had to scale delicately, searching for hand and footholds as I proceeded. I struggled to the top and my heart fell at the sight before me. A drop-off of a hundred feet or more blocked my way; I could go no further.
I was doomed, finished. Rocks slid along the outcropping behind me, indicating the soldier was closing fast. I sank to my knees. I was exhausted, spent, and with a final sigh I released the last of my fight, accepting my fate. Soon, I knew, the bullets would come. And interestingly, as an end to the terror, death seemed almost a welcome relief. As I waited, my mind flashed to childhood Sundays and to the innocent contemplation of God. What would it be like, death? I tried to open myself to the experience.
After a long period of waiting during which I had no concept of time, I suddenly became aware that nothing had happened! I looked around and noticed for the first time that I was positioned on the highest peak of the mountain. Other ridges and cliffs fell away from this point, leaving me with a panoramic view in all directions.
A movement caught my eye. There, far down the slope toward the south, walking casually away from me, was the soldier, the gun belonging to Jensen's man slung across one arm.
The sight warmed my body and filled me with ripples of silent laughter. I had somehow survived! I turned and sat cross-legged and savored the euphoria. I wanted to stay here forever. The day was brilliant with sunshine and blue sky.
As I sat there, I was struck by the closeness of the purple hills in the distance, or rather, the feeling that they were close. The same perception applied to the few puffs of white cloud drifting overhead. I felt as if I could reach out and touch them with my hand.
As I reached up toward the sky, I noticed something different about the way my body felt. My arm had glided upward with incredible ease and I was holding my back, neck and head perfectly straight with absolutely no effort. From my position—sitting cross-legged—I stood up without using my arms, and stretched. The feeling was one of total lightness.
Looking at the distant mountains, I noticed that a daytime moon had been out and was about to set. It looked to be about a quarter full and hung over the horizon like an inverted bowl. Instantly I understood why it had that shape. The sun, millions of miles directly above me, was shining only on the top of the sinking moon. I could perceive the exact line between the sun and the lunar surface, and this recognition somehow extended my consciousness outward even farther.
I could imagine the moon below the horizon and the exact reflected shape it would present to those who lived further west and could still see it. Then I imagined how it would look if it was directly under me on the other side of the planet. To the people there, it would appear full because the sun over my head would shine past the Earth and strike the moon squarely.
This picture sent a rush of sensation up my spine, and my back seemed to straighten even more as I conceived, no, I experienced, the same amount of space commonly felt over my head as also existing under my feet, on the other side of the globe. For the first time in my life, I knew the earth's roundness not as an intellectual concept but as an actual sensation.
At one level this awareness excited me but at another it seemed perfectly ordinary and natural. All I wanted to do was immerse myself in the feeling of being suspended, floating, amid a space that existed in all directions. Rather than having to push myself away from the Earth with my legs as I stood there, resisting the Earth's gravity, I now felt as though I was held up by some inner buoyancy, as though I was filled like a balloon with just enough helium to hover over the ground and barely touch it with my feet. It was similar to being in perfect athletic condition, as after a year of intense exercise, only far more coordinated and light.
I sat down again on the rock, and, again, everything seemed close: the rugged outcrop on which I was sitting, the tall trees further down the slope and the other mountains on the horizon. And as I watched the limbs of the trees sway gently in the breeze, I experienced not just a visual perception of the event, but a physical sensation as well, as if the limbs moving in the wind were hairs on my body.
I perceived everything to be somehow part of me. As I sat on the peak of the mountain looking out at the landscape falling away from me in all directions, it felt exactly as if what I had always known as my physical body was only the head of a much larger body consisting of everything else I could see. I experienced the entire universe looking out on itself through my eyes.
This perception induced a flash of memory. My mind raced backward in time, past the beginning of my trip to Peru, past my childhood and my birth. The realization was present that my life did not, in fact, begin with my conception and birth on this planet. It began much earlier with the formation of the rest of me, my real body, the universe itself.
The science of evolution had always bored me, but now, as my mind continued to race backward in time, all the things I had read on the subject began to come back to me, including conversations with the friend who resembled Reneau. I recalled that this was the field he was interested in: evolution.
All knowledge seemed to merge with actual memories. Somehow I was recalling what had happened, and the recollection allowed me to look at evolution in a new way.
I watched as the first matter exploded into the universe, and I realized, as the Third Insight had described, that there was nothing truly solid about it. Matter was only energy vibrating at a certain level, and in the beginning matter existed only in its simplest vibratory form: the element we call hydrogen. That's all there was in the universe, just hydrogen.
I observed the hydrogen atoms begin to gravitate together, as if the ruling principal, the urge, of this energy was to begin a movement into a more complex state. And when pockets of this hydrogen reached a sufficient density, it began to heat up and to burn, to become what we call a star, and in this burning the hydrogen fused together and leaped into elements of a higher vibration.
As I continued to watch, these first stars aged and finally blew themselves up and spewed the remaining hydrogen and the newly created elements out into the universe. And the whole process began again. The atoms gravitated together until the temperature became hot enough for new stars to form and that in turn fused the new elements together, creating matter, which vibrated at an even higher level.
And so on... each successive generation of stars creating atoms that had not existed before, until the wide spectrum of matter—the basic chemical elements—had been formed and scattered everywhere. Matter had evolved from the element hydrogen, the simplest vibration of energy, to carbon, which vibrated at an extremely high rate. The stage was now set for the next step in evolution.
As our sun formed, pockets of matter fell into orbit around it, and one of them, the Earth, contained all the newly created elements, including carbon. As the Earth cooled, gases once caught in the molten mass, migrated to the surface and merged together forming water vapor, and the great rains came, forming oceans on the then barren crust. Then when water covered much of the Earth's surface, the skies cleared and the sun, burning brightly, bathed the new world with light and heat and radiation.
And in the shallow pools and basins, amid the great lightning storms that periodically swept the planet, matter leaped past the vibratory level of carbon to an even more complex state: to the vibration represented by the amino acids. But for the first time, this new level of vibration was not stable in and of itself. Matter had to continually absorb other matter into itself in order to sustain its vibration. It had to eat. Life, the new thrust of evolution, had emerged.
Still restricted to living only in water, I saw this life split into two distinct forms. One form—the one we call plants—lived on inorganic matter, and turned these elements into food by utilizing carbon dioxide from the early atmosphere. As a by-product, plants released free oxygen into the world for the first time. Plant life spread quickly through the oceans and finally onto the land as well.
The other form—what we call animals—absorbed only organic life to sustain their vibration. As I watched, the animals filled the oceans in the great age of fishes, and, when the plants had released enough oxygen into the atmosphere, began their own trek toward land.
I saw the amphibians—half fish, half something new—leave the water for the first time and use lungs to breathe the new air. Then matter leaped forward again into reptiles and covered the Earth in the great period of the dinosaurs. Then the warm-blooded mammals came and likewise covered the Earth, and I realized that each emerging species represented life—matter—moving into its next higher vibration. Finally, the progression ended. There at the pinnacle stood humankind.
Humankind. The vision ended. I had seen in one flash the entire story of evolution, the story of matter coming into being and then evolving, as if under some guiding plan, toward ever higher vibrations, creating the exact conditions, finally, for humans to emerge...for each of us, as individuals, to emerge.
As I sat there on that mountain, I could almost grasp how this evolution was extended even further in the lives of human beings. Further evolution was related somehow to the experience of life coincidences. Something about these events led us forward in our lives and created a higher vibration that pushed evolution ahead as well. Yet, as hard as I tried, I couldn't quite understand.
For a long time I sat on the rock precipice, consumed by peace and completeness. Then, abruptly, I became aware that the sun was beginning to sink in the west. I also noticed that toward the northwest about a mile was a town of some kind. I could make out the shapes of roof tops. The road on the west ridge seemed to meander right to it.
I got up and began the climb down the rocks. I laughed out loud. I was still connected with the landscape so that I felt I was walking alongside my own body, and more, that I was exploring the regions of my own body. The feeling was exhilarating.
I made my way down the bluffs and into the trees. The afternoon sun cast long shadows along the forest floor. Halfway down I came to a particularly thick area of large trees and as I entered, I experienced a perceptible change in my body; I felt even lighter and more coordinated. I stopped and looked closely at the trees and underlying bushes, focusing on their shape and beauty. I could see flickers of white light and what seemed like a pinkish glow around each plant.
I continued to walk, coming to a stream that radiated a pale blue and filled me with an enhanced tranquility and even a drowsiness. Eventually I made my way across the valley floor and up the next ridge until I came to the road. I pulled myself up to the gravel surface and walked casually along the shoulder toward the north.
Up ahead, I caught sight of a man in a priest's robe rounding the next bend. The sight thrilled me. Totally without fear, I jogged ahead to talk with him. I knew I would know exactly what to say and do. I had a feeling of perfect well-being. But to my surprise he had disappeared. To the right, another road angled back down into the valley, but I could see no one in that direction. I ran farther up the main road, but saw no one there either. I thought about going back and taking the road I had passed, but I knew the town was ahead so I continued to walk that way. Still, I thought several more times of the other road.
A hundred yards farther, as I rounded another curve, I heard the roar of vehicles. Through the trees I could see a line of military trucks approaching at a high rate of speed. For a moment I hesitated, thinking I might stand my ground, but then I remembered the terror of the shooting on the ridge.
I had time only to fling myself off the road to the right and lie still. Ten jeeps sped past me. I had landed in a spot which was completely exposed, and all I could do was hope no one looked my way. Each vehicle passed within twenty feet. I could smell the exhaust fumes and see the expression on every face.
Luckily, no one noticed. After they were well past, I crawled behind a large tree. My hands were shaking and my sensation of peace and connection was totally shattered. A now familiar pang of anxiety knotted in my stomach. Finally, I inched up to the road. The sound of more vehicles sent me scurrying down the slope again as two more jeeps raced past. I felt nauseous.
This time I stayed well off the road and retreated the way I had come, moving very cautiously. I came to the road I had passed earlier. After carefully listening for sound and movement, I decided to walk through the woods beside it, angling back into the valley. My body felt heavy again. What had I been doing, I asked myself. Why had I been walking in the road? I must have been crazy, deluded by the shock of the shooting, entranced in some state of euphoria. Get real, I told myself. You have to be careful. There are people here who will kill you if you make the slightest mistake!
I froze. Ahead of me, perhaps a hundred feet, was the priest. He was sitting under a large tree that was surrounded by numerous rock outcrop-pings. As I stared at him, he opened his eyes and looked right at me. I flinched but he only smiled and motioned for me to walk up.
Cautiously I approached him. He remained motionless, a thin, tall man of about fifty years of age. His hair was cut short and was dark brown in color, matching his eyes.
"You look as though you need some help," he said, in perfect English.
"Who are you?" I asked.
"I am Father Sanchez. And you?"
I explained who I was and where I was from, dizzily sinking to one knee and then to my buttocks.
"You were part of what happened in Cula, weren't you?" he asked.
"What do you know of that?" I asked warily, not knowing whether to trust him.
"I know someone in this government is very angry," he said. "They don't want the Manuscript publicized."
"Why?" I asked.
He stood up and looked down at me. "Why don't you come with me. Our mission is only a half mile away. You'll be safe with us."
I struggled to my feet, realizing I had no choice, and nodded affirmatively. He led me slowly down the road, his manner respectful and deliberate. He weighed each word.
"Are the soldiers still looking for you?" he asked at one point.
"I don't know," I replied.
He said nothing for a few minutes, then asked, "Are you searching for the Manuscript?"
"Not any more," I said. "Right now I just want to survive this and go home."
He nodded reassuringly and I found myself beginning to trust him. Something about his regard and warmth affected me. He reminded me of Wil. Presently we came to the mission, which was a cluster of small houses facing a courtyard and a small church. It was situated in a place of great beauty. As we walked up he told some of the other robed men something in Spanish and they scurried away. I tried to see where they were going but fatigue was engulfing me. The priest led me into one of the houses.
Inside was a small living area and two bedrooms. A fire burned in the fireplace. Soon after we entered, another priest walked in with a tray of bread and soup. Wearily I ate as Sanchez sat politely in a chair beside me. Then, upon his insistence, I stretched out on one of the beds and fell into a deep sleep.
When I walked into the courtyard, I noticed immediately that the grounds were immaculately kept. The gravel walkways were edged with precisely arranged bushes and hedges. Each seemed to be placed so as to accent their full natural shape. None were trimmed.
I stretched and felt the starched shirt I had put on. It was made of coarse cotton and chafed my neck slightly. Still it was clean and freshly ironed. Earlier, I had awakened as two priests poured hot water into a tub and laid out fresh clothes. After I had bathed and dressed I had walked into the other room and found hot muffins and dried fruit on the table. I had eaten ravenously while the priests stood by. After I had finished, the priests had left and I had walked outside to where I now stood.
I walked over and sat on one of the stone benches that faced the courtyard. The sun was just clearing the tops of the trees, warming my face.
"How did you sleep?" a voice asked from behind me. I turned to see Father Sanchez standing very erect, smiling down at me.
"Very well," I replied.
"May I join you?"
"Sure."
Neither of us spoke for several minutes, so long in fact that I felt some discomfort. Several times I looked at him, preparing to say something, but he was looking in the direction of the sun, his face tilted slightly back, his eyes squinting.
Finally he spoke: "This is a nice place you found here." Apparently he meant the bench at this time of the morning.
"Look, I need to ask your advice," I said. "What is the safest way for me to get back to the United States?"
He looked at me seriously. "I don't know. That depends on how dangerous the government thinks you are. Tell me how you happened to be in Cula."
I told him everything from the time I first heard of the Manuscript. My feeling of euphoria on the ridge now seemed fanciful and pretentious, so I only alluded to it briefly. Sanchez, however, immediately questioned me about it.
"What did you do after the soldier failed to notice you and left?" he asked.
"I just sat up there for a few hours," I replied, "feeling relieved, I guess."
"What else did you feel?" he asked.
I squirmed somewhat, then decided to attempt a description. "It's hard to describe," I said. "I felt this euphoric connection with everything, and this total kind of security and confidence. I was no longer tired."
He smiled. "You had a mystical experience. Many people report them in that forest near the peak."
I nodded tentatively.
He turned on the bench to face me more directly. "This is the experience the mystics of every religion have always described. Have you read anything about such experiences?"
"Some, years ago," I said.
"But until yesterday it was only an intellectual concept?"
"Yeah, I suppose."
A young priest walked up and nodded to me, then whispered something to Sanchez. Sanchez nodded and the young priest turned and walked away. The older priest watched every step the young man took. He crossed the courtyard and entered a park-like area about a hundred feet away. I noticed for the first time that this area too was also extremely clean, and full of various plants. The young priest walked to several locations, hesitating at each one as though searching for something, then at one specific location sat down. He appeared to be engaged in an exercise of some kind.
Sanchez smiled and looked pleased, then turned his attention to me.
"I think it is probably unsafe for you to attempt to go back right now," he said. "But I will try to find out what the situation is, and if there is any word about your friends." He stood up and faced me. "I must attend to some chores. Please understand that we will assist you in any way possible. For now I hope you will be comfortable here. Relax and gain your strength."
I nodded.
He reached inside his pocket and pulled out some papers and handed them to me. "This is the Fifth Insight. It speaks about the kind of experience you had. I think you might find it interesting."
I took it reluctantly as he continued speaking. "What was your understanding of the last insight you read?" he asked.
I hesitated. I didn't want to think about manuscripts and insights. Finally I said, "That humans are stuck in a kind of competition for each other's energy. When we can get others to acquiesce to our view, they identify with us and that pulls their energy into us and we feel stronger."
He smiled. "So the problem is that everyone is trying to control and manipulate each other for energy, because we feel short of it?"
"That's right."
"But there is a solution, another source of energy?"
"That's what the last insight implied."
He nodded and walked very deliberately into the church.
For a few moments, I leaned forward and rested my elbows on my knees, not looking at the translation. I continued to feel reluctant. The events of the last two days had dampened my enthusiasm and I preferred instead to think of how I might return to the United States. Then, in the wooded area across the way, I noticed the young priest stand up and walk slowly to another location about twenty feet from where he was. He turned toward me again and sat down.
I was intrigued over what he might be doing. Then it dawned on me that he might be practicing something that was spelled out in the Manuscript. I looked at the first page and began to read.
It described a new understanding of what has long been called mystical consciousness. During the last decades of the twentieth century, it stated, this consciousness would become publicized as a way of being that is actually attainable, a way that has been demonstrated by the more esoteric practitioners of many religions. For most, this consciousness would remain an intellectual concept, to be only talked of and debated. But for a growing number of humans, this consciousness would become experientially real—because these individuals would experience flashes or glimpses of this state of mind during the course of their lives. The manuscript said that this experience was the key to ending human conflict in the world, because during this experience we are receiving energy from another source—a source we will eventually learn to tap at will.
I stopped reading and looked at the young priest again. His eyes were open and he appeared to be looking directly at me. I nodded, even though I couldn't make out the details of his face. To my surprise he nodded back to me and smiled faintly. Then he stood up and walked toward my left, heading toward the house in that direction. He avoided my eyes as I watched him cross the courtyard and enter the dwelling.
Behind me I heard footsteps and turned to see Sanchez leaving the church. He smiled as he approached me.
"That didn't take long," he said. "Would you like to see more of the grounds?"
"Yes, I would," I replied. "Tell me about these sitting areas you have." I pointed toward the area where the young priest had been.
"Let's walk up there," he said.
As we strolled across the courtyard, Sanchez told me that the mission was over four hundred years old and was founded by a unique missionary from Spain, who felt the way to convert the local Indians was through their hearts, not through coercion with the sword. The approach had worked, Sanchez went on, and partly because of this success and partly due to the remote location, the priest had been left alone to follow his own course.
"We carry on his tradition of looking inward for the truth," Sanchez said.
The sitting area was landscaped immaculately. About half an acre of dense forest had been cleared and the bushes and flowering plants beneath were interspersed with walkways made of smooth river stone. Like those in the courtyard, the plants here were also spaced perfectly, accentuating their unique shape.
"Where would you like to sit down?" Sanchez asked.
I looked around at my options. In front of us were several arranged areas—nooks which seemed complete unto themselves. All contained open spaces surrounded by beautiful plants and rocks and larger trees of varying shapes. One, to our left, where the young priest had been last sitting, had more outcroppings of stone.
"How about over there?" I said.
He nodded and we walked over and sat down. Sanchez breathed deeply for several minutes, then looked at me.
"Tell me more about your experience on the ridge," he said.
I felt resistant. "I don't know what else I can say about it. It didn't last."
The priest looked at me sternly. "Just because it ended when you became afraid again doesn't negate its importance, does it? Perhaps it is something to be regained."
"Maybe," I said. "But it's hard for me to concentrate on feeling cosmic when people are trying to kill me."
He laughed, then looked at me warmly.
"Are you studying the Manuscript here at the mission?" I asked.
"Yes," he said. "We teach others how to pursue the kind of experience you had on the ridge. You wouldn't mind getting some of that feeling back, would you?"
A voice from the courtyard interrupted: a priest calling for Sanchez. The older man excused himself and walked down to the courtyard and talked with the priest who had summoned him. I sat back and looked at the plants and rocks nearby, taking my eyes slightly out of focus. Around the bush closest to me I could barely make out an area of light but when I tried it on the rocks, I could see nothing.
Then I noticed Sanchez walking back.
"I must leave for a while," he said as he reached me. "I'll be going into town for a meeting so perhaps I can acquire some information concerning your friends, or at least how safe it is for you to travel."
"Good," I said. "Will you be back today?"
"I don't think so," he replied. "More like tomorrow morning."
I must have looked insecure because he walked closer and placed his hand on my shoulder. "Don't worry. You are safe here. Please make yourself at home. Look around. It is fine to talk with any of the priests, but understand that some of them will be more receptive than others depending on their development."
I nodded.
He smiled and walked behind the church and entered an old truck I had not noticed. After several attempts it started and he drove around the back side of the church and onto the road leading back up the ridge.
For several hours I remained in the sitting area, content to gather my thoughts, wondering if Marjorie was all right and if Wil had escaped. Several times the image of Jensen's man being killed flashed across my mind, but I fought off the memory and tried to stay calm.
About noon, I noticed several priests were preparing a long table in the center of the courtyard with dishes of food. When they finished, a dozen or more other priests joined them and began serving their own plates and eating on the benches casually. Most of them smiled pleasantly at each other, but I could hear little talking. One of them looked up at me and pointed to the food.
I nodded and walked down to the courtyard and prepared a plate of corn and beans. Each of the priests seemed very conscious of my presence but no one spoke to me. I made several comments about the food, but my words were met only with smiles and polite gestures. If I attempted direct eye contact, they would lower their eyes.
I sat down on one of the benches alone and ate. The vegetables and beans were unsalted but spiced with herbs. When lunch was over and the priests were stacking their plates on the table, another priest walked out of the church and hastily prepared a plate. When he finished, he looked around for a place to sit and our eyes met. He smiled and I recognized him as the priest who had looked at me from the sitting area earlier. I returned his smile and he walked over and spoke to me in broken English.
"May I sit on bench with you?" he asked.
"Yes, please," I replied.
He sat down and began to eat very slowly, overchewing his food and smiling up at me occasionally. He was short and small with a wiry build and coal black hair. His eyes were a lighter brown.
"You like the food?" he asked.
I was holding my plate in my lap. Several bites of corn remained.
"Oh, yes," I said, and took a bite. I noticed again how slowly and deliberately he chewed and tried to do the same, and then it struck me that all of the priests had been eating that way.
"Are the vegetables grown here at the mission?" I asked. He hesitated before answering, swallowing slowly.
"Yes, food is very important."
"Do you meditate with the plants?" I asked.
He looked at me with obvious surprise. "You have read Manuscript?" he asked.
"Yes, the first four insights."
"Have you grown food?" he asked.
"Oh no. I'm just learning about all this."
"Do you see energy fields?"
"Yes, sometimes."
We sat in silence for a few minutes while he carefully ate several more bites.
"Food is the first way of gaining energy," he said.
I nodded.
"But in order to totally absorb energy in food, the food must be appreciated, eh..."
He seemed to be struggling for the right English word. "Savored," he finally said. "Taste is the doorway. You must appreciate taste. This is the reason for prayer before eating. It is not just about being thankful, it is to make eating a holy experience, so the energy from the food can enter your body."
He looked closely at me, as though to see whether I understood.
I nodded without comment. He looked thoughtful.
What he was telling me, I reasoned, was that this kind of deliberate appreciation of food was the real purpose behind the normal religious custom of being thankful, with the result being a higher energy absorption of the food.
"But taking in food is only first step," he said. "After personal energy is increased in this way, you become more sensitive to energy in all things...and then you learn to take this energy into yourself without eating."
I nodded affirmatively.
"Everything around us," he continued, "has energy. But each has its own special kind. That is why some places increase energy more than others. It depends on how your shape fits with the energy there."
"Is that what you were doing up there earlier?" I asked. "Increasing your energy?"
He looked pleased. "Yes."
"How do you do that?" I asked.
"You have to be open, to connect, to use your sense of appreciation, as in seeing fields. But you take this one step further so that you get the sensation of being filled up."
"I'm not sure I follow you."
He frowned at my denseness. "Would you like to walk back to the sitting place? I can show you."
"Okay," I said. "Why not?"
I followed as he led the way across the courtyard and back to the sitting area. As we arrived, he stopped and looked around, as if surveying the area for something.
"Over there," he said, pointing to a spot that bordered the dense forest.
We followed the path as it wound through the trees and bushes. He picked a spot in front of a large tree that grew out of a mound of boulders so that its huge trunk seemed to be perched on the rocks. Its roots wrapped around and through the boulders before finally reaching the soil. Flowering shrubs of some type grew in semicircles in front of the tree and I could detect a strange sweet fragrance from the shrub's yellow blossoms. The dense forest provided a solid sheet of green in the background.
The priest directed me to sit down in a clear spot amid the bushes, facing the gnarled tree. He sat beside me.
"Do you think the tree is beautiful?" he asked.
"Yes."
"Then, uh...feel it...uh..."
He seemed to be struggling again to find the word. He thought for a moment and then asked, "Father Sanchez told me that you had an experience on the ridge; can you remember how you felt?"
"I felt light and secure and connected."
"How connected?"
"That's hard to describe," I said. "Like the whole landscape was part of me."
"But what was the feeling?"
I thought for a minute. What was the feeling? Then it came to me.
"Love," I said. "I guess I felt a love for everything."
"Yes," he said. "That is it. Feel that for the tree."
"But wait a minute," I protested. "Love is something that just happens. I can't make myself love anything."
"You do not make yourself love," he said. "You allow love to enter you. But to do this you must position your mind by remembering what it felt like and try to feel it again."
I looked at the tree and tried to remember the emotion on the ridge. Gradually, I began to admire its shape and presence. My appreciation grew until I actually felt an emotion of love. The feeling was exactly the one I remember as a child for my mother and as a youth for the special little girl that was the object of my "puppy love." Yet even though I had been looking at the tree, this particular love existed as a general background feeling. I was in love with everything.
The priest slid away several feet and looked back at me intensely. "Good," he said. "You are accepting the energy."
I noticed his eyes were slightly out of focus.
"How do you know?" I asked.
"Because I can see your energy field getting larger."
I closed my eyes and tried to reach the intense feelings I had acquired on the ridge top but I couldn't duplicate the experience. What I was feeling was on the same continuum but to a lesser degree than before. The failure made me frustrated.
"What happened?" he asked. "Your energy fell."
"I don't know," I said. "I just couldn't do it as strongly as before."
He just looked at me, amused at first, then with impatience.
"What you experienced on the ridge was a gift, a breakthrough, a look at a new way. Now you must learn to get that experience by yourself, a little at a time."
He slid back a foot farther and looked at me again. "Now try more."
I closed my eyes and tried to feel deeply. Eventually the emotion swept over me again. I stayed with it, attempting to increase the feeling by small increments. I focused my regard on the tree.
"That is very good," he suddenly said. "You are receiving energy and giving it to the tree."
I looked at him squarely. "I'm giving it back to the tree?"
"When you appreciate the beauty and uniqueness of things," he explained, "you receive energy. When you get to a level where you feel love, then you can send the energy back just by willing it so." For a long time I sat there with the tree. The more I focused attention on the tree and admired its shape and color, the more love I seemed to acquire generally, an unusual experience. I imagined my energy flowing over and filling up the tree, but I couldn't see it. Without changing my focus, I noticed the priest get up and begin to walk away.
"What does it look like when I'm giving energy to the tree?" I asked.
He described the perception in detail and I recognized it as the same phenomenon I had witnessed when Sarah projected energy onto the philodendron at Viciente. Though Sarah was successful, she apparently wasn't aware that a state of love was necessary for the projection to take place. She must have been acquiring a love state naturally, without realizing it.
The priest walked down toward the courtyard and out of my range of vision. I remained in the sitting area until dusk.
The two priests nodded politely as I entered the house. A roaring fire fended off the evening chill and several oil lamps illuminated the front room. The air was filled with the smell of vegetable, or perhaps potato, soup. On the table was a ceramic bowl, several spoons, and a plate holding four slices of bread.
One of the priests turned and left without looking at me and the other kept his eyes lowered and nodded at a large cast iron pot sitting on the hearth by the fire. A handle protruded from under its lid. As soon as I saw the pot, the second priest asked, "Is there anything else you need?"
"I think not," I said. "Thank you."
He nodded and left the house as well, leaving me alone. I lifted the lid from the pot—potato soup. It smelled rich and delicious. I poured several ladles full into a bowl and sat down at the table, then pulled the part of the Manuscript Sanchez had given me from my pocket and placed it beside my plate, intending to read. But the soup tasted so good that I focused entirely on eating. After I finished, I placed the dishes in a large pan and stared at the fire, hypnotized, until the flames burned low. Then I turned down the lamps and went to bed.
The next morning, I awakened at dawn feeling totally refreshed. Outside a morning mist rolled through the courtyard. I stoked up the fire and put several pieces of kindling on the coals and fanned it until it caught up. I was about to look through the kitchen for food when I heard Sanchez's truck approaching.
I walked outside as he emerged from behind the church, a backpack in one arm and several packages in the other.
"I have some news," he said, motioning me to follow him back inside the house.
Several other priests appeared with hot corn cakes and grits and more dried fruit. Sanchez greeted the men, then sat with me at the table as the priests scurried away.
"I attended a meeting of some of the priests of the Southern Council," he said. "We were there to talk about the Manuscript. At issue was the government's aggressive actions. This was the first time any group of priests has met publicly in support of this document, and we were just beginning our discussion when a government representative knocked on the door and asked to be admitted."
He paused as he served his plate and took several bites, chewing them thoroughly. "The representative," he continued, "assured us that the government's sole purpose was to protect the Manuscript from outside exploitation. He informed us that all copies being held by Peruvian citizens must be licensed. He said he understood our concern but asked us to comply with this law and turn in our copies. He promised that government duplicates would be issued back to us at once."
"Did you turn them in?" I asked.
"Of course not."
We both ate for a few minutes. I tried to overchew, to appreciate the taste.
"We asked about the violence in Cula," he went on, "and he told us that this was a necessary reaction against a man called Jensen, that several of his men were armed agents from another country. He said they planned to find and steal the undiscovered part of the Manuscript and remove it from Peru, so the government had no choice but to arrest them. There was no mention of you or your friends."
"Did you believe the government man?"
"No, we didn't. After he left we continued the meeting. We agreed that our policy would be one of quiet resistance. We will continue to make copies and distribute them carefully."
"Will your church leaders allow you to do that?" I asked.
"We don't know," Sanchez said. "The church elders have disapproved of the Manuscript but so far have not seriously investigated who is involved with it. Our main concern is a Cardinal who resides farther north, Cardinal Sebastian. He is the most vocal in opposition to the Manuscript and is very influential. If he convinces the leadership to issue strong proclamations, then we will have a very interesting decision to make."
"Why is he so opposed to the Manuscript?"
"He is afraid."
"Why?"
"I haven't spoken with him in a long time, and we always avoid the subject of the Manuscript. But I believe he thinks man's role is to participate in the cosmos ignorant of spiritual knowledge—by faith alone. He thinks the Manuscript will undermine the status quo, the lines of authority in the world."
"How would it do that?"
He smiled and tilted his head back slightly. "The truth shall set you free."
I was looking at him, trying to understand what he meant, eating the last of the bread and fruit on my plate. He ate several more tiny bites and pushed his chair back.
"You seem much stronger," he said. "Did you talk with anyone here?"
"Yes," I replied. "I learned a method of connecting with the energy from one of the priests. I...didn't catch his name. He was in the sitting area while we were talking in the courtyard yesterday morning, remember? When I spoke with him later, he showed me how to absorb energy and then to project it back."
"His name is John," Sanchez said, then nodded for me to go on.
"It was an amazing experience," I said. "By remembering the love I felt I was able to open up. I sat up there all day simmering in it. I didn't reach the state I experienced on the ridge but I got close."
Sanchez looked more serious. "The role of love has been misunderstood for a long time. Love is not something we should do to be good or to make the world a better place out of some abstract moral responsibility, or because we should give up our hedonism. Connecting with energy feels like excitement, then euphoria, and then love. Finding enough energy to maintain that state of love certainly helps the world, but it most directly helps us. It is the most hedonistic thing we can do."
I agreed, then noticed he had moved his chair back several more feet and was looking at me intensely, his eyes unfocused.
"So what does my field look like," I asked.
"It is much larger," he said. "I think you feel very good."
"I do."
"Good. That is what we do here."
"Tell me about that," I said.
"We train priests to go farther into the mountains and work with the Indians. It is a lonely job and the priests must have great strength. All of the men here have been screened thoroughly and all have one thing in common: each has had one experience he calls mystical.
"I have been studying this kind of experience for many years," he continued, "even before the Manuscript was found, and I believe that when one has already encountered a mystical experience, getting back into this state and raising one's personal energy level comes much easier. Others can also connect but it takes longer. A strong memory of the experience, as I think you learned, facilitates its re-creation. After that, one slowly builds back."
"What does a person's energy field look like when this is happening?"
"It grows outward and changes color slightly."
"What color?"
"Normally from a dull white toward green and blue. But the most important thing is that it expands. For instance, during your mystical encounter on the ridge top, your energy flashed outward into the whole universe. Essentially you connected and drew energy from the entire cosmos and in turn your energy swelled to encompass everything, everywhere. Can you remember how that felt?"
"Yeah," I said. "I felt as though the entire universe was my body and I was just the head, or perhaps more accurately, the eyes."
"Yes," he said, "and at that moment, your energy field and that of the universe were the same. The universe was your body."
"I had a strange memory during that time," I said. "I seemed to remember how this larger body, this universe of mine, evolved. I was there. I saw the first stars formed from simple hydrogen and then saw more complex matter evolve in successive generations of these suns. Only I didn't see matter. I saw matter as simple vibrations of energy that were evolving systematically into ever more complex higher states. Then...life began and evolved to a point where humans appeared..."
I stopped suddenly and he noticed my changed mood.
"What's wrong?" he said.
"That's where the memory of evolution stopped," I explained, "with humans. I felt as if the story continued, but I couldn't quite grasp it."
"The story does go on," he said. "Humans are carrying forth the universe's evolution toward higher and higher vibrational complexity."
"How?" I asked.
He smiled but didn't answer. "Let's talk about this later. I really must check on a few things. I'll see you in an hour or so."
I nodded. He picked up an apple and walked out. I wandered outside behind him, then remembered the copy of the Fifth Insight in the bedroom and retrieved it. Earlier I had been thinking of the forest where Sanchez had been sitting when I had first met him. Even in my fatigue and panic I had noticed that the place was extraordinarily beautiful, so I walked down the road toward the west until I came to the exact spot, then sat down there myself.
Leaning back against a tree, I cleared my mind and spent several minutes looking around. The morning was bright and breezy and I watched the wind as it whipped the branches above my head. The air felt refreshing as I took in several deep breaths. During a lull in the wind, I took out the Manuscript and looked for the page where I had stopped reading. Before I could locate it, however, I heard the sound of a truck engine.
I lay flat beside the tree and attempted to determine its direction. The sound was coming from the mission. As it grew closer, I could see it was Sanchez's old truck, with him driving.
"I thought you might be here," he said, as he pulled up to where I was standing. "Get in. We need to leave."
"What's going on?" I asked, sliding into the passenger seat.
He drove on toward the main road. "One of my priests told me of a conversation he overheard in the village. Some government officials are in town and they were asking questions about me and the mission."
"What do you think they want?"
He looked at me reassuringly. "I don't know. Let's just say. I'm not as certain as before that they will leave us alone. I thought, as a precaution, that we should drive up into the mountains. One of my priests lives near Machu Picchu. His name is Father Carl. We'll be safe at his house until we can better read the situation." He smiled. "I want you to see Machu Picchu anyway."
I suddenly had a flash of suspicion that he had made a deal and was taking me somewhere to turn me in. I decided to proceed cautiously and to stay alert until I found out for sure.
"Did you finish the translation?" he asked.
"Most of it," I said.
"You had asked about human evolution. Did you finish that part?"
"No."
He turned his eyes from the road and looked at me intensely. I pretended not to notice.
"Is something wrong?" he asked.
"Nothing." I said. "How long will it take to get to Machu Picchu?"
"About four hours."
I wanted to remain silent and let Sanchez talk, hoping he might give himself away, but I couldn't control my curiosity about evolution.
"So how do humans further evolution?" I asked.
He glanced at me. "What do you think?"
"I don't know," I said. "But when I was up on the ridge I thought it might have something to do with the meaningful coincidences that the First Insight talks about."
"That's right," he said. "That would fit with the other insights, wouldn't it?"
I was confused. I almost understood but I couldn't quite grasp it. I remained silent.
"Think of how the Insights fall into sequence," he said. "The First Insight occurs when we take the coincidences seriously. These coincidences make us feel there is something more, something spiritual, operating underneath everything we do.
"The Second Insight institutes our awareness as something real. We can see that we have been preoccupied with material survival, with focusing on controlling our situation in the universe for security, and we know our openness now represents a kind of waking up to what is really going on.
"The Third Insight begins a new view of life. It defines the physical universe as one of pure energy, an energy that somehow responds to how we think.
"And the Fourth exposes the human tendency to steal energy from other humans by controlling them, taking over their minds, a crime in which we engage because we so often feel depleted of energy, and cut off. This shortage of energy can be remedied, of course, when we connect with the higher source. The universe can provide all we need if we can only open up to it. That is the revelation of the Fifth Insight.
"In your case," he continued, "you had a mystical experience that allowed you to briefly see the magnitude of energy one can acquire. But this state is like leaping ahead of everyone else and glimpsing the future. We can't maintain it for very long. Once we try to talk to someone who is operating in normal consciousness, or try to live in a world where conflict is still happening, we get knocked out of this advanced state and fall back to the level of our old selves.
"And then," he continued, "it is a matter of slowly regaining what we glimpsed, a little at a time, and to begin a progression back toward that ultimate consciousness. But to do this, we must learn to consciously fill up with energy because this energy brings on the coincidences, and the coincidences help us actualize the new level on a permanent basis."
I must have looked puzzled because he said, "Think about it: when something occurs beyond chance to lead us forward in our lives, then we become more actualized people. We feel as though we are attaining what destiny is leading us to become. When this occurs, the level of energy that brought on the coincidences in the first place is instituted in us. We can be knocked out of it and lose energy when we are afraid, but this level serves as a new outer limit which can be regained quite easily. We have become a new person. We exist at a level of higher energy, at a level—get this—of higher vibration.
"Can you see the process now? We fill up, grow, fill up and grow again. That is how we as humans continue the evolution of the universe to a higher and higher vibration."
He paused for a moment then seemed to think of something he wanted to add. "This evolution has been going on unconsciously throughout human history. That explains why civilization has progressed and why humans have grown larger, lived longer, and so forth. Now however, we are making the whole process conscious. That is what the Manuscript is telling us. That is what this movement toward worldwide spiritual consciousness is all about."
I was listening intensely, totally fascinated with what Sanchez was telling me. "So all we have to do is fill up with energy, as I learned to do with John, and the coincidences begin to happen more consistently?"
"Well yes, but that's not as easy as you think. Before we can connect with the energy on a permanent basis there is one more hurdle we must pass. The next insight, the Sixth, deals with this issue."
"What is it?"
He looked squarely at me. "We must face up to our particular way of controlling others. Remember, the Fourth Insight reveals that humans have always felt short of energy and have sought to control each other to acquire the energy that flows between people. The Fifth then shows us that an alternative source exists, but we can't really stay connected with this source until we come to grips with the particular method that, we, as individuals, use in our controlling, and stop doing it—because whenever we fall back into this habit, we get disconnected from the source.
"Getting rid of this habit isn't easy because it's always unconscious at first. The key to letting it go is to bring it fully into consciousness, and we do that by seeing that our particular style of controlling others is one we learned in childhood to get attention, to get the energy moving our way, and we're stuck there. This style is something we repeat over and over again. I call it our unconscious _control drama_.
"I call it a drama because it is one familiar scene, like a scene in a movie, for which we write the script as youths. Then we repeat this scene over and over in our daily lives without being aware of it. All we know is that the same kind of events happen to us repeatedly. The problem is if we are repeating one particular scene over and over, then the other scenes of our real life movie, the high adventure marked by coincidences, can't go forward. We stop the movie when we repeat this one drama in order to manipulate for energy."
Sanchez slowed the truck and moved carefully forward through a series of deep ruts in the road. I realized I was frustrated. I couldn't quite grasp how a control drama worked. I almost expressed my feelings to Sanchez but I couldn't. I realized I still felt distant from him and I didn't care to reveal myself.
"Did you understand?" he asked.
"I don't know," I said curtly. "I don't know if I have a control drama."
He looked at me with the warmest regard and chuckled out loud. "Is that so?" he asked. "Then why do you always act so aloof?"
[CLEARING
THE PAST](CelestineProph_toc.html#chap-6)
Ahead the road narrowed and bent sharply around the sheer rock face of the mountain. The truck bounced over several large rocks and slowly proceeded through the curve. Below, the Andes rose in massive gray ridges above banks of snow-white clouds.
I looked at Sanchez. He was leaning over the steering wheel, tense. For most of the day we had been scaling steep inclines and edging through passages made more narrow by fallen rock. I had wanted to broach the subject of control dramas again but the time seemed inappropriate. Sanchez appeared to need every ounce of energy for driving, and besides, I wasn't clear on what I wanted to ask. I had read the rest of the Fifth Insight and it had echoed exactly the points Sanchez had related to me. The idea of getting rid of my style of controlling seemed desirable, especially if it would make my evolution accelerate, but I still couldn't grasp how a control drama operated.
"What are you thinking about?" Sanchez asked.
"I finished reading the Fifth Insight," I said. "And I was thinking about these dramas. Considering what you said about me, I assume you think my drama has something to do with being aloof?"
He didn't reply. He was staring up the road. A hundred feet ahead, a large four-wheel drive vehicle blocked the way. A man and a woman stood on a rock precipice fifty feet from the vehicle. They returned our gaze.
Sanchez stopped the truck and looked them over for an instant, then smiled. "I know the woman," he said. "That's Julia. It's all right. Let's talk with them."
Both the man and woman were of dark complexion and appeared Peruvian. The woman was older, appearing to be about fifty, while the man looked approximately thirty. As we got out of the truck, the woman walked toward us.
"Father Sanchez!" she said as she approached.
"How are you Julia?" Sanchez replied. The two embraced, then Sanchez introduced me to Julia. Julia, in turn, introduced her companion, Rolando.
Saying nothing else, Julia and Sanchez turned their backs on us and walked toward the overhang where Julia and Rolando had previously been standing. Rolando looked at me intensely and I instinctively turned and walked in the direction of the other two people. Rolando followed, still looking at me as though he wanted something. Although his hair and features were young, his complexion was ruddy and red. For some reason I felt anxious.
Several times as we walked to the edge of the mountain, he looked as though he was going to speak, but each time I turned my eyes away and increased my pace. He remained silent. When we reached the precipice, I sat on a ledge to prevent him from sitting next to me. Julia and Sanchez were above me about twenty-five feet, sitting together on a large boulder.
Rolando sat as close to me as possible. Although his constant stare bothered me, I was slightly curious about him at the same time.
He caught me looking at him and asked, "Are you here for the Manuscript?"
I took a long time to answer. "I've heard of it."
He looked perplexed. "Have you seen it?"
"Some," I said. "Do you have something to do with it?"
"I am interested," he said, "but I have not seen any copies yet." A period of silence followed.
"Are you from the United States?" he asked.
The question disturbed me, so I decided not to answer.
Instead I asked, "Does the Manuscript have anything to do with the ruins at Machu Picchu?"
"I don't think so," he replied. "Except that it was written about the same time they were built."
I remained silent, looking out at the incredible view of the Andes. Sooner or later, if I remained quiet, he would divulge what he and Julia were doing here and how it concerned the Manuscript. We sat for twenty minutes with no conversation. Finally, Rolando stood and walked up to where the others were talking.
I was perplexed as to what to do. I had avoided sitting with Sanchez and Julia because I had the distinct impression they wanted to talk alone. For perhaps another thirty minutes, I remained there, gazing out at the rocky peaks and straining to overhear the conversation above me. None of them paid me the slightest bit of attention. Finally I decided to join them, but before I could move, the three of them stood and began walking toward Julia's vehicle. I cut across the rocks toward them.
"They have to go," Sanchez remarked as I approached.
"I'm sorry we did not have time to talk," Julia said. "I hope we see you again." She was looking at me with the same warmth Sanchez often displayed. As I nodded, she cocked her head slightly and added, "In fact, I have a feeling we will see you soon."
As we strolled down the rocky path, I felt the need to say something in response but I couldn't think. When we reached her vehicle Julia only nodded slightly and said a quick good-bye. Both she and Rolando got in and Julia drove away toward the north, the way Sanchez and I had come. I felt puzzled by the entire experience.
Once we were in our vehicle, Sanchez asked, "Did Rolando fill you in on Wil?"
"No!" I said. "Had they seen him?"
Sanchez looked confused, "Yes, they saw him at a village forty miles east of here."
"Did Wil say anything about me?"
"Julia said Wil mentioned being separated from you. She said Wil talked mainly with Rolando. Didn't you tell Rolando who you were?"
"No, I didn't know if I could trust him."
Sanchez looked at me in total bewilderment. "I told you it was fine to talk with them. I have known Julia for years. She owns a business in Lima, but since the discovery of the Manuscript she has been looking for the Ninth Insight. Julia would not be traveling with anyone untrustworthy. There was no danger. Now you missed what could have been important information."
Sanchez looked at me with a serious expression. "This is a perfect example of how a control drama interferes," he said. "You were so aloof you didn't allow an important coincidence to take place."
I must have appeared defensive. "It's all right," he said, "everyone plays a drama of one kind or another. At least now you understand how yours works."
"I don't understand!" I said. "What exactly am I doing?"
"Your way of controlling people and situations," he explained, "in order to get energy coming your way, is to create this drama in your mind during which you withdraw and look mysterious and secretive. You tell yourself that you're being cautious but what you're really doing is hoping someone will be pulled into this drama and will try to figure out what's going on with you. When someone does, you remain vague, forcing them to struggle and dig and try to discern your true feelings.
"As they do so, they give you their full attention and that sends their energy to you. The longer you can keep them interested and mystified, the more energy you receive. Unfortunately, when you play aloof, your life tends to evolve very slowly because you're repeating this same scene over and over again. If you had opened up to Rolando, your life movie would have taken off in a new and meaningful direction."
I felt myself becoming depressed. All this was just another example of what Wil had pointed out when he saw me resisting giving information to Reneau. It was true. I did tend to hide what I really thought. I looked out the window as we followed the road higher into the peaks. Sanchez concentrated again on avoiding the fatal drop-offs. When the road straightened, he looked over at me and said, "The first step in the process of getting clear, for each of us, is to bring our particular control drama into full consciousness. Nothing can proceed until we really look at ourselves and discover what we are doing to manipulate for energy. This is what has just happened to you."
"What is the next step?" I asked.
"Each of us must go back into our past, back into our early family life, and see how this habit was formed. Seeing its inception keeps our way of controlling in consciousness. Remember, most of our family members were operating in a drama themselves, trying to pull energy out of us as children. This is why we had to form a control drama in the first place. We had to have a strategy to win energy back. It is always in relation to our family members that we develop our particular dramas. However, once we recognize the energy dynamics in our families, we can go past these control strategies and see what was really happening."
"What do you mean, really happening?"
"Each person must reinterpret his family experience from an evolutionary point of view, from a spiritual point of view, and discover who he really is. Once we do that, our control drama falls away and our real lives take off."
"So how do I begin?"
"By first understanding how your drama was formed. Tell me about your father."
"He is a good man who is fun-loving and capable but..." I hesitated, not wanting to sound ungrateful toward my father.
"But what?" Sanchez asked.
"Well," I said, "he was always critical. I could never do anything right."
"How did he criticize you?" Sanchez asked.
A picture of my father, young and strong, appeared in my mind. "He asked questions, then found something wrong with the answers."
"And what happened to your energy?"
"I guess I felt drained so I tried to keep from telling him anything."
"You mean you got vague and distant, trying to say things in a way that would get his attention but not reveal enough to give him something to criticize. He was the interrogator and you dodged around him with your aloofness?"
"Yeah, I guess. But what is an interrogator?"
"An interrogator is another kind of drama. People who use this means of gaining energy, set up a drama of asking questions and probing into another person's world with the specific purpose of finding something wrong. Once they do, then they criticize this aspect of the other's life. If this strategy succeeds then the person being criticized is pulled into the drama. They suddenly find themselves becoming self-conscious around the interrogator and paying attention to what the interrogator is doing and thinking about, so as not to do something wrong that the interrogator would notice. This psychic deference gives the interrogator the energy he desires.
"Think about the times you have been around someone like this. When you get caught up in this drama, don't you tend to act a certain way so that the person won't criticize you? He pulls you off your own path and drains your energy because you judge yourself by what he might be thinking."
I remembered the feeling exactly, and the person that came to mind was Jenson.
"So my father was an interrogator?" I asked.
"That's what it sounds like."
For a moment I was lost in thought about my mother's drama. If my father was an interrogator, what was my mother?
Sanchez asked me what I was thinking.
"I was wondering about my mother's control drama," I said. "How many different kinds are there?"
"Let me explain the classifications spoken of in the Manuscript," Sanchez said. "Everyone manipulates for energy either aggressively, directly forcing people to pay attention to them, or passively, playing on people's sympathy or curiosity to gain attention. For instance, if someone threatens you, either verbally or physically, then you are forced, for fear of something bad happening to you, to pay attention to him and so to give him energy. The person threatening you would be pulling you into the most aggressive kind of drama, what the Sixth Insight calls the intimidator.
"If, on the other hand, someone tells you all the horrible things that are already happening to them, implying perhaps that you are responsible, and that, if you refuse to help, these horrible things are going to continue, then this person is seeking to control at the most passive level, with what the Manuscript calls a poor me drama. Think about this one for a moment. Haven't you ever been around someone who makes you feel guilty when you're in their presence, even though you know there is no reason to feel this way?"
"Yes."
"Well; it's because you have entered the drama world of a poor me. Everything they say and do puts you in a place where you have to defend against the idea that you're not doing enough for this person. That's why you feel guilty just being around them."
I nodded.
"Anyone's drama can be examined," he continued, "according to where it falls on this spectrum from aggressive to passive. If a person is subtle in their aggression, finding fault and slowly undermining your world in order to get your energy, then, as we saw in your father, this person would be an interrogator. Less passive than the poor me would be your aloofness drama. So the order of dramas goes this way: intimidator, interrogator, aloof, and poor me. Does that make sense?"
"I guess. You think everyone falls somewhere among these styles?"
"That's correct. Some people use more than one in different circumstances, but most of us have one dominant control drama that we tend to repeat, depending on which one worked well on the members of our early family."
It suddenly dawned on me. My mother did exactly the same thing to me as my father. I looked at Sanchez. "My mother. I know what she was. She was also an interrogator."
"So you had a double dose," Sanchez said. "No wonder you're so aloof. But at least they weren't intimidating you. At least you never feared for your safety."
"What would have happened in that case?"
"You would have become stuck in a poor me drama. Do you see how this works? If you are a child and someone is draining your energy by threatening you with bodily harm then being aloof doesn't work. You can't get them to give you energy by playing coy. They don't give a damn what's going on inside you. They're coming on too strong. So you're forced to become more passive and to try the poor me approach, appealing to the mercy of the person, guilt tripping them about the harm they are doing.
"If this doesn't work, then, as a child you endure until you are big enough to explode against the violence and fight aggression with aggression." He paused. "Like the child you told me about, the one in the Peruvian family that served you dinner.
"A person goes to whatever extreme necessary to get attention energy in their family. And after that, this strategy becomes their dominant way of controlling to get energy from everyone, the drama they constantly repeat."
"I understand the intimidator," I said, "but how does the interrogator develop?"
"What would you do if you were a child and your family members were either not there or ignored you because they were preoccupied with their careers or something?"
"I don't know."
"Playing aloof would not get their attention; they wouldn't notice. Wouldn't you have to resort to probing and prying and finally finding something wrong in these aloof people in order to force attention and energy? This is what an interrogator does."
I began to get the insight. "Aloof people create interrogators!"
"That's right."
"And interrogators make people aloof! And intimidators create the poor me approach, or if this fails, another intimidator!"
"Exactly. That's how control dramas perpetuate themselves. But remember, there is a tendency to see these dramas in others but to think that we ourselves are free from such devices. Each of us must transcend this illusion before we can go on. Almost all of us tend to be stuck, at least some of the time, in a drama and we have to step back and look at ourselves long enough to discover what it is."
I was silent for a moment. Finally I looked at Sanchez again and asked, "Once we see our drama, what happens next?"
Sanchez slowed the truck in order to look me in the eyes. "We are truly free to become more than the unconscious act we play. As I said before, we can find a higher meaning for our lives, a spiritual reason we were born to our particular families. We can begin to get clear about who we really are."
"We're almost there," Sanchez said. The road was cresting between two peaks. As we passed the huge formation on our right, I saw a small house ahead. It backed up to another majestic pinnacle of rock.
"His truck isn't here," Sanchez said.
We parked and walked to the house. Sanchez opened the door and walked inside while I waited. I took in several breaths. The air was cool and very thin. Overhead, the sky was dark gray and thick with clouds. It looked as though it might rain.
Sanchez walked back to the door, "No one is inside. He must be at the ruins."
"How do we get there?"
He suddenly looked exhausted. "They're up ahead about a half mile," he said, handing me the keys to the truck. "Follow the road past the next ridge and you'll see them down below. Take the truck. I want to stay here and meditate."
"Okay, I will," I said, walking around to get in the vehicle.
I drove forward into a little valley and then up the next ridge, anticipating the view. The sight did not disappoint me. As I crested the ridge I saw the full splendor of the ruins at Machu Picchu: a temple complex of massive, carefully shaped rocks weighing tons sitting atop each other on the mountain. Even in the dull cloudy light, the beauty of the place was overwhelming.
I stopped the truck and soaked up the energy for ten or fifteen minutes. Several groups of people were walking through the ruins. I saw a man wearing a priest's collar leave the remains of a building and walk toward a vehicle parked nearby. Because of the distance, and because the man wore a leather jacket rather than a priest's robe, I couldn't be sure it was Father Carl.
I started the truck and drove closer. As soon as he heard the sound he looked up and smiled, apparently recognizing the vehicle as belonging to Sanchez. When he saw me inside he looked interested and walked over. His build was short and squat, with dull brown hair and pudgy features, with deep blue eyes. He looked to be about thirty. "I'm with Father Sanchez," I said, stepping from the vehicle and introducing myself. "He's up at your house."
He offered his hand. "I'm Father Carl."
I glanced past him to the ruins. The cut stone was even more impressive when in close proximity.
"Is this the first time you've been here?" he asked.
"Yes, it is," I replied. "I've heard about this place for years but I never anticipated this."
"It is one of the highest energy centers in the world," he said.
I looked closely at him. Clearly he spoke about energy in the same sense it was used in the Manuscript. I nodded affirmatively, then said, "I'm at a point where I'm consciously trying to build energy and deal with my control drama." I felt somewhat pretentious at saying that but comfortable enough to be honest.
"You don't seem too aloof," he said.
I was startled. "How did you know that was my drama?" I asked.
"I've developed an instinct for it. That's why I'm here."
"You help people see their way of controlling?"
"Yes, and their true self." His eyes shone with sincerity. He was totally direct, with no hint of embarrassment at revealing himself to a stranger.
I remained silent so he said, "You understand the first five insights?"
"I've read most of them," I said, "and I've talked with several people."
As soon as I made this statement, I realized I was being too vague. "I think I understand the first five," I added. "It's number six that I'm not clear about."
He nodded, then said, "Most of the people I talk with haven't even heard of the Manuscript. They come up here and are entranced by the energy. That alone makes them rethink their lives."
"How do you meet these people?"
He looked at me with a knowing expression. "They seem to find me."
"You said you help them find their true self; how?"
He took a long breath, then said, "There's only one way. Each of us has to go back to our family experience, that childhood time and place, and review what happened. Once we become conscious of our control drama, then we can focus on the higher truth of our family, the silver lining so to speak, that lies beyond the energy conflict. Once we find this truth, it can energize our lives, for this truth tells us who we are, the path we are on, what we are doing."
"That's what Sanchez has told me," I said. "I want to know more about how to find this truth."
He zipped up his coat against the late afternoon chill. "I hope we can talk more about it later," he said. "Right now I would like to greet Father Sanchez."
I looked out at the ruins, and he added, "Feel free to look around as long as you would like. I'll see you back at my house later."
For the next hour and a half, I walked through the ancient site. At certain spots I would linger, feeling more buoyant than at others. I wondered with fascination about the civilization that had built these temples. How did they move these stones up here and place them atop one another in this fashion? It seemed impossible.
As my intense interest in the ruins began to wane, my thoughts turned to my personal situation. Although my circumstances had not changed, I felt less fearful now. Sanchez's confidence had reassured me. I had been stupid to doubt him. And I already liked Father Carl.
As darkness descended I walked back to the truck and returned to Father Carl's house. As I drove up I could see the two men standing close to each other inside. When I entered I heard laughter. Both were busy in the kitchen, preparing dinner. Father Carl greeted me and escorted me to a chair. I sat down lazily in front of a large fire in the fireplace and looked around.
The room was large, and paneled with wide boards which were lightly stained. I could see two other rooms, bedrooms apparently, linked by a narrow hallway. The house was lit with low wattage bulbs and I thought I could detect the faint hum of a generator.
When the preparations were completed, I was summoned to a rough plank table. Sanchez offered a brief prayer, and then we ate, the two men continuing to talk. Afterward we sat together by the fire.
"Father Carl has spoken with Wil," Sanchez said.
"When?" I asked, immediately excited.
"Wil came through here several days ago," Father Carl said. "I had met him a year ago and he came by to bring me some information. He said he thought he knew who was behind the governmental action against the Manuscript."
"Who?" I asked.
"Cardinal Sebastian," Sanchez interjected.
"What is he doing?" I asked.
"Apparently," Sanchez said, "he is using his influence with the government to increase the military pressure against the Manuscript. He has always preferred to work quietly through the government rather than force a division within the church. Now he is intensifying his efforts. Unfortunately, it may be working."
"What do you mean?" I asked.
"Except for the few priests of the Northern Council and a few others like Julia and Wil, no one else seems to have copies any longer."
"What about the scientists at Viciente?" I asked.
Both men were silent for a moment, then Father Carl said, "Wil told me the government has closed it down. All the scientists were arrested and their research data was confiscated."
"Will the scientific community stand for that?" I asked.
"What choice do they have?" Sanchez said. "Besides, that research wasn't accepted by most scientists anyway. The government is apparently selling the idea that these people were breaking the law."
"I can't believe the government could get away with doing that."
"Apparently they have," Father Carl said. "I made some calls to check and I received the same story. Though they're keeping it very quiet, the government is intensifying its crackdown."
"What do you think will happen?" I asked them both.
Father Carl shrugged his shoulders and Father Sanchez said, "I don't know. It may depend on what Wil finds."
"Why?" I asked.
"He appears to be close to finding the missing part of the Manuscript, the Ninth Insight. Perhaps when he does there will be enough interest to create worldwide intervention here."
"Where did he say he was going?" I asked Father Carl.
"He didn't know, exactly, but he said his intuitions were leading him further north, near Guatemala."
"His intuitions were leading him?"
"Yes, you'll understand that after you get clear about who you are and go on to the Seventh Insight."
I looked at both of them, at how incredibly serene they appeared. "How can you remain so calm?" I asked. "What if they come crashing in here and arrest all of us?"
They gazed at me patiently, then Father Sanchez spoke. "Don't confuse calmness with carelessness. Our peaceful countenance is a measure of how well we are connected with the energy. We stay connected because it is the best thing for us to do, regardless of the circumstances. You understand that, don't you?"
"Yes," I said, "of course. I guess I'm having trouble staying connected myself."
Both men smiled.
"Staying connected," Father Carl said, "will be easier once you get clear on who you are."
Father Sanchez stood up then and walked away, announcing that he would be doing the dishes.
I looked at Father Carl. "Okay," I said. "How do I start getting clear about myself?"
"Father Sanchez tells me," he replied, "that you already understand the control dramas of your parents."
"That's right. They were both interrogators and that made me aloof."
"Okay, now you must look past the energy competition that existed in your family and search for the real reason you were there."
I looked at him blankly.
"The process of finding your true spiritual identity involves looking at your whole life as one long story, trying to find a higher meaning. Begin by asking yourself this question: why was I born to this particular family? What might have been the purpose for that?"
"I don't know," I said.
"Your father was an interrogator; what else was he?"
"You mean, what did he stand for?"
"Yes."
I thought for a moment, then said, "My father genuinely believes in enjoying life, in living with integrity but making the most of what life has to offer. You know, living life to the fullest."
"Has he been able to do this?"
"To some extent, but somehow he always seems to have a run of bad luck just when he thinks he's about to enjoy life the most."
Father Carl squinted his eyes in contemplation. "He believes life is for fun and enjoyment but he hasn't quite pulled it off?"
"Yes."
"Have you thought about why?"
"Not really. I always figured he was unlucky."
"Maybe he hasn't found the way to do it yet?"
"Maybe not."
"What about your mother?"
"She's no longer living."
"Can you see what her life represented?"
"Yes, her life was her church. She stood for Christian principles."
"In what way?"
"She believed in community service and in following God's laws."
"Did she follow God's laws?"
"To the letter, at least so far as her church taught."
"Was she able to convince your father to do the same thing?"
I laughed. "Not really. My mother wanted him to go to church every week, and to be involved in community programs. But as I told you, he was more of a free spirit than that."
"So where did that leave you?"
I looked at him. "I've never thought about it."
"Didn't they both want your allegiance? Wasn't that why they were interrogating you, to make sure you weren't siding with the values of the other? Didn't they both want you to think their way was the best?"
"Yes, you're right."
"How did you respond?"
"I just tried to avoid taking a stand, I guess."
"They both monitored you to see if you were measuring up to their particular views, and unable to please both, you became aloof."
"That's about it," I said.
"What happened to your mother?" he asked.
"She developed Parkinson's disease and died after being sick for a long time."
"Did she remain true to her faith?"
"Absolutely," I said. "Throughout it all."
"So what meaning did she leave you with?"
"What?"
"You're looking for the meaning her life has for you, the reason you were born to her, what you were there to learn. Every human being, whether they are conscious of it or not illustrates with their lives how he or she thinks a human being is supposed to live. You must try to discover what she taught you and at the same time what about her life could have been done better. What you would have changed about your mother is part of what you yourself are working on."
"Why only part?"
"Because how you would improve on your father's life is the other part."
I was still confused.
He placed his hand on my shoulder. "We are not merely the physical creation of our parents; we are also the spiritual creation. You were born to these two people and their lives had an irrevocable effect on who you are. To discover your real self, you must admit that the real you began in a position between their truths. That's why you were born there: to take a higher perspective on what they stood for. Your path is about discovering a truth that is a higher synthesis of what these two people believed."
I nodded.
"So how would you express what your parents taught you?"
"I'm not sure," I replied.
"What do you think?"
"My father thought life was about maximizing his aliveness, his enjoyment of who he was, and he tried to pursue that end. My mother believed more in sacrifice and in spending her time in service to others, denying herself. She felt this is what the scriptures command."
"And you, how do you feel about this?"
"I don't know really."
"Which viewpoint would you choose for yourself, that of your mother, or that of your father?"
"Neither. I mean, life is not that simple."
He laughed. "You're being vague."
"I guess I don't know."
"But if you had to choose one or the other?"
I hesitated, trying to think honestly, then the answer came to me.
"They're both correct," I said, "and incorrect."
His eyes beamed. "How?"
"I'm not sure exactly. But I think a correct life must include both views."
"The question for you," Father Carl said, "is how. How does one live a life that is both? From your mother you received the knowledge that life is about spirituality. From your father you learned that life is about self-enhancement, fun, adventure."
"So my life," I interrupted, "is about somehow combining the two approaches?"
"Yes, for you, spirituality is the question. Your whole life will be about finding one that is self-enhancing. This is the problem your parents were unable to reconcile, the one they left for you. This is your evolutionary question, your quest this lifetime."
The idea propelled me into deep thought. Father Carl said something else but I couldn't concentrate on what he was saying. The waning fire was having a calming effect on me. I realized I was tired.
Father Carl sat up straight and said, "I think you're out of energy for tonight. But let me leave you with one thought. You can go to sleep and never think again of what we have discussed. You can go right back into your old drama, or you can wake up tomorrow and hold on to this new idea of who you are. If you do then you can take the next step in the process, which is to look closely at all the other things that have happened to you since birth. If you view your life as one story, from birth to right now, you'll be able to see how you have been working on this question all along. You'll be able to see how you came to be here in Peru and what you should do next."
I nodded and looked at him closely. His eyes were warm and caring and held the same expression I had seen so often on Wil's face, and Sanchez's.
"Good night," Father Carl said, and walked into the bedroom and closed the door. I unrolled my sleeping bag on the floor and fell quickly to sleep.
I woke up with Wil on my mind. I wanted to ask Father Carl what else he knew of Wil's plans. As I lay there thinking, still zipped in the sleeping bag, Father Carl walked into the room quietly and began rebuilding the fire.
I unzipped the bag and he looked over at me, alerted by the sound.
"Good morning," he said. "How did you sleep?"
"Okay," I replied, standing.
He put fresh kindling on the coals and then larger pieces of firewood.
"What did Wil say he was going to do?" I asked.
Father Carl stood and faced me. "He said he was going to a friend's house to wait for some information he expected, apparently information about the Ninth Insight."
"What else did he say?" I asked.
"Wil told me that he thought Father Sebastian intends to find the last insight himself and seems to be close. Wil thinks that the person who controls the last insight will determine whether the Manuscript ever becomes widely distributed and understood."
"Why?"
"I'm not sure really. Wil was one of the first to ever collect and read the insights. He may understand them better than any man alive. He feels, I think, that the last insight will make all the others become more clear and accepted."
"Do you think he is right?" I asked.
"I don't know," he replied. "I don't understand as much as he does. All I understand is what I am supposed to do."
"What is that?"
He paused momentarily, then replied, "As I said before, my truth is to help people discover who they really are. When I read the Manuscript, this mission became clear to me. The Sixth Insight is my special insight. My truth is helping others grasp this insight. And I'm effective because I've gone through the process myself."
"What was your control drama?" I asked.
He looked at me with amusement. "I was an interrogator."
"You controlled people by finding something wrong with the way they lived their lives?"
"That's right. My father was a poor me and my mother was aloof. They completely ignored me. The only way I could get any attention energy was to pry into what they were doing and then point out something wrong with it."
"And when did you work through this drama?"
"About eighteen months ago, when I met Father Sanchez and began to study the Manuscript. After I really looked at my parents, I realized what my experience with them was preparing me to do. You see, my father stood for accomplishment. He was very goal oriented. He planned his time to the minute and judged himself according to how much he got done. My mother was very intuitive and mystical. She believed that each of us received spiritual guidance and that life was about following this direction."
"What did your father think about that?"
"He thought it was crazy."
I smiled but said nothing.
"Can you see where that left me?" Father Carl asked.
I shook my head. I couldn't quite grasp it.
"Because of my father," he said, "I was sensitized to the idea that life was about accomplishment: having something important to do and getting it done. But at the same time my mother was there to tell me life was about inner direction, an intuitive guidance of some sort. I realized that my life was a synthesis of both viewpoints. I was trying to discover how we are guided inwardly toward the mission only we can do, knowing it is of supreme importance to pursue this mission if we are to feel happy and fulfilled."
I nodded.
"And," he continued, "you can see why I was excited about the Sixth Insight. As soon as I read it, I knew that my work was to help people get clear so that they could develop this sense of purpose."
"Do you know how Wil got on the path he is on?"
"Yes, he shared some of this information with me. Wil's drama was to be aloof, like yours. Also, as in your case, each of his parents was an interrogator and each had a strong philosophy they wanted Wil to adopt. Wil's father was a German novelist who argued that the ultimate destiny of the human race was to perfect itself. His father never advocated anything but the purest of humanitarian principles, but the Nazis used his basic idea of perfection to help legitimize their murderous liquidation of what were falsely claimed to be inferior races.
"The corruption of his theme destroyed the old man and led him to move to South America with his wife and Wil. His wife was a Peruvian who grew up in America and was educated there. She was a writer too, but she was basically Eastern in her philosophical beliefs. She held that life was about reaching an inner enlightenment, a higher consciousness marked by peace of mind and detachment from the things of the world. According to her, life was not about perfection; it was about letting go of the need to perfect anything, to go anywhere...Can you see where this left Wil?"
I shook my head.
"He was left," Father Carl continued, "in a difficult position. His father championed the Western idea of working for progress and perfection and his mother held the Eastern belief that life was only about reaching inner peace, nothing else.
"These two people had prepared Wil to work on integrating the main philosophical differences between Eastern and Western culture, although he didn't know it at first. He first became an engineer dedicated to progress and then a simple guide who sought peace by bringing people to the beautiful, inwardly moving places in this country.
"But searching out the Manuscript awakened all this in him. The insights speak directly to his main question. They reveal that the thought of both East and West can indeed be integrated into a higher truth. They show us that the West is correct in maintaining that life is about progress, about evolving toward something higher. Yet the East is also correct in emphasizing that we must let go of control with the ego. We can't progress by using logic alone. We have to attain a fuller consciousness, an inner connection with God, because only then can our evolution toward something better be guided by a higher part of ourselves.
"When Wil began to discover the insights, his whole life began to flow. He met Jose, the priest who first found the Manuscript and had it translated. Soon after that, he met the owner of Viciente and helped start the research there. And at about the same time, he met Julia, who was in business, but was also guiding people to the virgin forests.
"It was with Julia that Wil had the most affinity. They hit it off immediately because of the similarity in the questions they pursued. Julia grew up with a father who talked of spiritual ideas but in a capricious and flaky way. Her mother on the other hand was a college speech teacher, a debater, who demanded clear thinking. Naturally, Julia found herself wanting information about spirituality but insisting that it be intelligible and precise.
"Wil wanted a synthesis between East and West that explained human spirituality, and Julia wanted this explanation to be perfectly clear. Something the Manuscript was providing for both."
"Breakfast is ready," Sanchez called from the kitchen.
I turned around, surprised. I didn't realize Sanchez was up. Without pursuing the conversation any further, Father Carl and I got up and joined Sanchez in a meal of fruit and cereal. Afterwards Father Carl asked me to take a walk to the ruins with him. I agreed, wanting very much to go there again. Both of us looked at Father Sanchez and he gracefully declined, explaining that he needed to drive down the mountain and make some phone calls.
Outside, the sky was crystal clear and the sun shone brightly over the peaks. We walked briskly.
"Do you think there is a way to contact Wil?" I asked.
"No," he replied. "He did not tell me who his friends were. The only way would be to drive to Iquitos, a town near the northern border, and I think that might be unsafe right now."
"Why there?" I asked.
"He said he thought his search would take him to this town. There are many ruins near there. Also Cardinal Sebastian has a mission nearby."
"Do you think Wil will find the last insight?"
"I don't know."
We walked in silence for several minutes, then Father Carl asked, "Have you made a decision about what course to take personally?"
"What do you mean?"
"Father Sanchez said you were talking at first about going back immediately to the United States but that lately you seemed to be more interested in exploring the insights. How are you feeling now?"
"Precarious," I said. "But for some reason I also want to continue."
"I understand a man was killed right beside you."
"That's right."
"And still you want to stay?"
"No," I said. "I want to get away, save my life... yet here I am."
"Why do you think that is?" he asked.
I scrutinized his expression. "I don't know. Do you?"
"Do you remember where we left our conversation last night?"
I remembered exactly. "We had discovered the question my parents left me with: to find a spirituality that is self-enhancing, that gives one a sense of adventure, and fulfillment. And you said if I looked closely at how my life has evolved, this question would put my life in perspective and clear up what's happening to me now."
He smiled mysteriously. "Yes, according to the Manuscript, it will."
"How does that occur?"
"Each of us must look at the significant turns in our lives and reinterpret them in light of our evolutionary question."
I shook my head, not comprehending.
"Try to perceive the sequence of interests, important friends, coincidences that have occurred in your life. Weren't they leading you somewhere?"
I thought about my life since childhood but could find no pattern.
"How did you spend your time as you grew up?" he asked.
"I don't know. I was a typical child, I guess. I read a lot."
"What did you read?"
"Mystery stuff mostly, science fiction, ghost stories, that kind of thing."
"What happened in your life after that?"
I thought about the effect my grandfather had on me, and told Father Carl about the lake and the mountains.
He nodded his head knowingly. "And after you grew up, what happened?"
"I went away to college. My grandfather died while I was away."
"What did you study at college?"
"Sociology."
"Why?"
"I met a professor I liked. His knowledge of human nature interested me. I decided to study with him."
"What happened then?"
"I graduated and went to work."
"Did you enjoy it?"
"Yes, for a long time."
"Then things changed?"
"I felt that what I was doing wasn't complete. I was working with emotionally disturbed adolescents and I thought I knew how they could transcend their pasts and stop the acting out that was so self-defeating. I thought I could help them go on with their lives. I finally realized something was missing in my approach."
"Then what?"
"I quit."
"And?"
"And then an old friend called and told me of the Manuscript."
"Is that when you decided to come to Peru?"
"Yes."
"What do you think of your experience here?"
"I think I'm crazy," I said. "I think I'm going to get myself killed."
"But what do you think of the way your experience has progressed?"
"I don't understand."
"When Father Sanchez told me what had happened to you since coming to Peru," he said, "I was amazed at the series of coincidences that brought you face to face with the different insights of the Manuscript just when you needed them."
"What do you think that means?" I asked.
He stopped walking and faced me. "It means you were ready. You are like the rest of us here. You came to the point where you needed the Manuscript in order to continue your life evolution.
"Think about how the events of your life fit together. From the beginning you were interested in mysterious topics, and that interest finally led you to study human nature. Why do you think you happened to meet that particular teacher? He crystalized your interests and led you into looking at the greatest mystery: the human situation on this planet, the question of what life is about. Then at some level, you knew that life's meaning was connected to the problem of transcending our past conditioning and moving our lives forward. That's why you were working with those kids.
"But, as you can understand now, it has taken the insights to clear up what was missing in your technique with those youths. In order for emotionally disturbed children to evolve, they have to do what we all have to do: get connected with enough energy to see through their intense control drama, what you call 'acting out,' and go forward in what turns out to be a spiritual process, a process you have been trying to understand all along.
"See the higher perspective on these events. All the interests that led you forward in your past, all these stages of growth, were just preparing you to be here, now, exploring the Insights. You've been working on your evolutionary search for a self-enhancing spirituality throughout your entire life, and the energy you acquired from that natural spot where you grew up, an energy your grandfather was trying to show you, finally gave you the courage to come to Peru. You are here because this is where you need to be to continue the evolution. Your whole life has been a long road leading directly to this moment."
He smiled. "When you fully integrate this view of your life, you will have achieved what the Manuscript calls a clear awareness of your spiritual path. According to the Manuscript we all must spend as much time as necessary going through this process of clearing your past. Most of us have a control drama we have to transcend but once we do, we can comprehend the higher meaning for why we were born to our particular parents, and what all the twists and turns of our lives were preparing us to do. We all have a spiritual purpose, a mission, that we have been pursuing without being fully aware of it, and once we bring it completely into consciousness, our lives can take off.
"In your case, you've discovered this purpose. Now, you must go forward, allowing the coincidences to lead you into a clearer and clearer idea of how to pursue this mission from this point on, what else you must do here. Since you've been in Peru, you've been riding along on Wil's energy and Father Sanchez's. But now it's time to learn to evolve by yourself... consciously."
He was about to tell me something more, but we were both distracted by the sight of Sanchez's truck racing up behind us. He pulled along side and rolled down his window.
"What's wrong?" Father Carl asked.
"I must return to the mission as soon as I can get packed," Sanchez said. "Government troops are there... and Cardinal Sebastian."
We both jumped into the truck and Sanchez drove back toward Father Carl's house, telling us along the way that the troops were at his mission to confiscate all copies of the Manuscript and possibly to close it down.
We drove up to Father Carl's house and hurriedly walked inside. Father Sanchez immediately began to pack his belongings. I stood there, deliberating on what to do. As I watched, Father Carl approached the other priest and said, "I think I should go with you."
Sanchez turned. "Are you sure?"
"Yes, I believe I should."
"For what purpose?"
"I don't know yet."
Sanchez stared at him for a moment, then returned to packing. "If you think that is best."
I was leaning against the door frame. "What should I do?" I asked.
Both men looked at me.
"That's up to you," Father Carl said.
I just stared.
"You'll have to make the decision," Sanchez interjected.
I couldn't believe they were so detached about my choice. To go with them meant certain capture by the Peruvian troops. Yet how could I stay here, alone?
"Look," I said, "I don't know what to do. You two must help me. Is there anyone else who can hide me?"
Both men looked at one another.
"I don't think so," Father Carl said.
I looked at them, a knot of anxiety growing in my stomach.
Father Carl smiled at me and said, "Stay centered. Remember who you are."
Sanchez walked over to a bag and pulled out a folder. "This is a copy of the Sixth Insight," he said. "Perhaps it will help you decide what to do."
As I took the copy, Sanchez looked at Father Carl and asked, "How long before you can leave?"
"I'll need to contact some people," Father Carl said. "Probably an hour."
Sanchez looked at me. "Read and think for a while, then we will talk."
Both men returned to their preparations, and I walked outside and sat down on a large rock, then opened the Manuscript. It echoed exactly the words of Father Sanchez and Father Carl. Clearing the past was a precise process of becoming aware of our individual ways of controlling learned in childhood. And once we could transcend this habit, it said, we would find our higher selves, our evolutionary identities.
I read the entire text in less than thirty minutes and when I finished I finally understood the basic insight: before we could fully enter the special state of mind that so many people were glimpsing—the experience of ourselves moving onward in life guided by mysterious coincidences—we had to wake up to who we really were.
At that moment Father Carl walked around the house, spotted me, and came to where I was sitting.
"Have you finished?" he asked. His manner was warm and friendly as usual.
"Yes."
"Do you mind if I sit here with you for a moment?"
"I wish you would."
He positioned himself to my right and after a period of silence asked, "Do you understand that you are on your path of discovery here?"
"I guess, but now what?"
"Now you must really believe it."
"How, when I feel this afraid?"
"You must understand what is at stake. The truth you are pursuing is as important as the evolution of the universe itself, for it enables evolution to continue.
"Don't you see? Father Sanchez told me of your vision of evolution on the ridge top. You saw how matter evolved from the simple vibration of hydrogen all the way to humankind. You wondered how humans carried on this evolution. You have now discovered the answer: humans are born into their historical situations and find something to stand for. They form a union with another human being who also has found some purpose.
"The children born to this union then reconcile these two positions by pursuing a higher synthesis, guided by the coincidences. As I'm sure you learned in the Fifth Insight, each time we fill up with energy and a coincidence occurs to lead us forward in our lives, We institute this level of energy in ourselves, and so we can exist at a higher vibration. Our children take our level of vibration and raise it even higher. This is how we, as humans, continue evolution.
"The difference now, with this generation, is that we are ready to do it consciously and to accelerate the process. No matter how afraid you become, you now have no choice. Once you learn what life is about, there is no way to erase the knowledge. If you try to do something else with your life you will always sense that you are missing something."
"But what do I do now?"
"I don't know. Only you know that. But I suggest you first try to gain some energy."
Father Sanchez rounded the corner of the house and joined us, carefully avoiding eye contact or noise as if he desired not to interrupt. I tried to center myself and to focus on the rock peaks that encircled the house. I took a deep breath and realized that I had been totally self-absorbed since coming outside, as if I had had tunnel vision. I had cut myself off from the beauty and majesty of the mountains.
As I gazed out at the surroundings, consciously trying to appreciate what I was seeing, I began to experience that now familiar feeling of closeness. Suddenly everything seemed to exhibit more presence and to glow slightly. I began to feel lighter, my body more buoyant.
I looked at Father Sanchez and then at Father Carl. They were gazing intensely at me and I could tell they were observing my energy field.
"How do I look?" I asked.
"You look as if you feel better," Sanchez said. "Stay here and increase your energy as much as possible. We have about twenty more minutes of packing."
He smiled wryly. "After that," he continued, "you will be ready to begin."
[ENGAGING
THE FLOW](CelestineProph_toc.html#chap-7)
The two priests walked back to the house and I spent several more minutes observing the beauty of the mountains in an attempt to gain more energy. Then, I lost my focus and drifted absently into a reverie about Wil. Where was he? Was he close to finding the Ninth Insight?
I imagined him running through the Jungle, the Ninth Insight in his hand, troops everywhere, pursuing. I thought of Sebastian orchestrating the chase. Yet in my daydream, it was clear that Sebastian, even with all his authority, was wrong, that he misunderstood something about the impact the insights would have on people. I felt that someone could persuade him to take a different view, if only we could discover what part of the Manuscript threatened him so.
As I mused over this thought, Marjorie popped into my mind. Where was she? I pictured seeing her again. How might that happen?
The sound of the front door closing brought me back to reality. I felt weak and nervous again. Sanchez walked around the house toward where I was sitting. His pace was quick, purposeful.
He sat down beside me, then asked, "Have you decided what to do?"
I shook my head.
"You don't look very strong," he said.
"I don't feel very strong."
"Perhaps you're not being very systematic in the way you build your energy."
"What do you mean?"
"Let me offer you the way that I personally gain energy. Perhaps my method will help you as you create your own procedure."
I nodded for him to go on.
"The first thing I do," he said, "is to focus on the environment around me, as I think you do also. Then I try to remember how everything looks when I'm being filled with energy. I do this by recalling the presence everything displays, the unique beauty and shape of everything, especially plants, and the way colors seem to glow and appear brighter. Do you follow me?"
"Yes, I try to do the same thing."
"Then," he continued. "I try to experience that feeling of closeness, the feeling that no matter how far away something is, that I can touch it, connect with it. And then I breathe it in."
"Breathe it in?"
"Did Father John not explain this to you?"
"No, he didn't."
Sanchez appeared confused. "Perhaps he intended to come back and tell you about it later. Often he's very dramatic. He walks away and leaves his pupil alone to ponder what he has taught, then he shows up later at just the right time to add something else to the instruction. I suppose he intended to talk with you again but we left too quickly."
"I'd like to hear about it," I said.
"Do you remember the feeling of buoyancy that you experienced on the ridge top?" he asked.
"Yes," I said.
"To regain this buoyancy, I try to breathe in the energy with which I have just connected."
I had been following along as Sanchez spoke. Just hearing his procedure was increasing my connection. Everything around me had increased in presence and beauty. Even the rocks seemed to have a whitish glow and Sanchez's energy field was wide and blue. He was now taking deep, conscious breaths, holding each about five seconds before exhaling. I followed his example.
"When we visualize," he said, "that each breath pulls energy into us and fills us like a balloon, we actually become more energized and feel much lighter and more buoyant."
After several breaths, I began to feel exactly that way.
"After I breath in the energy," Sanchez continued, "I check to see if I have the right emotion. As I've told you before, I consider this the true measure of whether I am really connected."
"You are speaking of love?"
"That's correct. As we discussed at the mission, love is not an intellectual concept or a moral imperative or anything else. It is a background emotion that exists when one is connected to the energy available in the universe, which, of course, is the energy of God."
Father Sanchez was gazing at me, his eyes slightly out of focus. "There," he said, "you've reached it. That's the level of energy you need to have. I'm helping you some, but you are ready to maintain it on your own."
"What do you mean, you're helping me some?"
Father Sanchez shook his head. "Don't worry about that now. You'll learn about it later, in the Eighth Insight."
Father Carl walked around the house then and looked at both of us, as though pleased. As he approached he glanced at me. "Have you decided yet?"
The question irritated me; I fought against the resulting loss of energy.
"Don't fall back into your aloof drama," Father Carl said. "You can't avoid taking a stand here. What are you thinking you need to do?"
"I'm not thinking anything," I said. "That's the problem."
"Are you sure? Thoughts feel different once you get connected with the energy."
I gave him a puzzled look.
"The words you have habitually willed through your head in an attempt to logically control events," he explained, "stop when you give up your control drama. As you fill up with inner energy, other kinds of thoughts enter your mind from a higher part of yourself. These are your intuitions. They feel different. They just appear in the back of your mind, sometimes in a kind of daydream or mini-vision, and they come to direct you, to guide you."
I still didn't understand.
"Tell us what you were thinking about when we left you alone earlier," Father Carl said.
"I'm not sure I remember it all," I said.
"Try."
I tried to concentrate. "I was thinking about Wil, I guess, about whether he was close to finding the Ninth Insight, and about Sebastian's crusade against the Manuscript."
"What else?"
"I was wondering about Marjorie, about what happened to her. But I don't understand how this helps me know what to do."
"Let me explain," Father Sanchez said. "When you have acquired enough energy, you are ready to consciously engage evolution, to start it flowing, to produce the coincidences that will lead you forward. You engage your evolution, in a very specific way. First, as I said, you build sufficient energy, then you remember your basic life question—the one your parents gave you—because this question provides the overall context for your evolution. Next you center yourself on your path by discovering the immediate, smaller questions that currently confront you in life. These questions always pertain to your larger question and define where you currently, are in your lifelong quest.
"Once you become conscious of the questions active in the moment, you always get some kind of intuitive direction of what to do, of where to go. You get a hunch about the next step. Always. The only time this will not occur is when you have the wrong question in mind. You see, the problem in life isn't in receiving answers. The problem is in identifying your current questions. Once you get the questions right, the answers always come.
"After you get an intuition of what might happen next," he continued, "then the next step is to become very alert and watchful. Sooner or later coincidences will occur to move you in the direction indicated by the intuition. Do you follow me?"
"I think I do."
"So," he continued, "don't you think those thoughts of Wil and Sebastian and Marjorie are important? Think about why these thoughts are coming now, considering the story of your life. You know that you came out of your family wanting to find out how to make the spiritual life an inwardly self- enhancing adventure, right?"
"Yes."
"Then, as you grew up, you became interested in mysterious topics, you studied sociology and worked with people, although you didn't yet know why you were doing these things. Then as you began to wake up, you heard about the Manuscript and came to Peru and found the insights one by one, and each has taught you something about the kind of spirituality you seek. Now that you've become clear, you can become super conscious of this evolution by defining your current questions and then watching the answers come."
I just looked at him.
"What are your current questions?" he asked.
"I guess I want to know about the other insights," I said. "Especially, I want to know if Wil is going to find the Ninth Insight. I want to know what happened to Marjorie. And I want to know about Sebastian."
"And what were your intuitions suggesting about these questions?"
"I don't know. I was thinking of seeing Marjorie again, and of Wil running with troops chasing him. What does it mean?"
"Where was Wil running?"
"In the jungle."
"Perhaps that indicates where you should go. Iquitos is in the jungle. What about Marjorie?"
"I saw myself seeing her again."
"And Sebastian?"
"I fantasized that he was against the Manuscript because he misunderstood, that his mind could be changed if one could find out what he was thinking, what exactly he feared about the Manuscript."
Both men looked at each other in total amazement.
"What does it mean?" I asked.
Father Carl replied with another question, "What do you think?"
For the first time since the ridge top I was beginning to feel fully energized again and confident. I looked at them and said, "I guess it means I should go toward the jungle and try to discover which aspects of the Manuscript the church dislikes."
Father Carl smiled. "Exactly! You can take my truck."
I nodded and we walked around to the front of the house where the vehicles were parked. My things, along with a supply of food and water, were already packed in Father Carl's truck. Father Sanchez's vehicle was also packed.
"I want to tell you this," Sanchez said. "Remember to stop as often as necessary to re-connect your energy. Stay full, stay in a state of love. Remember that once you achieve this state of love, nothing nor anyone can pull more energy from you than you can replace. In fact, the energy flowing out of you creates a current that pulls energy into you at the same rate. You can never run out. But you must stay conscious of this process in order for it to work. This is especially important when you interact with people."
He paused. Simultaneously, as if on cue, Father Carl walked closer and said, "You have read all but two insights: the Seventh and Eighth. Seven deals with the process of consciously evolving yourself, of staying alert to every coincidence, every answer the universe provides for you."
He handed me a small folder. "This is the Seventh. It is very short and general," he continued, "but it talks about the way objects jump out at us, the way certain thoughts come as guidance. As for the Eighth, you will find it yourself when the time is right. It explains how we can aid others as they bring us the answers we seek. And further, it describes a whole new ethic governing the way humans should treat each other in order to facilitate everyone's evolution."
"Why can't you give me the Eighth Insight now?" I asked.
Father Carl smiled and put his hand on my shoulder. "Because we don't feel we should. We must follow our intuitions also. You will get the Eighth Insight as soon as you ask the right question."
I told him I understood. Then both priests hugged me and wished me well. Father Carl stressed that we would soon meet again and that I would indeed find the answers I was here to receive.
We were all about to board our respective vehicles when Sanchez turned suddenly and faced me. "I have an intuition to tell you something. You will learn more about it later. Let your perception of beauty and iridescence lead your way. Places and people who have answers for you will appear more luminous and attractive."
I nodded and climbed into Father Carl's truck, then followed them down the rocky road for several miles until we came to a fork. Sanchez waved out the back window as he and Father Carl headed East. I watched them for a moment then turned the old truck North toward the Amazon basin.
A surge of impatience rose up within me. After making good time for over three hours, I now sat at a crossroads, unable to decide between two particular routes.
To my left was one possibility. Judging from the map, this road bore north along the edge of the mountains for a hundred miles, then turned sharply east toward Iquitos. The other route lead to the right and maintained an eastern angle through the jungle to the same destination.
I took a deep breath and tried to relax, then quickly checked the rear view mirror. No one was in sight. In fact, I hadn't seen anyone—no traffic, no locals walking—in over an hour. I tried to shake off a rush of anxiety. I knew I had to relax and stay connected if I expected to make the right decision.
I focused on the scene. The jungle route to my right progressed between a group of large trees. Several huge outcroppings of rock punctuated the ground around them. Most were encircled by large tropical bushes. The other route through the mountains seemed comparatively bare. One tree grew in that direction, but the remainder of the landscape was rocky, with very little plant life.
I looked to the right again and tried to induce a love state. The trees and bushes were a rich green. I looked to the left and tried the same procedure. Immediately I noticed a patch of flowering grass that bordered the road. The blades of grass were pale and spotty, but the white flowers, viewed together, created a unique pattern into the distance. I wondered why I hadn't noticed the flowers earlier. They now seemed to almost glow. I broadened my focus to include everything in that direction. The small rocks and brown patches of gravel seemed extraordinarily colorful and distinct. Hues of amber and violet and even dark red ran through the entire scene.
I glanced back to the right to the trees and bushes. Although beautiful, they now paled in comparison to the other route. But how could that be, I thought. Initially, the road to the right seemed more attractive. Glancing back to the left, my intuition strengthened. The richness of shape and color amazed me.
I was convinced. I started the truck and headed to the left, sure of the correctness of my decision. The road was bumpy with rocks and ruts. As I bounced along, my body felt lighter. My weight was centered on my buttocks, and my back and neck were straight. My arms were holding the steering wheel but were not resting on it.
For two hours I drove without incident, nibbling from the food basket Father Carl had packed and again seeing no one. The road meandered up and down one small foothill after another. At the top of one hill, I observed two older cars parked to my right. They were pulled far off to the side of the road in a stand of small trees. I could see no occupants and assumed the vehicles were abandoned. Ahead the road turned sharply to the left and circled downward into a wide valley. From the peak I could see for several miles.
I stopped the truck abruptly. Half way across the valley three or four military vehicles sat along both sides of the road. A small group of soldiers stood among the trucks. A chill ran through me. That was a roadblock. I backed off the crest and pulled my vehicle behind two large rocks, then got out and walked back to the overlook to again observe the activity in the valley. One vehicle was driving away in the opposite direction.
Suddenly I heard something behind me. I turned around quickly. It was Phil, the ecologist I had met at Viciente.
He was equally shocked. "What are you doing here?" he asked, as he rushed up to me.
"I'm trying to get to Iquitos," I said.
His face was filled with anxiety. "So are we, but the government's getting crazy over this Manuscript. We're trying to decide whether to risk passing through that roadblock. There are four of us." He nodded to his left. I could see several men through the trees.
"Why are you going to Iquitos?" he asked.
"I'm trying to find Wil. We got separated in Cula. But I heard he might be headed to Iquitos, looking for the rest of the Manuscript."
He looked horrified. "He shouldn't be doing that! The military has prohibited anyone having copies. Didn't you hear what occurred at Viciente?"
"Yeah, some, but what did you hear?"
"I wasn't there but I understand the authorities rushed in and arrested everyone who had copies. All the guests were detained for questioning. Dale and the other scientists were taken away. No one knows what happened to them."
"Do you know why the government is so disturbed about this Manuscript?" I asked.
"No, but when I heard how unsafe it was getting, I decided to return to Iquitos for my research data and then to leave the country myself."
I told him the details of what had happened to Wil and myself after leaving Viciente, especially the shooting on the ridge top.
"Damn," he said. "And you're still fooling around with this thing?"
His statement jarred my confidence, but I said, "Look, if we do nothing, the government is going to suppress the Manuscript completely. The world will be denied its knowledge, and I think the insights are important!"
"Important enough to die for?" he asked.
The sound of vehicles attracted our attention. The trucks were driving across the valley toward us.
"Oh shit!" he said. "Here they come."
Before we could move, we heard the sound of vehicles approaching from the other direction as well.
"They've surrounded us!" Phil shouted. He looked panicked.
I ran to the truck and dumped the basket of food into a small pack. I took the folders containing the Manuscript and placed them in the pack as well, then thought better of it and pushed them under the seat instead.
The sounds were growing louder so I ran across the road to my right in the direction Phil had headed. Down the slope I could see him and the other men huddled behind a group of rocks. I hid with them. My hope was that the military trucks would pass and keep going. My truck was out of sight. Hopefully they would think, as I did, that the other cars were abandoned.
The trucks approaching from the south arrived first and to our horror stopped even with the vehicles.
"Don't move. Police!" a voice shouted. We froze as several soldiers walked up from behind us. All were heavily armed and very cautious. The soldiers searched us thoroughly and took everything, then forced us to walk back to the road. There, dozens of soldiers were searching the vehicles. Phil and his companions were taken and placed in one of the military trucks, which quickly drove away. As he rode past me, I caught sight of him. He looked pale and ghostly.
I was led on foot in the opposite direction and asked to sit near the crest of the hill. Several soldiers stood near me, each carrying an automatic weapon on his shoulder. Finally an officer walked over and tossed the folders containing my copies of the insights on the ground at my feet. On top of them he threw the keys to Father Carl's truck.
"Are these copies yours?" he asked.
I looked at him without answering.
"These keys were found on you," he said. "Inside the vehicle we found these copies. I ask you again, are they yours?"
"I don't think I'll answer until I see a lawyer," I stammered. The remark brought a sarcastic smile to the officer's face. He said something to the other soldiers and walked away. The soldiers directed me to one of the jeeps and into the front seat by the driver. Two other soldiers sat in the back seat, their weapons ready. Behind us, more soldiers climbed aboard a second truck. After a short wait, both vehicles headed north into the valley.
Anxious thoughts filled my mind. Where were they taking me? Why did I put myself into this position? So much for the preparation the priests had given me; I hadn't lasted a day. Back at the crossroads, I had been so certain I had chosen the correct road. This route was the one most attractive; I was sure of it. Where did I make my mistake?
I took a deep breath and attempted to relax, wondering what would happen now. I would plead ignorance, I thought, and present myself as a misguided tourist meaning no harm. I just got mixed up with the wrong people, I would say. Let me go home.
My hands were resting in my lap; they were shaking slightly. One of the soldiers sitting behind me offered a canteen of water and I took it, though I could not drink. The soldier was young and when I handed the canteen back to him, he smiled without a trace of malice on his face. The image of Phil's panicked look flashed across my mind. What would they do with him?
The thought occurred to me that meeting Phil on that hilltop had been a coincidence. What was its meaning? What would we have talked about had we not been interrupted? As it was, all I did was stress the Manuscript's importance, and all he did was warn me about the danger here and counsel me to get out before being captured. Unfortunately, his advice had come too late.
For several hours we rode without anyone speaking. The terrain outside grew progressively more flat. The air warmed. At one point, the young soldier handed me an open can of C rations, something like beef hash, but again I couldn't force anything down. After sunset the light faded quickly.
I rode along without thought, staring straight ahead with the truck's headlights, then I slipped into a restless sleep during which I dreamed of being in flight. I was running desperately from an unknown foe amid hundreds of huge bonfires, certain that somewhere was a secret key that would open the way to knowledge and safety. In the middle of one of the giant fires I saw the key. I darted in to retrieve it!
I jerked awake, sweating profusely. The soldiers glanced at me nervously. I shook my head and leaned against the truck's door. For a long time, I looked out the side window at the dark shapes of the landscape, fighting the urge to panic. I was alone and under guard, heading into blackness, and no one cared about my nightmares.
About midnight we pulled up to a large, dimly lit building constructed of cut stone and two stories high. We walked along a walkway past the front entrance and entered a side door. Steps led down to a narrow hall. The inner walls were also of stone and the ceiling was constructed of large timbers and rough cut planks. Bare bulbs hanging from the ceiling lit our way. We walked through another door and then into an area of cells. One of the soldiers who had disappeared caught up with us and opened one of the cell doors and motioned for me to enter.
Inside were three cots, a wooden table and a vase of flowers. To my surprise, the cell was very clean. As I walked in, a young Peruvian, no more than eighteen or nineteen years old, looked at me meekly from behind the door. The soldier locked the door behind me and walked away. I sat down on one of the cots as the young man reached over and turned up an oil lamp. When the light hit his face I noticed that he was an Indian.
"Do you speak English?" I asked.
"Yes, some," he said.
"Where are we?"
"Near Pullcupa."
"Is this a prison?"
"No, everyone is here for questioning about the Manuscript."
"How long have you been here?" I asked.
He looked up at me with shy, brown eyes. "Two months."
"What have they done to you?"
"They try to make me disbelieve the Manuscript and tell about others who have copies."
"How?"
"By talking to me."
"Just talking, no threats?"
"Just talking," he repeated.
"Have they said when they will let you go?"
"No."
I paused for a moment and he looked at me questioningly. "Were you caught with copies of the Manuscript?" he asked.
"Yes. Were you?"
"Yes. I live near here, in an orphanage. My headmaster was teaching from the Manuscript. He allowed me to teach the children. He was able to escape but I was captured."
"How many insights have you seen?" I asked.
"All that have been found," he said. "You?"
"Eh, I've seen all but the Seventh and Eighth Insights. I had the Seventh but I didn't get a chance to read it before the soldiers showed up."
The young man yawned and asked, "Can we sleep now?"
"Yeah," I said absently. "Sure."
I laid on my cot and shut my eyes, my mind racing. What should I do now? How had I let myself be caught? Could I escape? I concocted several strategies and scenarios before I finally drifted off to sleep.
Again I dreamed vividly. I was searching for the same key but this time I was lost in a deep forest. For a long time I had been walking aimlessly, wishing for some sort of guidance. After a while, a huge thunderstorm came and flooded the landscape. During the deluge, I was washed down a deep ravine and into the river, which was flowing in the wrong direction and threatening to drown me. With all my might I fought against the current, struggling for what seemed like days. Finally, I was able to pull myself from the torrent by clinging to the rocky shoreline. I climbed up the rocks and along the sheer cliffs that bordered the river, ascending higher and higher and into ever more treacherous areas. Although I had summoned all my willpower and expertise to negotiate the cliffs, at one point I found myself clinging perilously to the rock face, unable to proceed any further. I looked down at the terrain below me. In shock, I realized that the river I had been fighting flowed out of the forest and gently up to a beautiful beach and meadow. In the meadow, surrounded by flowers, was the key. Then I slipped and fell screaming down and down until I hit the river and sank.
I sat up quickly in my cot, gasping for air. The young Indian, apparently already awake, walked over to me.
"What is wrong?" he asked.
I caught my breath and looked around, realizing where I was. I also noticed that the room had a window and that it was already light outside.
"Just a bad dream," I said.
He smiled at me as though he was pleased at what I said. "Bad dreams have the most important messages," he commented.
"Messages?" I asked, getting up and putting on my shirt.
He looked embarrassed at having to explain. "The Seventh Insight talks of dreams," he said.
"What does it say about dreams?"
"It tells how to, eh..."
"Interpret dreams?"
"Yes."
"What does it say about that?"
"It says to compare the story of the dream to the story of your life."
I thought for a moment, unsure of what that instruction meant. "What do you mean, compare stories?"
The young Indian could barely look me in the eye. "Do you want to interpret your dream?"
I nodded and told him what I had experienced.
He listened intently, then said, "Compare parts of the story with your life."
I looked at him. "Where do I start?"
"At the beginning. What are you doing at the beginning of the dream?"
"I was searching for a key in a forest."
"How did you feel?"
"Lost."
"Compare this situation to your real situation."
"Maybe it does relate," I said "I'm looking for some answers about this Manuscript and I'm damn sure feeling lost."
"And what else is happening to you in real life?" he asked.
"I've been caught," I said. "In spite of everything I tried to do, I've been locked up. All I can hope for now is to talk someone into letting me go home."
"You are struggling against being caught?"
"Of course."
"What happened next in the dream?"
"I fought against the current."
"Why?" he asked.
I began to pick up on where he was headed. "Because at the time I thought it would drown me."
"And if you hadn't fought the water?"
"It would have carried me to the key. What are you saying? That if I don't fight against this situation that I might still get the answers I want?"
He looked embarrassed again. "I'm not saying anything. The dream is saying."
I thought for a moment. Was this interpretation correct?
The young Indian looked up at me, then asked, "If you had to experience the dream again, what would you do different?"
"I wouldn't resist the water, even though it looked as though it might kill me. I would know better."
"What is threatening you now?"
"I guess the soldiers. Being detained."
"So what is the message to you?"
"You think the message of the dream is to look at this capture positively?"
He didn't answer; he only smiled.
I was sitting on my cot leaning back against the wall. The interpretation excited me. If it was accurate, it would mean that I hadn't made a mistake at the crossroads after all, that this was all part of what should be happening.
"What is your name?" I asked.
"Pablo," he said.
I smiled and introduced myself, then briefly told him the story of why I was in Peru and what had happened. Pablo was sitting on his cot, his elbows resting on his knees. He had short, black hair and was very thin.
"Why are you here?" he asked.
"To find out about this Manuscript," I replied.
"Why specifically?" he asked again.
"To find out about the Seventh Insight and to find out about some friends, Wil and Marjorie... and I guess to find out why the church is so against the Manuscript."
"There are many Priests here to talk to," he said.
I thought about his statement for a moment then asked, "What else does the Seventh Insight say about dreams?"
Pablo told me that dreams come to tell us something about our lives that we are missing. Then he said something else but instead of listening, I started to think about Marjorie. I could see her face clearly in my mind and I wondered where she might be, then I saw her running up to me smiling.
Suddenly I became aware that Pablo was no longer talking. I looked over at him. "Sorry, my mind was wandering," I said. "What were you saying?"
"That is all right," he replied. "What were you thinking about?"
"Just a friend of mine. It was nothing."
He looked as though he wanted to press the question, but someone was approaching the cell door. Through the bars we could see a soldier sliding back the bolt lock.
"Time for breakfast," Pablo said.
The soldier opened the door and motioned with his head for us to walk into the hall. Pablo led the way down the stone corridor. We proceeded to a stairway and up one flight of stairs to a small dining area. Four or five soldiers stood at the corner of the room while several civilians, two men and a woman, waited in line to be served.
I stopped, not believing my eyes. The woman was Marjorie. Simultaneously, she saw me and covered her mouth with her hand, her eyes opening wide with surprise. I glanced at the soldier behind me. He was walking toward the other military men in the corner, smiling nonchalantly and saying something in Spanish. I followed Pablo as he led us across the room and to the end of the line.
Marjorie was being served. The two other men took their trays to a table, talking. Several times Marjorie gazed over and met my eyes, struggling not to say anything. After the second glance, Pablo guessed that we knew each other and looked at me questioningly. Marjorie carried her food to a table, and after being served, we walked over and sat with her. The soldiers were still talking among themselves, seemingly oblivious to our movements.
"God, I'm glad to see you," she said. "How did you get here?"
"I hid for a while with some priests," I replied. "Then I left to find Wil and was captured yesterday. How long have you been here?"
"Since they found me on the ridge," she said.
I noticed Pablo was looking at us intensely and I introduced him to Marjorie.
"I guessed that this must be Marjorie," he said.
They talked briefly, then I asked Marjorie, "What else has happened?"
"Not much," she said. "I don't even know why I'm being detained. Every day I've been taken to one of the priests or to one of the officers for questioning. They want to know who my contacts were at Viciente, and if I know where any other copies are. Over and over again!"
Marjorie smiled and looked vulnerable and when she did, I felt another strong attraction to her. She looked at me sharply, out of the corner of her eyes. We both laughed quietly. A period of silence followed as we ate our food, and then the door opened and in walked a priest, dressed formally. He was accompanied by a man appearing to be a high ranking military officer.
"That's the head priest," Pablo said.
The officer said something to the soldiers, who had snapped to attention, and then he and the priest walked across the room toward the kitchen. The priest looked directly at me, our eyes meeting for a long second. I looked away and took a bite of food, not wanting to attract attention. Both men continued through the kitchen and out a door there.
"Was that one of the priests you've talked to?" I asked Marjorie.
"No," Marjorie said. "I've never seen him."
"I know that priest," Pablo said. "He arrived yesterday. His name is Cardinal Sebastian."
I sat up straight. "That was Sebastian?"
"It sounds like you've heard of him," Marjorie said.
"I have," I replied. "He's the main person behind the Church's opposition to the Manuscript. I thought he was at Father Sanchez's Mission."
"Who is Father Sanchez?" Marjorie asked.
I was about to tell her when the soldier who had escorted us walked over to the table and motioned for Pablo and me to follow.
"Time for exercise," Pablo said.
Marjorie and I looked at each other. Her eyes revealed an inner anxiety.
"Don't worry," I said, "I'll talk to you at the next meal. Everything will be fine."
As I walked away, I wondered if my optimism was realistic. These people could make any of us disappear without a trace at any time. The soldier guided us into a short hall and through a door that led to an outside stairway. We walked down to a side yard which was surrounded by a tall rock wall. The soldier stood by the entrance. Pablo nodded for me to walk with him around the borders of the yard. As we walked, Pablo bent down several times to pick some of the flowers growing in beds by the wall.
"What else does the Seventh Insight say?" I asked.
He bent down and picked another flower. "It says that not only dreams guide us. Also thoughts or daydreams guide us."
"Yes, Father Carl said that. Tell me how daydreams guide us."
"They show us a scene, a happening, and this is an indication that this event might happen. If we pay attention then we can be ready for this turn in our lives."
I looked at him. "You know, Pablo, an image came to me that I would run into Marjorie. Then I did."
He smiled.
A chill went up my spine. I must indeed be in the right place. I had intuited something that had come true. I had thought several times of finding Marjorie again and now it had happened. The coincidences were taking place. I felt lighter.
"I don't have thoughts like that happen very often," I said.
Pablo looked away, then said, "The Seventh Insight says that we all have many more such thoughts than we realize. To recognize them we must take an observer position. When a thought comes, we must ask why? Why did this particular thought come now? How does it relate to my life questions? Taking this observer position helps us release our need to control everything. It places us in the flow of evolution."
"But what about negative thoughts?" I asked. "Those fear images of something bad happening, such as someone we love getting hurt, or of not achieving something we very much want?"
"Very simple," Pablo said. "The Seventh Insight says that fear images should be halted as soon as they come. Then another image, one with a good outcome, should be willed through the mind. Soon, negative images will almost never happen. Your intuitions will be about positive things. When negative images come after that, the Manuscript says they should be taken very seriously, and not followed. For instance, if the idea comes to you that you're going to have a wreck in a truck and someone comes along and offers you a ride in a truck, then do not accept it."
We had come full circle in our walk around the courtyard and were approaching the guard. Neither of us talked as we passed him. Pablo picked a flower and I took a deep breath. The air was warm and humid, and the plant life outside the wall was dense and tropical. I had noticed several mosquitoes.
"Come!" the soldier suddenly called out.
He prodded us inside and down to our cell. Pablo entered ahead of me, but the soldier put his arm up blocking my way.
"Not you," he said, then nodded for me to walk down the hallway and up the other steps and outside through the same door we had entered the night before. In the parking lot, Father Sebastian was entering the back seat of a large car. A driver shut the door behind him. For an instant Sebastian looked at me again, then he turned and said something to the driver. The car sped away.
The soldier nudged me toward the front of the building. We walked inside and into an office. I was directed to sit in a wooden chair across from a white metal desk. Within minutes a small, sandy-haired priest of about thirty entered and sat at the desk without acknowledging my presence. He looked through a file for a full minute, then looked up at me. His round, gold-rimmed glasses produced an intellectual appearance.
"You've been arrested with illegal state documents," he said matter-of-factly. "I'm here to help determine whether prosecution is in order. I would appreciate your cooperation."
I nodded.
"Where did you get the translations?"
"I don't understand," I said. "Why would copies of an old manuscript be illegal?"
"The government of Peru has its reasons," he said. "Please answer the question."
"Why is the church involved?" I asked.
"Because this Manuscript contradicts the traditions of our religion," he said. "It misrepresents the truth of our spiritual nature. Where..."
"Look," I said, interrupting. "I'm just trying to understand this. I'm just a tourist who got interested in this Manuscript. I'm a threat to no one. I only want to know why it is so alarming."
He looked puzzled, as if trying to decide the best strategy for dealing with me. I was consciously pressing for details.
"The church feels the Manuscript is confusing to our people," he said carefully. "It gives the impression that people can decide on their own how to live, without regard to the scriptures."
"Which scriptures?"
"The commandment to honor thy father and mother, for one."
"What do you mean?"
"The Manuscript blames problems on parents, undermining the family."
"I thought it spoke of ending old resentments," I said. "And finding a positive view of our early life."
"No," he said. "It is misleading. There should never have been a negative feeling to begin with."
"Can't parents be wrong?"
"Parents do the best they can. Children must forgive them."
"But isn't that what the Manuscript is clarifying? Doesn't forgiveness take place when we see the positive about our childhoods?"
His voice rose with anger. "But from what authority does this Manuscript speak? How can it be trusted?"
He walked around the desk and stared down at me, still angry. "You don't know what you're talking about," he said. "Are you a religious scholar? I think not. You're direct evidence of the kind of confusion this Manuscript evokes. Don't you understand that there is order in the world only because of law and authority? How can you question the authorities in this matter?"
I said nothing, which seemed to infuriate him even more. "Let me tell you something," he said, "the crime you have committed is punishable by years in prison. Have you ever been in a Peruvian prison? Does your Yankee curiosity yearn to find out what our prisons are like? I can arrange that! Do you understand? I can arrange that!"
He put his hand over his eyes and paused, taking a deep breath, obviously trying to calm down. "I am here to find out who has copies, where they are coming from. I will ask you one more time. Where did you get your translations?"
His outburst had filled me with anxiety. I was making my situation worse with all my questions. What might he do if I failed to cooperate? Still, how could I implicate Father Sanchez and Father Carl?
"I need some time to think before I answer you," I said.
Momentarily he looked as if he might fly into another rage. Then he relaxed and looked very tired.
"I will give you until tomorrow morning," he said, motioning for the soldier standing in the doorway to take me away. I followed the soldier back down the hall and directly to the cell.
Without saying anything I walked over and lay down on my cot, feeling exhausted myself. Pablo was looking out the barred window.
"Did you talk to Father Sebastian?" he asked.
"No, it was another priest. He wanted to know who gave me the copies I had."
"What did you say?"
"Nothing. I asked for time to think and he gave me until tomorrow."
"Did he say anything about the Manuscript?" Pablo asked.
I looked into Pablo's eyes and this time he did not lower his head. "He talked a little about how the Manuscript undermines traditional authority," I said. "Then he started raving and threatening me."
Pablo looked genuinely surprised. "Did he have brown hair and round glasses?"
"Yes."
"His name is Father Costous," Pablo said. "What else did you say?"
"I disagreed with him on whether the Manuscript undermines tradition," I replied. "He threatened me with prison. Do you think he meant that?"
"I don't know," Pablo said. He walked over and sat on his cot across from me. I could tell he had something else on his mind but I was so tired and scared that I closed my eyes. When I awoke Pablo was shaking me.
"Time for lunch," he said.
We followed a guard upstairs and were served a plate of gristly beef and potatoes. The two men who we saw earlier came in after us. Marjorie wasn't with them.
"Where is Marjorie?" I asked them, trying to whisper. The two men looked horrified that I would speak to them and the soldiers stared at me intensely.
"I don't think they speak English," Pablo said.
"I wonder where she is," I said.
Pablo said something in response but again I wasn't listening. I suddenly felt like running away and was picturing myself fleeing down a street of some kind, then ducking through a doorway, to freedom.
"What are you thinking about?" Pablo asked.
"I was fantasizing about an escape," I said. "What were you saying?"
"Wait," Pablo said. "Don't dismiss your thought. It may be important. What kind of escape?"
"I was running down an alley, or a street, then through a doorway. I got the impression I was successfully escaping."
"What do you think of this image?" Pablo asked.
"I don't know," I said. "It didn't seem to be logically connected to what we were talking about."
"Do you remember what we were talking about?"
"Yes. I was asking about Marjorie."
"You don't think there is a connection between Marjorie and your thought?"
"Not an obvious link I can think of."
"What about a hidden link?"
"I can't see a connection. How could escaping be related to Marjorie? Do you think she escaped?"
He looked thoughtful. "Your thought was of you escaping."
"Oh yeah, that's right," I said. "Maybe I'm going to escape without her." I looked at him. "Maybe I'm going to escape _with_ her."
"That would be my guess," he said.
"But where is she?"
"I don't know."
We finished eating without talking. I was hungry but the food seemed too heavy. For some reason, I felt tired and sluggish. My hunger left me quickly.
I noticed Pablo wasn't eating either.
"I think we should go back to the cell," Pablo said.
I nodded, and he motioned for the soldier to take us back. When we arrived, I stretched out on my cot and Pablo sat looking at me.
"Your energy seems down," he said.
"It is," I replied. "I'm not sure what is wrong."
"Are you trying to take in energy?" he asked.
"I guess I haven't," I replied. "And that food doesn't help."
"But you don't need much food if you are taking everything in." He swept his arm in front of him to emphasize everything.
"I know. It's hard for me to get the love flowing in a situation like this."
He looked at me quizzically. "But not to do so is to harm yourself."
"What do you mean?"
"Your body is vibrating at a certain level. If you let your energy get too low your body suffers. That is the relationship between stress and disease. Love is the way we keep our vibration up. It keeps us healthy. It is that important."
"Give me a few minutes," I said.
I practiced the method Father Sanchez had taught me. Immediately I felt better. The objects around me stood out with presence. I closed my eyes and concentrated on the feeling.
"That's good," he said.
I opened my eyes and saw him smiling broadly at me. His face and body were still boyish and immature, but his eyes now seemed full of wisdom.
"I can see the energy coming into you," he said.
I could detect a slight field of green around Pablo's body. The new flowers he had placed in the vase on the table seemed radiant.
"To grasp the Seventh Insight and truly enter the movement of evolution," he said, "one must pull all the insights into one way of being."
I didn't say anything.
"Can you sum up how the world has changed for you as a result of the insights?"
I thought for a moment. "I guess I've woken up and seen the world as a mysterious place that provides everything we need, if we get clear and get on the path."
"Then what happens?" he asked.
"Then, we're ready to begin the evolutionary flow."
"And how do we engage this process?"
I thought for a moment. "By keeping our current life questions firmly in mind," I said. "And then watching for direction, either in a dream or in an intuitive thought or in the way the environment illuminates and jumps out at us."
I paused again, trying to pull the whole insight together, then added, "We build our energy and center ourselves in our situations, in the questions we have, then we receive some form of intuitive guidance, an idea of where to go or what to do, and then coincidences occur to allow us to move in that direction."
"Yes! Yes!" Pablo said. "That is the way. And each time that these coincidences lead us into something new, we grow, we become fuller persons, existing at a higher vibration."
He was leaning toward me, and I noticed the incredible energy around him. He was beaming, no longer appearing shy or even young. He seemed full of power.
"Pablo, what has happened to you?" I asked. "Compared to when I first met you, you seem more confident and knowledgeable and full somehow."
He laughed. "When you first came, I had allowed my energy to dissipate. At first, I thought that you might be able to help me with my energy flow, but I realized that you haven't learned to do this yet. That ability is learned in the Eighth Insight."
I was puzzled. "What was it that I didn't do?"
"You must learn that all the answers that mysteriously come to us really come from other people. Think about all that you have learned since you have been in Peru. Haven't all the answers come to you through the actions of other people you mysteriously met?"
I thought about it. He was right. I had met just the right people at just the right time: Charlene, Dobson, Wil, Dale, Marjorie, Phil, Reneau, Father Sanchez and Father Carl, now Pablo.
"Even the Manuscript was written by a person," Pablo added. "But not all the people you meet will have the energy or the clarity to reveal the message they have for you. You must help them by sending them energy." He paused. "You told me of learning to project your energy toward a plant by focusing on its beauty, remember?"
"Yes."
"Well, you do exactly the same thing toward a person. When the energy goes into them, it helps them see their truth. Then they can give this truth to you.
"Father Costous is an example," he continued. "He had an important message for you which you did not help him reveal. You tried to demand answers from him and that created a competition between you and him for energy. When he felt that, his childhood drama, his intimidator, took over the conversation."
"What was I supposed to have said?" I asked.
Pablo didn't answer. Again we heard someone at the cell door.
Father Costous entered.
He nodded at Pablo, a slight smile on his face. Pablo smiled broadly, as if he actually liked the priest. Father Costous shifted his gaze to me, his face becoming stern. Anxiety gripped my stomach.
"Cardinal Sebastian has asked to see you," he said. "You will be transported to Iquitos this afternoon. I would advise you to answer all his questions."
"Why does he want me?" I asked.
"Because the truck you were caught with belongs to one of our priests. We are assuming you received your copies of the Manuscript from him. For one of our own priests to disregard the law is very serious." He looked at me with determination.
I glanced at Pablo, who nodded for me to continue.
"You think that the Manuscript is undermining your religion?" I asked Costous gently.
He looked at me with condescension. "Not just our religion; everyone's religion. Do you think there is no plan for this world? God is in control. He assigns our destiny. Our job is to obey the laws set forth by God. Evolution is a myth. God creates the future the way he wants it. To say humans can make themselves evolve takes the will of God out of the picture. It allows people to be selfish and separate. They think that their evolution is the important thing, not God's plan. They will treat each other even worse than they do now."
I couldn't think of another question. The priest looked at me for a moment, then said, almost kindly, "I hope you will cooperate with Cardinal Sebastian."
He turned and looked at Pablo, obviously proud of the way he had handled my questions. Pablo only smiled at him and nodded again. The priest walked out and a soldier locked the door behind him. Pablo leaned forward on his cot and beamed at me, his demeanor still completely transformed, confidence on his face.
I looked at him for a moment, then smiled.
"What do you think happened just now?" he asked.
I struggled for humor. "I found out I'm in more trouble than I thought?"
He laughed. "What else occurred?"
"I'm not sure what you're getting at."
"What were your questions when you arrived here?"
"I wanted to find Marjorie and Wil?"
"Well, you found one of them. What was your other question?"
"I had a sense that these priests were against the Manuscript not out of malice but because they misunderstood. I wanted to know what they were thinking. For some reason I had the idea they could be talked out of their opposition." After saying this I suddenly understood what Pablo was leading to. I had met Costous, here, now, so that I could find out what bothered him about the Manuscript.
"And what was the message you received?" he asked.
"The message?"
"Yes, the message."
I looked at him. "It's the idea of participating in evolution that bothers them, isn't it?
"Yes," he said.
"That would figure," I added. "The idea of physical evolution is bad enough. But to extend the idea to everyday life, to the individual decisions we make, to history itself. That's unacceptable. They think humans will run amuck with this evolution, that relations between people will degenerate. No wonder they want to see the Manuscript suppressed."
"Could you convince them otherwise?" Pablo asked.
"No...I mean, I don't know enough myself."
"What would it take for someone to be able to convince them?"
"One would have to know the truth. One would have to know how humans would be treating each other if everyone was following the insights and evolving."
Pablo appeared pleased.
"What?" I asked, smiling along with him.
"How humans will act toward each other is in the very next insight, the Eighth. Your question of why the priests were against the Manuscript has been answered, and the answer, in turn, has evolved into another question."
"Yes," I said, deep in thought. "I've got to find the Eighth. I've got to get out of here."
"Don't go too fast," Pablo cautioned. "You must make sure you fully grasp the Seventh before you go further."
"Do you think I grasp it?" I asked. "Am I staying in the flow of evolution?"
"You will," he said, "if you remember to keep your questions always in mind. Even people who are still unaware can stumble into answers and see coincidences in retrospect. The Seventh Insight occurs when we can see these answers as they arrive. It heightens everyday experience.
"We must assume every event has significance and contains a message that somehow pertains to our questions. This especially applies to what we used to call bad things. The Seventh Insight says that the challenge is to find the silver lining in every event, no matter how negative. You first thought that being captured had ruined everything. But now you can see that you were supposed to be here. This is where your answers were."
He was right, but if I was receiving answers here and evolving to a higher level, then Pablo must certainly be doing the same thing.
Suddenly we heard someone coming down the hall. Pablo looked directly at me, a serious look on his face.
"Listen," he said. "Remember what I told you. The Eighth Insight is next for you. It is about an Interpersonal Ethic, a way of treating other people so more messages are shared. But remember not to go too fast. Stay centered in your situation. What are your questions?"
"I want to find out where Wil is," I said. "And I want to find the Eighth Insight. And I want to find Marjorie."
"And what was your guiding intuition concerning Marjorie?"
I thought for a moment. "That I would escape...that we would escape."
We could hear someone right outside the door.
"Did I bring you a message?" I asked Pablo hurriedly.
"Of course," he said. "When you arrived I didn't know why I was here. I knew it had something to do with communicating the Seventh Insight, but I doubted my ability. I didn't think that I knew enough. Because of you," he continued, "I now know that I can. That was one of the messages that you brought to me."
"Was there another?"
"Yes, your intuition that the priests can be convinced to accept the Manuscript is a message for me also. It makes me think I'm here to convince Father Costous."
As he finished speaking, a soldier opened the door and motioned for me.
I looked at Pablo.
"I want to tell you one of the concepts the next insight talks about," he said.
The soldier glared at him and took my arm, ushering me out the door and closing it. As I was led away, Pablo stared through the bars.
"The Eighth Insight warns against something," he called out. "It warns against your growth being stopped.... It happens when you become addicted to another person."
[THE
INTERPERSONAL
ETHIC](CelestineProph_toc.html#chap-8)
I followed the soldier up the steps and out into the bright sunshine. Pablo's warning was echoing in my head. Addiction to another person? What did he mean by that? What kind of addiction?
The soldier led me down the path toward the parking area where two other soldiers stood beside a military jeep. They watched us intensely as we walked their way. When I was close enough to see inside the jeep, I noticed that a passenger was already sitting in the back. Marjorie! She looked pale and anxious. Before I could catch her eye, the soldier behind me grabbed my arm and directed me into the seat beside her. Two other soldiers climbed into the front seats. The one sitting on the driver's side glanced back at us briefly, then he started the vehicle and headed north.
"Do you speak English?" I asked the soldiers.
The soldier in the passenger seat, a beefy man, looked at me blankly and said something in Spanish that I couldn't understand, then turned curtly away.
I turned my attention to Marjorie. "Are you all right?" I asked, in a whisper.
"I... uh..." Her voice faded, and I noticed tears were flowing down her face.
"It's going to be okay," I said, putting my arm around her. She looked up at me, forcing a smile, then rested her head on my shoulder. A ripple of passion filled my body.
For an hour we bounced along the unpaved road. Outside, the landscape grew continuously more lush and jungle-like. Then, around one bend, the dense vegetation opened up into what appeared to be a small town. Wood frame buildings lined both sides of the road.
A hundred yards ahead, a large truck blocked the way. Several soldiers motioned for us to stop. Beyond them were other vehicles, some with flashing yellow lights. I became more alert. As we pulled to a stop, one of the soldiers outside walked up and said something I couldn't understand. The only word I recognized was "gasoline." Our escorts left the jeep and stood outside talking with the other soldiers. They glanced at us occasionally, weapons at their side.
I noticed a small street which angled to the left. As I looked at the shops and doorways, something changed in my perception. The shapes and colors of the buildings suddenly stood out and became more distinct.
I whispered Marjorie's name and felt her look up, but before she could say anything, an enormous explosion rocked the jeep. A blast of fire and light shot up from the area in front of us, and the soldiers were blown to the ground. Immediately, our vision was obscured by smoke and falling ash.
"Come on!" I yelled, pulling Marjorie from the vehicle. Amid the confusion, we ran down the street in the direction I had been looking. Behind us I could hear distant shouts and moans. Still engulfed with smoke, we ran perhaps fifty yards. Suddenly, I noticed a doorway to the left.
"In here!" I shouted. The door was open and we both ran inside. I fell against the door, closing it securely. When I turned around, I saw a middle-aged woman staring at us. We had dashed into someone's home.
As I looked at her, attempting a smile, I noticed that the woman's expression was not one of horror, nor anger, at having had two strangers rush into her house after an explosion. Instead, what she displayed was an amused half smile that looked more like resignation, as though she half expected us and now had to _do_ something. On a chair nearby was a small child about four years old.
"Hurry!" she said in English. "They will be looking for you!" She ushered us to the back of the sparsely furnished living room, through a hall, and down some wooden steps to a long cellar. The child walked at her side. We moved quickly through the cellar and up some other steps to an outside door leading to an alley.
The woman unlocked a small compact car which was parked there and hurried us inside. She directed us to lie down in the back seat, threw a blanket over us, and pulled away in what seemed to be a northerly direction. Through it all, I remained speechless, carried along by the woman's initiative. A rush of energy filled my body as I fully realized what had happened. My intuition of escape had occurred.
Marjorie lay beside me, her eyes tightly closed.
"Are you all right?" I whispered.
She looked up at me with tearful eyes and nodded.
After about fifteen minutes, the woman said, "I think you can sit up now."
I pushed away the blanket and looked around. We seemed to be on the same road as before the explosion, only farther north.
"Who are you?" I asked.
She turned and looked at me with her half smile. She was a shapely woman of about forty with shoulder length dark hair.
"I'm Karla Deez," she said. "This is my daughter, Mareta."
The child was smiling and looking over the passenger seat at us with large, inquisitive eyes. Her hair was jet black and also long.
I told them who we were, then asked, "How did you know to help us?"
Karla's smile grew wider. "You are running from the soldiers because of the Manuscript, aren't you?"
"Yes, but how did you know?"
"I know the Manuscript, too."
"Where are you taking us?" I asked.
"I don't know that," she said. "You will have to help me."
I glanced at Marjorie. She was watching me closely as I spoke. "Right now I don't know where to go," I said. "Before I was captured, I was trying to get to Iquitos."
"Why did you want to go there?" she asked.
"I'm trying to find a friend. He's looking for the Ninth Insight."
"That is a dangerous thing."
"I know."
"We will take you there, won't we, Mareta?"
The little girl giggled and said with a sophistication beyond her years, "Of course."
"What kind of explosion was that back there?" I asked.
"I think it was a gas truck," she answered. "Earlier, an accident had occurred, a leak."
I was still amazed at how quickly Karla had decided to help us so I decided to press the question. "How did you know we were running from the soldiers?"
She took a deep breath. "Yesterday, many military trucks were passing through the village going north. This is unusual and it made me think of the time two months ago when my friends were taken away. My friends and I studied the Manuscript together. We were the only ones in this village who had all eight insights. Then the soldiers came and took my friends. I have not heard from them.
"As I watched the trucks yesterday," she continued, "I knew the soldiers were continuing to hunt copies of the Manuscript and that others, like my friends, would need help. I envisioned myself helping those people if I could. Of course, I suspected that it was meaningful that I was having that particular thought at that particular time. So, when you came into my house, I was not surprised."
She paused, then asked, "Have you ever experienced this?"
"Yes," I said.
Karla slowed the car. Ahead was a crossroads.
"I think we should turn to the right here," she said. "It will take longer but it will be safer."
As Karla turned the car to the right, Mareta slid to the left and had to hold onto the seat to keep from falling over. She giggled. Marjorie was staring appreciatively at the little girl.
"How old is Mareta?" Marjorie asked Karla.
Karla looked disturbed, then said gently, "Please don't talk about her as if she wasn't here. If she was an adult you would have addressed the question to her."
"Oh, I'm sorry," Marjorie said.
"I'm five," Mareta said proudly.
"Have you studied the Eighth Insight?" Karla asked.
"No," Marjorie said, "I have only seen the Third Insight."
"I'm at the Eighth," I said. "Do you have any copies?"
"No," Karla said. "All the copies were taken away by the soldiers."
"Does the Eighth talk about how to relate to children?"
"Yes, it is about how humans will eventually learn to relate to each other, and talks of many things, such as how to project energy to others and how to avoid addictions to people."
There was that warning again. I was about to ask Karla what it meant when Marjorie spoke.
"Tell us about the Eighth Insight," she said.
"The Eighth Insight," Karla explained, "is about using energy in a new way when relating to people in general, but it begins at the beginning, with children."
"How should we view children?" I asked.
"We should view them as they really are, as end points in evolution that lead us forward. But in order to learn to evolve they need our energy on a constant basis, unconditionally. The worst thing that can be done to children is to drain their energy while correcting them. This is what creates control dramas in them, as you already know. But these learned manipulations on the child's part can be avoided if the adults give them all the energy they need no matter what the situation. That is why they should always be included in conversations, especially conversations about them. And you should never take responsibility for more children than you can give attention to."
"The Manuscript says all this?" I asked.
"Yes," she said, "and the point about the number of children is highly stressed."
I felt confused. "Why is the number of children one has important?"
She glanced at me for an instant as she drove. "Because any one adult can only focus on and give attention to one child at a time. If there are too many children for the number of adults, then the adults become over-whelmed and unable to give enough energy. The children begin to compete with each other for the adult's time."
"Sibling rivalry," I said.
"Yes, but the Manuscript says that this problem is more important than people think. Adults often glamorize the idea of large families and children growing up together. But children should learn the world from adults, not from other children. In too many cultures, children are running in gangs. The Manuscript says humans will slowly understand that they should not bring children into the world unless there is at least one adult committed to focus full attention, all of the time, on each child." "But wait a minute," I said. "In many situations both parents must work to survive. This denies them the right to have children."
"Not necessarily," she replied. "The Manuscript says humans will learn to extend their families beyond blood ties. So that someone else is able to provide one on one attention. All the energy does not have to come from the parents alone. In fact, it is better if it does not. But whoever cares for the children must provide this one on one attention."
"Well," I said, "you've done something right. Mareta certainly seems mature."
Karla frowned and said, "Don't tell me, tell her."
"Oh, right." I looked at the child. "You act very grown-up, Mareta."
She looked away shyly for a moment, then said, "Thank you." Karla hugged her warmly.
Karla looked at me proudly. "For the last two years I have been trying to relate to Mareta according to the Manuscript's guidelines, haven't I, Mareta?"
The child smiled and nodded.
"I have tried to give her energy and to always tell her the truth of every situation in language she can understand. When she asked the questions a young child asks, I treated them very seriously, avoiding the temptation of giving her a fanciful answer which is plainly for the entertainment of adults."
I smiled. "Do you mean untruths like, 'storks bring babies,' that sort of thing?"
"Yes, but these cultural expressions aren't so bad. Children figure these out quickly because they stay the same. Worse are the distortions created on the spot by adults just because they want to have a little fun, and because they believe the truth is too complicated for a child to comprehend. But this is not right; the truth can always be expressed at a child's level of understanding. It just takes some thought."
"What does the Manuscript say about this issue?"
"It says we should always find a way to tell a child the truth."
Part of me resisted this idea. I was one who enjoyed kidding around with children.
"Don't kids usually understand that adults are just playing?" I said. "All this seems to make them grow up too fast and take some of the fun out of childhood."
She looked at me sternly. "Mareta is full of fun. We chase and tumble and play all the childhood fantasy games. The difference is that when we are fantasizing, she knows it."
I nodded. She was right, of course.
"Mareta seems confident," Karla continued, "because I was there for her. I gave her one on one attention when she needed-it. And if I wasn't there, my sister, who lives next door, was there. She always had an adult to answer her questions, and because she has had this sincere attention, she has never felt she had to act out or show off. She has always had enough energy and that makes her assume she will continue to have enough, which makes the transition from receiving energy from adults to getting it from the universe—which we already talk about—much easier for her to grasp."
I noticed the terrain outside. We were traveling through deep jungle now and though I couldn't see it, I knew the sun was low in the afternoon sky.
"Can we get to Iquitos tonight?" I asked.
"No," Karla said. "But we can stay at a house I know."
"Near here?" I asked.
"Yes, it is the house of a friend. He works for the wildlife service."
"He works for the government?"
"Some of the Amazon is a protected area. He is the local agent, but influential. His name is Juan Hinton. Do not worry. He believes in the Manuscript and they have never bothered him."
By the time we arrived, the sky was completely dark. Around us the jungle was alive with night sounds, the air muggy. A large well-lit, wood frame house stood at the end of a clearing in the dense foliage. Nearby were two large buildings and several jeeps. Another vehicle was up on blocks and two men worked around lights underneath.
A thin Peruvian, dressed in expensive clothing, answered Karla's knock and smiled at her until he noticed Marjorie, Mareta and myself waiting on the steps. His face turned nervous and displeased as he talked to her in Spanish. She said something pleadingly in return, but his mannerism and inflection indicated that he did not want us to stay.
Then, through the crack in the door, I noticed a lone female figure standing in the foyer. I moved a little to bring her face into view. It was Julia. As I looked, she turned her head and saw me, then quickly walked forward with a surprised look on her face. She touched the shoulder of the man at the door and said something quietly into his ear. The man nodded, then opened the door with a look of resignation. We all introduced ourselves as Hinton led the way into the den area. Julia looked at me and said, "We meet again." She wore khaki pants with pockets on the legs and a bright red t-shirt.
"Yes we do," I said.
A Peruvian servant stopped Hinton, and after talking for a minute, the two walked into another part of the house. Julia sat in a chair by a coffee table and motioned for the rest of us to sit on a couch across from her. Marjorie appeared panicked. She looked at me intensely. Karla also seemed to be aware of Marjorie's distress. She walked over and took her by the hand. "Let's get some hot tea," she suggested.
As they walked away, Marjorie glanced back at me. I smiled and watched them until they turned the corner into the kitchen, then I turned to face Julia.
"So what do you think it means?" she asked.
"What does what mean?" I replied, still distracted.
"That we have run into each other again."
"Oh...I don't know."
"How did you wind up with Karla and where are you going?"
"She saved us. Marjorie and I had been detained by Peruvian troops. When we escaped, she happened to be there to help us."
Julia looked intense. "Tell me what occurred."
I leaned back and told her the whole story, beginning at the point in which I had taken Father Carl's truck and then all about the capture and our eventual escape.
"And Karla agreed to take you to Iquitos?" Julia asked.
"Yes."
"Why do you want to go there?"
"That's where Wil told Father Carl he was going. Wil apparently has a lead about the Ninth Insight. Also, Sebastian is there for some reason."
Julia nodded. "Yes, Sebastian has a mission near there. It's where he made his reputation, converting the Indians."
"What about you?" I asked. "What are you doing here?"
Julia told me that she too wanted to find the Ninth Insight, but that she had no leads. She had come to this house after thinking repeatedly of her old friend, Hinton.
I was hardly listening. Marjorie and Karla had walked out of the kitchen and were standing in the hall talking, cups of tea in their hands. Marjorie caught my eye but said nothing.
"Has she read much of the Manuscript?" Julia asked, nodding toward Marjorie.
"Just the Third Insight," I said.
"We can probably get her out of Peru if that's what she wants."
I turned and looked at her. "How?"
"Rolando is leaving tomorrow for Brazil. We have some friends at the American Embassy there. They can get her back to the United States. We have helped other Americans this way."
I looked at her and nodded tentatively. I realized I was having mixed feelings about what she had said. Part of me knew that leaving would be best for Marjorie. But another part wanted her to stay, to remain with me. I felt changed, energized, when she was around.
"I think I need to talk with her," I finally said.
"Of course," Julia replied. "We can talk later."
I got up and walked toward her. Karla was heading back toward the kitchen. Marjorie stepped around the corner of the hall out of sight. When I walked up, she was leaning back against the wall.
I pulled Marjorie into my arms. My body pulsated.
"Feel that energy?" I asked, whispering into her ear.
"It's incredible," she said. "What does it mean?"
"I don't know. We have some kind of connection."
I glanced around. No one could see us. We kissed passionately.
When I pulled back to look at her face, she looked different, stronger somehow, and I thought back to the day we had met at Viciente and to the conversation in the restaurant at Cula. I couldn't believe the amount of energy I felt in her presence and when she touched me.
She held me tightly. "Since that day at Viciente," she said, "I've wanted to be with you. I didn't know what to think about it then, but the energy is wonderful. I've never experienced anything like this."
Out of the corner of my eye I noticed Karla walking up, smiling. She told us that dinner was ready so we made our way into the dining room and found a huge buffet of fresh fruits and vegetables and breads. Everyone served their plates and sat around a large table. After Mareta sang a blessing song we spent an hour and a half eating and talking casually. Hinton had lost his nervousness and he set a light-hearted mood which helped to ease the tension of our escape. Marjorie was talking freely and laughing. Sitting beside her filled me with warm love.
After dinner, Hinton took us back into the den where a custard dessert was served with a sweet liqueur. Marjorie and I sat on the couch and fell into a long conversation about our pasts and significant life experiences. We seemed to grow closer and closer. The only difficulty we discovered was that she lived on the west coast and I resided in the south. Later Marjorie dismissed the problem and laughed heartily.
"I can't wait until we get back to the United States," she said. "We'll have so much fun traveling back and forth."
I sat back and gave her a serious look. "Julia said she could arrange a way for you to go home now."
"You mean both of us, don't you?" she replied.
"No, I...I can't go."
"Why?" she asked, "I can't leave without you. But I can't stand to stay here any longer either. I'll go crazy."
"You'll have to go on ahead. I'll be able to leave soon."
"No!" she said loudly. "I can't stand that!"
Karla, who was walking back into the den from putting Mareta in bed, glanced toward us, then looked quickly away. Hinton and Julia were still talking, seemingly oblivious to Marjorie's outburst.
"Please," Marjorie said. "Let's just go home."
I looked away.
"Okay, fine!" she said. "Stay!" She stood and walked briskly toward the bedroom area.
My gut wrenched as I watched Marjorie walk away. The energy I had gained with her collapsed, and I suddenly felt weak and confused. I tried to shake it off. After all, I told myself, I hadn't known her that long. On the other hand, I thought, maybe she was correct. Maybe I should just go home. What difference could I make here anyway? Back at home I could perhaps marshal some support for the Manuscript, and stay alive, as well. I stood up and started to follow her down the hall, but for some reason I sat back down. I couldn't decide what to do.
"May I join you for a minute?" Karla was suddenly asking. I hadn't noticed that she was standing beside the sofa.
"Sure," I said.
She sat down and looked at me with regard. "I couldn't help overhearing what is going on," she said. "And I thought that before you made your decision, you might want to hear what the Eighth Insight says about addictions to people."
"Yes, please, I want to know what that means."
"When one first learns to be clear and to engage one's evolution, any of us can be stopped, suddenly, by an addiction to another person."
"You're speaking of Marjorie and me, aren't you?"
"Let me explain the process," she said. "And you judge for yourself."
"Okay."
"First, let me say that I had a very hard time with this part of the insight. I don't think I would have ever understood if I had not met Professor Reneau."
"Reneau?!" I exclaimed. "I know him. We met when I was learning the Fourth Insight."
"Well," she said, "we met when we both had reached the Eighth Insight. He stayed at my house for several days."
I nodded in amazement.
"He said that the idea of an addiction, as used in the Manuscript, explains why power struggles arise in romantic relationships. We've always wondered what causes the bliss and euphoria of love to end, to suddenly turn into conflict, and now we know. It is a result of the flow of energy between the individuals involved.
"When love first happens, the two individuals are giving each other energy unconsciously and both people feel buoyant and elated. That's the incredible high we all call being "in love." Unfortunately, once they expect this feeling to come from the other person, they cut themselves off from the energy in the universe and begin to rely even more on the energy from each other—only now there doesn't seem to be enough and so they stop giving each other energy and fall back into their dramas in an attempt to control each other and force the other's energy their way. At this point the relationship degenerates into the usual power struggle."
She hesitated for a moment, as if checking whether I understood, then added, "Reneau told me that our susceptibility to this kind of addiction can be described psychologically, if that will help you understand?"
I nodded again for her to continue. "Reneau said the problem starts in our early family. Because of the energy competition there, none of us were able to complete an important psychological process. We weren't able to integrate our opposite sexual side."
"Our what?"
"In my case," she continued. "I wasn't able to integrate my male side. In your case you weren't able to integrate your female side. The reason we can become addicted to someone of the opposite sex is that we've yet to access this opposite sex energy ourselves. You see, the mystical energy that we can tap as an inner source is both male and female. We can eventually open up to it, but when we first begin to evolve, we have to be careful. The integration process takes some time. If we connect prematurely with a human source for our female or male energy, we block the universal supply."
I told her I didn't understand.
"Think of how this integration is supposed to work in an ideal family," she explained, "and then perhaps you can see what I mean. In any family, the child must first receive energy from the adults in his life. Usually, identifying with and integrating the energy of the same-sexed parent is accomplished easily, but receiving energy from the other parent can be more difficult because of the differences in the sexes.
"Let's use a female child as an example. All the little girl knows as she first attempts to integrate her male side is that she is extremely attracted to her father. She wants him around and close to her all the time. The Manuscript explains that what she really wants is male energy—because this male energy complements her female side. From this male energy she receives a sense of completion and euphoria. But she mistakenly thinks that the only way to have this energy is by sexually possessing her father and keeping him close physically.
"Interestingly, because she intuits that this energy is really supposed to be her own and that she should be able to command this energy at will, she wants to direct the father as if he were that part of herself. She thinks he is magical and perfect and able to supply her every whim. In a less than ideal family, this sets up a power conflict between the little girl and her dad. Dramas are formed as she learns to posture herself in order to manipulate him into giving her the energy she desires.
"But in an ideal family, the father would remain uncompetitive. He would continue to relate honestly and have enough energy so as to supply her unconditionally even though he can't do everything she asks. The important thing to know here, in our ideal example, is that the father would remain open and communicative. She thinks he is ideal and magical but if he honestly explains who he is and what he is doing and why, then the little girl can integrate his particular style and abilities and proceed past an unrealistic view of her father. In the end she will see him as just a particular human being, a human being with his own talents and faults. Once this true emulation takes place, then the child makes an easy transition from receiving her opposite-sex energy from her father to receiving it as part of the overall energy existing in the universe at large.
"The problem," she went on, "is that most parents, up to now, have been competing with their own children for energy, and that has affected all of us. Because this competition was taking place, none of us have quite resolved this opposite-sex issue. We're all stuck at the stage where we are still looking for our opposite-sex energy outside of ourselves, in the person of a male or female we can think of as ideal and magical and can possess sexually. See the problem?"
"Yes," I said. "I think I do."
"In terms of our ability to evolve consciously," she continued, "we are faced with a critical situation. As I said before, according to the Eighth Insight, when we first begin to evolve, we automatically begin to receive our opposite-sex energy. It comes in naturally from the energy in the universe. But we must be careful, because if another person comes along who offers this energy directly we can cut ourselves off from the true source... and regress." She chuckled to herself.
"What are you laughing at?" I asked.
"Reneau once made this analogy," she said. "He said that until we learn how to avoid this situation, we are walking around like a circle half complete. You know, we look like the letter C. We are very susceptible to a person of the opposite sex, some other circle half complete, coming up and joining with us—completing the circle that way—and giving us a burst of euphoria and energy that feels like the wholeness that a full connection with the universe produces. In reality, we have only joined up with another person who is looking for their other half on the outside too.
"Reneau said that this is a classical co-dependent relationship and that it has built-in problems that begin to arise immediately."
She hesitated, as though she expected me to say something. But I only nodded.
"You see, the problem with this completed person, this O, that both people think they have reached, is that it has taken two people to make this one whole person, one supplying the female energy and one supplying the male. This one whole person consequently has two heads, or egos. Both people want to run this whole person they have created and so, just as in childhood, both people want to command the other, as if the other were themselves. This kind of illusion of completeness always breaks down into a power struggle. In the end, each person must take the other for granted and even invalidate them so that they can lead this whole self in the direction they want to go. But of course that doesn't work, at least not any more. Perhaps in the past, one of the partners was willing to submit themselves to the other—usually the woman, sometimes the man. But we are waking up now. No one wants to be subservient to anyone else any longer."
I thought of what the First Insight had conveyed about power struggles within intimate relationships, and of the woman's outburst at the restaurant with Charlene. "So much for romance," I said.
"Oh, we can still have romance." Karla replied. "But first we have to complete the circle on our own. We have to stabilize our channel with the universe. That takes time, but afterward we are never susceptible to this problem again and we can have what the Manuscript calls a higher-relationship. When we connect romantically with another whole person after that, we create a super-person...but it never pulls us from the path of our individual evolution."
"Which is what you think Marjorie and I are doing to each other now, isn't it? Pulling ourselves off our paths?"
"Yes."
"So how do we avoid these encounters?" I asked.
"By resisting the 'love at first sight' feeling for a while, by learning to have platonic relationships with members of the opposite sex. But remember the process. You must have these relationships only with people who will reveal themselves totally, telling you how and why they are doing what they are doing—just as this would have happened with the opposite-sexed parent during an ideal childhood. By understanding who these opposite-sexed friends really are on the inside, one breaks past one's own fantasy projection about that gender, and that releases us to connect again with the universe.
"Remember, also," she continued, "that this is not easy, especially if one has to break away from a current co-dependent relationship. It is a real pulling apart of energy. It hurts. But it must be done. Co-dependence is not some new malady some of us have. We're all co-dependent, and we're all growing out of it now.
"The idea is to begin to experience that sense of well-being and euphoria experienced in the first moment of a co-dependent relationship when you are alone. You get to have him or her on the inside. After that, you evolve forward and can find that special romantic relationship that really fits you."
She paused. "And who knows, if both you and Marjorie evolve further, perhaps you will find that you truly belong with each other. But understand: your relationship with her has no way of working now."
Our conversation was interrupted as Hinton walked over and explained that he was retiring for the night, and that our rooms had been prepared. We both expressed our appreciation for his hospitality, and as he walked away, Karla said, "I think I'm going to bed also. We'll talk later."
I nodded and watched her as she left. Then I felt a hand on my shoulder. It was Julia.
"I'm going to my room," she said. "Do you know where yours is? I can show you."
"Please," I said, then asked, "Where is Marjorie's room?"
She smiled as we walked down the hall and stopped in front of a particular door. "Nowhere near yours," she said. "Mr. Hinton is a very conservative man."
I smiled back and bid her good night, then entered my room and held my stomach until I went to sleep.
I awoke to the smell of rich coffee. The aroma permeated the entire house. After I dressed, I walked into the den. An older male houseworker offered me a glass of fresh grape juice which I accepted.
"Good morning," Julia said from behind me.
I turned around. "Good morning."
She looked at me intensely, then asked, "Have you discovered yet why we've run into each other again?"
"No," I said, "I haven't been able to think about it. I've been trying to understand addictions."
"Yes," she replied. "I saw."
"What do you mean?"
"I could tell what was happening by the way your energy field looked."
"How did it look?" I asked.
"Your energy was connected to Marjorie's. When you were sitting here and she was in the other room, your field stretched all the way in there and attached to hers."
I shook my head.
She smiled and put her hand on my shoulder. "You had lost your connection with the universe. You had become addicted to Marjorie's energy as a substitute. It is the same way with all addictions—one goes through someone or something else to connect with the universe. The way to deal with this is to get your energy up and then center yourself again in what you are really doing here."
I nodded and walked outside. She waited in the den. For about ten minutes I practiced the method of building energy that Sanchez had taught me. Gradually the beauty returned and I felt much lighter. I returned to the house. "You look better," Julia said.
"I feel better," I replied.
"So what are-your questions at this point?"
I thought for a minute. I had found Marjorie. That question had been answered. But I still wanted to find out where Wil was. And I still wanted to understand how people would be acting toward each other if they follow this Manuscript. If the Manuscript's effect was positive, why would Sebastian and the other priests be worried?
I looked at Julia. "I need to grasp the rest of the Eighth Insight and I still want to find Wil. Maybe he has the Ninth."
"I'm going to Iquitos tomorrow," she said. "Would you like to go?"
I hesitated.
"I think Wil is there," she added.
"How do you know?
"Because of the thoughts I had about him last night."
I said nothing.
"I had thoughts of you, too," Julia continued. "Of both of us going to Iquitos. You're involved in this somehow."
"Involved in what?" I asked.
She grinned. "In finding this last insight before Sebastian does."
As she spoke, the image came to my mind of Julia and me arriving at Iquitos, but then deciding to go in separate directions for some reason. I felt I had a purpose but it was unclear.
I focused again on Julia. She was smiling.
"Where were you?" she asked.
"Sorry," I said. "I was thinking about something."
"Was it important?"
"I don't know. I was thinking that once we get to Iquitos...that we would go in two different directions."
Rolando came into the room.
"I brought the supplies you wanted," he said to Julia. He recognized me and nodded politely.
"Good, thank you," Julia replied. "Did you see many soldiers?"
"No, I did not see any," he said.
Marjorie walked into the room then and distracted me but I could hear Julia explaining to Rolando that she thought Marjorie wanted to go with him to Brazil, where she would arrange passage back to the States.
I went over to Marjorie. "How did you sleep?" I asked.
She looked at me as though deciding whether to remain angry. "Not very well," she said.
I nodded toward Rolando. "He is Julia's friend. He is leaving this morning for Brazil. From there he will help you get back to the States."
She appeared frightened.
"Look, you're going to be okay," I said. "They've helped other Americans. They know people at the American Embassy in Brazil. In no time you will be home."
She nodded. "I'm worried about you."
"I'll be fine. Don't worry. As soon as I get back to the U.S., I'll call you."
From behind me, Hinton announced that breakfast was being served. We walked into the dining room and ate. Afterward, Julia and Rolando seemed to be in a hurry. Julia explained that it was important for Rolando and Marjorie to get across the border before dark and the journey would take all day.
Marjorie packed some clothes that Hinton had given her, and later, while Julia and Rolando were talking by the door, I pulled Marjorie to the side.
"Don't worry about anything," I said. "Just keep your eyes open and perhaps you'll see the other insights."
She smiled but said nothing. I watched with Julia as Rolando helped her load her things into his small car. Her eyes met mine briefly as they drove away.
"Do you think they will get through all right?" I asked Julia.
She looked at me and winked. "Of course. And now, we had better go, as well. I have some clothes for you." She handed me a satchel of clothes and we loaded these and several boxes of foodstuff into the pick-up truck. We then said good-bye to Hinton and Karla and Mareta, and drove northeast toward Iquitos.
As we traveled, the landscape grew even more jungle-like and we saw very few signs of people. I began thinking of the Eighth Insight. Clearly it was a new understanding of how to treat others, but I didn't understand it completely. Karla had told me of the way one should treat children and the dangers of an addiction to a person. But both Pablo and Karla had alluded to a way to consciously project energy onto others. What was this about?
I caught Julia's eye and said, "I haven't quite grasped the Eighth Insight."
"How we approach other people determines how quickly we evolve, how quickly our life questions are answered," she said.
"How does that work?" I asked.
"Think about your own situation," she said. "How have your questions been answered?"
"By people who came along, I guess."
"Were you completely open to their messages?"
"Not really. I was mainly aloof."
"Were the people who brought messages to you pulled back also?"
"No, they were very open and helpful. They..." I hesitated, unable to think of the correct way to express my idea.
"Did they help you by opening you up?" she asked. "Did they fill you with warmth and energy somehow?"
Her remark uncapped an eruption of memories. I recalled Wil's soothing attitude when I was on the verge of panic in Lima, and Sanchez's fatherly hospitality, and Father Carl's and Pablo's and Karla's concerned counsel. And now Julia's. They all had the same look in their eyes.
"Yes," I said. "All of you have done that."
"That's right," she said. "We have, and we were doing it consciously, following the Eighth Insight. By lifting you up and helping you to get clear, we could search for the truth, the message, that you had for us. Do you understand that? Energizing you was the best thing we could do for ourselves."
"What does the Manuscript say about all this, exactly?"
"It says that whenever people cross our paths, there is always a message for us. Chance encounters do not exist. But how we respond to these encounters determines whether we're able to receive the message. If we have a conversation with someone who crosses our path and we do not see a message pertaining to our current questions, it does not mean there was no message. It only means we missed it for some reason."
She thought for a moment, then continued. "Have you ever run into an old friend or acquaintance, talked for a minute and left, then run into him or her again the same day or the same week?"
"Yes, I have," I replied.
"And what do you usually say? Something like 'Well, fancy seeing you again,' and laugh and go on your way."
"Something like that."
"The Manuscript says that what we should do instead in that situation is to stop what we are doing, no matter what, and find out the message we have for that person, and that the person has for us. The Manuscript predicts that once humans grasp this reality, our interaction will slow down and become more purposeful and deliberate."
"But isn't that hard to do, especially with someone who wouldn't know what you were talking about?"
"Yes, but the Manuscript outlines the procedures."
"You mean, the exact way we're supposed to treat each other?"
"That's right."
"What does it say?"
"Do you remember the Third Insight, that humans are unique in a world of energy in that they can project their energy consciously?"
"Yes."
"Do you remember how this is done?"
I recalled John's lessons. "Yes, it is done by appreciating the beauty of an object until enough energy comes into us to feel love. At that point we can send energy back."
"That's right. And the same principle holds true with people. When we appreciate the shape and demeanor of a person, really focus on them until their shape and features begin to stand out and to have more presence, we can then send them energy, lifting them up.
"Of course, the first step is to keep our own energy high, then we can start the flow of energy coming into us, through us, and into the other person. The more we appreciate their wholeness, their inner beauty, the more the energy flows into them, and naturally, the more that flows into us."
She laughed. "It's really a rather hedonistic thing to do," she said. "The more we can love and appreciate others, the more energy flows into us. That's why loving and energizing others is the best possible thing we can do for ourselves."
"I've heard that before," I said. "Father Sanchez says it often."
I looked at Julia closely. I had the feeling I was seeing her deeper personality for the first time. She returned my gaze for an instant, then focused again on the road. "The effect on the individual of this projection of energy is immense," she said. "Right now, for instance, you're filling me with energy. I can feel it. What I feel is a greater sense of lightness and clarity as I'm formulating my thoughts to speak.
"Because you are giving me more energy than I would have otherwise, I can see what my truth is and more readily give it to you. When I do that, you have a sense of revelation about what I'm saying. This leads you to see my higher self even more fully and so appreciate and focus on it at an even deeper level, which gives me even more energy and greater insight into my truth and the cycle begins over again. Two or more people doing this together can reach incredible highs as they build one another up and have it immediately returned. You must understand, though, that this connection is completely different from a co-dependent relationship. A co-dependent relationship begins this way but soon becomes controlling because the addiction cuts them off from their source and the energy runs out. Real projection of energy has no attachment or intention. Both people are just waiting for the messages."
As she spoke I thought of a question. Pablo had said that I didn't get Father Costous' message at first because I set off his childhood drama.
"What do we do," I asked Julia, "if the person we are speaking with is already operating in a control drama and trying to pull us into it? How do we cut through that?"
Julia answered quickly. "The Manuscript says if we do not assume the matching drama, then the person's own drama will fall apart."
"I'm not sure I understand," I said.
Julia was looking at the road ahead. I could tell she was in thought. "Somewhere right through here is a house where we can buy some gasoline."
I looked down at the gas gauge. It indicated the truck's tank was half full.
"We still have plenty of gas," I said.
"Yes, I know," she replied. "But I had a thought about stopping and filling it up, so I think we should."
"Oh, okay."
"There's the road," she said, pointing to the right.
We made the turn and drove almost a mile into the jungle before arriving at what looked like a supply house for fishermen and hunters. The dwelling was built at the edge of a river and several fishing boats were tied to the dock. We pulled up to a rusty pump and Julia went inside to find the owner.
I climbed out and stretched then walked around the building to the water's edge. The air was extremely humid. Although the thick canopy of trees blocked the sun, I could tell it was almost directly overhead. Soon the temperature would be scorching.
Suddenly a man behind me was speaking angrily in Spanish. I turned to see a short stocky Peruvian. He looked at me menacingly and repeated the statement.
"I don't understand what you're saying."
He switched to English. "Who are you? What are you doing here?"
I tried to ignore him. "We're just here for gas. We'll be gone in a few minutes." I turned around and faced the water again, hoping he would go away.
He walked to the side of me. "I think you better tell me who you are, Yankee."
I looked at him again. He appeared to be serious.
"I'm an American," I said. "I'm not sure where I'm going. I'm riding with a friend."
"A lost American," he said hostilely.
"That's right," I said.
"What are you after here, American?"
"I'm not after anything," I said, trying to walk back to the car. "and I've done nothing to you. Leave me alone."
I noticed suddenly that Julia was standing at the vehicle. When I looked, the Peruvian turned and looked too.
"It's time to leave," Julia said. "They're not in business any longer."
"Who are you?" the Peruvian asked her in his hostile tone.
"Why are you so angry?" Julia asked in response.
The man's demeanor changed. "Because it is my job to look after this place."
"I'm sure you do a good job. But it's hard for people to talk if you're frightening them."
The man stared, trying to figure Julia out.
"We're on our way to Iquitos," Julia said. "We're working with Father Sanchez and Father Carl. Do you know them?"
He shook his head, but the mention of the two priests settled him down even more. He finally nodded and walked away.
"Let's go," Julia said.
We got in the truck and drove away. I realized how anxious and nervous I had been. I tried to shake it off.
"Did anything happen inside?" I asked.
Julia looked at me. "What do you mean?"
"I mean did anything happen inside to explain why you had the thought to stop?"
She laughed, then said, "No, all the action was outside."
I looked at her.
"Have you figured it out?" she asked.
"No," I replied.
"What were you thinking about just before we arrived?"
"That I wanted to stretch my legs."
"No, before that. What were you asking about when we were talking?"
I tried to think. We were talking about childhood dramas. Then I remembered. "You had said something that had confused me," I said. "You had said that a person cannot play a control drama with us unless we play the matching drama. I didn't understand that."
"Do you understand now?"
"Not really. What are you getting at?"
"The scene outside clearly demonstrated what happens if you _do_ play the matching drama."
"How?"
She glanced at me briefly. "What drama was the man playing with you?"
"He was obviously the Intimidator."
"Right, and what drama did you play?"
"I was just trying to get him off my back."
"I know, but what drama were you playing?"
"Well, I started off in my aloofness drama, but he kept coming after me."
"Then?"
The conversation was irritating me but I tried to get centered and stay with it. I looked at Julia and said, "I guess I was playing a Poor Me."
She smiled. "That's right."
"I noticed you handled him with no problem," I said.
"Only because I didn't play the drama he expected. Remember that each person's control drama was formed in childhood in relation to another drama. Therefore each drama needs a matching drama to be fully played out. What the intimidator needs in order to get energy is either a poor me, or another intimidator.
"How did you handle it?" I asked, still confused.
"My drama response would have been to play the Intimidator myself, trying to out intimidate him. Of course, this would probably have resulted in violence. But instead I did what the Manuscript instructs. I named the drama he was playing. All dramas are covert strategies to get energy. He was trying to intimidate you out of your energy. When he tried that on me, I named what he was doing."
"That's why you asked why he was so angry?"
"Yes. The Manuscript says that covert manipulations for energy can't exist if you bring them into consciousness by pointing them out. They cease to be covert. It is a very simple method. The best truth about what's going on in a conversation always prevails. After that the person has to be more real and honest."
"That makes sense," I said. "I guess I've even named dramas myself before, though I didn't know what I was doing."
"I'm sure. That's something all of us have done. We're just learning more about what is at stake. And the key to making it work is to simultaneously look beyond the drama at the real person in front of you, and send as much energy their way as possible. If they can feel energy coming in anyway, then it's easier for them to give up their way of manipulating for it."
"What could you appreciate in that guy?" I said.
"I could appreciate him as a little insecure boy needing energy desperately. Besides, he brought you a very timely message, right?"
I looked at her. She appeared to be on the verge of laughter.
"You think we stopped there just so I could grasp how to deal with someone playing a drama?"
"That was the question you asked, wasn't it?"
I smiled, my good feeling beginning to return. "Yes, I guess it was."
A mosquito buzzing around my face forced me awake. I looked over at Julia. She was smiling as though recalling something humorous. For several hours after leaving the river camp we had ridden in silence, munching on the food Julia had prepared for the trip.
"You're awake," Julia said.
"Yes," I replied. "How far is Iquitos?"
"The town is about thirty miles, but the Stewart Inn is only a few minutes ahead. It's a small Inn and hunting camp. The owner is English and supports the Manuscript." She smiled again. "We have had many good times together. Unless something has happened, he should be there. I hope we can get a lead on where Wil is."
She pulled the truck to the side of the road and looked at me. "We'd better get centered in where we are," she said. "Before I ran into you again, I had been floundering around wanting to help find the Ninth Insight but not knowing where to go. At one point I realized I had been thinking repeatedly of Hinton. I get to his house and who should show up but you. And you tell me that you're looking for Wil and that he's rumored to be in Iquitos. I have the intuition that we'll both be involved in finding the Ninth Insight, and then you have the intuition that at some point we separate and go in different directions. Is that pretty much it?"
"Yes," I said.
"Well, I want you to know that after that, I got to thinking about Willie Stewart and the inn. Something is going to happen there."
I nodded.
She drove the vehicle back on the road and around a curve. "There's the inn," Julia said.
Ahead about two hundred yards, where the road took another sharp bend to the right, was a two-story, Victorian style home.
We pulled into a gravel parking area and stopped. Several men were talking on the porch. I opened the door of the vehicle and was about to get out when Julia touched my shoulder.
"Remember," she said, "no one is here by accident. Stay alert for the messages."
I followed her as we walked up on the porch. The men, well-dressed Peruvians, nodded distractedly as we walked by them and into the house.
Once in the large foyer, Julia pointed to a dining room and asked me to pick a table and wait there while she looked for the owner.
I surveyed the room. It contained a dozen or so tables lined in two rows. I picked a table about halfway down and sat with my back against the wall. Three more men, all Peruvians, came in behind me and sat down across from my table. Another man came in soon after and took a table about twenty feet to my right. He sat at an angle where his back was slightly toward me. I noticed he was a foreigner, perhaps European.
Julia entered the room, spotted me, and then walked over and sat down facing me.
"The owner isn't here," she said, "and his clerk knew nothing of Wil."
"Now what?" I asked.
She looked at me and shrugged. "I don't know. We'll have to assume that someone here has a message for us."
"Who do you think it is?"
"I don't know."
"How do you know it will happen?" I asked, suddenly feeling skeptical. Even after all the mysterious coincidences that had happened to me since I had been in Peru, I still had trouble believing one would occur now just because we wanted it to. "Don't forget the Third Insight," Julia replied. "The universe is energy, energy that responds to our expectations. People are part of that energy universe too, so when we have a question, the people show up who have the answer."
She cut her eyes to the other people in the room. "I don't know who these people are, but if we could talk with them long enough, we would find a truth each had for us, some part of the answer to our questions."
I looked at her askance. She leaned toward me across the table. "Get it into your head. Everyone who crosses our path has a message for us. Otherwise they would have taken another path, or left earlier or later. The fact that these people are here means that they are here for some reason."
I looked at her, still not sure whether I believed it was that simple.
"The hard part," she said, "is figuring out who to take time to talk with when talking with everyone is impossible."
"How do you decide?" I asked.
"The Manuscript says there are signs."
I was listening intently to Julia but for some reason I glanced around and looked at the man to my right. He turned around at exactly the same time and looked back at me. As I caught his eye, he shifted his gaze back to his food. I also looked away.
"What signs?" I asked.
"Signs like that," she said.
"Like what?"
"Like what you just did." She nodded toward the man to my right.
"What do you mean?"
Julia leaned toward me again. "The Manuscript says we will learn that sudden, spontaneous eye contact is a sign that two people should talk."
"But doesn't that happen all the time?" I asked.
"Yes, it does," she said. "And after it happens, most people just forget about it and go on with what they are doing."
I nodded. "What other signs does the Manuscript mention?" I asked.
"A sense of recognition," she replied. "Seeing someone who looks familiar, even though you know you've never seen the person before."
When she said that, I thought of Dobson and Reneau, of how familiar they looked when I had first seen them.
"Does the Manuscript say anything about why some people look familiar?" I asked.
"Not much. It just says we are members of the same thought group with certain other people. Thought groups are usually evolving along the same lines of interest. They think the same and that creates the same expression and outward experience. We intuitively recognize members of our thought group and very often they provide messages for us."
I looked at the man to my right one more time. He did look vaguely familiar. Incredibly, as I gazed at him, he turned and glanced at me again. I quickly looked back at Julia.
"You _must_ talk with this man," Julia said.
I didn't respond. I felt uncomfortable with the idea of just walking up to him. I wanted to leave, to go on to Iquitos. I was about to make that suggestion when Julia spoke again, "This is where we need to be," she said, "not Iquitos. We have to play this out. The trouble with you is that you're resisting the idea of walking up to him and starting a conversation."
"How did you do that?" I asked.
"Do what?" she replied.
"Know what I was thinking."
"There is nothing mysterious about it. It is a matter of looking closely at your expressions."
"What do you mean?"
"When you are appreciating someone at a deeper level, you can see their most honest self beyond any facades they may put up. When you really focus at this level, you can perceive what someone is thinking as a subtle expression on their face. This is perfectly natural."
"It sounds telepathic to me," I said.
She grinned. "Telepathy is perfectly natural."
I glanced over at the man again. He did not look.
"You had better get your energy together and talk with him," Julia said, "before you lose the opportunity."
I focused on increasing my energy until I felt stronger, then asked, "What am I going to say to this guy?"
"The truth," she said. "Put the truth in a form you think he would recognize."
"Okay, I will."
I slid back my chair and walked over to where the man was sitting. He looked shy and nervous, the way I remembered Pablo looking the night I met him. I tried to look beyond the man's nervousness to a deeper level. When I did I seemed to perceive a new look on his face, one with more energy.
"Hello," I said. "You appear not to be a native Peruvian. I'm hoping you can help me. I'm looking for a friend of mine, Wil James."
"Please sit down," he said in a Scandinavian accent. "I'm Professor Edmond Connor."
He offered me his hand and said, "I'm sorry. I do not know your friend, Wil."
I introduced myself and then explained—just on a hunch that it would mean something to him—that Wil was searching for the Ninth Insight.
"I'm familiar with the Manuscript," he said. "I'm here to study its authenticity."
"Alone?"
"I was to meet a Professor Dobson here. But so far he has not come. I don't understand the delay. He assured me that he would be here when I arrived."
"You know Dobson?!"
"Yes. He is the one who is organizing an inspection of the Manuscript."
"And he's all right? He's coming here?"
The Professor looked at me questioningly. "Those were the plans we made. Has something been wrong?"
My energy fell. I realized that Dobson's meeting with Connor had been set up before Dobson's arrest. "I met him on the airplane," I explained, "when I came to Peru. He was arrested in Lima. I have no idea what happened to him."
"Arrested! My God!"
"When did you last speak with him?" I asked
"Several weeks ago, but our meeting time here was firm. He said he would call me if anything changed."
"Do you remember why he wanted you to meet him here instead of in Lima?" I asked.
"He said there were some ruins around here and that he would be up in this area speaking with another scientist."
"Did he mention where he would be talking to this scientist?"
"Yes, he said he had to go to, uh, San Luis, I believe. Why?"
"I don't know... I was just wondering."
As I said this, two things happened simultaneously. First, I began thinking of Dobson, of seeing him again. We were meeting along a road with large trees. And then, at the same time, I looked out the window and saw, to my amazement, Father Sanchez walking up the porch steps. He looked tired and his clothes were dirty. In the parking lot another priest waited in an old car.
"Who is that?" Professor Connor asked.
"It's Father Sanchez!" I replied, barely able to contain my excitement.
I turned around and looked for Julia but she was no longer sitting at our table. I got up just as Sanchez walked into the room. When he saw me, he stopped abruptly, a look of total surprise on his face, then he walked over and embraced me.
"Are you all right?" he asked.
"Yes, fine," I said. "What are you doing here?"
Through his fatigue, he chuckled lightly. "I didn't know where else to go. And I almost didn't make it here. Hundreds of troops are headed this way."
"Why are the troops coming?" Connor asked from behind me, walking up to where Sanchez and I were standing.
"I'm sorry," Sanchez replied. "I do not know what the troops have in mind. I just know there are many."
I introduced the two men and told Father Sanchez of Connor's situation. Connor appeared panicked.
"I must leave," he said, "but I have no driver."
"Father Paul is waiting outside," Sanchez said. "He is going back to Lima immediately. You may ride with him if you wish."
"Indeed I do," Connor said.
"Wait, what if they run into those troops?" I asked.
"I don't think they would stop Father Paul," Sanchez said. "He is not well-known."
At that moment Julia came back into the room and saw Sanchez. The two hugged warmly and, again, I introduced Connor. As I spoke, Connor seemed to grow even more fearful and after only a few minutes, Sanchez told him that it was time for Father Paul to start back. Connor left to get his belongings from his room and quickly returned. Both Sanchez and Julia escorted him outside, but I told him good-bye there and waited at the table. I wanted to think. I knew meeting Connor was significant somehow, and that Sanchez finding us here was important, but I couldn't quite figure it out.
Before long, Julia came back into the room and sat down beside me. "I told you something was going to happen here," she said. "If we hadn't stopped we wouldn't have seen Sanchez, or Connor for that matter. By the way, what did you learn from Connor?"
"I'm not sure yet," I said. "Where is Father Sanchez?"
"He checked into a room to rest for a while. He hasn't slept in two days."
I looked away. I knew that Sanchez was tired, but hearing that he was unavailable disappointed me. I wanted very much to talk with him, to see if he could add some perspective to what was happening, especially concerning the soldiers. I felt uneasy and part of me wanted to flee with Connor.
Julia picked up on my impatience. "Take it easy," she said. "Slow down and tell me what you think of the Eighth Insight so far."
I looked at her and tried to center myself. "I'm not sure where to start."
"What do you think the Eighth Insight is saying?"
I thought back. "It's about a way of relating to other people, to children and to adults. It's about naming control dramas and breaking through them and focusing on other people in a way that sends them energy."
"And?" she asked.
I focused on her face and immediately saw what she was getting at. "And if we are observant about who to talk with, then we get the answers we desire as a result."
Julia smiled broadly.
"Have I grasped the Insight?" I asked.
"Almost," she said. "But there's one more thing. You understand how one person can uplift another. Now you're about to see what happens in a group when all of the participants know how to interact this way."
I walked out to the porch and sat in one of the wrought-iron chairs. After a few minutes Julia came through the door and joined me. We had eaten a leisurely dinner without much talking and afterward had decided to sit outside in the night air. Three hours had gone by since Sanchez had gone to his room and I was beginning to feel impatient again. When Sanchez suddenly walked outside and sat down with us I was relieved.
"Have you heard anything about Wil?" I asked him.
When I spoke, he slid his chair around to face Julia and me. I noticed that he was carefully adjusting the position of his chair so that he was an equal distance from each of us.
"Yes," he said finally. "I have."
He paused again and appeared to be in thought, so I asked, "What did you hear?"
"Let me tell you everything that happened," he said. "When Father Carl and I left to go back to my mission, we expected to find Father Sebastian there, along with the military. We expected an inquisition. When we arrived we found that Father Sebastian and the soldiers had left abruptly several hours earlier, after receiving a message.
"For a whole day we didn't know what was going on, then yesterday we were visited by a Father Costous, whom I understand you have met. He told us that he was directed to my mission by Wil James. Apparently Wil remembered the name of my mission from his conversation earlier with Father Carl, and intuitively knew that we would need the information Father Costous was bringing. Father Costous has decided to support the Manuscript."
"Why did Sebastian leave so suddenly?" I asked.
"Because," Sanchez said, "he wanted to speed up the implementation of his plans. The message he received told him that Father Costous was about to expose his intention to destroy the Ninth Insight."
"Sebastian found it?"
"Not yet, but he expects to. They found another document that indicated where the Ninth is."
"Where is it supposed to be?" Julia asked.
"At the Celestine ruins," Sanchez replied.
"Where is that?" I inquired.
Julia looked at me. "About sixty miles from here. It's a dig the Peruvian scientists have excavated exclusively and with quite a lot of secrecy. It consists of several layers of ancient temples, first Mayan, then Inca. Apparently both cultures believed there was something special about that location."
I suddenly realized that Sanchez was concentrating on the conversation with unusual intensity. When I talked, he would focus totally on me, without breaking his gaze at all. When Julia spoke, Father Sanchez shifted his position to focus completely on her. He seemed to be acting very deliberately. I wondered what he was doing, and at that precise moment there occurred a lull in the conversation. They both looked at me expectantly.
"What?" I asked.
Sanchez smiled. "It's your time to speak."
"Are we taking turns?" I asked.
"No," Julia said, "we are having a conscious conversation. Each person speaks when the energy moves to him. We could tell it had moved to you."
I didn't know what to say.
Sanchez looked at me warmly. "Part of the Eighth Insight is learning to interact consciously when in a group. But don't get self-conscious. Just understand the process. As the members of a group talk, only one will have the most powerful idea at any one point in time. If they are alert, the others in the group can feel who is about to speak, and then they can consciously focus their energy on this person, helping to bring out his idea with the greatest clarity.
"Then, as the conversation proceeds, someone else will have the most powerful idea, then someone else and so forth. If you concentrate on what is being said, you can feel when it is your turn. The idea will come up into your mind."
Sanchez shifted his eyes to Julia, who asked, "What idea were you having that you didn't express?"
I tried to think. "I was wondering," I said finally, "why Father Sanchez was looking intensely at whomever was speaking. I guess I was wondering what it meant."
"The key to this process," Sanchez said, "is to speak up when it is your moment and to project energy when it is someone else's time."
"Many things can go wrong," Julia interjected. "Some people get inflated when in a group. They feel the power of an idea and express it, then because that burst of energy feels so good, they keep on talking, long after the energy should have shifted to someone else. They try to monopolize the group.
"Others are pulled back and even when they feel the power of an idea, they won't risk saying it. When this happens, the group fragments and the members don't get the benefit of all the messages. The same thing happens when some members of the group are not accepted by some of the others. The rejected individuals are prevented from receiving the energy and so the group misses the benefit of their ideas."
Julia paused and we both looked at Sanchez who was taking a breath to speak. "How people are excluded is important," he said. "When we dislike someone, or feel threatened by someone, the natural tendency is to focus on something we dislike about the person, something that irritates us. Unfortunately, when we do this—instead of seeing the deeper beauty of the person and giving them energy—we take energy away and actually do them harm. All they know is that they suddenly feel less beautiful and less confident, and it is because we sapped their energy."
"That is why," Julia said, "this process is so important. Humans are aging each other at a tremendous rate out there with their violent competitions."
"But remember," Sanchez added, "in a truly functional group, the idea is to do the opposite of this, the idea is for every member's energy and vibration to increase because of the energy sent by all of the others. When this occurs, everyone's individual energy field merges with everyone else's and makes one pool of energy. It is as if the group is just one body, but one with many heads. Sometimes one head speaks for the body. Sometimes another talks. But in a group functioning this way, each individual knows when to speak and what to say because he truly sees life more clearly. This is the Higher Person the Eighth insight talked about in connection with a romantic relationship between a man and a women. But other groups can form one as well."
Father Sanchez's words made me think of Father Costous suddenly, and of Pablo. Had this young Indian finally changed Father Costous' mind, leading him to now want to preserve the Manuscript? Was Pablo able to do this because of the power of the Eighth Insight?
"Where is Father Costous now?" I asked.
Both individuals looked mildly surprised at my question, but Father Sanchez quickly replied, "He and Father Carl decided to go to Lima to speak with our church leaders about what Cardinal Sebastian seems to have planned."
"I guess that's why he was so adamant about going to your mission with you. He knew there was something else he was supposed to do."
"Exactly," Sanchez said.
A lull developed in the conversation and we looked at one another, each of us waiting for the next idea.
"The question now," Father Sanchez finally said, "is what are _we_ supposed to do?"
Julia spoke first. "I've had thoughts all along about being involved with the Ninth Insight somehow, of getting hold of it long enough to do something... but I can't quite see it clearly."
Sanchez and I gazed at her intensely.
"I see this happening at a particular place..." she continued. "Wait a minute. The place I've been thinking about is at the ruins, at the Celestine ruins. There is a particular spot there between the temples. I'd almost forgotten." She looked back at us. "That's where I need to go; I need to go to the Celestine ruins."
As Julia finished, both she and Sanchez shifted their gaze to me.
"I don't know," I said. "I've been interested in why Sebastian and his people are so against the Manuscript. I found out it's because they fear the idea of our inner evolution... but now I don't know where to go... those soldiers are coming... it appears that Sebastian is going to find the Ninth Insight first... I don't know; I've been thinking I'm involved somehow in convincing him not to destroy it."
I stopped speaking. My thoughts went to Dobson again and then abruptly to the Ninth Insight. I suddenly realized that the Ninth Insight was going to reveal where we humans were going with this evolution. I had wondered how humans would be acting toward each other as a result of the Manuscript, and that question had been answered with the Eighth Insight, and now the logical next question was: where is it all going to lead, how will human society change? That had to be what the Ninth was about.
I knew somehow that this knowledge could also be used to ease Sebastian's fears about conscious evolution...If he would listen.
"I still think Cardinal Sebastian can be convinced to support the Manuscript!" I said with conviction.
"You see yourself convincing him?" Sanchez asked me.
"No... no, not really. I'm with someone else who can reach him, someone who knows him and can speak at his level."
As I said that, Julia and I both spontaneously looked at Father Sanchez.
He struggled to smile and spoke with resignation. "Cardinal Sebastian and I have avoided a confrontation over the Manuscript for a long time. He has always been my superior. He considered me his protégé and I must admit that I looked up to him. But I guess I always knew that it would come to this. The first time you mentioned it, I knew that the task of convincing him was mine. My whole life has set me up for it."
He looked intensely at Julia and me, then continued, "My mother was a Christian reformer. She hated the use of guilt and coercion when evangelizing. She felt that people should come to religion because of love, not out of fear. My father, on the other hand, was a disciplinarian who later became a priest, and like Sebastian, believed adamantly in tradition and authority. That left me wanting to work within church authority, but always seeking ways it should be amended so that higher religious experience is emphasized.
"Dealing with Sebastian is the next step for me. I've been resisting it, but I know I have to go to Sebastian's mission at Iquitos."
"I'll ride with you," I said.
[THE
EMERGING
CULTURE](CelestineProph_toc.html#chap-9)
The road north wound through dense jungle and across several large streams—tributaries, Father Sanchez told me—of the Amazon. We had risen early and said a quick good-bye to Julia, then left in a vehicle Father Sanchez had borrowed, a truck with raised, oversized tires and four-wheel drive. As we traveled, the terrain rose slightly and the trees became more widely spaced and larger.
"This looks like the land around Viciente," I told Sanchez.
He smiled at me and said, "We've entered a fifty mile stretch of land about twenty miles wide that is different, more energized. It runs all the way to the Celestine ruins. On all sides of this area is pure jungle."
Far to the right, at the edge of the jungle, I noticed a patch of cleared land. "What is that?" I asked, pointing.
"That," he said, "is the government's idea of agricultural development."
A wide stretch of trees had been bulldozed and pushed into piles, some partially burned. A herd of cattle grazed aimlessly amid the wild grasses and eroded topsoil. As we passed, several looked our way, distracted by the sound. I noticed another patch of freshly bull-dozed land and realized the development was moving toward the larger trees we were traveling through.
"That looks awful," I said.
"It is," Sanchez replied. "Even Cardinal Sebastian is against it."
I thought of Phil. Maybe this was the place he was trying to protect. What had happened to him? Suddenly, I thought of Dobson again. Connor had said Dobson intended to come to the inn. Why had Connor been there to tell me that? Where was Dobson now? Deported? Imprisoned? It did not escape my notice that I had spontaneously perceived an image of Dobson in connection with Phil.
"How far away is Sebastian's mission?" I asked.
"About an hour," Sanchez replied. "How are you feeling?"
"What do you mean?"
"I mean, how is your energy level?"
"I think it's high," I said. "Lots of beauty here."
"What did you think of the talk we three had last night?" he asked.
"I thought it was amazing."
"Did you understand what was happening?"
"You mean, the way ideas were bubbling up in each of us at different times?"
"Yes, but the greater meaning of that."
"I don't know."
"Well, I've been thinking about it. This way of consciously relating, in which everyone attempts to bring out the best in others rather than to have power over them, is a posture the entire human race will eventually adopt. Think of how everyone's energy level and pace of evolution will increase at that point!"
"Right," I said, "I've been wondering how human culture will change as the overall energy level rises."
He looked at me as if I had hit on the exact question. "That's what I want to know, too," he said.
We looked at each other for an instant and I knew we were both waiting to see who would have the next idea. Finally he said, "The answer to that question must be in the Ninth Insight. It must explain what will happen as the culture evolves forward."
"That's what I think," I said.
Sanchez slowed the truck. We were approaching a crossroads and he seemed undecided about which route to take.
"Do we go anywhere near San Luis?" I asked.
He looked directly into my eyes. "Only if we turn left at this intersection. Why?"
"Connor told me Dobson had been planning to come through San Luis on his way to the inn. I think it was a message."
We continued to look at each other.
"You were already slowing down at this cross-roads." I said. "Why?"
He shrugged. "I don't know; the most direct route to Iquitos is straight ahead. I just felt hesitant for some reason."
A chill shot through my body.
Sanchez raised one eyebrow and grinned. "I guess we had better go through San Luis, huh?"
I nodded and felt a rush of energy. I knew that stopping at the inn and making contact with Connor was taking on more meaning. As Sanchez turned left and proceeded toward San Luis, I watched the roadside expectantly. Thirty or forty minutes passed and nothing happened. We rode through San Luis and still nothing of note occurred. Then, suddenly, a horn blew and we turned to see a silver jeep roaring up behind us. The driver was frantically waving. He looked familiar.
"Tha's Phil!" I said.
We pulled to the side of the road and Phil jumped out and ran to my side of the truck, grabbing my hand and nodding at Sanchez.
"I don't know what you're doing here," he said, "but the road ahead is full of soldiers. You'd better come back and wait with us."
"How did you know we were coming?" I asked.
"I didn't," he said. "I just looked up and saw you pass by. We're about a half mile back." He looked around for a second, then added, "We'd better get off this road!"
"We'll follow you," Father Sanchez said.
We followed as Phil turned his jeep around and headed back the way we'd come. He turned east onto another road and quickly parked. From behind a group of trees, another man walked out to greet the vehicle. I couldn't believe my sight. It was Dobson!
I climbed out of the truck and walked toward him. He was equally surprised and hugged me warmly.
"It's great to see you!" he said.
"Same here," I replied. "I thought you were shot!"
Dobson patted my back and said, "No, I guess I panicked; they simply detained me. Later, some officials sympathetic to the Manuscript let me go. I've been running ever since."
He paused, smiling at me. "I'm glad you're all right. When Phil told me he had met you at Viciente and then was arrested with you later, I didn't know what to think. But I should have known we would run into each other again. Where are you headed?"
"To see Cardinal Sebastian. We think he intends to destroy the last Insight."
Dobson nodded and was about to say something, but Father Sanchez walked up.
I quickly introduced them.
"I think I heard your name mentioned in Lima," Dobson said to Sanchez, "in connection with a couple of priests that were being detained."
"Father Carl and Father Costous?" I asked.
"I think those were their names, yes."
Sanchez only shook his head slightly. I watched him for a moment, then Dobson and I spent several minutes describing our experiences since being separated. He told me he had studied all eight insights and seemed anxious to say something else, but I interrupted to tell him that we had met Connor and that he had returned to Lima.
"He'll probably be detained himself," Dobson said. "I regret I couldn't get to the inn in time, but I wanted to come to San Luis first to see another scientist. As it turned out I couldn't find him, but I did run into Phil and..."
"What is it?" Sanchez asked.
"Maybe we ought to sit down," Dobson said. "You won't believe this. Phil found a copy of part of the Ninth Insight!"
No one moved.
"He found a translated copy?" Father Sanchez asked.
"Yes."
Phil had been doing something inside his vehicle and was now walking toward us.
"You found part of the Ninth?" I asked him.
"I didn't find it, really," he said. "It was given to me. After you and I were captured, I was taken to another town. I don't know where. After a while, Cardinal Sebastian showed up. He kept probing me about the work at Viciente and my efforts to save the forests. I didn't know why until a guard brought me a partial copy of the Ninth Insight. The guard had stolen it from some of Sebastian's people, who had apparently just translated it. It talks about the energy of old forests."
"What did it say?" I asked Phil.
He paused, thinking, so Dobson asked again that we sit down. He led us to a spot where a tarpaulin was laid out in the center of a partial clearing. The place was beautiful. A dozen large trees formed a circle about thirty feet in diameter. Within the circle were highly fragrant tropical bushes and long-stemmed ferns of the brightest green I had ever seen. We sat facing each other.
Phil looked at Dobson. Then Dobson looked at Sanchez and me and said, "The Ninth Insight explains how human culture will change in the next millennium as a result of conscious evolution. It describes a significantly different way of life. For instance, the Manuscript predicts that we humans will voluntarily decrease our population so that we all may live in the most powerful and beautiful places on the Earth. But remarkably, many more of these areas will exist in the future, because we will intentionally let the forests go uncut so that they can mature and build energy.
"According to the Ninth Insight, by the middle of the next millennium," he continued, "humans will typically live among five hundred year old trees and carefully tended gardens, yet within easy travel distance of an urban area of incredible technological wizardry. By then, the means of survival—foodstuffs and clothing and transportation—will all be totally automated and at everyone's disposal. Our needs will be completely met without the exchange of any currency, yet also without any overindulgence or laziness.
"Guided by their intuitions, everyone will know precisely what to do and when to do it, and this will fit harmoniously with the actions of others. No one will consume excessively because we will have let go of the need to possess and to control for security. In the next millennium, life will have become about something else.
"According to the Manuscript," he went on, "our sense of purpose will be satisfied by the thrill of our own evolution—by the elation of receiving intuitions and then watching closely as our destinies unfold. The Ninth depicts a human world where everyone has slowed down and become more alert, ever vigilant for the next meaningful encounter that comes along. We will know that it could occur anywhere: on a path that winds through a forest, for instance, or on a bridge that traverses some canyon.
"Can you visualize human encounters that have this much meaning and significance? Think how it would be for two people meeting for the first time. Each will first observe the other's energy field, exposing any manipulations. Once clear, they will consciously share life stories until, elatedly, messages are discovered. Afterward, each will go forward again on their individual journey, but they will be significantly altered. They will vibrate at a new level and will thereafter touch others in a way not possible before their meeting."
As we gave him energy, Dobson became ever more eloquent and inspired with his description of the new human culture. And what he said rang true. I personally had no doubt that he was describing an achievable future. Yet I also knew that throughout history many visionaries had glimpsed such a world, Marx for example, yet no way had been found to create such a utopia. Communism had become a tragedy.
Even with the knowledge imparted in the first eight insights, I couldn't imagine how the human race could get to the place described by the Ninth, considering human behavior generally. When Dobson paused, I voiced my concern.
"The Manuscript says our natural pursuit of the truth will lead us there," Dobson explained, smiling directly at me. "But to grasp how this movement will occur, perhaps it is necessary to visualize the next millennium in the same manner you studied the current one with me on the airplane, remember? As though you were living through it in one lifetime?"
Dobson briefly informed the other men of the process and then continued, "Think about what has occurred already in this millennium. During the Middle Ages we lived in a simple world of good and evil, defined by the churchmen. But during the Renaissance we broke free. We knew there had to be more to man's situation in the universe than the churchmen knew, and we wanted the full story.
"We then sent science out to discover our true situation, but when this effort didn't provide the answers we needed right away, we decided to settle in, and turned our modern work ethic into a preoccupation that secularized reality and squeezed the mystery out of the world. But now, we can see the truth of that preoccupation. We can see that the real reason we spent five centuries creating material supports for human life was to set the stage for something else, a way of life that returns the mystery to existence.
"That is what the information now returning from the scientific method indicates: mankind is on this planet to consciously evolve. And as we learn to evolve and pursue our particular path, truth by truth, the Ninth Insight says the overall culture will transform in a very predictable way."
He paused, but no one said anything. Obviously we wanted to hear more.
"Once we reach the critical mass," he continued, "and the insights begin to come in on a global scale, the human race will first experience a period of intense introspection. We'll grasp how beautiful and spiritual the natural world really is. We'll see trees and rivers and mountains as temples of great power to be held in reverence and awe. We'll demand an end to any economic activity that threatens this treasure. And those closest to this situation will find alternative solutions to this pollution problem because someone will intuit these alternatives as they seek their own evolution.
"This will be part of the first great shift that will occur," he continued, "which will be a dramatic movement of individuals from one occupation to another—because when people begin to receive clear intuitions of who they really are and what they're supposed to be doing, they very often discover they're in the wrong job and they have to jump to another type work in order to continue to grow. The Manuscript says that during this period people will sometimes change careers several times during their lifetimes.
"The next cultural shift will be an automation of the production of goods. To the people who are doing the automating, the technicians, this will feel like a need to make the economy run more efficiently. But as their intuitions become clearer, they will see that what automation is actually doing is freeing up everyone's time, so that we can pursue other endeavors.
"The rest of us, meanwhile, will be following our own intuitions within our chosen occupations and wishing we had even more of this free time. We will realize that the truth we have to tell and the things we have to do are too unique to fit within a usual job setting. So we will find ways to cut our employment hours to pursue our own truth: Two or three people will hold what used to be one full-time job. This trend will make it easier for those displaced by the automation to find at least part-time jobs."
"But what about money?" I asked. "I can't believe people will voluntarily reduce their incomes."
"Oh, we won't have to," Dobson said. "The Manuscript says our incomes will remain stable because of the people who are giving us money for the insights we provide."
I almost laughed. "What?"
He smiled and looked directly at me. "The Manuscript says that as we discover more about the energy dynamics of the universe, we will see what really happens when we give someone something. Right now the only spiritual idea about giving is the narrow concept of religious tithing."
He moved his gaze to Father Sanchez. "As you know, the scriptural notion of tithing is interpreted most commonly as an injunction to give ten percent of one's income to a church. The idea behind this is that whatever we give will be returned many times. But the Ninth Insight explains that giving is really a universal principle of support, not just for churches, but for everyone. When we give, we receive in return because of the way energy interacts in the universe. Remember, when we project energy into someone this creates a void in ourselves which, if we are connected, fills up again. Money works exactly the same way. The Ninth Insight says that once we begin to give constantly, we will always have more coming in than we could possibly give away.
"And our gifts," he went on, "should go to the persons who have given us spiritual truth. When people come into our lives at just the right time to give us the answers we need, we should give them money. This is how we will begin to supplement our incomes and ease out of the occupations which limit us. As more people engage in this spiritual economy we will begin a real shift into the culture of the next millennium. We will have moved through the stage of evolving into our right occupation and will be entering the stage of getting paid for evolving freely and offering our unique truth to others."
I looked at Sanchez; he was listening intensely and appeared radiant.
"Yes," he said to Dobson. "I see that clearly. If everyone were participating then we would be giving and receiving constantly and this interaction with others, this exchange of information, would become everyone's new work, our new economic orientation. We'd be paid by the people we touched. This situation would then allow the material supports of life to become fully automated, because we would be too busy to own those systems, or to operate them. We would want material production automated and run like a utility. We'd own stock in it, perhaps, but the situation would free us up to expand what is already the information age.
"But the important thing for us right now is that we can now understand where we are going. We could not save the environment and democratize the planet and feed the poor before because for so long we could not release our fear of scarcity and our need to control, so that we could give to others. We couldn't release it because we had no view of life that served as an alternative. Now we do!"
He looked at Phil. "But wouldn't we need a cheap source of energy?"
"Fusion, superconductivity, artificial intelligence," Phil said. "The technology to automate is probably not that far away, now that we have the knowledge of why to do it."
"That's right," Dobson said. "The most important thing is that we see the truth of this way of life. We're here on this planet not to build personal empires of control, but to evolve. Paying others for their insights will begin the transformation and then as more and more parts of the economy are automated, currency will disappear altogether. We won't need it. If we are correctly following our intuitive guidance then we will take only what we need."
"And we'll understand," Phil interjected, "that the natural areas of the Earth have to be nurtured and protected for the sources of incredible power that they are."
As Phil spoke, our full attention went to him. He seemed surprised by the lift it provided.
"I haven't studied all of the insights," he said, looking at me. "In fact, after the guard helped me escape, I might not have kept this part of the Ninth at all if I hadn't run into you earlier. I remembered what you said about this Manuscript being important. But even though I haven't read the other insights, I do understand the importance of keeping the automation in harmony with the energy dynamics of the Earth.
"My interest has been forests and the part they play in the ecosphere," he continued. "I know now that it always has been, ever since I was a child. The Ninth Insight says that as the human race evolves spiritually, we will voluntarily decrease the population to a point sustainable by the Earth. We will be committed to living within the natural energy systems of the planet. Farming will be automated except for the plants one wants to energize personally and then consume. The trees necessary for construction will be grown in special, designated areas. This will free the remainder of the Earth's trees to grow and age and finally mature into powerful forests.
"Eventually, these forests will be the rule rather than the exception, and all human beings will live in close proximity to this kind of power. Think what an energy-filled world we will live in."
"That ought to raise everyone's energy level," I said.
"Yes, it would," Sanchez said distractedly, as though he were thinking ahead about what the increase in energy would mean.
Everyone waited.
"It would accelerate," he said finally, "the pace of our evolution. The more readily we have energy flowing into us, the more mysteriously the universe responds by bringing people into our lives to answer our questions." He looked thoughtful again. "And every time we follow an intuition and some mysterious encounter leads us forward, our personal vibration increases.
"Onward and upward," he continued, half to himself. "If history continues, then..."
"We'll continue to achieve higher and higher levels of energy and vibration," Dobson said, finishing his sentence.
"Yes," Sanchez said. "That's it. Excuse me for a minute." He got up and walked several yards into the forest and sat down alone.
"What else does the Ninth Insight say?" I asked Dobson.
"We don't know," he said. "That's where the part we have ends. Would you like to see it?"
I told him I would, so he walked to his truck and came back with a manila folder. Inside were twenty typed pages. I read the manuscript, impressed with how thoroughly Dobson and Phil had captured its basic points. When I came to the last page I understood why they said it was only a part of the Ninth Insight. It ended abruptly, in the middle of a concept. Having just introduced the idea that the transformation of the planet would create a totally spiritual culture and would raise human beings to higher and higher vibrations, it suggested that this rise would lead to the occurrence of something else, but it didn't say what.
After an hour, Sanchez stood up and walked over to me. I had been content to sit with the plants, observing their incredible energy fields. Dobson and Phil were standing behind their jeep talking. "I think we should go on to Iquitos," he said.
"What about those soldiers?" I asked.
"I think we should risk it. I've had a clear thought that we can make it through if we leave right now."
I agreed to go with his intuition and we walked over and told Dobson and Phil our plans.
Both men supported the idea, then Dobson said, "We've also been discussing what to do. We're going directly to the Celestine ruins, I think. Maybe we can help save the rest of the Ninth Insight."
We bade them good-bye and drove north again.
"What are you thinking about?" I asked after a period of silence.
Father Sanchez slowed the truck and looked at me. "I'm thinking about Cardinal Sebastian, about what you have said: that he would stop fighting the Manuscript if only he could be made to understand."
As Father Sanchez made this statement, my mind wandered into a daydream of actually confronting Sebastian. He was standing in a courtly room looking down at us. At that moment he had the power to destroy the Ninth Insight and we were fighting to make him understand before it was too late.
When I finished the thought, I noticed Sanchez was smiling at me.
"What were you seeing?" he asked.
"I was just thinking of Sebastian."
"What was happening?"
"The image of confronting Sebastian was clearer. He was about to destroy the last insight. We were trying to talk him out of it."
Sanchez took a deep breath, "It looks like whether the rest of the Ninth Insight becomes known will depend on us."
My stomach drew into a knot at the idea. "What should we say to him?"
"I don't know. But we must persuade him to see the positive, to understand that the Manuscript as a whole doesn't negate but clarifies the truth of the Church. I'm sure the rest of the Ninth Insight does just that."
We rode in silence for an hour, seeing no other traffic of any kind. My thoughts raced through the events which had transpired since I'd come to Peru. I knew the Manuscript's insights had finally merged in my mind into one consciousness. I was alert to the mysterious way my life evolved, as revealed by the First Insight. I knew that the whole culture was sensing this mystery again as well, and we were in the process of constructing a new world view, as pointed out by the Second. The Third and Fourth had showed me that the universe was in reality a vast system of energy and that human conflict was a shortage of and a manipulation for this energy.
The Fifth Insight revealed that we could end this conflict by receiving an inpouring of this energy from a higher source. For me, this ability had almost become habit. The Sixth, that we could clear our old repeated dramas, and find our true selves, was also permanently etched in my mind. And the Seventh had set in motion the evolution of these true selves: through question, intuition of what to do, and answer. Staying in this magic flow was truly the secret of happiness.
And the Eighth, knowing how to relate in a new way to others, bringing out in them the very best, was the key to keeping the mystery operating and the answers coming.
All the Insights had integrated into a consciousness that felt like a heightened sense of alertness and expectation. What was left, I knew, was the Ninth, which revealed where our evolution was taking us. We had discovered some of it. What about the rest?
Father Sanchez pulled the truck to the side of the road.
"We're within four miles of Cardinal Sebastian's mission," he said. "I think we should talk."
"Okay."
"I don't know what to expect but I presume all we can do is drive right in."
"How large a place is this?"
"Large. He has developed this mission for twenty years. He selected this location to serve the rural Indians whom he felt had been neglected. But now students come from all over Peru. He has administrative duties with the church organization in Lima, but this is his special project. He is totally devoted to this mission."
He looked directly into my eyes. "Please stay alert. There may come a time when we need to help each other."
After saying this, Sanchez drove ahead. For several miles we saw nothing, then we passed two military jeeps parked at the right side of the road. The soldiers inside looked at us intensely as we drove by.
"Well," Father Sanchez said, "they know we are here."
A mile further we came to the entrance to the mission. Large iron gates protected the paved drive. Although the gates were open, a jeep and four soldiers blocked our way and signaled us to stop. One of the military men talked into a short-wave radio.
Sanchez smiled as a soldier walked up. "I'm Father Sanchez, here to see Cardinal Sebastian."
The soldier scrutinized Sanchez, then me. He turned and walked back to the soldier with the radio. They talked without taking their eyes off us. After several minutes the soldier came back and said we should follow them.
The jeep led us up the tree-lined drive for several hundred yards until we came to the mission grounds. The church was built of cut stone and was massive, capable of seating, I guessed, over a thousand people. On both sides of the church were two other buildings which looked like classrooms. Both were four stories high.
"This place is impressive," I said.
"Yes, but where are the people?" he asked.
I noticed the paths and walkways were empty.
"Sebastian runs a famous school here," he said. "Why are there no students?"
The soldiers led us to the entrance of the church and asked us politely but firmly to get out and follow them inside. As we walked up the cement steps, I could see several trucks parked behind an adjacent building. Thirty or forty soldiers stood at attention nearby. Once inside we were led through the sanctuary and asked to enter a small room. There we were searched thoroughly and told to wait. The soldiers left and the door was locked.
"Where is Sebastian's office?" I asked.
"Further back toward the rear of the church," he said.
The door suddenly opened. Flanked by several soldiers stood Sebastian. His posture was tall and erect.
"What are you doing here?" Sebastian asked Sanchez.
"I want to talk with you," Sanchez said.
"About what?"
"The Ninth Insight of the Manuscript."
"There's nothing to discuss. It will never be found."
"We know you've already found it."
Sebastian's eyes widened. "I will not allow this insight to be disseminated," he said. "It is not the truth."
"How do you know it's not the truth?" Sanchez asked. "You could be wrong. Let me read it."
Sebastian's face softened as he looked at Sanchez. "You used to think I would make the correct decision in a matter of this kind."
"I know," Sanchez said. "You were my mentor. My inspiration. I patterned my mission after yours."
"You respected me until this Manuscript was discovered," Sebastian said. "Don't you see how divisive it is? I tried to let you go your own way. I even let you alone after I knew you were teaching the insights. But I will not let this document destroy everything our church has built."
Another soldier walked up behind Sebastian and asked to see him. Sebastian glanced at Sanchez, then walked back into the hall. We could still see but could no longer hear the conversation. The message obviously alarmed Sebastian. As he turned to walk away, he signaled for all the soldiers to follow him except for one, whom he apparently told to wait with us.
The soldier walked into the room and leaned against the wall, a disturbed look on his face. He was only about twenty years old.
"What is wrong?" Sanchez asked him.
The soldier only shook his head.
"Is it about the Manuscript, the Ninth Insight?"
The soldier's face displayed surprise. "What do you know of the Ninth Insight?" he asked timidly.
"We're here to save it," Sanchez said.
"I too want it saved," the soldier replied.
"Have you read it?" I asked.
"No," he said. "But I have heard the talk. It brings our religion alive."
Suddenly, from outside the church came the sound of gunfire.
"What's going on?!" Sanchez asked.
The soldier stood motionless.
Sanchez gently touched his arm, "Help us."
The young soldier walked to the door and checked the hall, then said. "Someone has broken into the church and stolen a copy of the Ninth Insight. They seem to still be here on the grounds somewhere."
More gunfire broke out.
"We must try to help them," Sanchez told the young man.
He looked horrified.
"We must do what's right," Sanchez stressed. "This is for the whole world."
The soldier nodded and said we should move to another area of the church where there would be less activity, that perhaps he could find a way to help. He led us down the hall and up two flights of stairs to a larger corridor which spanned the full width of the church.
"Sebastian's office is right below us, two stories down," the young man said.
Suddenly we could hear a group of people running down an adjacent corridor, heading our way. Sanchez and the soldier were ahead of me and ducked into a room to the right. I knew I couldn't reach that room so I ran into the one next to it and closed the door.
I was in a classroom. Desks, podium, closet. I ran to the closet, found it unlocked, and squeezed in amid boxes and several musty smelling jackets. I attempted to conceal myself as best I could, but I knew if anyone checked in the closet, I would be discovered. I tried not to move, not even to breathe. The door to the classroom squeaked open and I could hear several people enter and walk about the room. One seemed to be coming toward the closet, then stopped and headed in the other direction. They were talking loudly in Spanish. Then silence. No movement.
I waited ten minutes before I slowly cracked the closet door and looked out. The room was empty. I walked to the door. There was no indication of anyone outside. I quickly walked to the room where Sanchez and the soldier had hidden. To my surprise, I found it was not a room at all but a hallway. I listened but could hear nothing. I leaned against the wall, feeling anxiety in the pit of my stomach. I quietly called out Sanchez's name. No response. I was alone. I could feel a slight dizziness from the anxiety.
I took a deep breath and tried to talk to myself; I had to keep my wits about me and increase my energy. For several minutes, I struggled until the colors and shapes in the hallway had more presence. I tried to project love. Finally I felt better, and thought of Sebastian again. If he was in his office, Sanchez would go there.
Ahead, the hallway ended at another stairway, so I walked two flights down to the first level. Through the window of the stairway door, I looked down the corridor. No one was in view. I opened the door and walked ahead, not sure where I wanted to go.
Then I heard Sanchez's voice coming from a room in front of me. The door was cracked. Sebastian's voice boomed back at him. As I approached the door, a soldier inside opened it suddenly and pointed a rifle at my heart, forcing me inside and against the wall. Sanchez acknowledged me with a glance and put his hand on his solar plexus. Sebastian shook his head in disgust. The young soldier who had helped us was nowhere to be seen.
I knew that Sanchez's gesture to his stomach meant something. All I could think of was that he needed energy. As he spoke, I focused on his face, trying to see his higher self. His energy field widened.
"You can't stop the truth," Sanchez said. "People have a right to know."
Sebastian looked condescendingly at Sanchez. "These insights violate the scriptures. They could not be true."
"But do they really violate the scriptures, or do they just show us what the scriptures mean?"
"We know what they mean," Sebastian said. "We've known for centuries. Have you forgotten your training, your years of study?"
"No, I haven't," Sanchez said. "But I also know that the insights expand our spirituality. They..."
"According to whom?" Sebastian shouted. "Who wrote this Manuscript anyway? Some pagan Mayan who learned somewhere how to speak Aramaic? What did these people know? They believed in magic places and mysterious energy. They were primitives. The ruins where the Ninth was found is called the Celestine Temples, the _Heavenly_ Temples. What could this culture possibly know about heaven?
"Did their culture endure?" he continued. "No. No one knows what happened to the Mayans. They just disappeared without a trace. And you want us to believe this Manuscript? This document makes it sound as though humans are in control, as though we are in charge of change in the world. We are not. God is. The only issue humans face is whether to accept the scriptural teachings and thereby win our own salvation."
"But think about that," Sanchez replied, "What does accepting the teachings and winning salvation really mean? What is the process through which this happens? Doesn't the Manuscript show us the exact process of becoming more spiritual, connected, saved—the way it actually feels? And doesn't the Eighth and Ninth show us what would happen if everyone were acting this way?"
Sebastian shook his head and walked away, then turned and looked at Sanchez piercingly. "You haven't even seen the Ninth Insight."
"Yes I have. Part of it."
"How?"
"Part of it was described to me before we arrived here. I read another section a few minutes ago."
"What?! How?"
Sanchez walked closer to the older priest. "Cardinal Sebastian, people everywhere want this last insight revealed. It places the other insights into perspective. It shows us our destiny. What spiritual consciousness really is!
"We know what spirituality is, Father Sanchez."
"Do we? I think not. We've spent centuries talking about it, visualizing it, professing our belief in it. But we've always characterized this connection as something abstract, something we believe in intellectually. And we've always cast this connection as something an individual must do to avoid something bad happening, rather than to acquire something good and tremendous. The Manuscript describes the inspiration that comes when we are truly loving others and evolving our lives forward."
"Evolve! Evolve! Listen to yourself, Father, you have always fought against the influence of evolution. What has happened to you?"
Sanchez collected himself. "Yes, I fought against the idea of evolution as a replacement for God, as a way to explain the universe without reference to God. But now I see that the truth is a synthesis of the scientific and religious world views. The truth is that evolution is the way God created, and is still creating."
"But there is no evolution," Sebastian protested. "God created this world and that's it."
Sanchez glanced at me but I had no ideas to express.
"Cardinal Sebastian," he continued, "the Manuscript describes the progress of succeeding generations as an evolution of understanding, an evolution toward a higher spirituality and vibration. Each generation incorporates more energy and accumulates more truth and then passes that status on to the people of the next generation, who extend it further."
"That's nonsense," Sebastian said. "There is only one way to become more spiritual and that's by following the examples in the scriptures."
"Exactly!" Sanchez said. "But again, what are the examples? Isn't the story of the scriptures a story of people learning to receive God's energy and will within? Isn't that what the early prophets led the people to do in the Old Testament? And isn't that receptivity to God's energy within what culminated in the life of a carpenter's son, to the extent that we say God, himself, descended to Earth?
"Isn't the story of the New Testament," he continued, "the story of a group of people being filled with some kind of energy that transformed them? Didn't Jesus, himself, say that what he did, we could do also, and more? We've never really taken that idea seriously, not until now. We're only now grasping what Jesus was talking about, where he was leading us. The Manuscript clarifies what he meant! How to do it!"
Sebastian looked away, his face red with anger. During the pause in the conversation, a high ranking officer burst into the room and told Sebastian that the intruders had been seen.
"Look!" the officer said, pointing out the window. "There they are!"
Three or four hundred yards away we could see two figures running through an open field headed toward the forest. A number of soldiers at the edge of the clearing seemed ready to open fire.
The officer turned from the window and looked at Sebastian, his radio raised.
"If they get to the wooded area," he said, "they will be hard to find. Do I have your permission to open fire?"
As I watched the two running, I suddenly recognized who they were.
"That's Wil and Julia!" I shouted.
Sanchez walked even closer to Sebastian. "In the name of God, you cannot commit murder over this!"
The officer persisted. "Cardinal Sebastian, if you want this Manuscript contained, I must give the order now."
I was frozen.
"Father, trust me," Sanchez was saying. "The Manuscript will not erode all you have built, all you have stood for. You cannot kill these people."
Sebastian shook his head. "Trust you . . ?" Then he sat down on his desk and looked at the officer. "We will shoot no one. Tell your troops to capture them alive."
The officer nodded and walked out of the room. Sanchez said, "Thank you, you made the right choice."
"Not to kill, yes," Sebastian said. "But I will not change my mind. This Manuscript is a curse. It would undermine our basic structure of spiritual authority. It would entice people to think they are in control of their spiritual destiny. It would undermine the discipline needed to bring everyone on the planet into the church, and people would be caught wanting when the rapture comes." He looked hard at Sanchez. "At this moment, thousands of troops are arriving. It doesn't matter what you or anyone else does. The Ninth Insight will never leave Peru. Now get out of my mission."
As we sped away, we could hear dozens of trucks approaching in the distance.
"Why did he let us go?" I asked.
"I suppose because he thinks it makes no difference," Sanchez replied, "that there's nothing we can do. I really don't know what to think." His eyes met mine. "We didn't convince him, you know."
I too, was confused. What did it mean? Perhaps we hadn't been there to convince Sebastian after all. Perhaps we were just supposed to delay him.
I glanced back at Sanchez. He was concentrating on driving and searching the roadside for any sign of Wil and Julia. We had decided that we would double back in the direction they had been running, but so far we had seen nothing. As we rode, my mind wandered to the Celestine ruins. I imagined what the site looked like: the tiered excavations, the scientist's tents, the looming pyramidal structures in the background.
"They don't seem to be in these woods," Sanchez said. "They must have had a vehicle. We must decide what to do."
"I think we should go to the ruins," I said.
He looked at me. "We might as well. There's no where else to go."
Sanchez made a turn to the west.
"What do you know of these ruins?" I asked.
"They were built by two different cultures, as Julia said. The first, the Mayans, had a thriving civilization there, though most of their temples were further north in the Yucatan. Mysteriously, all signs of their civilization suddenly vanished about 600 B.C. without apparent cause. The Incas developed another civilization afterward at the same location."
"What do you think happened to the Mayans?"
Sanchez glanced at me. "I don't know."
We rode for several minutes in silence, then I suddenly remembered that Father Sanchez had told Sebastian he had read more of the Ninth Insight.
"How did you see more of the Ninth Insight?" I asked.
"The young soldier who helped us knew where another part was being hidden. After you and I were separated, he took me to another room and showed it to me. It added only a few more concepts to what Phil and Dobson told us, but it gave me the points I used with Sebastian."
"What did it say specifically?"
"That the Manuscript would clarify many religions. And would help them fulfill their promise. All religion, it says, is about humankind finding relationship to one higher source. And all religions speak of a perception of God within, a perception that fills us, makes us more than we were. Religions become corrupted when leaders are assigned to explain God's will to the people instead of showing them how to find this direction within themselves.
"The Manuscript says that sometime in history one individual would grasp the exact way of connecting with God's source of energy and direction and would thus become a lasting example that this connection is possible." Sanchez looked at me. "Isn't that what Jesus really did? Didn't he increase his energy and vibration until he was light enough to...?" Sanchez ended his sentence without finishing it and seemed to be deep in thought.
"What are you thinking?" I asked.
Sanchez looked perplexed. "I don't know. The soldier's copy ended right there. It said that this individual would blaze a path that the whole human race was destined to follow. But it didn't say where this path led."
For fifteen minutes we rode in silence. I attempted to receive some indication of what would happen next, but I could think of nothing. I seemed to be trying too hard.
"There are the ruins," Sanchez said.
Ahead, through the forest to the left of the road, I could make out three large pyramidal shaped structures. After we parked and walked closer, I could tell the pyramids were constructed of cut stone and were spaced an equal distance apart, about a hundred feet. Between them was an area paved with a smoother stone. Several excavation sites were dug into the base of the pyramids.
"Look, there!" Sanchez said, pointing toward the more distant pyramid.
A lone figure was sitting in front of the structure. As we walked that way, I noticed an increase in my energy level. By the time we reached the center of the paved area I felt incredibly energized. I looked at Sanchez and he raised an eyebrow. When we got closer I recognized the person by the pyramid to be Julia. She sat cross-legged and held several papers in her lap.
"Julia," Sanchez called.
Julia turned and stood up. Her face seemed iridescent.
"Where is Wil?" I asked.
Julia pointed to her right. There, perhaps a hundred yards away was Wil. He seemed to be glowing in the fading twilight.
"What is he doing?" I asked.
"The Ninth," Julia replied, holding the papers toward us. Sanchez told Julia that we had seen some of the insight, the part which foretold of a human world transformed by conscious evolution.
"But where does this evolution take us?" Sanchez asked.
Julia didn't answer. She just held up the papers in her hand, as though she expected us to read her mind.
"What?" I asked.
Sanchez reached over and touched my forearm. His look reminded me to stay alert and to wait.
"The Ninth reveals our ultimate destiny," Julia said. "It makes it all crystal clear. It reiterates that as humans, we are the culmination of the whole of evolution. It talks about matter beginning in a weak form and increasing in complexity, element by element, then species by species, always evolving into a higher state of vibration.
"When primitive humans came along, we continued this evolution unconsciously by conquering others and gaining energy and moving forward a little bit, and then being conquered ourselves by someone else and losing our energy. This physical conflict continued until we invented democracy, a system that didn't end the conflict but shifted it from a physical to a mental level.
"Now," Julia went on, "we're bringing this whole process into consciousness. We can see that all of human history has prepared us to achieve conscious evolution. Now, we can increase our energy and experience the coincidences consciously. This carries evolution onward at a faster pace, lifting our vibrations even higher."
She hesitated for a moment, looking at each of us, then repeated what she had said, "Our destiny is to continue to increase our energy level. And as our energy level increases, the level of vibration in the atoms of our bodies increases."
She hesitated again.
"What does that mean?" I asked.
"It means," Julia said, "that we are getting lighter, more purely spiritual."
I looked at Sanchez. He was focused intensely on Julia.
"The Ninth Insight," Julia continued, "says that as we humans continue to increase our vibration, an amazing thing will begin to happen. Whole groups of people, once they reach a certain level, will suddenly become invisible to those who are still vibrating at a lower level. It will appear to the people on this lower level that the others just disappeared, but the group themselves will feel as though they are still right here—only they will feel lighter."
As Julia talked I noticed her face and body changing somewhat. Her body was taking on the characteristics of her energy field. Her features were still clear and distinct but it was no longer muscles and skin at which I was looking. She looked as though she were made of pure light, glowing from within.
I looked at Sanchez. He appeared the same way. To my amazement, everything appeared this way: the pyramids, the stone under our feet, the surrounding forest, my hands. The beauty I was able to perceive had increased beyond anything I had experienced before, even when on the ridge top.
"When humans begin to raise their vibrations to a level where others cannot see them," Julia continued, "it will signal that we are crossing the barrier between this life and the other world from which we came and to which we go after death. This conscious crossing over is the path shown by the Christ. He opened up to the energy until he was so light he could walk on water. He transcended death right here on Earth, and was the first to cross over, to expand the physical world into the spiritual. His life demonstrated how to do this, and if we connect with the same source we can head the same way, step by step. At some point everyone will vibrate highly enough so that we can walk into heaven, in our same form."
I noticed Wil was walking slowly toward us. His movements seemed unusually graceful, as though he was gliding.
"The Insight says," Julia went on, "that most individuals will reach this level of vibration during the third millennium, and in groups consisting of the people with whom they are most connected. But some cultures in history have already achieved the vibration. According to the Ninth Insight, the Mayans crossed over together."
Julia abruptly stopped talking. From behind us, we heard muffled voices in Spanish. Dozens of soldiers were entering the ruins, coming right for us. To my surprise I was unafraid. The soldiers continued to walk in our general direction but strangely not directly toward us.
"They can't see us!" Sanchez said. "We're vibrating too highly!"
I looked again at the soldiers. He was right. They were walking twenty or thirty feet to our left, completely ignoring us.
Suddenly we heard loud shouts in Spanish by the pyramid to our left. The soldiers closest to us stopped and ran in that direction.
I strained to see what was happening. Another group of soldiers were emerging from the forest holding the arms of two other men. Dobson and Phil. The sight of their capture jolted me, and I could feel my energy level plummet. I looked at Sanchez and Julia. Both were staring intently toward the soldiers and appearing equally disturbed.
"Wait!" Wil seemed to shout from the opposite direction. "Don't lose your energy!" I felt the words as well as heard them. They were slightly garbled.
We turned to see Wil walking quickly toward us. As we watched he seemed to say something else, but this time the words were completely unintelligible. I realized I was having trouble focusing. His image was becoming hazy, distorted. Gradually, as I stared in disbelief, he disappeared altogether.
Julia turned to face Sanchez and me. Her energy level seemed lower but she was completely undaunted, as though whatever just happened clarified something.
"We weren't able to maintain the vibration," she said. "Fear lowers one's vibration tremendously." She looked toward the spot where Wil had faded from view. "The Ninth Insight says that while some individuals may cross over sporadically, a general rapture will not occur until we have abolished fear, until we can maintain a sufficient vibration in all situations."
Julia's excitement grew. "Don't you see? We can't do it yet but the role of the Ninth Insight is to help create that confidence. The Ninth Insight is the insight of knowing where we are headed. All the other insights create a picture of the world as one of incredible beauty and energy, and of ourselves as increasing our connection with and thus seeing this beauty.
"The more beauty we can see, the more we evolve. The more we evolve, the higher we vibrate. The Ninth Insight shows us that ultimately, our increased perception and vibration will open us up to a Heaven that is already before us. We just can't see it yet.
"Whenever we doubt our own path, or lose sight of the process, we must remember what we are evolving toward, what the process of living is all about. Reaching heaven on Earth is why we are here. And now we know how it can be done... how it will be done."
She paused momentarily, "The Ninth mentions that a Tenth Insight exists. I think it must reveal..."
Before she could finish, a burst of machine-gun fire ripped up the stone tiles by our feet. We all dived to the ground, our hands raised. No one spoke as the soldiers came and confiscated the papers and took each of us in a different direction.
The first weeks after my capture were spent in constant terror. My energy level fell dramatically as one military officer after another questioned me threateningly about the Manuscript.
I played the dumb tourist and claimed ignorance. After all, it was true that I had no idea who among the other priests had copies, or how widespread public acceptance of the document had become. Gradually, my tactic worked. Over time the soldiers seemed to grow tired of me and passed me on to a group of civilian authorities, who took a different approach.
These officials sought to convince me that my trip to Peru had been crazy from the beginning, crazy because according to them the Manuscript never really existed. They argued that the insights had in fact been invented by a small group of priests with the intent to foster rebellion. I had been duped, these officials told me, and I let them talk.
After a while, the conversations became almost cordial. Everyone began to treat me as a guiltless victim of this plot, as a gullible Yankee who had read too many adventure tales and found himself lost in a foreign country.
And because my energy was so low, I possibly would have become vulnerable to this brainwashing, had something else not occurred. I was suddenly transferred from the military base where I was being held to a governmental compound near the airport in Lima—a compound in which Father Carl was also being detained. The coincidence brought back some of my lost confidence.
I was walking in the open courtyard when I first saw him sitting on a bench, reading. I strolled over, restraining my exuberance and hoping I wouldn't attract attention from the officials inside the building. When I sat down, he looked up at me and grinned.
"I've been expecting you," he said.
"You have?"
He put down his book, and I could see the delight in his eyes.
"After Father Costous and I came to Lima," he explained, "we were immediately detained and separated, and I've been here in custody ever since. I couldn't understand why, nothing seemed to be happening. Then I began to think repeatedly of you." He gave me a knowing look. "So, I figured you would show up."
"I'm grateful you're here," I said. "Did anyone tell you what happened at the Celestine ruins?"
"Yes," Father Carl replied. "I spoke briefly with Father Sanchez. He was held here for a day before being taken away."
"Is he all right? Did he know what happened to the others? And what about him? Were they going to imprison him?"
"He had no information about the others, and as for Father Sanchez, I don't know. The government's strategy is to methodically search out and destroy all copies of the Manuscript. Then to treat the whole affair as a grand hoax. We'll all be thoroughly discredited, I imagine, but who knows what they will ultimately do with us."
"What about Dobson's copies," I said, "the First and Second Insights he left in the States?"
"They already have them," Father Carl replied. "Father Sanchez told me that agents of the government found out where they were hidden and stole them. Apparently Peruvian agents have been everywhere. They knew about Dobson from the beginning, and about your friend, Charlene."
"And you think when the government is through, no copies will remain?"
"I think it will be a miracle if any survive."
I turned away, feeling my new-found energy diminish.
"You know what this means, don't you?" Father Carl asked.
I looked at him but said nothing.
"This means," he continued, "that each of us must remember exactly what the Manuscript said. You and Sanchez didn't convince Cardinal Sebastian to release the Manuscript, but you delayed him long enough for the Ninth Insight to be understood. Now it has to be communicated. You have to be involved in communicating it."
His statement made me feel pressured and my Aloof drama activated inside me. I leaned against the back of the bench and looked away, which made Father Carl laugh. Then, at just that moment, we both realized several embassy officials were watching us from an office window.
"Listen," Father Carl said quickly. "From now on the insights will have to be shared between people. Each person, once they hear the message and realize that the insights are real, must pass on the message to everyone who is ready for it. Connecting with energy is something humans have to be open to and talking about and expecting, otherwise the whole human race can go back to pretending that life is about having power over others and exploiting the planet. If we go back to doing this, then we won't survive. Each of us must do what we can to get this message out."
I noticed that the two officials were out of the building walking toward us.
"One more thing," Father Carl said, speaking lowly.
"What?" I asked.
"Father Sanchez told me Julia had spoken of a Tenth Insight. It hasn't yet been found and no one knows where it might be."
The officials were almost on us.
"I've been thinking," Father Carl continued, "that they're going to release you. You may be the only one that can look for it."
The men suddenly interrupted our conversation and escorted me toward the building. Father Carl smiled and waved and said something else but I could only half pay attention. As soon as Father Carl had mentioned a Tenth Insight, I had been consumed by a thought of Charlene. Why was I thinking of her? How was she connected to a Tenth Insight?
The two men insisted that I pack the few things I had left and follow them to the front of the Embassy and into a state vehicle. From there I was taken directly to the airport and up to a boarding concourse, where one of them smiled faintly and looked at me from behind thick glasses.
His smile faded as he handed me a passport and a ticket for a flight to the United States... then told me in a heavy Peruvian accent to never, never return.
|
/**
* Ensure that each ruid is only used once.
*/
@Test
public void testUniqueManualRuids() {
ServiceSearchRequestBuilder<Void> builder = ServiceSearchRequestBuilder.newSearchRequest(ServiceName.CONTACT, "/contact", Void.class).withRuid("a");
String ruid1 = builder.build().getRuid();
String ruid2 = builder.build().getRuid();
assertThat(ruid1, is("a"));
assertThat(ruid2, is(notNullValue()));
assertThat(ruid1, is(not(ruid2)));
}
|
<gh_stars>0
package com.avaje.tests.model.m2o;
import com.avaje.ebean.BaseTestCase;
import com.avaje.ebean.Ebean;
import com.avaje.ebean.annotation.Transactional;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class TestManyToOneAsOne extends BaseTestCase {
@Test
public void test_when_nonJdbcBatch() {
runInserts();
}
@Transactional(batchSize = 20)
@Test
public void test_when_jdbcBatch() {
runInserts();
}
private void runInserts() {
Addr junk = new Addr();
junk.setName("junk");
Ebean.save(junk);
Empl emp = new Empl();
emp.setName("<NAME>");
Addr address = new Addr();
address.setName("home");
emp.getAddresses().add(address);
// if I do an interim Ebean.save here it works
//Ebean.save(emp);
address.setEmployee(emp);
emp.setDefaultAddress(address);
Ebean.save(emp);
assertThat(emp.getDefaultAddress().getId()).isNotNull();
assertThat(address.getEmployee().getId()).isNotNull();
Empl foundEmpl = Ebean.find(Empl.class, emp.getId());
assertThat(foundEmpl.getDefaultAddress().getId()).isEqualTo(address.getId());
}
}
|
Ireland flanker Tommy O'Donnell has been ruled out of the World Cup due to the hip dislocation he suffered in Saturday's 35-21 win over Wales at the Millennium Stadium.
The 28-year-old Munster forward, who has won nine caps, was carried off during the second half after producing an outstanding display in Cardiff.
He spent Saturday night in hospital in the Welsh capital and subsequently underwent detailed medical checks.
In a statement, the Irish Rugby Football Union said: "Investigations at University Hospital Wales yesterday afternoon confirmed that Tommy suffered a hip dislocation in the game against Wales.
"He will be limited to non-weight bearing activity for at least six weeks and has unfortunately been ruled out of participating in RWC15."
O'Donnell's loss will be a blow to Ireland head coach Joe Schmidt as he prepares to continue the tournament build-up with further preparation fixtures against Scotland, Wales and England.
Ireland, the reigning RBS 6 Nations champions, will contest the same World Cup pool as France, Italy, Canada and Romania, with two teams securing quarter-final places.
The IRFU, meanwhile, said that wing Andrew Trimble will undergo "a precautionary scan" on the foot injury he suffered during the Wales match.
|
Ads support the website by covering server and domain costs. We're just a group of gamers here, like you, doing what we love to do: playing video games and bringing y'all niche goodness. So, if you like what we do and want to help us out, make an exception by turning off AdBlock for our website. In return, we promise to keep intrusive ads, such as pop-ups, off oprainfall. Thanks, everyone!
By Ceruleath Noreleth / November 27th, 2012
Speculation on whether or not Skies of Arcadia will be coming as an HD title can now be laid to rest… maybe. The trademark renewal that was done this past summer may not have been done simply to protect intellectual property. If an anonymous source close to SEGA is truthful, the stage could be set for the HD release of Skies of Arcadia. The latest rumor comes from the German print version of Gamereactor magazine.
Skies of Arcadia was initially a game created for the Dreamcast by Overworks. Reception of the game has been ridiculously positive, and the only downside that was stated over and over again was the all-too-frequent random occurring battles. That was said to be fixed for the GameCube version, and we can be sure it will be fixed for this remake if the rumors are founded. Fingers crossed on both accounts.
There is no confirmation in regards to this classic SEGA RPG as of yet. As far as remakes go, it seems that SEGA is milking this avenue of revenue for all it’s worth with their old Dreamcast franchises/games. We can only hope that this game will be treated with the respect it deserves and that the visuals are boosted enough to validate the purchase of the HD for those who already own the old versions. Regardless of everyone’s view on remakes, this game is a gem that should definitely be picked up in any version. If you have a GameCube or Dreamcast, we highly recommend you track down this game.
Source
About Ceruleath Noreleth Former Volunteer- A girlie gamer that likes long walks on the beach, vanilla flavoured ice cream and...I lie.
I collect weapons, I PWN newbies on CoD, and if I put as much time into studying as I have put into Video Gaming, I would have cured every disease in the books, and then some. I am a closet nerd, a gamer, and a fan of everything out of the ordinary. GET AT MEH! ';..;'
Share this: Facebook
Twitter
LinkedIn
Pinterest
Tumblr
AnimeShinbun
N4G
Reddit
Like this: Like Loading...
|
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,m,x,a[105];
cin>>n>>m>>x;
for(int i=0;i<m;i++){
cin>>a[i];
}
sort(a,a+m);
int ans1=0,ans2=0;
for(int i=0;i<m;i++){
if(a[i]<x) ans1++;
if(a[i]>x) ans2++;
}
cout<<min(ans1,ans2);
}
|
//
//! Copyright 2020 Alibaba Group Holding Limited.
//!
//! Licensed under the Apache License, Version 2.0 (the "License");
//! you may not use this file except in compliance with the License.
//! You may obtain a copy of the License at
//!
//! http://www.apache.org/licenses/LICENSE-2.0
//!
//! Unless required by applicable law or agreed to in writing, software
//! distributed under the License is distributed on an "AS IS" BASIS,
//! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//! See the License for the specific language governing permissions and
//! limitations under the License.
use super::state::StateMap;
use crate::Tag;
/// Represents a notification which always indicates that the data stream of scope with the tag
/// has exhaust on the operator's input port;
#[derive(Clone, Debug)]
pub struct Notification {
/// The port of operator's input this notification belongs to;
pub port: usize,
/// The tag of the scope this notification belongs to;
pub tag: Tag,
}
impl Notification {
pub fn new(port: usize, tag: Tag) -> Self {
Notification { port, tag }
}
#[inline]
pub fn is_belong_to(&self, scope_depth: usize) -> bool {
self.tag.len() == scope_depth
}
pub fn take(self) -> (usize, Tag) {
(self.port, self.tag)
}
}
impl AsRef<Tag> for Notification {
fn as_ref(&self) -> &Tag {
&self.tag
}
}
pub struct NotifySubscriber<'a> {
state: &'a mut StateMap<()>,
}
impl<'a> NotifySubscriber<'a> {
pub fn new(state: &'a mut StateMap<()>) -> Self {
NotifySubscriber { state }
}
#[inline]
pub fn subscribe<T: AsRef<Tag>>(&mut self, key: T) {
if !self.state.contains(key.as_ref()) {
self.state.insert(key.as_ref().clone(), ());
}
}
}
|
package com.travelandtime.Social;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.squareup.picasso.Picasso;
import com.travelandtime.R;
import java.util.ArrayList;
import de.hdodenhof.circleimageview.CircleImageView;
class CmtRec extends RecyclerView.Adapter<CmtRec.Holder> {
Context mcontext;
ArrayList<Comment2> comments;
CmtRec(Context mcontext, ArrayList<Comment2> comments) {
this.comments=comments;
this.mcontext=mcontext;
}
@NonNull
@Override
public Holder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {
View view;
view= LayoutInflater.from(mcontext).inflate(R.layout.comment_design,viewGroup,false);
return new Holder(view);
}
@Override
public void onBindViewHolder(@NonNull Holder holder, int i) {
String profile_pic=comments.get(i).getProfile_pic();
Picasso.get().load(profile_pic).into(holder.cuserImg);
holder.commentUser.setText(comments.get(i).getUser_name());
holder.comments.setText(comments.get(i).getComment_msg());
}
@Override
public int getItemCount() {
return comments.size();
}
public class Holder extends RecyclerView.ViewHolder {
private CircleImageView cuserImg;
private TextView commentUser;
private TextView comments;
public Holder(@NonNull View itemView) {
super(itemView);
cuserImg = (CircleImageView) itemView.findViewById(R.id.cuser_img);
commentUser = (TextView) itemView.findViewById(R.id.comment_user);
comments = (TextView) itemView.findViewById(R.id.comments);
}
}
}
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef StyleWillChangeData_h
#define StyleWillChangeData_h
#include "core/CSSPropertyNames.h"
#include "core/CSSValueKeywords.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/Vector.h"
namespace WebCore {
class StyleWillChangeData : public RefCounted<StyleWillChangeData> {
public:
static PassRefPtr<StyleWillChangeData> create() { return adoptRef(new StyleWillChangeData); }
PassRefPtr<StyleWillChangeData> copy() const { return adoptRef(new StyleWillChangeData(*this)); }
bool operator==(const StyleWillChangeData& o) const
{
return m_properties == o.m_properties && m_contents == o.m_contents && m_scrollPosition == o.m_scrollPosition;
}
bool operator!=(const StyleWillChangeData& o) const
{
return !(*this == o);
}
Vector<CSSPropertyID> m_properties;
unsigned m_contents : 1;
unsigned m_scrollPosition : 1;
private:
StyleWillChangeData();
StyleWillChangeData(const StyleWillChangeData&);
};
} // namespace WebCore
#endif // StyleWillChangeData_h
|
<reponame>TGITS/mbo-ez-angular-ez-http-client<gh_stars>0
import { EzHttpClient, EzHttpClientCommonResponseOperators, EzHttpClientHeaders, EzHttpQueryParam, EzHttpRequestBody, EzHttpRequestDELETE, EzHttpRequestGET, EzHttpRequestParam, EzHttpRequestPOST, EzHttpRequestPUT, EzHttpResponse } from "ez-http-client-lib";
import { Observable, throwError } from "rxjs";
import { catchError } from "rxjs/operators";
import { CoreModule } from "../core.module";
import { Page } from "../models/page.model";
import { PartialTask } from "../models/tasks/partial-task.model";
import { Task } from "../models/tasks/task.model";
@EzHttpClientHeaders({
'Content-Type': 'application/json'
})
@EzHttpClientCommonResponseOperators({
operators: [
catchError((error) => {
return throwError(error.error.errorCode);
})
],
before: true
})
@EzHttpClient('/api/tasks', CoreModule)
export class TaskService {
@EzHttpRequestGET()
public getTasks(
@EzHttpQueryParam('sort') sort: Array<string>,
@EzHttpQueryParam('page') page: number,
@EzHttpQueryParam('size') rowCount: number,
@EzHttpQueryParam('text') searchText?: string,
@EzHttpQueryParam('state') searchState?: string,
@EzHttpResponse response?: Observable<Page<Task>>
): Promise<Page<Task>> {
return response!.toPromise();
}
@EzHttpRequestPUT({
path: '/{taskId}'
})
public updateTask(@EzHttpRequestParam('taskId') id: number, @EzHttpRequestBody partialTask: PartialTask, @EzHttpResponse response?: Observable<Task>): Promise<Task> {
return response!.toPromise();
}
@EzHttpRequestPUT({
path: '/{taskId}/state'
})
public updateTaskState(@EzHttpRequestParam('taskId') id: number, @EzHttpRequestBody state: {done: boolean}, @EzHttpResponse response?: Observable<Task>): Promise<Task> {
return response!.toPromise();
}
@EzHttpRequestDELETE({
path: '/{taskId}'
})
public deleteTask(@EzHttpRequestParam('taskId') id: number, @EzHttpResponse response?: Observable<Task>): Promise<Task> {
return response!.toPromise();
}
@EzHttpRequestPOST()
public addTask(@EzHttpRequestBody partialTask: PartialTask, @EzHttpResponse response?: Observable<Task>): Promise<Task> {
return response!.toPromise();
}
}
|
def RMSD_Matrix(self, align_index=None, rmsd_index=None, ref_frame=None, ref_md_ob=None,rmsd_unit_factor=10,pre_aligned=False):
try:
assert align_index != None
except AssertionError:
raise ValueError('align_index cannot be None')
if rmsd_index == None:
rmsd_index = align_index
self.Reload(newchunk=0)
s_time = time.clock()
for full_traj in self.traj_iter:
if ref_frame != None:
if ref_md_ob != None:
if not pre_aligned:
full_traj.superpose(ref_md_ob[ref_frame], atom_indices = align_index)
rmsd_mat = trajutils.RMSD(full_traj, ref_md_ob[ref_frame], rmsd_index)*rmsd_unit_factor
else:
if not pre_aligned:
full_traj.superpose(full_traj[ref_frame], atom_indices = align_index)
rmsd_mat = trajutils.RMSD(full_traj, full_traj[ref_frame], rmsd_index)*rmsd_unit_factor
else:
rmsd_mat = numpy.empty((full_traj.n_frames, full_traj.n_frames))
for frame_index in range(full_traj.n_frames):
if not pre_aligned:
full_traj.superpose(full_traj[frame_index], atom_indices = align_index)
rmsd_mat[frame_index]= trajutils.RMSD(full_traj, full_traj[frame_index], rmsd_index)*rmsd_unit_factor
e_time = time.clock()
print "RMSD Matrix Calculation Finished! \nTotal time spent: \n\t%0.2f seconds process time\
\n\tOn average, %0.2f seconds per trajectory frame" % (e_time-s_time, (e_time-s_time)/full_traj.n_frames)
self.rmsd_matrix = rmsd_mat
|
// Package adexchangebuyer2 provides access to the Ad Exchange Buyer API II.
//
// See https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
//
// Usage example:
//
// import "google.golang.org/api/adexchangebuyer2/v2beta1"
// ...
// adexchangebuyer2Service, err := adexchangebuyer2.New(oauthHttpClient)
package adexchangebuyer2 // import "google.golang.org/api/adexchangebuyer2/v2beta1"
import (
"bytes"
"encoding/json"
"errors"
"fmt"
context "golang.org/x/net/context"
ctxhttp "golang.org/x/net/context/ctxhttp"
gensupport "google.golang.org/api/gensupport"
googleapi "google.golang.org/api/googleapi"
"io"
"net/http"
"net/url"
"strconv"
"strings"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
var _ = ctxhttp.Do
const apiId = "adexchangebuyer2:v2beta1"
const apiName = "adexchangebuyer2"
const apiVersion = "v2beta1"
const basePath = "https://adexchangebuyer.googleapis.com/"
// OAuth2 scopes used by this API.
const (
// Manage your Ad Exchange buyer account configuration
AdexchangeBuyerScope = "https://www.googleapis.com/auth/adexchange.buyer"
)
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Accounts = NewAccountsService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
GoogleClientHeaderElement string // client header fragment, for Google use only
Accounts *AccountsService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func (s *Service) clientHeader() string {
return gensupport.GoogleClientHeader("20170210", s.GoogleClientHeaderElement)
}
func NewAccountsService(s *Service) *AccountsService {
rs := &AccountsService{s: s}
rs.Clients = NewAccountsClientsService(s)
rs.Creatives = NewAccountsCreativesService(s)
return rs
}
type AccountsService struct {
s *Service
Clients *AccountsClientsService
Creatives *AccountsCreativesService
}
func NewAccountsClientsService(s *Service) *AccountsClientsService {
rs := &AccountsClientsService{s: s}
rs.Invitations = NewAccountsClientsInvitationsService(s)
rs.Users = NewAccountsClientsUsersService(s)
return rs
}
type AccountsClientsService struct {
s *Service
Invitations *AccountsClientsInvitationsService
Users *AccountsClientsUsersService
}
func NewAccountsClientsInvitationsService(s *Service) *AccountsClientsInvitationsService {
rs := &AccountsClientsInvitationsService{s: s}
return rs
}
type AccountsClientsInvitationsService struct {
s *Service
}
func NewAccountsClientsUsersService(s *Service) *AccountsClientsUsersService {
rs := &AccountsClientsUsersService{s: s}
return rs
}
type AccountsClientsUsersService struct {
s *Service
}
func NewAccountsCreativesService(s *Service) *AccountsCreativesService {
rs := &AccountsCreativesService{s: s}
rs.DealAssociations = NewAccountsCreativesDealAssociationsService(s)
return rs
}
type AccountsCreativesService struct {
s *Service
DealAssociations *AccountsCreativesDealAssociationsService
}
func NewAccountsCreativesDealAssociationsService(s *Service) *AccountsCreativesDealAssociationsService {
rs := &AccountsCreativesDealAssociationsService{s: s}
return rs
}
type AccountsCreativesDealAssociationsService struct {
s *Service
}
// AddDealAssociationRequest: A request for associating a deal and a
// creative.
type AddDealAssociationRequest struct {
// Association: The association between a creative and a deal that
// should be added.
Association *CreativeDealAssociation `json:"association,omitempty"`
// ForceSendFields is a list of field names (e.g. "Association") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Association") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AddDealAssociationRequest) MarshalJSON() ([]byte, error) {
type noMethod AddDealAssociationRequest
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AppContext: @OutputOnly The app type the restriction applies to for
// mobile device.
type AppContext struct {
// AppTypes: The app types this restriction applies to.
//
// Possible values:
// "NATIVE" - Native app context.
// "WEB" - Mobile web app context.
AppTypes []string `json:"appTypes,omitempty"`
// ForceSendFields is a list of field names (e.g. "AppTypes") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AppTypes") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AppContext) MarshalJSON() ([]byte, error) {
type noMethod AppContext
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AuctionContext: @OutputOnly The auction type the restriction applies
// to.
type AuctionContext struct {
// AuctionTypes: The auction types this restriction applies to.
//
// Possible values:
// "OPEN_AUCTION" - The restriction applies to open auction.
// "DIRECT_DEALS" - The restriction applies to direct deals.
AuctionTypes []string `json:"auctionTypes,omitempty"`
// ForceSendFields is a list of field names (e.g. "AuctionTypes") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AuctionTypes") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AuctionContext) MarshalJSON() ([]byte, error) {
type noMethod AuctionContext
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Client: A client resource represents a client buyer—an
// agency,
// a brand, or an advertiser customer of the sponsor buyer.
// Users associated with the client buyer have restricted access to
// the Ad Exchange Marketplace and certain other sections
// of the Ad Exchange Buyer UI based on the role
// granted to the client buyer.
// All fields are required unless otherwise specified.
type Client struct {
// ClientAccountId: The globally-unique numerical ID of the client.
// The value of this field is ignored in create and update operations.
ClientAccountId int64 `json:"clientAccountId,omitempty,string"`
// ClientName: Name used to represent this client to publishers.
// You may have multiple clients that map to the same entity,
// but for each client the combination of `clientName` and entity
// must be unique.
// You can specify this field as empty.
ClientName string `json:"clientName,omitempty"`
// EntityId: Numerical identifier of the client entity.
// The entity can be an advertiser, a brand, or an agency.
// This identifier is unique among all the entities with the same
// type.
//
// A list of all known advertisers with their identifiers is available
// in
// the
// [advertisers.txt](https://storage.googleapis.com/adx-rtb-dictionar
// ies/advertisers.txt)
// file.
//
// A list of all known brands with their identifiers is available in
// the
// [brands.txt](https://storage.googleapis.com/adx-rtb-dictionaries/b
// rands.txt)
// file.
//
// A list of all known agencies with their identifiers is available in
// the
// [agencies.txt](https://storage.googleapis.com/adx-rtb-dictionaries
// /agencies.txt)
// file.
EntityId int64 `json:"entityId,omitempty,string"`
// EntityName: The name of the entity. This field is automatically
// fetched based on
// the type and ID.
// The value of this field is ignored in create and update operations.
EntityName string `json:"entityName,omitempty"`
// EntityType: The type of the client entity: `ADVERTISER`, `BRAND`, or
// `AGENCY`.
//
// Possible values:
// "ENTITY_TYPE_UNSPECIFIED" - A placeholder for an undefined client
// entity type. Should not be used.
// "ADVERTISER" - An advertiser.
// "BRAND" - A brand.
// "AGENCY" - An advertising agency.
EntityType string `json:"entityType,omitempty"`
// Role: The role which is assigned to the client buyer. Each role
// implies a set of
// permissions granted to the client. Must be one of
// `CLIENT_DEAL_VIEWER`,
// `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`.
//
// Possible values:
// "CLIENT_ROLE_UNSPECIFIED" - A placeholder for an undefined client
// role.
// "CLIENT_DEAL_VIEWER" - Users associated with this client can see
// publisher deal offers
// in the Marketplace.
// They can neither negotiate proposals nor approve deals.
// If this client is visible to publishers, they can send deal
// proposals
// to this client.
// "CLIENT_DEAL_NEGOTIATOR" - Users associated with this client can
// respond to deal proposals
// sent to them by publishers. They can also initiate deal proposals
// of their own.
// "CLIENT_DEAL_APPROVER" - Users associated with this client can
// approve eligible deals
// on your behalf. Some deals may still explicitly require
// publisher
// finalization. If this role is not selected, the sponsor buyer
// will need to manually approve each of their deals.
Role string `json:"role,omitempty"`
// Status: The status of the client buyer.
//
// Possible values:
// "CLIENT_STATUS_UNSPECIFIED" - A placeholder for an undefined client
// status.
// "DISABLED" - A client that is currently disabled.
// "ACTIVE" - A client that is currently active.
Status string `json:"status,omitempty"`
// VisibleToSeller: Whether the client buyer will be visible to sellers.
VisibleToSeller bool `json:"visibleToSeller,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ClientAccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ClientAccountId") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Client) MarshalJSON() ([]byte, error) {
type noMethod Client
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ClientUser: A client user is created under a client buyer and has
// restricted access to
// the Ad Exchange Marketplace and certain other sections
// of the Ad Exchange Buyer UI based on the role
// granted to the associated client buyer.
//
// The only way a new client user can be created is via accepting
// an
// email invitation
// (see the
// accounts.clients.invitations.create
// method).
//
// All fields are required unless otherwise specified.
type ClientUser struct {
// ClientAccountId: Numerical account ID of the client buyer
// with which the user is associated; the
// buyer must be a client of the current sponsor buyer.
// The value of this field is ignored in an update operation.
ClientAccountId int64 `json:"clientAccountId,omitempty,string"`
// Email: User's email address. The value of this field
// is ignored in an update operation.
Email string `json:"email,omitempty"`
// Status: The status of the client user.
//
// Possible values:
// "USER_STATUS_UNSPECIFIED" - A placeholder for an undefined user
// status.
// "PENDING" - A user who was already created but hasn't accepted the
// invitation yet.
// "ACTIVE" - A user that is currently active.
// "DISABLED" - A user that is currently disabled.
Status string `json:"status,omitempty"`
// UserId: The unique numerical ID of the client user
// that has accepted an invitation.
// The value of this field is ignored in an update operation.
UserId int64 `json:"userId,omitempty,string"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ClientAccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ClientAccountId") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ClientUser) MarshalJSON() ([]byte, error) {
type noMethod ClientUser
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ClientUserInvitation: An invitation for a new client user to get
// access to the Ad Exchange
// Buyer UI.
// All fields are required unless otherwise specified.
type ClientUserInvitation struct {
// ClientAccountId: Numerical account ID of the client buyer
// that the invited user is associated with.
// The value of this field is ignored in create operations.
ClientAccountId int64 `json:"clientAccountId,omitempty,string"`
// Email: The email address to which the invitation is sent.
// Email
// addresses should be unique among all client users under each
// sponsor
// buyer.
Email string `json:"email,omitempty"`
// InvitationId: The unique numerical ID of the invitation that is sent
// to the user.
// The value of this field is ignored in create operations.
InvitationId int64 `json:"invitationId,omitempty,string"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ClientAccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ClientAccountId") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ClientUserInvitation) MarshalJSON() ([]byte, error) {
type noMethod ClientUserInvitation
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Correction: @OutputOnly Shows any corrections that were applied to
// this creative.
type Correction struct {
// Contexts: The contexts for the correction.
Contexts []*ServingContext `json:"contexts,omitempty"`
// Details: Additional details about what was corrected.
Details []string `json:"details,omitempty"`
// Type: The type of correction that was applied to the creative.
//
// Possible values:
// "CORRECTION_TYPE_UNSPECIFIED" - The correction type is unknown.
// Refer to the details for more information.
// "VENDOR_IDS_ADDED" - The ad's declared vendors did not match the
// vendors that were detected.
// The detected vendors were added.
// "SSL_ATTRIBUTE_REMOVED" - The ad had the SSL attribute declared but
// was not SSL-compliant.
// The SSL attribute was removed.
// "FLASH_FREE_ATTRIBUTE_REMOVED" - The ad was declared as Flash-free
// but contained Flash, so the Flash-free
// attribute was removed.
// "FLASH_FREE_ATTRIBUTE_ADDED" - The ad was not declared as
// Flash-free but it did not reference any flash
// content, so the Flash-free attribute was added.
// "REQUIRED_ATTRIBUTE_ADDED" - The ad did not declare a required
// creative attribute.
// The attribute was added.
// "REQUIRED_VENDOR_ADDED" - The ad did not declare a required
// technology vendor.
// The technology vendor was added.
// "SSL_ATTRIBUTE_ADDED" - The ad did not declare the SSL attribute
// but was SSL-compliant, so the
// SSL attribute was added.
// "IN_BANNER_VIDEO_ATTRIBUTE_ADDED" - Properties consistent with
// In-banner video were found, so an
// In-Banner Video attribute was added.
// "MRAID_ATTRIBUTE_ADDED" - The ad makes calls to the MRAID API so
// the MRAID attribute was added.
// "FLASH_ATTRIBUTE_REMOVED" - The ad unnecessarily declared the Flash
// attribute, so the Flash attribute
// was removed.
// "VIDEO_IN_SNIPPET_ATTRIBUTE_ADDED" - The ad contains video content.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "Contexts") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Contexts") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Correction) MarshalJSON() ([]byte, error) {
type noMethod Correction
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Creative: A creative and its classification data.
type Creative struct {
// AccountId: The account that this creative belongs to.
// Can be used to filter the response of the
// creatives.list
// method.
AccountId string `json:"accountId,omitempty"`
// AdChoicesDestinationUrl: The link to AdChoices destination page.
AdChoicesDestinationUrl string `json:"adChoicesDestinationUrl,omitempty"`
// AdvertiserName: The name of the company being advertised in the
// creative.
AdvertiserName string `json:"advertiserName,omitempty"`
// AgencyId: The agency ID for this creative.
AgencyId int64 `json:"agencyId,omitempty,string"`
// ApiUpdateTime: @OutputOnly The last update timestamp of the creative
// via API.
ApiUpdateTime string `json:"apiUpdateTime,omitempty"`
// Attributes: All attributes for the ads that may be shown from this
// creative.
// Can be used to filter the response of the
// creatives.list
// method.
//
// Possible values:
// "ATTRIBUTE_UNSPECIFIED" - Do not use. This is a placeholder value
// only.
// "IS_TAGGED" - The creative is tagged.
// "IS_COOKIE_TARGETED" - The creative is cookie targeted.
// "IS_USER_INTEREST_TARGETED" - The creative is user interest
// targeted.
// "EXPANDING_DIRECTION_NONE" - The creative does not expand.
// "EXPANDING_DIRECTION_UP" - The creative expands up.
// "EXPANDING_DIRECTION_DOWN" - The creative expands down.
// "EXPANDING_DIRECTION_LEFT" - The creative expands left.
// "EXPANDING_DIRECTION_RIGHT" - The creative expands right.
// "EXPANDING_DIRECTION_UP_LEFT" - The creative expands up and left.
// "EXPANDING_DIRECTION_UP_RIGHT" - The creative expands up and right.
// "EXPANDING_DIRECTION_DOWN_LEFT" - The creative expands down and
// left.
// "EXPANDING_DIRECTION_DOWN_RIGHT" - The creative expands down and
// right.
// "EXPANDING_DIRECTION_UP_OR_DOWN" - The creative expands up or down.
// "EXPANDING_DIRECTION_LEFT_OR_RIGHT" - The creative expands left or
// right.
// "EXPANDING_DIRECTION_ANY_DIAGONAL" - The creative expands on any
// diagonal.
// "EXPANDING_ACTION_ROLLOVER_TO_EXPAND" - The creative expands when
// rolled over.
// "INSTREAM_VAST_VIDEO_TYPE_VPAID_FLASH" - The instream vast video
// type is vpaid flash.
// "RICH_MEDIA_CAPABILITY_TYPE_MRAID" - The creative is MRAID
// "RICH_MEDIA_CAPABILITY_TYPE_SSL" - The creative is SSL.
// "RICH_MEDIA_CAPABILITY_TYPE_INTERSTITIAL" - The creative is an
// interstitial.
// "NATIVE_ELIGIBILITY_ELIGIBLE" - The creative is eligible for
// native.
// "NATIVE_ELIGIBILITY_NOT_ELIGIBLE" - The creative is not eligible
// for native.
// "RENDERING_SIZELESS_ADX" - The creative can dynamically resize to
// fill a variety of slot sizes.
Attributes []string `json:"attributes,omitempty"`
// ClickThroughUrls: The set of destination URLs for the creative.
ClickThroughUrls []string `json:"clickThroughUrls,omitempty"`
// Corrections: @OutputOnly Shows any corrections that were applied to
// this creative.
Corrections []*Correction `json:"corrections,omitempty"`
// CreativeId: The buyer-defined creative ID of this creative.
// Can be used to filter the response of the
// creatives.list
// method.
CreativeId string `json:"creativeId,omitempty"`
// DealsStatus: @OutputOnly The top-level deals status of this
// creative.
// If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL')
// in
// serving_restrictions will also exist. Note
// that this may be nuanced with other contextual restrictions, in which
// case,
// it may be preferable to read from serving_restrictions directly.
// Can be used to filter the response of the
// creatives.list
// method.
//
// Possible values:
// "STATUS_UNSPECIFIED" - The status is unknown.
// "NOT_CHECKED" - The creative has not been checked.
// "CONDITIONALLY_APPROVED" - The creative has been conditionally
// approved.
// See serving_restrictions for details.
// "APPROVED" - The creative has been approved.
// "DISAPPROVED" - The creative has been disapproved.
DealsStatus string `json:"dealsStatus,omitempty"`
// DetectedAdvertiserIds: @OutputOnly Detected advertiser IDs, if any.
DetectedAdvertiserIds googleapi.Int64s `json:"detectedAdvertiserIds,omitempty"`
// DetectedDomains: @OutputOnly
// The detected domains for this creative.
DetectedDomains []string `json:"detectedDomains,omitempty"`
// DetectedLanguages: @OutputOnly
// The detected languages for this creative. The order is arbitrary. The
// codes
// are 2 or 5 characters and are documented
// at
// https://developers.google.com/adwords/api/docs/appendix/languagecod
// es.
DetectedLanguages []string `json:"detectedLanguages,omitempty"`
// DetectedProductCategories: @OutputOnly Detected product categories,
// if any.
// See the ad-product-categories.txt file in the technical
// documentation
// for a list of IDs.
DetectedProductCategories []int64 `json:"detectedProductCategories,omitempty"`
// DetectedSensitiveCategories: @OutputOnly Detected sensitive
// categories, if any.
// See the ad-sensitive-categories.txt file in the technical
// documentation for
// a list of IDs. You should use these IDs along with
// the
// excluded-sensitive-category field in the bid request to filter your
// bids.
DetectedSensitiveCategories []int64 `json:"detectedSensitiveCategories,omitempty"`
// FilteringStats: @OutputOnly The filtering stats for this creative.
FilteringStats *FilteringStats `json:"filteringStats,omitempty"`
// Html: An HTML creative.
Html *HtmlContent `json:"html,omitempty"`
// ImpressionTrackingUrls: The set of URLs to be called to record an
// impression.
ImpressionTrackingUrls []string `json:"impressionTrackingUrls,omitempty"`
// Native: A native creative.
Native *NativeContent `json:"native,omitempty"`
// OpenAuctionStatus: @OutputOnly The top-level open auction status of
// this creative.
// If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL')
// in
// serving_restrictions will also exist. Note
// that this may be nuanced with other contextual restrictions, in which
// case,
// it may be preferable to read from serving_restrictions directly.
// Can be used to filter the response of the
// creatives.list
// method.
//
// Possible values:
// "STATUS_UNSPECIFIED" - The status is unknown.
// "NOT_CHECKED" - The creative has not been checked.
// "CONDITIONALLY_APPROVED" - The creative has been conditionally
// approved.
// See serving_restrictions for details.
// "APPROVED" - The creative has been approved.
// "DISAPPROVED" - The creative has been disapproved.
OpenAuctionStatus string `json:"openAuctionStatus,omitempty"`
// RestrictedCategories: All restricted categories for the ads that may
// be shown from this creative.
//
// Possible values:
// "NO_RESTRICTED_CATEGORIES" - The ad has no restricted categories
// "ALCOHOL" - The alcohol restricted category.
RestrictedCategories []string `json:"restrictedCategories,omitempty"`
// ServingRestrictions: @OutputOnly The granular status of this ad in
// specific contexts.
// A context here relates to where something ultimately serves (for
// example,
// a physical location, a platform, an HTTPS vs HTTP request, or the
// type
// of auction).
ServingRestrictions []*ServingRestriction `json:"servingRestrictions,omitempty"`
// VendorIds: All vendor IDs for the ads that may be shown from this
// creative.
// See
// https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
// for possible values.
VendorIds []int64 `json:"vendorIds,omitempty"`
// Version: @OutputOnly The version of this creative.
Version int64 `json:"version,omitempty"`
// Video: A video creative.
Video *VideoContent `json:"video,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Creative) MarshalJSON() ([]byte, error) {
type noMethod Creative
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreativeDealAssociation: The association between a creative and a
// deal.
type CreativeDealAssociation struct {
// AccountId: The account the creative belongs to.
AccountId string `json:"accountId,omitempty"`
// CreativeId: The ID of the creative associated with the deal.
CreativeId string `json:"creativeId,omitempty"`
// DealsId: The externalDealId for the deal associated with the
// creative.
DealsId string `json:"dealsId,omitempty"`
// ForceSendFields is a list of field names (e.g. "AccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreativeDealAssociation) MarshalJSON() ([]byte, error) {
type noMethod CreativeDealAssociation
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Date: Represents a whole calendar date, e.g. date of birth. The time
// of day and
// time zone are either specified elsewhere or are not significant. The
// date
// is relative to the Proleptic Gregorian Calendar. The day may be 0
// to
// represent a year and month where the day is not significant, e.g.
// credit card
// expiration date. The year may be 0 to represent a month and day
// independent
// of year, e.g. anniversary date. Related types are
// google.type.TimeOfDay
// and `google.protobuf.Timestamp`.
type Date struct {
// Day: Day of month. Must be from 1 to 31 and valid for the year and
// month, or 0
// if specifying a year/month where the day is not significant.
Day int64 `json:"day,omitempty"`
// Month: Month of year. Must be from 1 to 12.
Month int64 `json:"month,omitempty"`
// Year: Year of date. Must be from 1 to 9999, or 0 if specifying a date
// without
// a year.
Year int64 `json:"year,omitempty"`
// ForceSendFields is a list of field names (e.g. "Day") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Day") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Date) MarshalJSON() ([]byte, error) {
type noMethod Date
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Disapproval: @OutputOnly The reason and details for a disapproval.
type Disapproval struct {
// Details: Additional details about the reason for disapproval.
Details []string `json:"details,omitempty"`
// Reason: The categorized reason for disapproval.
//
// Possible values:
// "LENGTH_OF_IMAGE_ANIMATION" - The length of the image animation is
// longer than allowed.
// "BROKEN_URL" - The click through URL doesn't work properly.
// "MEDIA_NOT_FUNCTIONAL" - Something is wrong with the creative
// itself.
// "INVALID_FOURTH_PARTY_CALL" - The ad makes a fourth party call to
// an unapproved vendor.
// "INCORRECT_REMARKETING_DECLARATION" - The ad targets consumers
// using remarketing lists and/or collects
// data for subsequent use in retargeting, but does not correctly
// declare
// that use.
// "LANDING_PAGE_ERROR" - Clicking on the ad leads to an error page.
// "AD_SIZE_DOES_NOT_MATCH_AD_SLOT" - The ad size when rendered does
// not match the declaration.
// "NO_BORDER" - Ads with a white background require a border, which
// was missing.
// "FOURTH_PARTY_BROWSER_COOKIES" - The creative attempts to set
// cookies from a fourth party that is not
// certified.
// "LSO_OBJECTS" - The creative sets an LSO object.
// "BLANK_CREATIVE" - The ad serves a blank.
// "DESTINATION_URLS_UNDECLARED" - The ad uses rotation, but not all
// destination URLs were declared.
// "PROBLEM_WITH_CLICK_MACRO" - There is a problem with the way the
// click macro is used.
// "INCORRECT_AD_TECHNOLOGY_DECLARATION" - The ad technology
// declaration is not accurate.
// "INCORRECT_DESTINATION_URL_DECLARATION" - The actual destination
// URL does not match the declared destination URL.
// "EXPANDABLE_INCORRECT_DIRECTION" - The declared expanding direction
// does not match the actual direction.
// "EXPANDABLE_DIRECTION_NOT_SUPPORTED" - The ad does not expand in a
// supported direction.
// "EXPANDABLE_INVALID_VENDOR" - The ad uses an expandable vendor that
// is not supported.
// "EXPANDABLE_FUNCTIONALITY" - There was an issue with the expandable
// ad.
// "VIDEO_INVALID_VENDOR" - The ad uses a video vendor that is not
// supported.
// "VIDEO_UNSUPPORTED_LENGTH" - The length of the video ad is not
// supported.
// "VIDEO_UNSUPPORTED_FORMAT" - The format of the video ad is not
// supported.
// "VIDEO_FUNCTIONALITY" - There was an issue with the video ad.
// "LANDING_PAGE_DISABLED" - The landing page does not conform to Ad
// Exchange policy.
// "MALWARE_SUSPECTED" - The ad or the landing page may contain
// malware.
// "ADULT_IMAGE_OR_VIDEO" - The ad contains adult images or video
// content.
// "INACCURATE_AD_TEXT" - The ad contains text that is unclear or
// inaccurate.
// "COUNTERFEIT_DESIGNER_GOODS" - The ad promotes counterfeit designer
// goods.
// "POP_UP" - The ad causes a popup window to appear.
// "INVALID_RTB_PROTOCOL_USAGE" - The creative does not follow
// policies set for the RTB protocol.
// "RAW_IP_ADDRESS_IN_SNIPPET" - The ad contains a URL that uses a
// numeric IP address for the domain.
// "UNACCEPTABLE_CONTENT_SOFTWARE" - The ad or landing page contains
// unacceptable content because it initiated
// a software or executable download.
// "UNAUTHORIZED_COOKIE_ON_GOOGLE_DOMAIN" - The ad set an unauthorized
// cookie on a Google domain.
// "UNDECLARED_FLASH_OBJECTS" - Flash content found when no flash was
// declared.
// "INVALID_SSL_DECLARATION" - SSL support declared but not working
// correctly.
// "DIRECT_DOWNLOAD_IN_AD" - Rich Media - Direct Download in Ad (ex.
// PDF download).
// "MAXIMUM_DOWNLOAD_SIZE_EXCEEDED" - Maximum download size exceeded.
// "DESTINATION_URL_SITE_NOT_CRAWLABLE" - Bad Destination URL: Site
// Not Crawlable.
// "BAD_URL_LEGAL_DISAPPROVAL" - Bad URL: Legal disapproval.
// "PHARMA_GAMBLING_ALCOHOL_NOT_ALLOWED" - Pharmaceuticals, Gambling,
// Alcohol not allowed and at least one was
// detected.
// "DYNAMIC_DNS_AT_DESTINATION_URL" - Dynamic DNS at Destination URL.
// "POOR_IMAGE_OR_VIDEO_QUALITY" - Poor Image / Video Quality.
// "UNACCEPTABLE_IMAGE_CONTENT" - For example, Image Trick to Click.
// "INCORRECT_IMAGE_LAYOUT" - Incorrect Image Layout.
// "IRRELEVANT_IMAGE_OR_VIDEO" - Irrelevant Image / Video.
// "DESTINATION_SITE_DOES_NOT_ALLOW_GOING_BACK" - Broken back button.
// "MISLEADING_CLAIMS_IN_AD" - Misleading/Inaccurate claims in ads.
// "RESTRICTED_PRODUCTS" - Restricted Products.
// "UNACCEPTABLE_CONTENT" - Unacceptable content. For example,
// malware.
// "AUTOMATED_AD_CLICKING" - The ad automatically redirects to the
// destination site without a click,
// or reports a click when none were made.
// "INVALID_URL_PROTOCOL" - The ad uses URL protocols that do not
// exist or are not allowed on AdX.
// "UNDECLARED_RESTRICTED_CONTENT" - Restricted content (for example,
// alcohol) was found in the ad but not
// declared.
// "INVALID_REMARKETING_LIST_USAGE" - Violation of the remarketing
// list policy.
// "DESTINATION_SITE_NOT_CRAWLABLE_ROBOTS_TXT" - The destination
// site's robot.txt file prevents it from being crawled.
// "CLICK_TO_DOWNLOAD_NOT_AN_APP" - Click to download must link to an
// app.
// "INACCURATE_REVIEW_EXTENSION" - A review extension must be an
// accurate review.
// "SEXUALLY_EXPLICIT_CONTENT" - Sexually explicit content.
// "GAINING_AN_UNFAIR_ADVANTAGE" - The ad tries to gain an unfair
// traffic advantage.
// "GAMING_THE_GOOGLE_NETWORK" - The ad tries to circumvent Google's
// advertising systems.
// "DANGEROUS_PRODUCTS_KNIVES" - The ad promotes dangerous knives.
// "DANGEROUS_PRODUCTS_EXPLOSIVES" - The ad promotes explosives.
// "DANGEROUS_PRODUCTS_GUNS" - The ad promotes guns & parts.
// "DANGEROUS_PRODUCTS_DRUGS" - The ad promotes recreational
// drugs/services & related equipment.
// "DANGEROUS_PRODUCTS_TOBACCO" - The ad promotes tobacco
// products/services & related equipment.
// "DANGEROUS_PRODUCTS_WEAPONS" - The ad promotes weapons.
// "UNCLEAR_OR_IRRELEVANT_AD" - The ad is unclear or irrelevant to the
// destination site.
// "PROFESSIONAL_STANDARDS" - The ad does not meet professional
// standards.
// "DYSFUNCTIONAL_PROMOTION" - The promotion is unnecessarily
// difficult to navigate.
// "INVALID_INTEREST_BASED_AD" - Violation of Google's policy for
// interest-based ads.
// "MISUSE_OF_PERSONAL_INFORMATION" - Misuse of personal information.
// "OMISSION_OF_RELEVANT_INFORMATION" - Omission of relevant
// information.
// "UNAVAILABLE_PROMOTIONS" - Unavailable promotions.
// "MISLEADING_PROMOTIONS" - Misleading or unrealistic promotions.
// "INAPPROPRIATE_CONTENT" - Offensive or inappropriate content.
// "SENSITIVE_EVENTS" - Capitalizing on sensitive events.
// "SHOCKING_CONTENT" - Shocking content.
// "ENABLING_DISHONEST_BEHAVIOR" - Products & Services that enable
// dishonest behavior.
// "TECHNICAL_REQUIREMENTS" - The ad does not meet technical
// requirements.
// "RESTRICTED_POLITICAL_CONTENT" - Restricted political content.
// "UNSUPPORTED_CONTENT" - Unsupported content.
// "INVALID_BIDDING_METHOD" - Invalid bidding method.
// "VIDEO_TOO_LONG" - Video length exceeds limits.
// "VIOLATES_JAPANESE_PHARMACY_LAW" - Unacceptable content: Japanese
// healthcare.
// "UNACCREDITED_PET_PHARMACY" - Online pharmacy ID required.
// "ABORTION" - Unacceptable content: Abortion.
// "CONTRACEPTIVES" - Unacceptable content: Birth control.
// "NEED_CERTIFICATES_TO_ADVERTISE_IN_CHINA" - Restricted in China.
// "KCDSP_REGISTRATION" - Unacceptable content: Korean healthcare.
// "NOT_FAMILY_SAFE" - Non-family safe or adult content.
// "CLINICAL_TRIAL_RECRUITMENT" - Clinical trial recruitment.
// "MAXIMUM_NUMBER_OF_HTTP_CALLS_EXCEEDED" - Maximum number of HTTP
// calls exceeded.
// "MAXIMUM_NUMBER_OF_COOKIES_EXCEEDED" - Maximum number of cookies
// exceeded.
// "PERSONAL_LOANS" - Financial service ad does not adhere to
// specifications.
// "UNSUPPORTED_FLASH_CONTENT" - Flash content was found in an
// unsupported context.
Reason string `json:"reason,omitempty"`
// ForceSendFields is a list of field names (e.g. "Details") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Details") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Disapproval) MarshalJSON() ([]byte, error) {
type noMethod Disapproval
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Empty: A generic empty message that you can re-use to avoid defining
// duplicated
// empty messages in your APIs. A typical example is to use it as the
// request
// or the response type of an API method. For instance:
//
// service Foo {
// rpc Bar(google.protobuf.Empty) returns
// (google.protobuf.Empty);
// }
//
// The JSON representation for `Empty` is empty JSON object `{}`.
type Empty struct {
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
}
// FilteringStats: @OutputOnly Filtering reasons for this creative
// during a period of a single
// day (from midnight to midnight Pacific).
type FilteringStats struct {
// Date: The day during which the data was collected.
// The data is collected from 00:00:00 to 23:59:59 PT.
// During switches from PST to PDT and back, the day may
// contain 23 or 25 hours of data instead of the usual 24.
Date *Date `json:"date,omitempty"`
// Reasons: The set of filtering reasons for this date.
Reasons []*Reason `json:"reasons,omitempty"`
// ForceSendFields is a list of field names (e.g. "Date") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Date") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *FilteringStats) MarshalJSON() ([]byte, error) {
type noMethod FilteringStats
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// HtmlContent: HTML content for a creative.
type HtmlContent struct {
// Height: The height of the HTML snippet in pixels.
Height int64 `json:"height,omitempty"`
// Snippet: The HTML snippet that displays the ad when inserted in the
// web page.
Snippet string `json:"snippet,omitempty"`
// Width: The width of the HTML snippet in pixels.
Width int64 `json:"width,omitempty"`
// ForceSendFields is a list of field names (e.g. "Height") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Height") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *HtmlContent) MarshalJSON() ([]byte, error) {
type noMethod HtmlContent
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Image: An image resource. You may provide a larger image than was
// requested,
// so long as the aspect ratio is preserved.
type Image struct {
// Height: Image height in pixels.
Height int64 `json:"height,omitempty"`
// Url: The URL of the image.
Url string `json:"url,omitempty"`
// Width: Image width in pixels.
Width int64 `json:"width,omitempty"`
// ForceSendFields is a list of field names (e.g. "Height") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Height") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Image) MarshalJSON() ([]byte, error) {
type noMethod Image
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ListClientUserInvitationsResponse struct {
// Invitations: The returned list of client users.
Invitations []*ClientUserInvitation `json:"invitations,omitempty"`
// NextPageToken: A token to retrieve the next page of results.
// Pass this value in
// the
// ListClientUserInvitationsRequest.pageToken
// field in the subsequent call to the
// clients.invitations.list
// method to retrieve the next
// page of results.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Invitations") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Invitations") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListClientUserInvitationsResponse) MarshalJSON() ([]byte, error) {
type noMethod ListClientUserInvitationsResponse
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ListClientUsersResponse struct {
// NextPageToken: A token to retrieve the next page of results.
// Pass this value in the
// ListClientUsersRequest.pageToken
// field in the subsequent call to the
// clients.invitations.list
// method to retrieve the next
// page of results.
NextPageToken string `json:"nextPageToken,omitempty"`
// Users: The returned list of client users.
Users []*ClientUser `json:"users,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListClientUsersResponse) MarshalJSON() ([]byte, error) {
type noMethod ListClientUsersResponse
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ListClientsResponse struct {
// Clients: The returned list of clients.
Clients []*Client `json:"clients,omitempty"`
// NextPageToken: A token to retrieve the next page of results.
// Pass this value in the
// ListClientsRequest.pageToken
// field in the subsequent call to the
// accounts.clients.list method
// to retrieve the next page of results.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Clients") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Clients") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListClientsResponse) MarshalJSON() ([]byte, error) {
type noMethod ListClientsResponse
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListCreativesResponse: A response for listing creatives.
type ListCreativesResponse struct {
// Creatives: The list of creatives.
Creatives []*Creative `json:"creatives,omitempty"`
// NextPageToken: A token to retrieve the next page of results.
// Pass this value in the
// ListCreativesRequest.page_token
// field in the subsequent call to `ListCreatives` method to retrieve
// the next
// page of results.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Creatives") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Creatives") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListCreativesResponse) MarshalJSON() ([]byte, error) {
type noMethod ListCreativesResponse
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListDealAssociationsResponse: A response for listing creative and
// deal associations
type ListDealAssociationsResponse struct {
// Associations: The list of associations.
Associations []*CreativeDealAssociation `json:"associations,omitempty"`
// NextPageToken: A token to retrieve the next page of results.
// Pass this value in the
// ListDealAssociationsRequest.page_token
// field in the subsequent call to 'ListDealAssociation' method to
// retrieve
// the next page of results.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Associations") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Associations") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListDealAssociationsResponse) MarshalJSON() ([]byte, error) {
type noMethod ListDealAssociationsResponse
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// LocationContext: @OutputOnly The Geo criteria the restriction applies
// to.
type LocationContext struct {
// GeoCriteriaIds: IDs representing the geo location for this
// context.
// Please refer to
// the
// [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionarie
// s/geo-table.csv)
// file for different geo criteria IDs.
GeoCriteriaIds []int64 `json:"geoCriteriaIds,omitempty"`
// ForceSendFields is a list of field names (e.g. "GeoCriteriaIds") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "GeoCriteriaIds") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *LocationContext) MarshalJSON() ([]byte, error) {
type noMethod LocationContext
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NativeContent: Native content for a creative.
type NativeContent struct {
// AdvertiserName: The name of the advertiser or sponsor, to be
// displayed in the ad creative.
AdvertiserName string `json:"advertiserName,omitempty"`
// AppIcon: The app icon, for app download ads.
AppIcon *Image `json:"appIcon,omitempty"`
// Body: A long description of the ad.
Body string `json:"body,omitempty"`
// CallToAction: A label for the button that the user is supposed to
// click.
CallToAction string `json:"callToAction,omitempty"`
// ClickLinkUrl: The URL that the browser/SDK will load when the user
// clicks the ad.
ClickLinkUrl string `json:"clickLinkUrl,omitempty"`
// ClickTrackingUrl: The URL to use for click tracking.
ClickTrackingUrl string `json:"clickTrackingUrl,omitempty"`
// Headline: A short title for the ad.
Headline string `json:"headline,omitempty"`
// Image: A large image.
Image *Image `json:"image,omitempty"`
// Logo: A smaller image, for the advertiser's logo.
Logo *Image `json:"logo,omitempty"`
// PriceDisplayText: The price of the promoted app including currency
// info.
PriceDisplayText string `json:"priceDisplayText,omitempty"`
// StarRating: The app rating in the app store. Must be in the range
// [0-5].
StarRating float64 `json:"starRating,omitempty"`
// StoreUrl: The URL to the app store to purchase/download the promoted
// app.
StoreUrl string `json:"storeUrl,omitempty"`
// VideoUrl: The URL to fetch a native video ad.
VideoUrl string `json:"videoUrl,omitempty"`
// ForceSendFields is a list of field names (e.g. "AdvertiserName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AdvertiserName") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *NativeContent) MarshalJSON() ([]byte, error) {
type noMethod NativeContent
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *NativeContent) UnmarshalJSON(data []byte) error {
type noMethod NativeContent
var s1 struct {
StarRating gensupport.JSONFloat64 `json:"starRating"`
*noMethod
}
s1.noMethod = (*noMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.StarRating = float64(s1.StarRating)
return nil
}
// PlatformContext: @OutputOnly The type of platform the restriction
// applies to.
type PlatformContext struct {
// Platforms: The platforms this restriction applies to.
//
// Possible values:
// "DESKTOP" - Desktop platform.
// "ANDROID" - Android platform.
// "IOS" - iOS platform.
Platforms []string `json:"platforms,omitempty"`
// ForceSendFields is a list of field names (e.g. "Platforms") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Platforms") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PlatformContext) MarshalJSON() ([]byte, error) {
type noMethod PlatformContext
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Reason: A specific filtering status and how many times it occurred.
type Reason struct {
// Count: The number of times the creative was filtered for the status.
// The
// count is aggregated across all publishers on the exchange.
Count int64 `json:"count,omitempty,string"`
// Status: The filtering status code. Please refer to
// the
// [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb
// -dictionaries/creative-status-codes.txt)
// file for different statuses.
Status int64 `json:"status,omitempty"`
// ForceSendFields is a list of field names (e.g. "Count") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Count") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Reason) MarshalJSON() ([]byte, error) {
type noMethod Reason
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// RemoveDealAssociationRequest: A request for removing the association
// between a deal and a creative.
type RemoveDealAssociationRequest struct {
// Association: The association between a creative and a deal that
// should be removed.
Association *CreativeDealAssociation `json:"association,omitempty"`
// ForceSendFields is a list of field names (e.g. "Association") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Association") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *RemoveDealAssociationRequest) MarshalJSON() ([]byte, error) {
type noMethod RemoveDealAssociationRequest
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SecurityContext: @OutputOnly A security context.
type SecurityContext struct {
// Securities: The security types in this context.
//
// Possible values:
// "INSECURE" - Matches impressions that require insecure
// compatibility.
// "SSL" - Matches impressions that require SSL compatibility.
Securities []string `json:"securities,omitempty"`
// ForceSendFields is a list of field names (e.g. "Securities") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Securities") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SecurityContext) MarshalJSON() ([]byte, error) {
type noMethod SecurityContext
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ServingContext: The serving context for this restriction.
type ServingContext struct {
// All: Matches all contexts.
//
// Possible values:
// "SIMPLE_CONTEXT" - A simple context.
All string `json:"all,omitempty"`
// AppType: Matches impressions for a particular app type.
AppType *AppContext `json:"appType,omitempty"`
// AuctionType: Matches impressions for a particular auction type.
AuctionType *AuctionContext `json:"auctionType,omitempty"`
// Location: Matches impressions coming from users *or* publishers in a
// specific
// location.
Location *LocationContext `json:"location,omitempty"`
// Platform: Matches impressions coming from a particular platform.
Platform *PlatformContext `json:"platform,omitempty"`
// SecurityType: Matches impressions for a particular security type.
SecurityType *SecurityContext `json:"securityType,omitempty"`
// ForceSendFields is a list of field names (e.g. "All") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "All") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ServingContext) MarshalJSON() ([]byte, error) {
type noMethod ServingContext
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ServingRestriction: @OutputOnly A representation of the status of an
// ad in a
// specific context. A context here relates to where something
// ultimately serves
// (for example, a user or publisher geo, a platform, an HTTPS vs HTTP
// request,
// or the type of auction).
type ServingRestriction struct {
// Contexts: The contexts for the restriction.
Contexts []*ServingContext `json:"contexts,omitempty"`
// DisapprovalReasons: Any disapprovals bound to this restriction.
// Only present if status=DISAPPROVED.
// Can be used to filter the response of the
// creatives.list
// method.
DisapprovalReasons []*Disapproval `json:"disapprovalReasons,omitempty"`
// Status: The status of the creative in this context (for example, it
// has been
// explicitly disapproved or is pending review).
//
// Possible values:
// "STATUS_UNSPECIFIED" - The status is not known.
// "DISAPPROVAL" - The ad was disapproved in this context.
// "PENDING_REVIEW" - The ad is pending review in this context.
Status string `json:"status,omitempty"`
// ForceSendFields is a list of field names (e.g. "Contexts") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Contexts") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ServingRestriction) MarshalJSON() ([]byte, error) {
type noMethod ServingRestriction
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// StopWatchingCreativeRequest: A request for stopping notifications for
// changes to creative Status.
type StopWatchingCreativeRequest struct {
}
// VideoContent: Video content for a creative.
type VideoContent struct {
// VideoUrl: The URL to fetch a video ad.
VideoUrl string `json:"videoUrl,omitempty"`
// ForceSendFields is a list of field names (e.g. "VideoUrl") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "VideoUrl") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *VideoContent) MarshalJSON() ([]byte, error) {
type noMethod VideoContent
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// WatchCreativeRequest: A request for watching changes to creative
// Status.
type WatchCreativeRequest struct {
// Topic: The Pub/Sub topic to publish notifications to.
// This topic must already exist and must give permission
// to
// <EMAIL> to write to the topic.
// This should be the full resource name
// in
// "projects/{project_id}/topics/{topic_id}" format.
Topic string `json:"topic,omitempty"`
// ForceSendFields is a list of field names (e.g. "Topic") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Topic") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WatchCreativeRequest) MarshalJSON() ([]byte, error) {
type noMethod WatchCreativeRequest
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// method id "adexchangebuyer2.accounts.clients.create":
type AccountsClientsCreateCall struct {
s *Service
accountId int64
client *Client
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Create: Creates a new client buyer.
func (r *AccountsClientsService) Create(accountId int64, client *Client) *AccountsClientsCreateCall {
c := &AccountsClientsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.client = client
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsClientsCreateCall) Fields(s ...googleapi.Field) *AccountsClientsCreateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsClientsCreateCall) Context(ctx context.Context) *AccountsClientsCreateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsClientsCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsClientsCreateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.client)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": strconv.FormatInt(c.accountId, 10),
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.clients.create" call.
// Exactly one of *Client or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Client.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *AccountsClientsCreateCall) Do(opts ...googleapi.CallOption) (*Client, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Client{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Creates a new client buyer.",
// "flatPath": "v2beta1/accounts/{accountId}/clients",
// "httpMethod": "POST",
// "id": "adexchangebuyer2.accounts.clients.create",
// "parameterOrder": [
// "accountId"
// ],
// "parameters": {
// "accountId": {
// "description": "Unique numerical account ID for the buyer of which the client buyer\nis a customer; the sponsor buyer to create a client for. (required)",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/clients",
// "request": {
// "$ref": "Client"
// },
// "response": {
// "$ref": "Client"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// method id "adexchangebuyer2.accounts.clients.get":
type AccountsClientsGetCall struct {
s *Service
accountId int64
clientAccountId int64
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get: Gets a client buyer with a given client account ID.
func (r *AccountsClientsService) Get(accountId int64, clientAccountId int64) *AccountsClientsGetCall {
c := &AccountsClientsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.clientAccountId = clientAccountId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsClientsGetCall) Fields(s ...googleapi.Field) *AccountsClientsGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *AccountsClientsGetCall) IfNoneMatch(entityTag string) *AccountsClientsGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsClientsGetCall) Context(ctx context.Context) *AccountsClientsGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsClientsGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsClientsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients/{clientAccountId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": strconv.FormatInt(c.accountId, 10),
"clientAccountId": strconv.FormatInt(c.clientAccountId, 10),
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.clients.get" call.
// Exactly one of *Client or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Client.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *AccountsClientsGetCall) Do(opts ...googleapi.CallOption) (*Client, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Client{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Gets a client buyer with a given client account ID.",
// "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}",
// "httpMethod": "GET",
// "id": "adexchangebuyer2.accounts.clients.get",
// "parameterOrder": [
// "accountId",
// "clientAccountId"
// ],
// "parameters": {
// "accountId": {
// "description": "Numerical account ID of the client's sponsor buyer. (required)",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "clientAccountId": {
// "description": "Numerical account ID of the client buyer to retrieve. (required)",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}",
// "response": {
// "$ref": "Client"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// method id "adexchangebuyer2.accounts.clients.list":
type AccountsClientsListCall struct {
s *Service
accountId int64
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Lists all the clients for the current sponsor buyer.
func (r *AccountsClientsService) List(accountId int64) *AccountsClientsListCall {
c := &AccountsClientsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
return c
}
// PageSize sets the optional parameter "pageSize": Requested page size.
// The server may return fewer clients than requested.
// If unspecified, the server will pick an appropriate default.
func (c *AccountsClientsListCall) PageSize(pageSize int64) *AccountsClientsListCall {
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
return c
}
// PageToken sets the optional parameter "pageToken": A token
// identifying a page of results the server should return.
// Typically, this is the value
// of
// ListClientsResponse.nextPageToken
// returned from the previous call to the
// accounts.clients.list method.
func (c *AccountsClientsListCall) PageToken(pageToken string) *AccountsClientsListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsClientsListCall) Fields(s ...googleapi.Field) *AccountsClientsListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *AccountsClientsListCall) IfNoneMatch(entityTag string) *AccountsClientsListCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsClientsListCall) Context(ctx context.Context) *AccountsClientsListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsClientsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsClientsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": strconv.FormatInt(c.accountId, 10),
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.clients.list" call.
// Exactly one of *ListClientsResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *ListClientsResponse.ServerResponse.Header or (if a response was
// returned at all) in error.(*googleapi.Error).Header. Use
// googleapi.IsNotModified to check whether the returned error was
// because http.StatusNotModified was returned.
func (c *AccountsClientsListCall) Do(opts ...googleapi.CallOption) (*ListClientsResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ListClientsResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Lists all the clients for the current sponsor buyer.",
// "flatPath": "v2beta1/accounts/{accountId}/clients",
// "httpMethod": "GET",
// "id": "adexchangebuyer2.accounts.clients.list",
// "parameterOrder": [
// "accountId"
// ],
// "parameters": {
// "accountId": {
// "description": "Unique numerical account ID of the sponsor buyer to list the clients for.",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "pageSize": {
// "description": "Requested page size. The server may return fewer clients than requested.\nIf unspecified, the server will pick an appropriate default.",
// "format": "int32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "description": "A token identifying a page of results the server should return.\nTypically, this is the value of\nListClientsResponse.nextPageToken\nreturned from the previous call to the\naccounts.clients.list method.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/clients",
// "response": {
// "$ref": "ListClientsResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *AccountsClientsListCall) Pages(ctx context.Context, f func(*ListClientsResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "adexchangebuyer2.accounts.clients.update":
type AccountsClientsUpdateCall struct {
s *Service
accountId int64
clientAccountId int64
client *Client
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Update: Updates an existing client buyer.
func (r *AccountsClientsService) Update(accountId int64, clientAccountId int64, client *Client) *AccountsClientsUpdateCall {
c := &AccountsClientsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.clientAccountId = clientAccountId
c.client = client
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsClientsUpdateCall) Fields(s ...googleapi.Field) *AccountsClientsUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsClientsUpdateCall) Context(ctx context.Context) *AccountsClientsUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsClientsUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsClientsUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.client)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients/{clientAccountId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": strconv.FormatInt(c.accountId, 10),
"clientAccountId": strconv.FormatInt(c.clientAccountId, 10),
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.clients.update" call.
// Exactly one of *Client or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Client.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *AccountsClientsUpdateCall) Do(opts ...googleapi.CallOption) (*Client, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Client{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Updates an existing client buyer.",
// "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}",
// "httpMethod": "PUT",
// "id": "adexchangebuyer2.accounts.clients.update",
// "parameterOrder": [
// "accountId",
// "clientAccountId"
// ],
// "parameters": {
// "accountId": {
// "description": "Unique numerical account ID for the buyer of which the client buyer\nis a customer; the sponsor buyer to update a client for. (required)",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "clientAccountId": {
// "description": "Unique numerical account ID of the client to update. (required)",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}",
// "request": {
// "$ref": "Client"
// },
// "response": {
// "$ref": "Client"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// method id "adexchangebuyer2.accounts.clients.invitations.create":
type AccountsClientsInvitationsCreateCall struct {
s *Service
accountId int64
clientAccountId int64
clientuserinvitation *ClientUserInvitation
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Create: Creates and sends out an email invitation to access
// an Ad Exchange client buyer account.
func (r *AccountsClientsInvitationsService) Create(accountId int64, clientAccountId int64, clientuserinvitation *ClientUserInvitation) *AccountsClientsInvitationsCreateCall {
c := &AccountsClientsInvitationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.clientAccountId = clientAccountId
c.clientuserinvitation = clientuserinvitation
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsClientsInvitationsCreateCall) Fields(s ...googleapi.Field) *AccountsClientsInvitationsCreateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsClientsInvitationsCreateCall) Context(ctx context.Context) *AccountsClientsInvitationsCreateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsClientsInvitationsCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsClientsInvitationsCreateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.clientuserinvitation)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": strconv.FormatInt(c.accountId, 10),
"clientAccountId": strconv.FormatInt(c.clientAccountId, 10),
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.clients.invitations.create" call.
// Exactly one of *ClientUserInvitation or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *ClientUserInvitation.ServerResponse.Header or (if a response was
// returned at all) in error.(*googleapi.Error).Header. Use
// googleapi.IsNotModified to check whether the returned error was
// because http.StatusNotModified was returned.
func (c *AccountsClientsInvitationsCreateCall) Do(opts ...googleapi.CallOption) (*ClientUserInvitation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ClientUserInvitation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Creates and sends out an email invitation to access\nan Ad Exchange client buyer account.",
// "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations",
// "httpMethod": "POST",
// "id": "adexchangebuyer2.accounts.clients.invitations.create",
// "parameterOrder": [
// "accountId",
// "clientAccountId"
// ],
// "parameters": {
// "accountId": {
// "description": "Numerical account ID of the client's sponsor buyer. (required)",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "clientAccountId": {
// "description": "Numerical account ID of the client buyer that the user\nshould be associated with. (required)",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations",
// "request": {
// "$ref": "ClientUserInvitation"
// },
// "response": {
// "$ref": "ClientUserInvitation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// method id "adexchangebuyer2.accounts.clients.invitations.get":
type AccountsClientsInvitationsGetCall struct {
s *Service
accountId int64
clientAccountId int64
invitationId int64
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get: Retrieves an existing client user invitation.
func (r *AccountsClientsInvitationsService) Get(accountId int64, clientAccountId int64, invitationId int64) *AccountsClientsInvitationsGetCall {
c := &AccountsClientsInvitationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.clientAccountId = clientAccountId
c.invitationId = invitationId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsClientsInvitationsGetCall) Fields(s ...googleapi.Field) *AccountsClientsInvitationsGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *AccountsClientsInvitationsGetCall) IfNoneMatch(entityTag string) *AccountsClientsInvitationsGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsClientsInvitationsGetCall) Context(ctx context.Context) *AccountsClientsInvitationsGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsClientsInvitationsGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsClientsInvitationsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": strconv.FormatInt(c.accountId, 10),
"clientAccountId": strconv.FormatInt(c.clientAccountId, 10),
"invitationId": strconv.FormatInt(c.invitationId, 10),
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.clients.invitations.get" call.
// Exactly one of *ClientUserInvitation or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *ClientUserInvitation.ServerResponse.Header or (if a response was
// returned at all) in error.(*googleapi.Error).Header. Use
// googleapi.IsNotModified to check whether the returned error was
// because http.StatusNotModified was returned.
func (c *AccountsClientsInvitationsGetCall) Do(opts ...googleapi.CallOption) (*ClientUserInvitation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ClientUserInvitation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Retrieves an existing client user invitation.",
// "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}",
// "httpMethod": "GET",
// "id": "adexchangebuyer2.accounts.clients.invitations.get",
// "parameterOrder": [
// "accountId",
// "clientAccountId",
// "invitationId"
// ],
// "parameters": {
// "accountId": {
// "description": "Numerical account ID of the client's sponsor buyer. (required)",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "clientAccountId": {
// "description": "Numerical account ID of the client buyer that the user invitation\nto be retrieved is associated with. (required)",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "invitationId": {
// "description": "Numerical identifier of the user invitation to retrieve. (required)",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}",
// "response": {
// "$ref": "ClientUserInvitation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// method id "adexchangebuyer2.accounts.clients.invitations.list":
type AccountsClientsInvitationsListCall struct {
s *Service
accountId int64
clientAccountId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Lists all the client users invitations for a client
// with a given account ID.
func (r *AccountsClientsInvitationsService) List(accountId int64, clientAccountId string) *AccountsClientsInvitationsListCall {
c := &AccountsClientsInvitationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.clientAccountId = clientAccountId
return c
}
// PageSize sets the optional parameter "pageSize": Requested page size.
// Server may return fewer clients than requested.
// If unspecified, server will pick an appropriate default.
func (c *AccountsClientsInvitationsListCall) PageSize(pageSize int64) *AccountsClientsInvitationsListCall {
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
return c
}
// PageToken sets the optional parameter "pageToken": A token
// identifying a page of results the server should return.
// Typically, this is the value
// of
// ListClientUserInvitationsResponse.nextPageToken
// returned from the previous call to
// the
// clients.invitations.list
// method.
func (c *AccountsClientsInvitationsListCall) PageToken(pageToken string) *AccountsClientsInvitationsListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsClientsInvitationsListCall) Fields(s ...googleapi.Field) *AccountsClientsInvitationsListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *AccountsClientsInvitationsListCall) IfNoneMatch(entityTag string) *AccountsClientsInvitationsListCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsClientsInvitationsListCall) Context(ctx context.Context) *AccountsClientsInvitationsListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsClientsInvitationsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsClientsInvitationsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": strconv.FormatInt(c.accountId, 10),
"clientAccountId": c.clientAccountId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.clients.invitations.list" call.
// Exactly one of *ListClientUserInvitationsResponse or error will be
// non-nil. Any non-2xx status code is an error. Response headers are in
// either *ListClientUserInvitationsResponse.ServerResponse.Header or
// (if a response was returned at all) in
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
// whether the returned error was because http.StatusNotModified was
// returned.
func (c *AccountsClientsInvitationsListCall) Do(opts ...googleapi.CallOption) (*ListClientUserInvitationsResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ListClientUserInvitationsResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Lists all the client users invitations for a client\nwith a given account ID.",
// "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations",
// "httpMethod": "GET",
// "id": "adexchangebuyer2.accounts.clients.invitations.list",
// "parameterOrder": [
// "accountId",
// "clientAccountId"
// ],
// "parameters": {
// "accountId": {
// "description": "Numerical account ID of the client's sponsor buyer. (required)",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "clientAccountId": {
// "description": "Numerical account ID of the client buyer to list invitations for.\n(required)\nYou must either specify a string representation of a\nnumerical account identifier or the `-` character\nto list all the invitations for all the clients\nof a given sponsor buyer.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "pageSize": {
// "description": "Requested page size. Server may return fewer clients than requested.\nIf unspecified, server will pick an appropriate default.",
// "format": "int32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "description": "A token identifying a page of results the server should return.\nTypically, this is the value of\nListClientUserInvitationsResponse.nextPageToken\nreturned from the previous call to the\nclients.invitations.list\nmethod.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations",
// "response": {
// "$ref": "ListClientUserInvitationsResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *AccountsClientsInvitationsListCall) Pages(ctx context.Context, f func(*ListClientUserInvitationsResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "adexchangebuyer2.accounts.clients.users.get":
type AccountsClientsUsersGetCall struct {
s *Service
accountId int64
clientAccountId int64
userId int64
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get: Retrieves an existing client user.
func (r *AccountsClientsUsersService) Get(accountId int64, clientAccountId int64, userId int64) *AccountsClientsUsersGetCall {
c := &AccountsClientsUsersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.clientAccountId = clientAccountId
c.userId = userId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsClientsUsersGetCall) Fields(s ...googleapi.Field) *AccountsClientsUsersGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *AccountsClientsUsersGetCall) IfNoneMatch(entityTag string) *AccountsClientsUsersGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsClientsUsersGetCall) Context(ctx context.Context) *AccountsClientsUsersGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsClientsUsersGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsClientsUsersGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": strconv.FormatInt(c.accountId, 10),
"clientAccountId": strconv.FormatInt(c.clientAccountId, 10),
"userId": strconv.FormatInt(c.userId, 10),
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.clients.users.get" call.
// Exactly one of *ClientUser or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *ClientUser.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
func (c *AccountsClientsUsersGetCall) Do(opts ...googleapi.CallOption) (*ClientUser, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ClientUser{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Retrieves an existing client user.",
// "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}",
// "httpMethod": "GET",
// "id": "adexchangebuyer2.accounts.clients.users.get",
// "parameterOrder": [
// "accountId",
// "clientAccountId",
// "userId"
// ],
// "parameters": {
// "accountId": {
// "description": "Numerical account ID of the client's sponsor buyer. (required)",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "clientAccountId": {
// "description": "Numerical account ID of the client buyer\nthat the user to be retrieved is associated with. (required)",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "userId": {
// "description": "Numerical identifier of the user to retrieve. (required)",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}",
// "response": {
// "$ref": "ClientUser"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// method id "adexchangebuyer2.accounts.clients.users.list":
type AccountsClientsUsersListCall struct {
s *Service
accountId int64
clientAccountId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Lists all the known client users for a specified
// sponsor buyer account ID.
func (r *AccountsClientsUsersService) List(accountId int64, clientAccountId string) *AccountsClientsUsersListCall {
c := &AccountsClientsUsersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.clientAccountId = clientAccountId
return c
}
// PageSize sets the optional parameter "pageSize": Requested page size.
// The server may return fewer clients than requested.
// If unspecified, the server will pick an appropriate default.
func (c *AccountsClientsUsersListCall) PageSize(pageSize int64) *AccountsClientsUsersListCall {
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
return c
}
// PageToken sets the optional parameter "pageToken": A token
// identifying a page of results the server should return.
// Typically, this is the value
// of
// ListClientUsersResponse.nextPageToken
// returned from the previous call to the
// accounts.clients.users.list method.
func (c *AccountsClientsUsersListCall) PageToken(pageToken string) *AccountsClientsUsersListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsClientsUsersListCall) Fields(s ...googleapi.Field) *AccountsClientsUsersListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *AccountsClientsUsersListCall) IfNoneMatch(entityTag string) *AccountsClientsUsersListCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsClientsUsersListCall) Context(ctx context.Context) *AccountsClientsUsersListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsClientsUsersListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsClientsUsersListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": strconv.FormatInt(c.accountId, 10),
"clientAccountId": c.clientAccountId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.clients.users.list" call.
// Exactly one of *ListClientUsersResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *ListClientUsersResponse.ServerResponse.Header or (if a response was
// returned at all) in error.(*googleapi.Error).Header. Use
// googleapi.IsNotModified to check whether the returned error was
// because http.StatusNotModified was returned.
func (c *AccountsClientsUsersListCall) Do(opts ...googleapi.CallOption) (*ListClientUsersResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ListClientUsersResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Lists all the known client users for a specified\nsponsor buyer account ID.",
// "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users",
// "httpMethod": "GET",
// "id": "adexchangebuyer2.accounts.clients.users.list",
// "parameterOrder": [
// "accountId",
// "clientAccountId"
// ],
// "parameters": {
// "accountId": {
// "description": "Numerical account ID of the sponsor buyer of the client to list users for.\n(required)",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "clientAccountId": {
// "description": "The account ID of the client buyer to list users for. (required)\nYou must specify either a string representation of a\nnumerical account identifier or the `-` character\nto list all the client users for all the clients\nof a given sponsor buyer.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "pageSize": {
// "description": "Requested page size. The server may return fewer clients than requested.\nIf unspecified, the server will pick an appropriate default.",
// "format": "int32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "description": "A token identifying a page of results the server should return.\nTypically, this is the value of\nListClientUsersResponse.nextPageToken\nreturned from the previous call to the\naccounts.clients.users.list method.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users",
// "response": {
// "$ref": "ListClientUsersResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *AccountsClientsUsersListCall) Pages(ctx context.Context, f func(*ListClientUsersResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "adexchangebuyer2.accounts.clients.users.update":
type AccountsClientsUsersUpdateCall struct {
s *Service
accountId int64
clientAccountId int64
userId int64
clientuser *ClientUser
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Update: Updates an existing client user.
// Only the user status can be changed on update.
func (r *AccountsClientsUsersService) Update(accountId int64, clientAccountId int64, userId int64, clientuser *ClientUser) *AccountsClientsUsersUpdateCall {
c := &AccountsClientsUsersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.clientAccountId = clientAccountId
c.userId = userId
c.clientuser = clientuser
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsClientsUsersUpdateCall) Fields(s ...googleapi.Field) *AccountsClientsUsersUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsClientsUsersUpdateCall) Context(ctx context.Context) *AccountsClientsUsersUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsClientsUsersUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsClientsUsersUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.clientuser)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": strconv.FormatInt(c.accountId, 10),
"clientAccountId": strconv.FormatInt(c.clientAccountId, 10),
"userId": strconv.FormatInt(c.userId, 10),
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.clients.users.update" call.
// Exactly one of *ClientUser or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *ClientUser.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
func (c *AccountsClientsUsersUpdateCall) Do(opts ...googleapi.CallOption) (*ClientUser, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ClientUser{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Updates an existing client user.\nOnly the user status can be changed on update.",
// "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}",
// "httpMethod": "PUT",
// "id": "adexchangebuyer2.accounts.clients.users.update",
// "parameterOrder": [
// "accountId",
// "clientAccountId",
// "userId"
// ],
// "parameters": {
// "accountId": {
// "description": "Numerical account ID of the client's sponsor buyer. (required)",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "clientAccountId": {
// "description": "Numerical account ID of the client buyer that the user to be retrieved\nis associated with. (required)",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "userId": {
// "description": "Numerical identifier of the user to retrieve. (required)",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}",
// "request": {
// "$ref": "ClientUser"
// },
// "response": {
// "$ref": "ClientUser"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// method id "adexchangebuyer2.accounts.creatives.create":
type AccountsCreativesCreateCall struct {
s *Service
accountId string
creative *Creative
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Create: Creates a creative.
func (r *AccountsCreativesService) Create(accountId string, creative *Creative) *AccountsCreativesCreateCall {
c := &AccountsCreativesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.creative = creative
return c
}
// DuplicateIdMode sets the optional parameter "duplicateIdMode":
// Indicates if multiple creatives can share an ID or not. Default
// is
// NO_DUPLICATES (one ID per creative).
//
// Possible values:
// "NO_DUPLICATES"
// "FORCE_ENABLE_DUPLICATE_IDS"
func (c *AccountsCreativesCreateCall) DuplicateIdMode(duplicateIdMode string) *AccountsCreativesCreateCall {
c.urlParams_.Set("duplicateIdMode", duplicateIdMode)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsCreativesCreateCall) Fields(s ...googleapi.Field) *AccountsCreativesCreateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsCreativesCreateCall) Context(ctx context.Context) *AccountsCreativesCreateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsCreativesCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsCreativesCreateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/creatives")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": c.accountId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.creatives.create" call.
// Exactly one of *Creative or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Creative.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
func (c *AccountsCreativesCreateCall) Do(opts ...googleapi.CallOption) (*Creative, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Creative{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Creates a creative.",
// "flatPath": "v2beta1/accounts/{accountId}/creatives",
// "httpMethod": "POST",
// "id": "adexchangebuyer2.accounts.creatives.create",
// "parameterOrder": [
// "accountId"
// ],
// "parameters": {
// "accountId": {
// "description": "The account that this creative belongs to.\nCan be used to filter the response of the\ncreatives.list\nmethod.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "duplicateIdMode": {
// "description": "Indicates if multiple creatives can share an ID or not. Default is\nNO_DUPLICATES (one ID per creative).",
// "enum": [
// "NO_DUPLICATES",
// "FORCE_ENABLE_DUPLICATE_IDS"
// ],
// "location": "query",
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/creatives",
// "request": {
// "$ref": "Creative"
// },
// "response": {
// "$ref": "Creative"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// method id "adexchangebuyer2.accounts.creatives.get":
type AccountsCreativesGetCall struct {
s *Service
accountId string
creativeId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get: Gets a creative.
func (r *AccountsCreativesService) Get(accountId string, creativeId string) *AccountsCreativesGetCall {
c := &AccountsCreativesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.creativeId = creativeId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsCreativesGetCall) Fields(s ...googleapi.Field) *AccountsCreativesGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *AccountsCreativesGetCall) IfNoneMatch(entityTag string) *AccountsCreativesGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsCreativesGetCall) Context(ctx context.Context) *AccountsCreativesGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsCreativesGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsCreativesGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/creatives/{creativeId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": c.accountId,
"creativeId": c.creativeId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.creatives.get" call.
// Exactly one of *Creative or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Creative.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
func (c *AccountsCreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Creative{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Gets a creative.",
// "flatPath": "v2beta1/accounts/{accountId}/creatives/{creativeId}",
// "httpMethod": "GET",
// "id": "adexchangebuyer2.accounts.creatives.get",
// "parameterOrder": [
// "accountId",
// "creativeId"
// ],
// "parameters": {
// "accountId": {
// "description": "The account the creative belongs to.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "creativeId": {
// "description": "The ID of the creative to retrieve.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/creatives/{creativeId}",
// "response": {
// "$ref": "Creative"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// method id "adexchangebuyer2.accounts.creatives.list":
type AccountsCreativesListCall struct {
s *Service
accountId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Lists creatives.
func (r *AccountsCreativesService) List(accountId string) *AccountsCreativesListCall {
c := &AccountsCreativesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
return c
}
// PageSize sets the optional parameter "pageSize": Requested page size.
// The server may return fewer creatives than requested
// (due to timeout constraint) even if more are available via another
// call.
// If unspecified, server will pick an appropriate default.
// Acceptable values are 1 to 1000, inclusive.
func (c *AccountsCreativesListCall) PageSize(pageSize int64) *AccountsCreativesListCall {
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
return c
}
// PageToken sets the optional parameter "pageToken": A token
// identifying a page of results the server should return.
// Typically, this is the value
// of
// ListCreativesResponse.next_page_token
// returned from the previous call to 'ListCreatives' method.
func (c *AccountsCreativesListCall) PageToken(pageToken string) *AccountsCreativesListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Query sets the optional parameter "query": An optional query string
// to filter creatives. If no filter is specified,
// all active creatives will be returned.
// Supported queries
// are:
// <ul>
// <li>accountId=<i>account_id_string</i>
// <li>creativeId=<i>cre
// ative_id_string</i>
// <li>dealsStatus: {approved, conditionally_approved, disapproved,
// not_checked}
// <li>openAuctionStatus: {approved, conditionally_approved,
// disapproved,
// not_checked}
// <li>attribute: {a numeric attribute from the list of
// attributes}
// <li>disapprovalReason: {a reason from
// DisapprovalReason
// </ul>
// Example: 'accountId=12345 AND (dealsStatus:disapproved AND
// disapprovalReason:unacceptable_content) OR attribute:47'
func (c *AccountsCreativesListCall) Query(query string) *AccountsCreativesListCall {
c.urlParams_.Set("query", query)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsCreativesListCall) Fields(s ...googleapi.Field) *AccountsCreativesListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *AccountsCreativesListCall) IfNoneMatch(entityTag string) *AccountsCreativesListCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsCreativesListCall) Context(ctx context.Context) *AccountsCreativesListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsCreativesListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsCreativesListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/creatives")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": c.accountId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.creatives.list" call.
// Exactly one of *ListCreativesResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *ListCreativesResponse.ServerResponse.Header or (if a response was
// returned at all) in error.(*googleapi.Error).Header. Use
// googleapi.IsNotModified to check whether the returned error was
// because http.StatusNotModified was returned.
func (c *AccountsCreativesListCall) Do(opts ...googleapi.CallOption) (*ListCreativesResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ListCreativesResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Lists creatives.",
// "flatPath": "v2beta1/accounts/{accountId}/creatives",
// "httpMethod": "GET",
// "id": "adexchangebuyer2.accounts.creatives.list",
// "parameterOrder": [
// "accountId"
// ],
// "parameters": {
// "accountId": {
// "description": "The account to list the creatives from.\nSpecify \"-\" to list all creatives the current user has access to.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "pageSize": {
// "description": "Requested page size. The server may return fewer creatives than requested\n(due to timeout constraint) even if more are available via another call.\nIf unspecified, server will pick an appropriate default.\nAcceptable values are 1 to 1000, inclusive.",
// "format": "int32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "description": "A token identifying a page of results the server should return.\nTypically, this is the value of\nListCreativesResponse.next_page_token\nreturned from the previous call to 'ListCreatives' method.",
// "location": "query",
// "type": "string"
// },
// "query": {
// "description": "An optional query string to filter creatives. If no filter is specified,\nall active creatives will be returned.\nSupported queries are:\n\u003cul\u003e\n\u003cli\u003eaccountId=\u003ci\u003eaccount_id_string\u003c/i\u003e\n\u003cli\u003ecreativeId=\u003ci\u003ecreative_id_string\u003c/i\u003e\n\u003cli\u003edealsStatus: {approved, conditionally_approved, disapproved,\n not_checked}\n\u003cli\u003eopenAuctionStatus: {approved, conditionally_approved, disapproved,\n not_checked}\n\u003cli\u003eattribute: {a numeric attribute from the list of attributes}\n\u003cli\u003edisapprovalReason: {a reason from DisapprovalReason\n\u003c/ul\u003e\nExample: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:unacceptable_content) OR attribute:47'",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/creatives",
// "response": {
// "$ref": "ListCreativesResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *AccountsCreativesListCall) Pages(ctx context.Context, f func(*ListCreativesResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "adexchangebuyer2.accounts.creatives.stopWatching":
type AccountsCreativesStopWatchingCall struct {
s *Service
accountId string
creativeId string
stopwatchingcreativerequest *StopWatchingCreativeRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// StopWatching: Stops watching a creative. Will stop push notifications
// being sent to the
// topics when the creative changes status.
func (r *AccountsCreativesService) StopWatching(accountId string, creativeId string, stopwatchingcreativerequest *StopWatchingCreativeRequest) *AccountsCreativesStopWatchingCall {
c := &AccountsCreativesStopWatchingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.creativeId = creativeId
c.stopwatchingcreativerequest = stopwatchingcreativerequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsCreativesStopWatchingCall) Fields(s ...googleapi.Field) *AccountsCreativesStopWatchingCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsCreativesStopWatchingCall) Context(ctx context.Context) *AccountsCreativesStopWatchingCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsCreativesStopWatchingCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsCreativesStopWatchingCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.stopwatchingcreativerequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": c.accountId,
"creativeId": c.creativeId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.creatives.stopWatching" call.
// Exactly one of *Empty or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Empty.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *AccountsCreativesStopWatchingCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Empty{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Stops watching a creative. Will stop push notifications being sent to the\ntopics when the creative changes status.",
// "flatPath": "v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching",
// "httpMethod": "POST",
// "id": "adexchangebuyer2.accounts.creatives.stopWatching",
// "parameterOrder": [
// "accountId",
// "creativeId"
// ],
// "parameters": {
// "accountId": {
// "description": "The account of the creative to stop notifications for.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "creativeId": {
// "description": "The creative ID of the creative to stop notifications for.\nSpecify \"-\" to specify stopping account level notifications.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching",
// "request": {
// "$ref": "StopWatchingCreativeRequest"
// },
// "response": {
// "$ref": "Empty"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// method id "adexchangebuyer2.accounts.creatives.update":
type AccountsCreativesUpdateCall struct {
s *Service
accountId string
creativeId string
creative *Creative
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Update: Updates a creative.
func (r *AccountsCreativesService) Update(accountId string, creativeId string, creative *Creative) *AccountsCreativesUpdateCall {
c := &AccountsCreativesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.creativeId = creativeId
c.creative = creative
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsCreativesUpdateCall) Fields(s ...googleapi.Field) *AccountsCreativesUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsCreativesUpdateCall) Context(ctx context.Context) *AccountsCreativesUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsCreativesUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsCreativesUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/creatives/{creativeId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": c.accountId,
"creativeId": c.creativeId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.creatives.update" call.
// Exactly one of *Creative or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Creative.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
func (c *AccountsCreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Creative{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Updates a creative.",
// "flatPath": "v2beta1/accounts/{accountId}/creatives/{creativeId}",
// "httpMethod": "PUT",
// "id": "adexchangebuyer2.accounts.creatives.update",
// "parameterOrder": [
// "accountId",
// "creativeId"
// ],
// "parameters": {
// "accountId": {
// "description": "The account that this creative belongs to.\nCan be used to filter the response of the\ncreatives.list\nmethod.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "creativeId": {
// "description": "The buyer-defined creative ID of this creative.\nCan be used to filter the response of the\ncreatives.list\nmethod.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/creatives/{creativeId}",
// "request": {
// "$ref": "Creative"
// },
// "response": {
// "$ref": "Creative"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// method id "adexchangebuyer2.accounts.creatives.watch":
type AccountsCreativesWatchCall struct {
s *Service
accountId string
creativeId string
watchcreativerequest *WatchCreativeRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Watch: Watches a creative. Will result in push notifications being
// sent to the
// topic when the creative changes status.
func (r *AccountsCreativesService) Watch(accountId string, creativeId string, watchcreativerequest *WatchCreativeRequest) *AccountsCreativesWatchCall {
c := &AccountsCreativesWatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.creativeId = creativeId
c.watchcreativerequest = watchcreativerequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsCreativesWatchCall) Fields(s ...googleapi.Field) *AccountsCreativesWatchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsCreativesWatchCall) Context(ctx context.Context) *AccountsCreativesWatchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsCreativesWatchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsCreativesWatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.watchcreativerequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/creatives/{creativeId}:watch")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": c.accountId,
"creativeId": c.creativeId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.creatives.watch" call.
// Exactly one of *Empty or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Empty.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *AccountsCreativesWatchCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Empty{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Watches a creative. Will result in push notifications being sent to the\ntopic when the creative changes status.",
// "flatPath": "v2beta1/accounts/{accountId}/creatives/{creativeId}:watch",
// "httpMethod": "POST",
// "id": "adexchangebuyer2.accounts.creatives.watch",
// "parameterOrder": [
// "accountId",
// "creativeId"
// ],
// "parameters": {
// "accountId": {
// "description": "The account of the creative to watch.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "creativeId": {
// "description": "The creative ID to watch for status changes.\nSpecify \"-\" to watch all creatives under the above account.\nIf both creative-level and account-level notifications are\nsent, only a single notification will be sent to the\ncreative-level notification topic.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/creatives/{creativeId}:watch",
// "request": {
// "$ref": "WatchCreativeRequest"
// },
// "response": {
// "$ref": "Empty"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// method id "adexchangebuyer2.accounts.creatives.dealAssociations.add":
type AccountsCreativesDealAssociationsAddCall struct {
s *Service
accountId string
creativeId string
adddealassociationrequest *AddDealAssociationRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Add: Associate an existing deal with a creative.
func (r *AccountsCreativesDealAssociationsService) Add(accountId string, creativeId string, adddealassociationrequest *AddDealAssociationRequest) *AccountsCreativesDealAssociationsAddCall {
c := &AccountsCreativesDealAssociationsAddCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.creativeId = creativeId
c.adddealassociationrequest = adddealassociationrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsCreativesDealAssociationsAddCall) Fields(s ...googleapi.Field) *AccountsCreativesDealAssociationsAddCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsCreativesDealAssociationsAddCall) Context(ctx context.Context) *AccountsCreativesDealAssociationsAddCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsCreativesDealAssociationsAddCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsCreativesDealAssociationsAddCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.adddealassociationrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": c.accountId,
"creativeId": c.creativeId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.creatives.dealAssociations.add" call.
// Exactly one of *Empty or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Empty.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *AccountsCreativesDealAssociationsAddCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Empty{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Associate an existing deal with a creative.",
// "flatPath": "v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add",
// "httpMethod": "POST",
// "id": "adexchangebuyer2.accounts.creatives.dealAssociations.add",
// "parameterOrder": [
// "accountId",
// "creativeId"
// ],
// "parameters": {
// "accountId": {
// "description": "The account the creative belongs to.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "creativeId": {
// "description": "The ID of the creative associated with the deal.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add",
// "request": {
// "$ref": "AddDealAssociationRequest"
// },
// "response": {
// "$ref": "Empty"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// method id "adexchangebuyer2.accounts.creatives.dealAssociations.list":
type AccountsCreativesDealAssociationsListCall struct {
s *Service
accountId string
creativeId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: List all creative-deal associations.
func (r *AccountsCreativesDealAssociationsService) List(accountId string, creativeId string) *AccountsCreativesDealAssociationsListCall {
c := &AccountsCreativesDealAssociationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.creativeId = creativeId
return c
}
// PageSize sets the optional parameter "pageSize": Requested page size.
// Server may return fewer associations than requested.
// If unspecified, server will pick an appropriate default.
func (c *AccountsCreativesDealAssociationsListCall) PageSize(pageSize int64) *AccountsCreativesDealAssociationsListCall {
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
return c
}
// PageToken sets the optional parameter "pageToken": A token
// identifying a page of results the server should return.
// Typically, this is the value
// of
// ListDealAssociationsResponse.next_page_token
// returned from the previous call to 'ListDealAssociations' method.
func (c *AccountsCreativesDealAssociationsListCall) PageToken(pageToken string) *AccountsCreativesDealAssociationsListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Query sets the optional parameter "query": An optional query string
// to filter deal associations. If no filter is
// specified, all associations will be returned.
// Supported queries
// are:
// <ul>
// <li>accountId=<i>account_id_string</i>
// <li>creativeId=<i>cre
// ative_id_string</i>
// <li>dealsId=<i>deals_id_string</i>
// <li>dealsStatus
// :{approved, conditionally_approved, disapproved,
// not_checked}
// <li>openAuctionStatus:{approved, conditionally_approved,
// disapproved,
// not_checked}
// </ul>
// Example: 'dealsId=12345 AND dealsStatus:disapproved'
func (c *AccountsCreativesDealAssociationsListCall) Query(query string) *AccountsCreativesDealAssociationsListCall {
c.urlParams_.Set("query", query)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsCreativesDealAssociationsListCall) Fields(s ...googleapi.Field) *AccountsCreativesDealAssociationsListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *AccountsCreativesDealAssociationsListCall) IfNoneMatch(entityTag string) *AccountsCreativesDealAssociationsListCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsCreativesDealAssociationsListCall) Context(ctx context.Context) *AccountsCreativesDealAssociationsListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsCreativesDealAssociationsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsCreativesDealAssociationsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": c.accountId,
"creativeId": c.creativeId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.creatives.dealAssociations.list" call.
// Exactly one of *ListDealAssociationsResponse or error will be
// non-nil. Any non-2xx status code is an error. Response headers are in
// either *ListDealAssociationsResponse.ServerResponse.Header or (if a
// response was returned at all) in error.(*googleapi.Error).Header. Use
// googleapi.IsNotModified to check whether the returned error was
// because http.StatusNotModified was returned.
func (c *AccountsCreativesDealAssociationsListCall) Do(opts ...googleapi.CallOption) (*ListDealAssociationsResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ListDealAssociationsResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "List all creative-deal associations.",
// "flatPath": "v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations",
// "httpMethod": "GET",
// "id": "adexchangebuyer2.accounts.creatives.dealAssociations.list",
// "parameterOrder": [
// "accountId",
// "creativeId"
// ],
// "parameters": {
// "accountId": {
// "description": "The account to list the associations from.\nSpecify \"-\" to list all creatives the current user has access to.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "creativeId": {
// "description": "The creative ID to list the associations from.\nSpecify \"-\" to list all creatives under the above account.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "pageSize": {
// "description": "Requested page size. Server may return fewer associations than requested.\nIf unspecified, server will pick an appropriate default.",
// "format": "int32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "description": "A token identifying a page of results the server should return.\nTypically, this is the value of\nListDealAssociationsResponse.next_page_token\nreturned from the previous call to 'ListDealAssociations' method.",
// "location": "query",
// "type": "string"
// },
// "query": {
// "description": "An optional query string to filter deal associations. If no filter is\nspecified, all associations will be returned.\nSupported queries are:\n\u003cul\u003e\n\u003cli\u003eaccountId=\u003ci\u003eaccount_id_string\u003c/i\u003e\n\u003cli\u003ecreativeId=\u003ci\u003ecreative_id_string\u003c/i\u003e\n\u003cli\u003edealsId=\u003ci\u003edeals_id_string\u003c/i\u003e\n\u003cli\u003edealsStatus:{approved, conditionally_approved, disapproved,\n not_checked}\n\u003cli\u003eopenAuctionStatus:{approved, conditionally_approved, disapproved,\n not_checked}\n\u003c/ul\u003e\nExample: 'dealsId=12345 AND dealsStatus:disapproved'",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations",
// "response": {
// "$ref": "ListDealAssociationsResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *AccountsCreativesDealAssociationsListCall) Pages(ctx context.Context, f func(*ListDealAssociationsResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "adexchangebuyer2.accounts.creatives.dealAssociations.remove":
type AccountsCreativesDealAssociationsRemoveCall struct {
s *Service
accountId string
creativeId string
removedealassociationrequest *RemoveDealAssociationRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Remove: Remove the association between a deal and a creative.
func (r *AccountsCreativesDealAssociationsService) Remove(accountId string, creativeId string, removedealassociationrequest *RemoveDealAssociationRequest) *AccountsCreativesDealAssociationsRemoveCall {
c := &AccountsCreativesDealAssociationsRemoveCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.creativeId = creativeId
c.removedealassociationrequest = removedealassociationrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsCreativesDealAssociationsRemoveCall) Fields(s ...googleapi.Field) *AccountsCreativesDealAssociationsRemoveCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsCreativesDealAssociationsRemoveCall) Context(ctx context.Context) *AccountsCreativesDealAssociationsRemoveCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsCreativesDealAssociationsRemoveCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsCreativesDealAssociationsRemoveCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.removedealassociationrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": c.accountId,
"creativeId": c.creativeId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.creatives.dealAssociations.remove" call.
// Exactly one of *Empty or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Empty.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *AccountsCreativesDealAssociationsRemoveCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Empty{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Remove the association between a deal and a creative.",
// "flatPath": "v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove",
// "httpMethod": "POST",
// "id": "adexchangebuyer2.accounts.creatives.dealAssociations.remove",
// "parameterOrder": [
// "accountId",
// "creativeId"
// ],
// "parameters": {
// "accountId": {
// "description": "The account the creative belongs to.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "creativeId": {
// "description": "The ID of the creative associated with the deal.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove",
// "request": {
// "$ref": "RemoveDealAssociationRequest"
// },
// "response": {
// "$ref": "Empty"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
|
/**
*
* @return boolean, true if the Process is Ready.
*/
public boolean isReadyToProcess() {
if (processRunner == null || !processRunner.areArgumentsMatchingRequiredParameters(args) ||
!areAllMacrosExpandable()) {
return false;
}
return true;
}
|
Sensorless Viscosity Measurement in a Magnetically-Levitated Rotary Blood Pump.
Controlling the flow rate in an implantable rotary blood pump based on the physiological demand made by the body is important. Even though various methods to estimate the flow rate without using a flow meter have been proposed, no adequate method for measuring the blood viscosity, which is necessary for an accurate estimate of the flow rate, without using additional sensors or mechanisms in a noninvasive way, has yet been realized. We have developed a sensorless method for measuring viscosity in magnetically levitated rotary blood pumps, which requires no additional sensors or mechanisms. By applying vibrational excitation to the impeller using a magnetic bearing, we measured the viscosity of the working fluid by measuring the phase difference between the current in the magnetic bearing and the displacement of the impeller. The measured viscosity showed a high correlation (R(2) > 0.992) with respect to a reference viscosity. The mean absolute deviation of the measured viscosity was 0.12 mPa·s for several working fluids with viscosities ranging from 1.18 to 5.12 mPa·s. The proposed sensorless measurement method has the possibility of being utilized for estimating flow rate.
|
/**
* Test for <code>KeyStoreSpi()</code> constructor
* and abstract engine methods.
* Assertion: creates new KeyStoreSpi object.
*/
public void testKeyStoteSpi02() throws NoSuchAlgorithmException,
UnrecoverableKeyException, CertificateException {
KeyStoreSpi ksSpi = new MyKeyStoreSpi();
assertNull("engineGetKey(..) must return null", ksSpi.engineGetKey("",
new char[0]));
assertNull("engineGetCertificateChain(..) must return null", ksSpi
.engineGetCertificateChain(""));
assertNull("engineGetCertificate(..) must return null", ksSpi
.engineGetCertificate(""));
assertEquals("engineGetCreationDate(..) must return Date(0)",
new Date(0), ksSpi.engineGetCreationDate(""));
try {
ksSpi.engineSetKeyEntry("", null, new char[0], new Certificate[0]);
fail("KeyStoreException must be thrown from engineSetKeyEntry(..)");
} catch (KeyStoreException e) {
}
try {
ksSpi.engineSetKeyEntry("", new byte[0], new Certificate[0]);
fail("KeyStoreException must be thrown from engineSetKeyEntry(..)");
} catch (KeyStoreException e) {
}
try {
ksSpi.engineSetCertificateEntry("", null);
fail("KeyStoreException must be thrown from engineSetCertificateEntry(..)");
} catch (KeyStoreException e) {
}
try {
ksSpi.engineDeleteEntry("");
fail("KeyStoreException must be thrown from engineDeleteEntry(..)");
} catch (KeyStoreException e) {
}
assertNull("engineAliases() must return null", ksSpi.engineAliases());
assertFalse("engineContainsAlias(..) must return false", ksSpi
.engineContainsAlias(""));
assertEquals("engineSize() must return 0", 0, ksSpi.engineSize());
try {
ksSpi.engineStore(null, null);
fail("IOException must be thrown");
} catch (IOException e) {
}
}
|
l=[1,2,3,4,5,6,7,8,9,10,11,10,10,10]
l=l*4
a=int(input())
l.remove(10)
if(a==11):
l.remove(11)
else:
l.remove(1)
e=0
for i in range(0,len(l)):
if(10+l[i]==a):
e=e+1
print(e)
|
def read(filespec, maxevents=None, quiet=False, mmap=True, swapch='auto', return_trigger=True, firstevent=None):
path, last = os.path.split(filespec)
comp = last.split(':')
if len(comp) == 1 or comp[1] == '':
name = comp[0]
ch = None
else:
name = ':'.join(comp[:-1])
ch = comp[-1]
if name.endswith('.wav'):
data = readwav.readwav(filespec, quiet=quiet, mmap=True, swapch=swapch)
if firstevent is not None:
data = data[firstevent:]
if maxevents is not None:
data = data[:maxevents]
array = data[:, 0]
if not mmap:
array = np.copy(array)
trigger = None
if return_trigger and data.shape[1] == 2:
trigger = readwav.firstbelowthreshold(data[:, 1], 600)
freq = 1e9
ndigit = 2 ** 10
elif name.endswith('.root'):
if ch is None:
raise ValueError(f'missing channel for file {name}')
if not ch.startswith('adc'):
ch = int(ch)
if path != '':
path += '/'
array, trigger, freq = readroot.readroot(path + name, ch, maxevents=maxevents, quiet=quiet, firstevent=firstevent)
if return_trigger:
trigger = np.full(array.shape[0], trigger)
ndigit = 2 ** 14
else:
raise ValueError(f'unrecognized extension for file {name}')
if return_trigger:
return array, trigger, freq, ndigit
else:
return array, freq, ndigit
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.