Package com.google.storage.v2
Interface BidiWriteObjectRedirectedErrorOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
BidiWriteObjectRedirectedError,BidiWriteObjectRedirectedError.Builder
public interface BidiWriteObjectRedirectedErrorOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlongThe generation of the object that triggered the redirect.The routing token the client must use when retrying the write stream.com.google.protobuf.ByteStringThe routing token the client must use when retrying the write stream.Opaque value describing a previous write.Opaque value describing a previous write.booleanThe generation of the object that triggered the redirect.booleanThe routing token the client must use when retrying the write stream.booleanOpaque value describing a previous write.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
-
hasRoutingToken
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:
- Whether the routingToken field is set.
-
getRoutingToken
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:
- The routingToken.
-
getRoutingTokenBytes
com.google.protobuf.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:
- The bytes for routingToken.
-
hasWriteHandle
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:
- Whether the writeHandle field is set.
-
getWriteHandle
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:
- The writeHandle.
-
getWriteHandleOrBuilder
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; -
hasGeneration
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:
- Whether the generation field is set.
-
getGeneration
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:
- The generation.
-