Class WriteObjectResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.storage.v2.WriteObjectResponse
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, WriteObjectResponseOrBuilder, Serializable

@Generated public final class WriteObjectResponse extends com.google.protobuf.GeneratedMessage implements WriteObjectResponseOrBuilder
 Response message for
 [WriteObject][google.storage.v2.Storage.WriteObject].
 
Protobuf type google.storage.v2.WriteObjectResponse
See Also:
  • Field Details

    • PERSISTED_SIZE_FIELD_NUMBER

      public static final int PERSISTED_SIZE_FIELD_NUMBER
      See Also:
    • RESOURCE_FIELD_NUMBER

      public static final int RESOURCE_FIELD_NUMBER
      See Also:
    • PERSISTED_DATA_CHECKSUMS_FIELD_NUMBER

      public static final int PERSISTED_DATA_CHECKSUMS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getWriteStatusCase

      public WriteObjectResponse.WriteStatusCase getWriteStatusCase()
      Specified by:
      getWriteStatusCase in interface WriteObjectResponseOrBuilder
    • hasPersistedSize

      public boolean hasPersistedSize()
       The total number of bytes that have been processed for the given object
       from all `WriteObject` calls. Only set if the upload has not finalized.
       
      int64 persisted_size = 1;
      Specified by:
      hasPersistedSize in interface WriteObjectResponseOrBuilder
      Returns:
      Whether the persistedSize field is set.
    • getPersistedSize

      public long getPersistedSize()
       The total number of bytes that have been processed for the given object
       from all `WriteObject` calls. Only set if the upload has not finalized.
       
      int64 persisted_size = 1;
      Specified by:
      getPersistedSize in interface WriteObjectResponseOrBuilder
      Returns:
      The persistedSize.
    • hasResource

      public boolean hasResource()
       A resource containing the metadata for the uploaded object. Only set if
       the upload has finalized.
       
      .google.storage.v2.Object resource = 2;
      Specified by:
      hasResource in interface WriteObjectResponseOrBuilder
      Returns:
      Whether the resource field is set.
    • getResource

      public Object getResource()
       A resource containing the metadata for the uploaded object. Only set if
       the upload has finalized.
       
      .google.storage.v2.Object resource = 2;
      Specified by:
      getResource in interface WriteObjectResponseOrBuilder
      Returns:
      The resource.
    • getResourceOrBuilder

      public ObjectOrBuilder getResourceOrBuilder()
       A resource containing the metadata for the uploaded object. Only set if
       the upload has finalized.
       
      .google.storage.v2.Object resource = 2;
      Specified by:
      getResourceOrBuilder in interface WriteObjectResponseOrBuilder
    • hasPersistedDataChecksums

      public boolean hasPersistedDataChecksums()
       If persisted_size is set, contains checksums of persisted data.
       
      .google.storage.v2.ObjectChecksums persisted_data_checksums = 3;
      Specified by:
      hasPersistedDataChecksums in interface WriteObjectResponseOrBuilder
      Returns:
      Whether the persistedDataChecksums field is set.
    • getPersistedDataChecksums

      public ObjectChecksums getPersistedDataChecksums()
       If persisted_size is set, contains checksums of persisted data.
       
      .google.storage.v2.ObjectChecksums persisted_data_checksums = 3;
      Specified by:
      getPersistedDataChecksums in interface WriteObjectResponseOrBuilder
      Returns:
      The persistedDataChecksums.
    • getPersistedDataChecksumsOrBuilder

      public ObjectChecksumsOrBuilder getPersistedDataChecksumsOrBuilder()
       If persisted_size is set, contains checksums of persisted data.
       
      .google.storage.v2.ObjectChecksums persisted_data_checksums = 3;
      Specified by:
      getPersistedDataChecksumsOrBuilder in interface WriteObjectResponseOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 WriteObjectResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static WriteObjectResponse.Builder newBuilder()
    • newBuilder

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

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

      protected WriteObjectResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static WriteObjectResponse getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<WriteObjectResponse> 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.GeneratedMessage
    • getDefaultInstanceForType

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