Class BidiWriteObjectRedirectedError

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.storage.v2.BidiWriteObjectRedirectedError
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, BidiWriteObjectRedirectedErrorOrBuilder, Serializable

public final class BidiWriteObjectRedirectedError extends com.google.protobuf.GeneratedMessageV3 implements BidiWriteObjectRedirectedErrorOrBuilder
 Error proto containing details for a redirected write. This error is only
 returned on initial open in case of a redirect.
 
Protobuf type google.storage.v2.BidiWriteObjectRedirectedError
See Also:
  • Field Details

    • ROUTING_TOKEN_FIELD_NUMBER

      public static final int ROUTING_TOKEN_FIELD_NUMBER
      See Also:
    • WRITE_HANDLE_FIELD_NUMBER

      public static final int WRITE_HANDLE_FIELD_NUMBER
      See Also:
    • GENERATION_FIELD_NUMBER

      public static final int GENERATION_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • hasRoutingToken

      public boolean hasRoutingToken()
       The routing token that should be used when reopening the write stream.
       
      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 that should be used when reopening the write stream.
       
      optional string routing_token = 1;
      Specified by:
      getRoutingToken in interface BidiWriteObjectRedirectedErrorOrBuilder
      Returns:
      The routingToken.
    • getRoutingTokenBytes

      public com.google.protobuf.ByteString getRoutingTokenBytes()
       The routing token that should be used when reopening the write stream.
       
      optional string routing_token = 1;
      Specified by:
      getRoutingTokenBytes in interface BidiWriteObjectRedirectedErrorOrBuilder
      Returns:
      The bytes for routingToken.
    • hasWriteHandle

      public boolean hasWriteHandle()
       Opaque value describing a previous write.
       
      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.
       
      optional .google.storage.v2.BidiWriteHandle write_handle = 2;
      Specified by:
      getWriteHandle in interface BidiWriteObjectRedirectedErrorOrBuilder
      Returns:
      The writeHandle.
    • getWriteHandleOrBuilder

      public BidiWriteHandleOrBuilder getWriteHandleOrBuilder()
       Opaque value describing a previous write.
       
      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.
       Note that if this error was returned as part of an appendable object
       create, this object generation is now successfully created and
       append_object_spec should be used when reconnecting.
       
      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.
       Note that if this error was returned as part of an appendable object
       create, this object generation is now successfully created and
       append_object_spec should be used when reconnecting.
       
      optional int64 generation = 3;
      Specified by:
      getGeneration in interface BidiWriteObjectRedirectedErrorOrBuilder
      Returns:
      The generation.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static BidiWriteObjectRedirectedError parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BidiWriteObjectRedirectedError parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BidiWriteObjectRedirectedError parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BidiWriteObjectRedirectedError parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BidiWriteObjectRedirectedError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BidiWriteObjectRedirectedError parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BidiWriteObjectRedirectedError parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BidiWriteObjectRedirectedError parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BidiWriteObjectRedirectedError parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BidiWriteObjectRedirectedError parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BidiWriteObjectRedirectedError parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BidiWriteObjectRedirectedError parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static BidiWriteObjectRedirectedError.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected BidiWriteObjectRedirectedError.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static BidiWriteObjectRedirectedError getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<BidiWriteObjectRedirectedError> parser()
    • getParserForType

      public com.google.protobuf.Parser<BidiWriteObjectRedirectedError> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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