Package com.google.storage.v2
Interface AppendObjectSpecOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AppendObjectSpec,AppendObjectSpec.Builder
public interface AppendObjectSpecOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionRequired.com.google.protobuf.ByteStringRequired.longRequired.longMakes the operation conditional on whether the object's current metageneration matches the given value.longMakes the operation conditional on whether the object's current metageneration does not match the given value.Required.com.google.protobuf.ByteStringRequired.An optional routing token that influences request routing for the stream.com.google.protobuf.ByteStringAn optional routing token that influences request routing for the stream.An optional write handle returned from a previous BidiWriteObjectResponse message or a BidiWriteObjectRedirectedError error.An optional write handle returned from a previous BidiWriteObjectResponse message or a BidiWriteObjectRedirectedError error.booleanMakes the operation conditional on whether the object's current metageneration matches the given value.booleanMakes the operation conditional on whether the object's current metageneration does not match the given value.booleanAn optional routing token that influences request routing for the stream.booleanAn optional write handle returned from a previous BidiWriteObjectResponse message or a BidiWriteObjectRedirectedError error.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getBucket
String getBucket()Required. The name of the bucket containing the object to write.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The bucket.
-
getBucketBytes
com.google.protobuf.ByteString getBucketBytes()Required. The name of the bucket containing the object to write.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for bucket.
-
getObject
String getObject()Required. The name of the object to open for writing.
string object = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The object.
-
getObjectBytes
com.google.protobuf.ByteString getObjectBytes()Required. The name of the object to open for writing.
string object = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for object.
-
getGeneration
long getGeneration()Required. The generation number of the object to open for writing.
int64 generation = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The generation.
-
hasIfMetagenerationMatch
boolean hasIfMetagenerationMatch()Makes the operation conditional on whether the object's current metageneration matches the given value. Note that metageneration preconditions are only checked if `write_handle` is empty.
optional int64 if_metageneration_match = 4;- Returns:
- Whether the ifMetagenerationMatch field is set.
-
getIfMetagenerationMatch
long getIfMetagenerationMatch()Makes the operation conditional on whether the object's current metageneration matches the given value. Note that metageneration preconditions are only checked if `write_handle` is empty.
optional int64 if_metageneration_match = 4;- Returns:
- The ifMetagenerationMatch.
-
hasIfMetagenerationNotMatch
boolean hasIfMetagenerationNotMatch()Makes the operation conditional on whether the object's current metageneration does not match the given value. Note that metageneration preconditions are only checked if `write_handle` is empty.
optional int64 if_metageneration_not_match = 5;- Returns:
- Whether the ifMetagenerationNotMatch field is set.
-
getIfMetagenerationNotMatch
long getIfMetagenerationNotMatch()Makes the operation conditional on whether the object's current metageneration does not match the given value. Note that metageneration preconditions are only checked if `write_handle` is empty.
optional int64 if_metageneration_not_match = 5;- Returns:
- The ifMetagenerationNotMatch.
-
hasRoutingToken
boolean hasRoutingToken()An optional routing token that influences request routing for the stream. Must be provided if a BidiWriteObjectRedirectedError is returned.
optional string routing_token = 6;- Returns:
- Whether the routingToken field is set.
-
getRoutingToken
String getRoutingToken()An optional routing token that influences request routing for the stream. Must be provided if a BidiWriteObjectRedirectedError is returned.
optional string routing_token = 6;- Returns:
- The routingToken.
-
getRoutingTokenBytes
com.google.protobuf.ByteString getRoutingTokenBytes()An optional routing token that influences request routing for the stream. Must be provided if a BidiWriteObjectRedirectedError is returned.
optional string routing_token = 6;- Returns:
- The bytes for routingToken.
-
hasWriteHandle
boolean hasWriteHandle()An optional write handle returned from a previous BidiWriteObjectResponse message or a BidiWriteObjectRedirectedError error. Note that metageneration preconditions are only checked if `write_handle` is empty.
optional .google.storage.v2.BidiWriteHandle write_handle = 7;- Returns:
- Whether the writeHandle field is set.
-
getWriteHandle
BidiWriteHandle getWriteHandle()An optional write handle returned from a previous BidiWriteObjectResponse message or a BidiWriteObjectRedirectedError error. Note that metageneration preconditions are only checked if `write_handle` is empty.
optional .google.storage.v2.BidiWriteHandle write_handle = 7;- Returns:
- The writeHandle.
-
getWriteHandleOrBuilder
BidiWriteHandleOrBuilder getWriteHandleOrBuilder()An optional write handle returned from a previous BidiWriteObjectResponse message or a BidiWriteObjectRedirectedError error. Note that metageneration preconditions are only checked if `write_handle` is empty.
optional .google.storage.v2.BidiWriteHandle write_handle = 7;
-