Class BidiReadObjectRedirectedError.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BidiReadObjectRedirectedError.Builder>
com.google.storage.v2.BidiReadObjectRedirectedError.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, BidiReadObjectRedirectedErrorOrBuilder, Cloneable
Enclosing class:
BidiReadObjectRedirectedError

public static final class BidiReadObjectRedirectedError.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BidiReadObjectRedirectedError.Builder> 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
  • 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<BidiReadObjectRedirectedError.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<BidiReadObjectRedirectedError.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<BidiReadObjectRedirectedError.Builder>
    • getDefaultInstanceForType

      public BidiReadObjectRedirectedError 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 BidiReadObjectRedirectedError 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<BidiReadObjectRedirectedError.Builder>
    • setField

      public BidiReadObjectRedirectedError.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<BidiReadObjectRedirectedError.Builder>
    • clearField

      public BidiReadObjectRedirectedError.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<BidiReadObjectRedirectedError.Builder>
    • clearOneof

      public BidiReadObjectRedirectedError.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<BidiReadObjectRedirectedError.Builder>
    • setRepeatedField

      public BidiReadObjectRedirectedError.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<BidiReadObjectRedirectedError.Builder>
    • addRepeatedField

      public BidiReadObjectRedirectedError.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<BidiReadObjectRedirectedError.Builder>
    • mergeFrom

      public BidiReadObjectRedirectedError.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<BidiReadObjectRedirectedError.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<BidiReadObjectRedirectedError.Builder>
    • mergeFrom

      public BidiReadObjectRedirectedError.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<BidiReadObjectRedirectedError.Builder>
      Throws:
      IOException
    • 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.
    • setReadHandle

       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;
    • setReadHandle

      public BidiReadObjectRedirectedError.Builder setReadHandle(BidiReadHandle.Builder builderForValue)
       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;
    • mergeReadHandle

      public BidiReadObjectRedirectedError.Builder mergeReadHandle(BidiReadHandle value)
       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;
    • clearReadHandle

      public BidiReadObjectRedirectedError.Builder clearReadHandle()
       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;
    • getReadHandleBuilder

      public BidiReadHandle.Builder getReadHandleBuilder()
       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;
    • 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.
    • setRoutingToken

      public BidiReadObjectRedirectedError.Builder setRoutingToken(String value)
       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;
      Parameters:
      value - The routingToken to set.
      Returns:
      This builder for chaining.
    • clearRoutingToken

      public BidiReadObjectRedirectedError.Builder clearRoutingToken()
       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;
      Returns:
      This builder for chaining.
    • setRoutingTokenBytes

      public BidiReadObjectRedirectedError.Builder setRoutingTokenBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for routingToken to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final BidiReadObjectRedirectedError.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<BidiReadObjectRedirectedError.Builder>
    • mergeUnknownFields

      public final BidiReadObjectRedirectedError.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<BidiReadObjectRedirectedError.Builder>