public static final class AppendObjectSpec.Builder extends GeneratedMessage.Builder<AppendObjectSpec.Builder> implements AppendObjectSpecOrBuilderDescribes an attempt to append to an object, possibly over multiple requests.
Protobuf type google.storage.v2.AppendObjectSpec
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AppendObjectSpec.BuilderImplements
AppendObjectSpecOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AppendObjectSpec build()| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec |
|
buildPartial()
public AppendObjectSpec buildPartial()| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec |
|
clear()
public AppendObjectSpec.Builder clear()| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
|
clearBucket()
public AppendObjectSpec.Builder clearBucket()Required. The name of the bucket containing the object to write.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
This builder for chaining. |
clearGeneration()
public AppendObjectSpec.Builder clearGeneration()Required. The generation number of the object to open for writing.
int64 generation = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
This builder for chaining. |
clearIfMetagenerationMatch()
public AppendObjectSpec.Builder clearIfMetagenerationMatch()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 | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
This builder for chaining. |
clearIfMetagenerationNotMatch()
public AppendObjectSpec.Builder clearIfMetagenerationNotMatch()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 | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
This builder for chaining. |
clearObject()
public AppendObjectSpec.Builder clearObject()Required. The name of the object to open for writing.
string object = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
This builder for chaining. |
clearRoutingToken()
public AppendObjectSpec.Builder clearRoutingToken() 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 | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
This builder for chaining. |
clearWriteHandle()
public AppendObjectSpec.Builder clearWriteHandle()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 | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
|
getBucket()
public 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 | |
|---|---|
| Type | Description |
String |
The bucket. |
getBucketBytes()
public 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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for bucket. |
getDefaultInstanceForType()
public AppendObjectSpec getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGeneration()
public long getGeneration()Required. The generation number of the object to open for writing.
int64 generation = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
long |
The generation. |
getIfMetagenerationMatch()
public 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 | |
|---|---|
| Type | Description |
long |
The ifMetagenerationMatch. |
getIfMetagenerationNotMatch()
public 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 | |
|---|---|
| Type | Description |
long |
The ifMetagenerationNotMatch. |
getObject()
public String getObject()Required. The name of the object to open for writing.
string object = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The object. |
getObjectBytes()
public ByteString getObjectBytes()Required. The name of the object to open for writing.
string object = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for object. |
getRoutingToken()
public 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 | |
|---|---|
| Type | Description |
String |
The routingToken. |
getRoutingTokenBytes()
public 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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for routingToken. |
getWriteHandle()
public 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 | |
|---|---|
| Type | Description |
BidiWriteHandle |
The writeHandle. |
getWriteHandleBuilder()
public BidiWriteHandle.Builder getWriteHandleBuilder()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 | |
|---|---|
| Type | Description |
BidiWriteHandle.Builder |
|
getWriteHandleOrBuilder()
public 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;
| Returns | |
|---|---|
| Type | Description |
BidiWriteHandleOrBuilder |
|
hasIfMetagenerationMatch()
public 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 | |
|---|---|
| Type | Description |
boolean |
Whether the ifMetagenerationMatch field is set. |
hasIfMetagenerationNotMatch()
public 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 | |
|---|---|
| Type | Description |
boolean |
Whether the ifMetagenerationNotMatch field is set. |
hasRoutingToken()
public 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 | |
|---|---|
| Type | Description |
boolean |
Whether the routingToken field is set. |
hasWriteHandle()
public 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 | |
|---|---|
| Type | Description |
boolean |
Whether the writeHandle field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AppendObjectSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AppendObjectSpec.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
|
mergeFrom(AppendObjectSpec other)
public AppendObjectSpec.Builder mergeFrom(AppendObjectSpec other)| Parameter | |
|---|---|
| Name | Description |
other |
AppendObjectSpec |
| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
|
mergeWriteHandle(BidiWriteHandle value)
public AppendObjectSpec.Builder mergeWriteHandle(BidiWriteHandle value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
BidiWriteHandle |
| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
|
setBucket(String value)
public AppendObjectSpec.Builder setBucket(String value)Required. The name of the bucket containing the object to write.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe bucket to set. |
| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
This builder for chaining. |
setBucketBytes(ByteString value)
public AppendObjectSpec.Builder setBucketBytes(ByteString value)Required. The name of the bucket containing the object to write.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for bucket to set. |
| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
This builder for chaining. |
setGeneration(long value)
public AppendObjectSpec.Builder setGeneration(long value)Required. The generation number of the object to open for writing.
int64 generation = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe generation to set. |
| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
This builder for chaining. |
setIfMetagenerationMatch(long value)
public AppendObjectSpec.Builder setIfMetagenerationMatch(long value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe ifMetagenerationMatch to set. |
| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
This builder for chaining. |
setIfMetagenerationNotMatch(long value)
public AppendObjectSpec.Builder setIfMetagenerationNotMatch(long value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe ifMetagenerationNotMatch to set. |
| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
This builder for chaining. |
setObject(String value)
public AppendObjectSpec.Builder setObject(String value)Required. The name of the object to open for writing.
string object = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe object to set. |
| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
This builder for chaining. |
setObjectBytes(ByteString value)
public AppendObjectSpec.Builder setObjectBytes(ByteString value)Required. The name of the object to open for writing.
string object = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for object to set. |
| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
This builder for chaining. |
setRoutingToken(String value)
public AppendObjectSpec.Builder setRoutingToken(String value) An optional routing token that influences request routing for the stream.
Must be provided if a BidiWriteObjectRedirectedError is returned.
optional string routing_token = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe routingToken to set. |
| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
This builder for chaining. |
setRoutingTokenBytes(ByteString value)
public AppendObjectSpec.Builder setRoutingTokenBytes(ByteString value) An optional routing token that influences request routing for the stream.
Must be provided if a BidiWriteObjectRedirectedError is returned.
optional string routing_token = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for routingToken to set. |
| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
This builder for chaining. |
setWriteHandle(BidiWriteHandle value)
public AppendObjectSpec.Builder setWriteHandle(BidiWriteHandle value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
BidiWriteHandle |
| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
|
setWriteHandle(BidiWriteHandle.Builder builderForValue)
public AppendObjectSpec.Builder setWriteHandle(BidiWriteHandle.Builder builderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BidiWriteHandle.Builder |
| Returns | |
|---|---|
| Type | Description |
AppendObjectSpec.Builder |
|