Package com.google.storage.v2
Class BidiWriteObjectRedirectedError.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BidiWriteObjectRedirectedError.Builder>
com.google.storage.v2.BidiWriteObjectRedirectedError.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,BidiWriteObjectRedirectedErrorOrBuilder,Cloneable
- Enclosing class:
- BidiWriteObjectRedirectedError
public static final class BidiWriteObjectRedirectedError.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BidiWriteObjectRedirectedError.Builder>
implements BidiWriteObjectRedirectedErrorOrBuilder
Error 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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The generation of the object that triggered the redirect.The routing token the client must use when retrying the write stream.Opaque value describing a previous write.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongThe 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.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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeWriteHandle(BidiWriteHandle value) Opaque value describing a previous write.setGeneration(long value) The generation of the object that triggered the redirect.setRoutingToken(String value) The routing token the client must use when retrying the write stream.setRoutingTokenBytes(com.google.protobuf.ByteString value) The routing token the client must use when retrying the write stream.setWriteHandle(BidiWriteHandle value) Opaque value describing a previous write.setWriteHandle(BidiWriteHandle.Builder builderForValue) Opaque value describing a previous write.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BidiWriteObjectRedirectedError.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BidiWriteObjectRedirectedError.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BidiWriteObjectRedirectedError.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BidiWriteObjectRedirectedError.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BidiWriteObjectRedirectedError.Builder>
-
mergeFrom
public BidiWriteObjectRedirectedError.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BidiWriteObjectRedirectedError.Builder>- Throws:
IOException
-
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;- Specified by:
hasRoutingTokenin interfaceBidiWriteObjectRedirectedErrorOrBuilder- Returns:
- Whether the routingToken field is set.
-
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;- Specified by:
getRoutingTokenin interfaceBidiWriteObjectRedirectedErrorOrBuilder- Returns:
- The routingToken.
-
getRoutingTokenBytes
public 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;- Specified by:
getRoutingTokenBytesin interfaceBidiWriteObjectRedirectedErrorOrBuilder- Returns:
- The bytes for routingToken.
-
setRoutingToken
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;- Parameters:
value- The routingToken to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setRoutingTokenBytes
public BidiWriteObjectRedirectedError.Builder setRoutingTokenBytes(com.google.protobuf.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;- Parameters:
value- The bytes for routingToken to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasWriteHandlein interfaceBidiWriteObjectRedirectedErrorOrBuilder- Returns:
- Whether the writeHandle field is set.
-
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;- Specified by:
getWriteHandlein interfaceBidiWriteObjectRedirectedErrorOrBuilder- Returns:
- The writeHandle.
-
setWriteHandle
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; -
setWriteHandle
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; -
mergeWriteHandle
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; -
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; -
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; -
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;- Specified by:
getWriteHandleOrBuilderin interfaceBidiWriteObjectRedirectedErrorOrBuilder
-
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;- Specified by:
hasGenerationin interfaceBidiWriteObjectRedirectedErrorOrBuilder- Returns:
- Whether the generation field is set.
-
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;- Specified by:
getGenerationin interfaceBidiWriteObjectRedirectedErrorOrBuilder- Returns:
- The generation.
-
setGeneration
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;- Parameters:
value- The generation to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-