Class BidiWriteObjectRedirectedError.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<BidiWriteObjectRedirectedError.Builder> 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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRedirectedError.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRedirectedError.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRedirectedError.Builder>
    • getDefaultInstanceForType

      public BidiWriteObjectRedirectedError getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public BidiWriteObjectRedirectedError buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRedirectedError.Builder>
    • setField

      public BidiWriteObjectRedirectedError.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRedirectedError.Builder>
    • clearField

      public BidiWriteObjectRedirectedError.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRedirectedError.Builder>
    • clearOneof

      public BidiWriteObjectRedirectedError.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRedirectedError.Builder>
    • setRepeatedField

      public BidiWriteObjectRedirectedError.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRedirectedError.Builder>
    • addRepeatedField

      public BidiWriteObjectRedirectedError.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRedirectedError.Builder>
    • mergeFrom

      public BidiWriteObjectRedirectedError.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BidiWriteObjectRedirectedError.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRedirectedError.Builder>
    • mergeFrom

      public BidiWriteObjectRedirectedError.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasRoutingToken in interface BidiWriteObjectRedirectedErrorOrBuilder
      Returns:
      Whether the routingToken field is set.
    • 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;
      Specified by:
      getRoutingToken in interface BidiWriteObjectRedirectedErrorOrBuilder
      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:
      getRoutingTokenBytes in interface BidiWriteObjectRedirectedErrorOrBuilder
      Returns:
      The bytes for routingToken.
    • setRoutingToken

      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;
      Parameters:
      value - The routingToken to set.
      Returns:
      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:
      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 may retry the original request.
       
      optional .google.storage.v2.BidiWriteHandle write_handle = 2;
      Specified by:
      hasWriteHandle in interface BidiWriteObjectRedirectedErrorOrBuilder
      Returns:
      Whether the writeHandle field is set.
    • 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;
      Specified by:
      getWriteHandle in interface BidiWriteObjectRedirectedErrorOrBuilder
      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 may 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 may 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 may retry the original request.
       
      optional .google.storage.v2.BidiWriteHandle write_handle = 2;
    • 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 may retry the original request.
       
      optional .google.storage.v2.BidiWriteHandle write_handle = 2;
    • 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 may retry the original request.
       
      optional .google.storage.v2.BidiWriteHandle write_handle = 2;
    • 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;
      Specified by:
      getWriteHandleOrBuilder in interface BidiWriteObjectRedirectedErrorOrBuilder
    • 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;
      Specified by:
      hasGeneration in interface BidiWriteObjectRedirectedErrorOrBuilder
      Returns:
      Whether the generation field is set.
    • 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;
      Specified by:
      getGeneration in interface BidiWriteObjectRedirectedErrorOrBuilder
      Returns:
      The generation.
    • setGeneration

      public BidiWriteObjectRedirectedError.Builder setGeneration(long value)
       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;
      Parameters:
      value - The generation to set.
      Returns:
      This builder for chaining.
    • clearGeneration

      public BidiWriteObjectRedirectedError.Builder clearGeneration()
       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:
      This builder for chaining.
    • setUnknownFields

      public final BidiWriteObjectRedirectedError.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRedirectedError.Builder>
    • mergeUnknownFields

      public final BidiWriteObjectRedirectedError.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRedirectedError.Builder>