Class BidiReadObjectRedirectedError

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

public final class BidiReadObjectRedirectedError extends com.google.protobuf.GeneratedMessageV3 implements BidiReadObjectRedirectedErrorOrBuilder
 Error proto containing details for a redirected read. This error may be
 attached as details for an ABORTED response to BidiReadObject.
 
Protobuf type google.storage.v2.BidiReadObjectRedirectedError
See Also:
  • Field Details

    • READ_HANDLE_FIELD_NUMBER

      public static final int READ_HANDLE_FIELD_NUMBER
      See Also:
    • ROUTING_TOKEN_FIELD_NUMBER

      public static final int ROUTING_TOKEN_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
    • hasReadHandle

      public boolean hasReadHandle()
       The read handle for the redirected read. If set, the client may use this in
       the BidiReadObjectSpec when retrying the read stream.
       
      .google.storage.v2.BidiReadHandle read_handle = 1;
      Specified by:
      hasReadHandle in interface BidiReadObjectRedirectedErrorOrBuilder
      Returns:
      Whether the readHandle field is set.
    • getReadHandle

      public BidiReadHandle getReadHandle()
       The read handle for the redirected read. If set, the client may use this in
       the BidiReadObjectSpec when retrying the read stream.
       
      .google.storage.v2.BidiReadHandle read_handle = 1;
      Specified by:
      getReadHandle in interface BidiReadObjectRedirectedErrorOrBuilder
      Returns:
      The readHandle.
    • getReadHandleOrBuilder

      public BidiReadHandleOrBuilder getReadHandleOrBuilder()
       The read handle for the redirected read. If set, the client may use this in
       the BidiReadObjectSpec when retrying the read stream.
       
      .google.storage.v2.BidiReadHandle read_handle = 1;
      Specified by:
      getReadHandleOrBuilder in interface BidiReadObjectRedirectedErrorOrBuilder
    • hasRoutingToken

      public boolean hasRoutingToken()
       The routing token the client must use when retrying the read 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 = 2;
      Specified by:
      hasRoutingToken in interface BidiReadObjectRedirectedErrorOrBuilder
      Returns:
      Whether the routingToken field is set.
    • getRoutingToken

      public String getRoutingToken()
       The routing token the client must use when retrying the read 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 = 2;
      Specified by:
      getRoutingToken in interface BidiReadObjectRedirectedErrorOrBuilder
      Returns:
      The routingToken.
    • getRoutingTokenBytes

      public com.google.protobuf.ByteString getRoutingTokenBytes()
       The routing token the client must use when retrying the read 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 = 2;
      Specified by:
      getRoutingTokenBytes in interface BidiReadObjectRedirectedErrorOrBuilder
      Returns:
      The bytes for routingToken.
    • 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 BidiReadObjectRedirectedError parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static BidiReadObjectRedirectedError.Builder newBuilder()
    • newBuilder

    • toBuilder

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

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

      public static BidiReadObjectRedirectedError getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<BidiReadObjectRedirectedError> 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 BidiReadObjectRedirectedError getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder