public static final class BidiWriteObjectRedirectedError.Builder extends GeneratedMessage.Builder<BidiWriteObjectRedirectedError.Builder> implements BidiWriteObjectRedirectedErrorOrBuilderError proto containing details for a redirected write. This error might be attached as details for an ABORTED response to BidiWriteObject.
Protobuf type google.storage.v2.BidiWriteObjectRedirectedError
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BidiWriteObjectRedirectedError.BuilderImplements
BidiWriteObjectRedirectedErrorOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public BidiWriteObjectRedirectedError build()| Returns | |
|---|---|
| Type | Description |
BidiWriteObjectRedirectedError |
|
buildPartial()
public BidiWriteObjectRedirectedError buildPartial()| Returns | |
|---|---|
| Type | Description |
BidiWriteObjectRedirectedError |
|
clear()
public BidiWriteObjectRedirectedError.Builder clear()| Returns | |
|---|---|
| Type | Description |
BidiWriteObjectRedirectedError.Builder |
|
clearGeneration()
public BidiWriteObjectRedirectedError.Builder clearGeneration() The generation of the object that triggered the redirect. This is set
iff write_handle is set. If set, the client must use this in an
AppendObjectSpec first_message when retrying the write stream.
optional int64 generation = 3;
| Returns | |
|---|---|
| Type | Description |
BidiWriteObjectRedirectedError.Builder |
This builder for chaining. |
clearRoutingToken()
public BidiWriteObjectRedirectedError.Builder clearRoutingToken() The routing token the client must use when retrying the write stream.
This value must be provided in the header x-goog-request-params, with key
routing_token and this string verbatim as the value.
optional string routing_token = 1;
| Returns | |
|---|---|
| Type | Description |
BidiWriteObjectRedirectedError.Builder |
This builder for chaining. |
clearWriteHandle()
public BidiWriteObjectRedirectedError.Builder clearWriteHandle()Opaque value describing a previous write. If set, the client must use this in an AppendObjectSpec first_message when retrying the write stream. If not set, clients might retry the original request.
optional .google.storage.v2.BidiWriteHandle write_handle = 2;
| Returns | |
|---|---|
| Type | Description |
BidiWriteObjectRedirectedError.Builder |
|
getDefaultInstanceForType()
public BidiWriteObjectRedirectedError getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BidiWriteObjectRedirectedError |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGeneration()
public long getGeneration() The generation of the object that triggered the redirect. This is set
iff write_handle is set. If set, the client must use this in an
AppendObjectSpec first_message when retrying the write stream.
optional int64 generation = 3;
| Returns | |
|---|---|
| Type | Description |
long |
The generation. |
getRoutingToken()
public String getRoutingToken() The routing token the client must use when retrying the write stream.
This value must be provided in the header x-goog-request-params, with key
routing_token and this string verbatim as the value.
optional string routing_token = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The routingToken. |
getRoutingTokenBytes()
public ByteString getRoutingTokenBytes() The routing token the client must use when retrying the write stream.
This value must be provided in the header x-goog-request-params, with key
routing_token and this string verbatim as the value.
optional string routing_token = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for routingToken. |
getWriteHandle()
public BidiWriteHandle getWriteHandle()Opaque value describing a previous write. If set, the client must use this in an AppendObjectSpec first_message when retrying the write stream. If not set, clients might retry the original request.
optional .google.storage.v2.BidiWriteHandle write_handle = 2;
| Returns | |
|---|---|
| Type | Description |
BidiWriteHandle |
The writeHandle. |
getWriteHandleBuilder()
public BidiWriteHandle.Builder getWriteHandleBuilder()Opaque value describing a previous write. If set, the client must use this in an AppendObjectSpec first_message when retrying the write stream. If not set, clients might retry the original request.
optional .google.storage.v2.BidiWriteHandle write_handle = 2;
| Returns | |
|---|---|
| Type | Description |
BidiWriteHandle.Builder |
|
getWriteHandleOrBuilder()
public BidiWriteHandleOrBuilder getWriteHandleOrBuilder()Opaque value describing a previous write. If set, the client must use this in an AppendObjectSpec first_message when retrying the write stream. If not set, clients might retry the original request.
optional .google.storage.v2.BidiWriteHandle write_handle = 2;
| Returns | |
|---|---|
| Type | Description |
BidiWriteHandleOrBuilder |
|
hasGeneration()
public boolean hasGeneration() The generation of the object that triggered the redirect. This is set
iff write_handle is set. If set, the client must use this in an
AppendObjectSpec first_message when retrying the write stream.
optional int64 generation = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the generation field is set. |
hasRoutingToken()
public boolean hasRoutingToken() The routing token the client must use when retrying the write stream.
This value must be provided in the header x-goog-request-params, with key
routing_token and this string verbatim as the value.
optional string routing_token = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the routingToken field is set. |
hasWriteHandle()
public boolean hasWriteHandle()Opaque value describing a previous write. If set, the client must use this in an AppendObjectSpec first_message when retrying the write stream. If not set, clients might retry the original request.
optional .google.storage.v2.BidiWriteHandle write_handle = 2;
| 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 BidiWriteObjectRedirectedError.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BidiWriteObjectRedirectedError.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BidiWriteObjectRedirectedError.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BidiWriteObjectRedirectedError.Builder |
|
mergeFrom(BidiWriteObjectRedirectedError other)
public BidiWriteObjectRedirectedError.Builder mergeFrom(BidiWriteObjectRedirectedError other)| Parameter | |
|---|---|
| Name | Description |
other |
BidiWriteObjectRedirectedError |
| Returns | |
|---|---|
| Type | Description |
BidiWriteObjectRedirectedError.Builder |
|
mergeWriteHandle(BidiWriteHandle value)
public BidiWriteObjectRedirectedError.Builder mergeWriteHandle(BidiWriteHandle value)Opaque value describing a previous write. If set, the client must use this in an AppendObjectSpec first_message when retrying the write stream. If not set, clients might retry the original request.
optional .google.storage.v2.BidiWriteHandle write_handle = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
BidiWriteHandle |
| Returns | |
|---|---|
| Type | Description |
BidiWriteObjectRedirectedError.Builder |
|
setGeneration(long value)
public BidiWriteObjectRedirectedError.Builder setGeneration(long value) The generation of the object that triggered the redirect. This is set
iff write_handle is set. If set, the client must use this in an
AppendObjectSpec first_message when retrying the write stream.
optional int64 generation = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe generation to set. |
| Returns | |
|---|---|
| Type | Description |
BidiWriteObjectRedirectedError.Builder |
This builder for chaining. |
setRoutingToken(String value)
public BidiWriteObjectRedirectedError.Builder setRoutingToken(String value) The routing token the client must use when retrying the write stream.
This value must be provided in the header x-goog-request-params, with key
routing_token and this string verbatim as the value.
optional string routing_token = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe routingToken to set. |
| Returns | |
|---|---|
| Type | Description |
BidiWriteObjectRedirectedError.Builder |
This builder for chaining. |
setRoutingTokenBytes(ByteString value)
public BidiWriteObjectRedirectedError.Builder setRoutingTokenBytes(ByteString value) The routing token the client must use when retrying the write stream.
This value must be provided in the header x-goog-request-params, with key
routing_token and this string verbatim as the value.
optional string routing_token = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for routingToken to set. |
| Returns | |
|---|---|
| Type | Description |
BidiWriteObjectRedirectedError.Builder |
This builder for chaining. |
setWriteHandle(BidiWriteHandle value)
public BidiWriteObjectRedirectedError.Builder setWriteHandle(BidiWriteHandle value)Opaque value describing a previous write. If set, the client must use this in an AppendObjectSpec first_message when retrying the write stream. If not set, clients might retry the original request.
optional .google.storage.v2.BidiWriteHandle write_handle = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
BidiWriteHandle |
| Returns | |
|---|---|
| Type | Description |
BidiWriteObjectRedirectedError.Builder |
|
setWriteHandle(BidiWriteHandle.Builder builderForValue)
public BidiWriteObjectRedirectedError.Builder setWriteHandle(BidiWriteHandle.Builder builderForValue)Opaque value describing a previous write. If set, the client must use this in an AppendObjectSpec first_message when retrying the write stream. If not set, clients might retry the original request.
optional .google.storage.v2.BidiWriteHandle write_handle = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BidiWriteHandle.Builder |
| Returns | |
|---|---|
| Type | Description |
BidiWriteObjectRedirectedError.Builder |
|