public class ObjectWriteConditions extends Object
Modifier and Type | Field and Description |
---|---|
static ObjectWriteConditions |
NONE
No conditions for completing the write.
|
Constructor and Description |
---|
ObjectWriteConditions() |
ObjectWriteConditions(com.google.common.base.Optional<Long> contentGenerationMatch,
com.google.common.base.Optional<Long> metaGenerationMatch) |
Modifier and Type | Method and Description |
---|---|
void |
apply(com.google.api.services.storage.Storage.Objects.Insert objectToInsert)
Apply the conditions represented by this object to an Insert operation.
|
long |
getContentGenerationMatch() |
long |
getMetaGenerationMatch() |
boolean |
hasContentGenerationMatch() |
boolean |
hasMetaGenerationMatch() |
public static final ObjectWriteConditions NONE
public boolean hasContentGenerationMatch()
public boolean hasMetaGenerationMatch()
public long getContentGenerationMatch()
public long getMetaGenerationMatch()
public void apply(com.google.api.services.storage.Storage.Objects.Insert objectToInsert)
Copyright © 2015. All rights reserved.