Class AppendObjectSpec

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

public final class AppendObjectSpec extends com.google.protobuf.GeneratedMessageV3 implements AppendObjectSpecOrBuilder
 Describes an attempt to append to an object, possibly over multiple requests.
 
Protobuf type google.storage.v2.AppendObjectSpec
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Describes an attempt to append to an object, possibly over multiple requests.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Required.
    com.google.protobuf.ByteString
    Required.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    long
    Required.
    long
    Makes the operation conditional on whether the object's current metageneration matches the given value.
    long
    Makes the operation conditional on whether the object's current metageneration does not match the given value.
    Required.
    com.google.protobuf.ByteString
    Required.
    com.google.protobuf.Parser<AppendObjectSpec>
     
    An optional routing token that influences request routing for the stream.
    com.google.protobuf.ByteString
    An optional routing token that influences request routing for the stream.
    int
     
    An optional write handle returned from a previous BidiWriteObjectResponse message or a BidiWriteObjectRedirectedError error.
    An optional write handle returned from a previous BidiWriteObjectResponse message or a BidiWriteObjectRedirectedError error.
    int
     
    boolean
    Makes the operation conditional on whether the object's current metageneration matches the given value.
    boolean
    Makes the operation conditional on whether the object's current metageneration does not match the given value.
    boolean
    An optional routing token that influences request routing for the stream.
    boolean
    An optional write handle returned from a previous BidiWriteObjectResponse message or a BidiWriteObjectRedirectedError error.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<AppendObjectSpec>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • BUCKET_FIELD_NUMBER

      public static final int BUCKET_FIELD_NUMBER
      See Also:
    • OBJECT_FIELD_NUMBER

      public static final int OBJECT_FIELD_NUMBER
      See Also:
    • GENERATION_FIELD_NUMBER

      public static final int GENERATION_FIELD_NUMBER
      See Also:
    • IF_METAGENERATION_MATCH_FIELD_NUMBER

      public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER
      See Also:
    • IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER

      public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER
      See Also:
    • 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:
  • 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
    • getBucket

      public String getBucket()
       Required. The name of the bucket containing the object to write.
       
      string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getBucket in interface AppendObjectSpecOrBuilder
      Returns:
      The bucket.
    • getBucketBytes

      public com.google.protobuf.ByteString getBucketBytes()
       Required. The name of the bucket containing the object to write.
       
      string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getBucketBytes in interface AppendObjectSpecOrBuilder
      Returns:
      The bytes for bucket.
    • getObject

      public String getObject()
       Required. The name of the object to open for writing.
       
      string object = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getObject in interface AppendObjectSpecOrBuilder
      Returns:
      The object.
    • getObjectBytes

      public com.google.protobuf.ByteString getObjectBytes()
       Required. The name of the object to open for writing.
       
      string object = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getObjectBytes in interface AppendObjectSpecOrBuilder
      Returns:
      The bytes for object.
    • getGeneration

      public long getGeneration()
       Required. The generation number of the object to open for writing.
       
      int64 generation = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGeneration in interface AppendObjectSpecOrBuilder
      Returns:
      The generation.
    • hasIfMetagenerationMatch

      public boolean hasIfMetagenerationMatch()
       Makes the operation conditional on whether the object's current
       metageneration matches the given value.
      
       Note that metageneration preconditions are only checked if `write_handle`
       is empty.
       
      optional int64 if_metageneration_match = 4;
      Specified by:
      hasIfMetagenerationMatch in interface AppendObjectSpecOrBuilder
      Returns:
      Whether the ifMetagenerationMatch field is set.
    • getIfMetagenerationMatch

      public long getIfMetagenerationMatch()
       Makes the operation conditional on whether the object's current
       metageneration matches the given value.
      
       Note that metageneration preconditions are only checked if `write_handle`
       is empty.
       
      optional int64 if_metageneration_match = 4;
      Specified by:
      getIfMetagenerationMatch in interface AppendObjectSpecOrBuilder
      Returns:
      The ifMetagenerationMatch.
    • hasIfMetagenerationNotMatch

      public boolean hasIfMetagenerationNotMatch()
       Makes the operation conditional on whether the object's current
       metageneration does not match the given value.
      
       Note that metageneration preconditions are only checked if `write_handle`
       is empty.
       
      optional int64 if_metageneration_not_match = 5;
      Specified by:
      hasIfMetagenerationNotMatch in interface AppendObjectSpecOrBuilder
      Returns:
      Whether the ifMetagenerationNotMatch field is set.
    • getIfMetagenerationNotMatch

      public long getIfMetagenerationNotMatch()
       Makes the operation conditional on whether the object's current
       metageneration does not match the given value.
      
       Note that metageneration preconditions are only checked if `write_handle`
       is empty.
       
      optional int64 if_metageneration_not_match = 5;
      Specified by:
      getIfMetagenerationNotMatch in interface AppendObjectSpecOrBuilder
      Returns:
      The ifMetagenerationNotMatch.
    • hasRoutingToken

      public boolean hasRoutingToken()
       An optional routing token that influences request routing for the stream.
       Must be provided if a BidiWriteObjectRedirectedError is returned.
       
      optional string routing_token = 6;
      Specified by:
      hasRoutingToken in interface AppendObjectSpecOrBuilder
      Returns:
      Whether the routingToken field is set.
    • getRoutingToken

      public String getRoutingToken()
       An optional routing token that influences request routing for the stream.
       Must be provided if a BidiWriteObjectRedirectedError is returned.
       
      optional string routing_token = 6;
      Specified by:
      getRoutingToken in interface AppendObjectSpecOrBuilder
      Returns:
      The routingToken.
    • getRoutingTokenBytes

      public com.google.protobuf.ByteString getRoutingTokenBytes()
       An optional routing token that influences request routing for the stream.
       Must be provided if a BidiWriteObjectRedirectedError is returned.
       
      optional string routing_token = 6;
      Specified by:
      getRoutingTokenBytes in interface AppendObjectSpecOrBuilder
      Returns:
      The bytes for routingToken.
    • hasWriteHandle

      public boolean hasWriteHandle()
       An optional write handle returned from a previous BidiWriteObjectResponse
       message or a BidiWriteObjectRedirectedError error.
      
       Note that metageneration preconditions are only checked if `write_handle`
       is empty.
       
      optional .google.storage.v2.BidiWriteHandle write_handle = 7;
      Specified by:
      hasWriteHandle in interface AppendObjectSpecOrBuilder
      Returns:
      Whether the writeHandle field is set.
    • getWriteHandle

      public BidiWriteHandle getWriteHandle()
       An optional write handle returned from a previous BidiWriteObjectResponse
       message or a BidiWriteObjectRedirectedError error.
      
       Note that metageneration preconditions are only checked if `write_handle`
       is empty.
       
      optional .google.storage.v2.BidiWriteHandle write_handle = 7;
      Specified by:
      getWriteHandle in interface AppendObjectSpecOrBuilder
      Returns:
      The writeHandle.
    • getWriteHandleOrBuilder

      public BidiWriteHandleOrBuilder getWriteHandleOrBuilder()
       An optional write handle returned from a previous BidiWriteObjectResponse
       message or a BidiWriteObjectRedirectedError error.
      
       Note that metageneration preconditions are only checked if `write_handle`
       is empty.
       
      optional .google.storage.v2.BidiWriteHandle write_handle = 7;
      Specified by:
      getWriteHandleOrBuilder in interface AppendObjectSpecOrBuilder
    • 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 AppendObjectSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static AppendObjectSpec.Builder newBuilder()
    • newBuilder

      public static AppendObjectSpec.Builder newBuilder(AppendObjectSpec prototype)
    • toBuilder

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

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

      public static AppendObjectSpec getDefaultInstance()
    • parser

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

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