@@ -13933,332 +13933,6 @@ public Update set(String parameterName, Object value) {
1393313933 return (Update) super.set(parameterName, value);
1393413934 }
1393513935 }
13936- /**
13937- * Watch for changes on all objects in a bucket.
13938- *
13939- * Create a request for the method "objects.watchAll".
13940- *
13941- * This request holds the parameters needed by the storage server. After setting any optional
13942- * parameters, call the {@link WatchAll#execute()} method to invoke the remote operation.
13943- *
13944- * @param bucket Name of the bucket in which to look for objects.
13945- * @param content the {@link com.google.api.services.storage.model.Channel}
13946- * @return the request
13947- */
13948- public WatchAll watchAll(java.lang.String bucket, com.google.api.services.storage.model.Channel content) throws java.io.IOException {
13949- WatchAll result = new WatchAll(bucket, content);
13950- initialize(result);
13951- return result;
13952- }
13953-
13954- public class WatchAll extends StorageRequest<com.google.api.services.storage.model.Channel> {
13955-
13956- private static final String REST_PATH = "b/{bucket}/o/watch";
13957-
13958- /**
13959- * Watch for changes on all objects in a bucket.
13960- *
13961- * Create a request for the method "objects.watchAll".
13962- *
13963- * This request holds the parameters needed by the the storage server. After setting any optional
13964- * parameters, call the {@link WatchAll#execute()} method to invoke the remote operation. <p>
13965- * {@link
13966- * WatchAll#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
13967- * must be called to initialize this instance immediately after invoking the constructor. </p>
13968- *
13969- * @param bucket Name of the bucket in which to look for objects.
13970- * @param content the {@link com.google.api.services.storage.model.Channel}
13971- * @since 1.13
13972- */
13973- protected WatchAll(java.lang.String bucket, com.google.api.services.storage.model.Channel content) {
13974- super(Storage.this, "POST", REST_PATH, content, com.google.api.services.storage.model.Channel.class);
13975- this.bucket = com.google.api.client.util.Preconditions.checkNotNull(bucket, "Required parameter bucket must be specified.");
13976- }
13977-
13978- @Override
13979- public WatchAll setAlt(java.lang.String alt) {
13980- return (WatchAll) super.setAlt(alt);
13981- }
13982-
13983- @Override
13984- public WatchAll setFields(java.lang.String fields) {
13985- return (WatchAll) super.setFields(fields);
13986- }
13987-
13988- @Override
13989- public WatchAll setKey(java.lang.String key) {
13990- return (WatchAll) super.setKey(key);
13991- }
13992-
13993- @Override
13994- public WatchAll setOauthToken(java.lang.String oauthToken) {
13995- return (WatchAll) super.setOauthToken(oauthToken);
13996- }
13997-
13998- @Override
13999- public WatchAll setPrettyPrint(java.lang.Boolean prettyPrint) {
14000- return (WatchAll) super.setPrettyPrint(prettyPrint);
14001- }
14002-
14003- @Override
14004- public WatchAll setQuotaUser(java.lang.String quotaUser) {
14005- return (WatchAll) super.setQuotaUser(quotaUser);
14006- }
14007-
14008- @Override
14009- public WatchAll setUploadType(java.lang.String uploadType) {
14010- return (WatchAll) super.setUploadType(uploadType);
14011- }
14012-
14013- @Override
14014- public WatchAll setUserIp(java.lang.String userIp) {
14015- return (WatchAll) super.setUserIp(userIp);
14016- }
14017-
14018- /** Name of the bucket in which to look for objects. */
14019- @com.google.api.client.util.Key
14020- private java.lang.String bucket;
14021-
14022- /** Name of the bucket in which to look for objects.
14023- */
14024- public java.lang.String getBucket() {
14025- return bucket;
14026- }
14027-
14028- /** Name of the bucket in which to look for objects. */
14029- public WatchAll setBucket(java.lang.String bucket) {
14030- this.bucket = bucket;
14031- return this;
14032- }
14033-
14034- /**
14035- * Returns results in a directory-like mode. items will contain only objects whose names,
14036- * aside from the prefix, do not contain delimiter. Objects whose names, aside from the
14037- * prefix, contain delimiter will have their name, truncated after the delimiter, returned in
14038- * prefixes. Duplicate prefixes are omitted.
14039- */
14040- @com.google.api.client.util.Key
14041- private java.lang.String delimiter;
14042-
14043- /** Returns results in a directory-like mode. items will contain only objects whose names, aside from
14044- the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter
14045- will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are
14046- omitted.
14047- */
14048- public java.lang.String getDelimiter() {
14049- return delimiter;
14050- }
14051-
14052- /**
14053- * Returns results in a directory-like mode. items will contain only objects whose names,
14054- * aside from the prefix, do not contain delimiter. Objects whose names, aside from the
14055- * prefix, contain delimiter will have their name, truncated after the delimiter, returned in
14056- * prefixes. Duplicate prefixes are omitted.
14057- */
14058- public WatchAll setDelimiter(java.lang.String delimiter) {
14059- this.delimiter = delimiter;
14060- return this;
14061- }
14062-
14063- /**
14064- * Filter results to objects whose names are lexicographically before endOffset. If
14065- * startOffset is also set, the objects listed will have names between startOffset (inclusive)
14066- * and endOffset (exclusive).
14067- */
14068- @com.google.api.client.util.Key
14069- private java.lang.String endOffset;
14070-
14071- /** Filter results to objects whose names are lexicographically before endOffset. If startOffset is
14072- also set, the objects listed will have names between startOffset (inclusive) and endOffset
14073- (exclusive).
14074- */
14075- public java.lang.String getEndOffset() {
14076- return endOffset;
14077- }
14078-
14079- /**
14080- * Filter results to objects whose names are lexicographically before endOffset. If
14081- * startOffset is also set, the objects listed will have names between startOffset (inclusive)
14082- * and endOffset (exclusive).
14083- */
14084- public WatchAll setEndOffset(java.lang.String endOffset) {
14085- this.endOffset = endOffset;
14086- return this;
14087- }
14088-
14089- /**
14090- * If true, objects that end in exactly one instance of delimiter will have their metadata
14091- * included in items in addition to prefixes.
14092- */
14093- @com.google.api.client.util.Key
14094- private java.lang.Boolean includeTrailingDelimiter;
14095-
14096- /** If true, objects that end in exactly one instance of delimiter will have their metadata included in
14097- items in addition to prefixes.
14098- */
14099- public java.lang.Boolean getIncludeTrailingDelimiter() {
14100- return includeTrailingDelimiter;
14101- }
14102-
14103- /**
14104- * If true, objects that end in exactly one instance of delimiter will have their metadata
14105- * included in items in addition to prefixes.
14106- */
14107- public WatchAll setIncludeTrailingDelimiter(java.lang.Boolean includeTrailingDelimiter) {
14108- this.includeTrailingDelimiter = includeTrailingDelimiter;
14109- return this;
14110- }
14111-
14112- /**
14113- * Maximum number of items plus prefixes to return in a single page of responses. As duplicate
14114- * prefixes are omitted, fewer total results may be returned than requested. The service will
14115- * use this parameter or 1,000 items, whichever is smaller.
14116- */
14117- @com.google.api.client.util.Key
14118- private java.lang.Long maxResults;
14119-
14120- /** Maximum number of items plus prefixes to return in a single page of responses. As duplicate
14121- prefixes are omitted, fewer total results may be returned than requested. The service will use this
14122- parameter or 1,000 items, whichever is smaller. [default: 1000] [minimum: 0]
14123- */
14124- public java.lang.Long getMaxResults() {
14125- return maxResults;
14126- }
14127-
14128- /**
14129- * Maximum number of items plus prefixes to return in a single page of responses. As duplicate
14130- * prefixes are omitted, fewer total results may be returned than requested. The service will
14131- * use this parameter or 1,000 items, whichever is smaller.
14132- */
14133- public WatchAll setMaxResults(java.lang.Long maxResults) {
14134- this.maxResults = maxResults;
14135- return this;
14136- }
14137-
14138- /**
14139- * A previously-returned page token representing part of the larger set of results to view.
14140- */
14141- @com.google.api.client.util.Key
14142- private java.lang.String pageToken;
14143-
14144- /** A previously-returned page token representing part of the larger set of results to view.
14145- */
14146- public java.lang.String getPageToken() {
14147- return pageToken;
14148- }
14149-
14150- /**
14151- * A previously-returned page token representing part of the larger set of results to view.
14152- */
14153- public WatchAll setPageToken(java.lang.String pageToken) {
14154- this.pageToken = pageToken;
14155- return this;
14156- }
14157-
14158- /** Filter results to objects whose names begin with this prefix. */
14159- @com.google.api.client.util.Key
14160- private java.lang.String prefix;
14161-
14162- /** Filter results to objects whose names begin with this prefix.
14163- */
14164- public java.lang.String getPrefix() {
14165- return prefix;
14166- }
14167-
14168- /** Filter results to objects whose names begin with this prefix. */
14169- public WatchAll setPrefix(java.lang.String prefix) {
14170- this.prefix = prefix;
14171- return this;
14172- }
14173-
14174- /** Set of properties to return. Defaults to noAcl. */
14175- @com.google.api.client.util.Key
14176- private java.lang.String projection;
14177-
14178- /** Set of properties to return. Defaults to noAcl.
14179- */
14180- public java.lang.String getProjection() {
14181- return projection;
14182- }
14183-
14184- /** Set of properties to return. Defaults to noAcl. */
14185- public WatchAll setProjection(java.lang.String projection) {
14186- this.projection = projection;
14187- return this;
14188- }
14189-
14190- /**
14191- * Filter results to objects whose names are lexicographically equal to or after startOffset.
14192- * If endOffset is also set, the objects listed will have names between startOffset
14193- * (inclusive) and endOffset (exclusive).
14194- */
14195- @com.google.api.client.util.Key
14196- private java.lang.String startOffset;
14197-
14198- /** Filter results to objects whose names are lexicographically equal to or after startOffset. If
14199- endOffset is also set, the objects listed will have names between startOffset (inclusive) and
14200- endOffset (exclusive).
14201- */
14202- public java.lang.String getStartOffset() {
14203- return startOffset;
14204- }
14205-
14206- /**
14207- * Filter results to objects whose names are lexicographically equal to or after startOffset.
14208- * If endOffset is also set, the objects listed will have names between startOffset
14209- * (inclusive) and endOffset (exclusive).
14210- */
14211- public WatchAll setStartOffset(java.lang.String startOffset) {
14212- this.startOffset = startOffset;
14213- return this;
14214- }
14215-
14216- /** The project to be billed for this request. Required for Requester Pays buckets. */
14217- @com.google.api.client.util.Key
14218- private java.lang.String userProject;
14219-
14220- /** The project to be billed for this request. Required for Requester Pays buckets.
14221- */
14222- public java.lang.String getUserProject() {
14223- return userProject;
14224- }
14225-
14226- /** The project to be billed for this request. Required for Requester Pays buckets. */
14227- public WatchAll setUserProject(java.lang.String userProject) {
14228- this.userProject = userProject;
14229- return this;
14230- }
14231-
14232- /**
14233- * If true, lists all versions of an object as distinct results. The default is false. For
14234- * more information, see [Object Versioning](https://cloud.google.com/storage/docs/object-
14235- * versioning).
14236- */
14237- @com.google.api.client.util.Key
14238- private java.lang.Boolean versions;
14239-
14240- /** If true, lists all versions of an object as distinct results. The default is false. For more
14241- information, see [Object Versioning](https://cloud.google.com/storage/docs/object-versioning).
14242- */
14243- public java.lang.Boolean getVersions() {
14244- return versions;
14245- }
14246-
14247- /**
14248- * If true, lists all versions of an object as distinct results. The default is false. For
14249- * more information, see [Object Versioning](https://cloud.google.com/storage/docs/object-
14250- * versioning).
14251- */
14252- public WatchAll setVersions(java.lang.Boolean versions) {
14253- this.versions = versions;
14254- return this;
14255- }
14256-
14257- @Override
14258- public WatchAll set(String parameterName, Object value) {
14259- return (WatchAll) super.set(parameterName, value);
14260- }
14261- }
1426213936
1426313937 }
1426413938
0 commit comments