Class BidiWriteObjectRedirectedError (2.53.3)

public final class BidiWriteObjectRedirectedError extends GeneratedMessageV3 implements BidiWriteObjectRedirectedErrorOrBuilder

Error proto containing details for a redirected write. This error may be attached as details for an ABORTED response to BidiWriteObject.

Protobuf type google.storage.v2.BidiWriteObjectRedirectedError

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > BidiWriteObjectRedirectedError

Static Fields

GENERATION_FIELD_NUMBER

public static final int GENERATION_FIELD_NUMBER
Field Value
Type Description
int

ROUTING_TOKEN_FIELD_NUMBER

public static final int ROUTING_TOKEN_FIELD_NUMBER
Field Value
Type Description
int

WRITE_HANDLE_FIELD_NUMBER

public static final int WRITE_HANDLE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BidiWriteObjectRedirectedError getDefaultInstance()
Returns
Type Description
BidiWriteObjectRedirectedError

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static BidiWriteObjectRedirectedError.Builder newBuilder()
Returns
Type Description
BidiWriteObjectRedirectedError.Builder

newBuilder(BidiWriteObjectRedirectedError prototype)

public static BidiWriteObjectRedirectedError.Builder newBuilder(BidiWriteObjectRedirectedError prototype)
Parameter
Name Description
prototype BidiWriteObjectRedirectedError
Returns
Type Description
BidiWriteObjectRedirectedError.Builder

parseDelimitedFrom(InputStream input)

public static BidiWriteObjectRedirectedError parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BidiWriteObjectRedirectedError
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BidiWriteObjectRedirectedError parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BidiWriteObjectRedirectedError
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BidiWriteObjectRedirectedError parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BidiWriteObjectRedirectedError
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BidiWriteObjectRedirectedError parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BidiWriteObjectRedirectedError
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BidiWriteObjectRedirectedError parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BidiWriteObjectRedirectedError
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BidiWriteObjectRedirectedError parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BidiWriteObjectRedirectedError
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BidiWriteObjectRedirectedError parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BidiWriteObjectRedirectedError
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BidiWriteObjectRedirectedError parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BidiWriteObjectRedirectedError
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BidiWriteObjectRedirectedError parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BidiWriteObjectRedirectedError
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BidiWriteObjectRedirectedError parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BidiWriteObjectRedirectedError
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BidiWriteObjectRedirectedError parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BidiWriteObjectRedirectedError
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BidiWriteObjectRedirectedError parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BidiWriteObjectRedirectedError
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BidiWriteObjectRedirectedError> parser()
Returns
Type Description
Parser<BidiWriteObjectRedirectedError>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public BidiWriteObjectRedirectedError getDefaultInstanceForType()
Returns
Type Description
BidiWriteObjectRedirectedError

getGeneration()

public long getGeneration()

The generation of the object that triggered the redirect. This will be 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.

getParserForType()

public Parser<BidiWriteObjectRedirectedError> getParserForType()
Returns
Type Description
Parser<BidiWriteObjectRedirectedError>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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 may retry the original request.

optional .google.storage.v2.BidiWriteHandle write_handle = 2;

Returns
Type Description
BidiWriteHandle

The writeHandle.

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 may 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 will be 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 may retry the original request.

optional .google.storage.v2.BidiWriteHandle write_handle = 2;

Returns
Type Description
boolean

Whether the writeHandle field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BidiWriteObjectRedirectedError.Builder newBuilderForType()
Returns
Type Description
BidiWriteObjectRedirectedError.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BidiWriteObjectRedirectedError.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BidiWriteObjectRedirectedError.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public BidiWriteObjectRedirectedError.Builder toBuilder()
Returns
Type Description
BidiWriteObjectRedirectedError.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException