All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.storage.v2.ReadObjectResponse Maven / Gradle / Ivy

There is a newer version: 2.43.0-beta
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/storage/v2/storage.proto

// Protobuf Java Version: 3.25.3
package com.google.storage.v2;

/**
 *
 *
 * 
 * Response message for ReadObject.
 * 
* * Protobuf type {@code google.storage.v2.ReadObjectResponse} */ public final class ReadObjectResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ReadObjectResponse) ReadObjectResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ReadObjectResponse.newBuilder() to construct. private ReadObjectResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadObjectResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadObjectResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.storage.v2.StorageProto .internal_static_google_storage_v2_ReadObjectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.storage.v2.StorageProto .internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.storage.v2.ReadObjectResponse.class, com.google.storage.v2.ReadObjectResponse.Builder.class); } private int bitField0_; public static final int CHECKSUMMED_DATA_FIELD_NUMBER = 1; private com.google.storage.v2.ChecksummedData checksummedData_; /** * * *
   * A portion of the data for the object. The service **may** leave `data`
   * empty for any given `ReadResponse`. This enables the service to inform the
   * client that the request is still live while it is running an operation to
   * generate more data.
   * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; * * @return Whether the checksummedData field is set. */ @java.lang.Override public boolean hasChecksummedData() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * A portion of the data for the object. The service **may** leave `data`
   * empty for any given `ReadResponse`. This enables the service to inform the
   * client that the request is still live while it is running an operation to
   * generate more data.
   * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; * * @return The checksummedData. */ @java.lang.Override public com.google.storage.v2.ChecksummedData getChecksummedData() { return checksummedData_ == null ? com.google.storage.v2.ChecksummedData.getDefaultInstance() : checksummedData_; } /** * * *
   * A portion of the data for the object. The service **may** leave `data`
   * empty for any given `ReadResponse`. This enables the service to inform the
   * client that the request is still live while it is running an operation to
   * generate more data.
   * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; */ @java.lang.Override public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder() { return checksummedData_ == null ? com.google.storage.v2.ChecksummedData.getDefaultInstance() : checksummedData_; } public static final int OBJECT_CHECKSUMS_FIELD_NUMBER = 2; private com.google.storage.v2.ObjectChecksums objectChecksums_; /** * * *
   * The checksums of the complete object. If the object is downloaded in full,
   * the client should compute one of these checksums over the downloaded object
   * and compare it against the value provided here.
   * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; * * @return Whether the objectChecksums field is set. */ @java.lang.Override public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * The checksums of the complete object. If the object is downloaded in full,
   * the client should compute one of these checksums over the downloaded object
   * and compare it against the value provided here.
   * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; * * @return The objectChecksums. */ @java.lang.Override public com.google.storage.v2.ObjectChecksums getObjectChecksums() { return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } /** * * *
   * The checksums of the complete object. If the object is downloaded in full,
   * the client should compute one of these checksums over the downloaded object
   * and compare it against the value provided here.
   * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; */ @java.lang.Override public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder() { return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } public static final int CONTENT_RANGE_FIELD_NUMBER = 3; private com.google.storage.v2.ContentRange contentRange_; /** * * *
   * If read_offset and or read_limit was specified on the
   * ReadObjectRequest, ContentRange will be populated on the first
   * ReadObjectResponse message of the read stream.
   * 
* * .google.storage.v2.ContentRange content_range = 3; * * @return Whether the contentRange field is set. */ @java.lang.Override public boolean hasContentRange() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * If read_offset and or read_limit was specified on the
   * ReadObjectRequest, ContentRange will be populated on the first
   * ReadObjectResponse message of the read stream.
   * 
* * .google.storage.v2.ContentRange content_range = 3; * * @return The contentRange. */ @java.lang.Override public com.google.storage.v2.ContentRange getContentRange() { return contentRange_ == null ? com.google.storage.v2.ContentRange.getDefaultInstance() : contentRange_; } /** * * *
   * If read_offset and or read_limit was specified on the
   * ReadObjectRequest, ContentRange will be populated on the first
   * ReadObjectResponse message of the read stream.
   * 
* * .google.storage.v2.ContentRange content_range = 3; */ @java.lang.Override public com.google.storage.v2.ContentRangeOrBuilder getContentRangeOrBuilder() { return contentRange_ == null ? com.google.storage.v2.ContentRange.getDefaultInstance() : contentRange_; } public static final int METADATA_FIELD_NUMBER = 4; private com.google.storage.v2.Object metadata_; /** * * *
   * Metadata of the object whose media is being returned.
   * Only populated in the first response in the stream.
   * 
* * .google.storage.v2.Object metadata = 4; * * @return Whether the metadata field is set. */ @java.lang.Override public boolean hasMetadata() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Metadata of the object whose media is being returned.
   * Only populated in the first response in the stream.
   * 
* * .google.storage.v2.Object metadata = 4; * * @return The metadata. */ @java.lang.Override public com.google.storage.v2.Object getMetadata() { return metadata_ == null ? com.google.storage.v2.Object.getDefaultInstance() : metadata_; } /** * * *
   * Metadata of the object whose media is being returned.
   * Only populated in the first response in the stream.
   * 
* * .google.storage.v2.Object metadata = 4; */ @java.lang.Override public com.google.storage.v2.ObjectOrBuilder getMetadataOrBuilder() { return metadata_ == null ? com.google.storage.v2.Object.getDefaultInstance() : metadata_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getChecksummedData()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getObjectChecksums()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getContentRange()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getMetadata()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getChecksummedData()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getObjectChecksums()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getContentRange()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMetadata()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.storage.v2.ReadObjectResponse)) { return super.equals(obj); } com.google.storage.v2.ReadObjectResponse other = (com.google.storage.v2.ReadObjectResponse) obj; if (hasChecksummedData() != other.hasChecksummedData()) return false; if (hasChecksummedData()) { if (!getChecksummedData().equals(other.getChecksummedData())) return false; } if (hasObjectChecksums() != other.hasObjectChecksums()) return false; if (hasObjectChecksums()) { if (!getObjectChecksums().equals(other.getObjectChecksums())) return false; } if (hasContentRange() != other.hasContentRange()) return false; if (hasContentRange()) { if (!getContentRange().equals(other.getContentRange())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { if (!getMetadata().equals(other.getMetadata())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasChecksummedData()) { hash = (37 * hash) + CHECKSUMMED_DATA_FIELD_NUMBER; hash = (53 * hash) + getChecksummedData().hashCode(); } if (hasObjectChecksums()) { hash = (37 * hash) + OBJECT_CHECKSUMS_FIELD_NUMBER; hash = (53 * hash) + getObjectChecksums().hashCode(); } if (hasContentRange()) { hash = (37 * hash) + CONTENT_RANGE_FIELD_NUMBER; hash = (53 * hash) + getContentRange().hashCode(); } if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.storage.v2.ReadObjectResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.storage.v2.ReadObjectResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.storage.v2.ReadObjectResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.storage.v2.ReadObjectResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.storage.v2.ReadObjectResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.storage.v2.ReadObjectResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.storage.v2.ReadObjectResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.storage.v2.ReadObjectResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.storage.v2.ReadObjectResponse parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ReadObjectResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.storage.v2.ReadObjectResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.storage.v2.ReadObjectResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.storage.v2.ReadObjectResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Response message for ReadObject.
   * 
* * Protobuf type {@code google.storage.v2.ReadObjectResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.ReadObjectResponse) com.google.storage.v2.ReadObjectResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.storage.v2.StorageProto .internal_static_google_storage_v2_ReadObjectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.storage.v2.StorageProto .internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.storage.v2.ReadObjectResponse.class, com.google.storage.v2.ReadObjectResponse.Builder.class); } // Construct using com.google.storage.v2.ReadObjectResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getChecksummedDataFieldBuilder(); getObjectChecksumsFieldBuilder(); getContentRangeFieldBuilder(); getMetadataFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; checksummedData_ = null; if (checksummedDataBuilder_ != null) { checksummedDataBuilder_.dispose(); checksummedDataBuilder_ = null; } objectChecksums_ = null; if (objectChecksumsBuilder_ != null) { objectChecksumsBuilder_.dispose(); objectChecksumsBuilder_ = null; } contentRange_ = null; if (contentRangeBuilder_ != null) { contentRangeBuilder_.dispose(); contentRangeBuilder_ = null; } metadata_ = null; if (metadataBuilder_ != null) { metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.storage.v2.StorageProto .internal_static_google_storage_v2_ReadObjectResponse_descriptor; } @java.lang.Override public com.google.storage.v2.ReadObjectResponse getDefaultInstanceForType() { return com.google.storage.v2.ReadObjectResponse.getDefaultInstance(); } @java.lang.Override public com.google.storage.v2.ReadObjectResponse build() { com.google.storage.v2.ReadObjectResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.storage.v2.ReadObjectResponse buildPartial() { com.google.storage.v2.ReadObjectResponse result = new com.google.storage.v2.ReadObjectResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.storage.v2.ReadObjectResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.checksummedData_ = checksummedDataBuilder_ == null ? checksummedData_ : checksummedDataBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.objectChecksums_ = objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.contentRange_ = contentRangeBuilder_ == null ? contentRange_ : contentRangeBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.ReadObjectResponse) { return mergeFrom((com.google.storage.v2.ReadObjectResponse) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.storage.v2.ReadObjectResponse other) { if (other == com.google.storage.v2.ReadObjectResponse.getDefaultInstance()) return this; if (other.hasChecksummedData()) { mergeChecksummedData(other.getChecksummedData()); } if (other.hasObjectChecksums()) { mergeObjectChecksums(other.getObjectChecksums()); } if (other.hasContentRange()) { mergeContentRange(other.getContentRange()); } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage(getChecksummedDataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getObjectChecksumsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getContentRangeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.storage.v2.ChecksummedData checksummedData_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder> checksummedDataBuilder_; /** * * *
     * A portion of the data for the object. The service **may** leave `data`
     * empty for any given `ReadResponse`. This enables the service to inform the
     * client that the request is still live while it is running an operation to
     * generate more data.
     * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; * * @return Whether the checksummedData field is set. */ public boolean hasChecksummedData() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * A portion of the data for the object. The service **may** leave `data`
     * empty for any given `ReadResponse`. This enables the service to inform the
     * client that the request is still live while it is running an operation to
     * generate more data.
     * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; * * @return The checksummedData. */ public com.google.storage.v2.ChecksummedData getChecksummedData() { if (checksummedDataBuilder_ == null) { return checksummedData_ == null ? com.google.storage.v2.ChecksummedData.getDefaultInstance() : checksummedData_; } else { return checksummedDataBuilder_.getMessage(); } } /** * * *
     * A portion of the data for the object. The service **may** leave `data`
     * empty for any given `ReadResponse`. This enables the service to inform the
     * client that the request is still live while it is running an operation to
     * generate more data.
     * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; */ public Builder setChecksummedData(com.google.storage.v2.ChecksummedData value) { if (checksummedDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } checksummedData_ = value; } else { checksummedDataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * A portion of the data for the object. The service **may** leave `data`
     * empty for any given `ReadResponse`. This enables the service to inform the
     * client that the request is still live while it is running an operation to
     * generate more data.
     * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; */ public Builder setChecksummedData( com.google.storage.v2.ChecksummedData.Builder builderForValue) { if (checksummedDataBuilder_ == null) { checksummedData_ = builderForValue.build(); } else { checksummedDataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * A portion of the data for the object. The service **may** leave `data`
     * empty for any given `ReadResponse`. This enables the service to inform the
     * client that the request is still live while it is running an operation to
     * generate more data.
     * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; */ public Builder mergeChecksummedData(com.google.storage.v2.ChecksummedData value) { if (checksummedDataBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && checksummedData_ != null && checksummedData_ != com.google.storage.v2.ChecksummedData.getDefaultInstance()) { getChecksummedDataBuilder().mergeFrom(value); } else { checksummedData_ = value; } } else { checksummedDataBuilder_.mergeFrom(value); } if (checksummedData_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
     * A portion of the data for the object. The service **may** leave `data`
     * empty for any given `ReadResponse`. This enables the service to inform the
     * client that the request is still live while it is running an operation to
     * generate more data.
     * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; */ public Builder clearChecksummedData() { bitField0_ = (bitField0_ & ~0x00000001); checksummedData_ = null; if (checksummedDataBuilder_ != null) { checksummedDataBuilder_.dispose(); checksummedDataBuilder_ = null; } onChanged(); return this; } /** * * *
     * A portion of the data for the object. The service **may** leave `data`
     * empty for any given `ReadResponse`. This enables the service to inform the
     * client that the request is still live while it is running an operation to
     * generate more data.
     * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; */ public com.google.storage.v2.ChecksummedData.Builder getChecksummedDataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getChecksummedDataFieldBuilder().getBuilder(); } /** * * *
     * A portion of the data for the object. The service **may** leave `data`
     * empty for any given `ReadResponse`. This enables the service to inform the
     * client that the request is still live while it is running an operation to
     * generate more data.
     * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; */ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder() { if (checksummedDataBuilder_ != null) { return checksummedDataBuilder_.getMessageOrBuilder(); } else { return checksummedData_ == null ? com.google.storage.v2.ChecksummedData.getDefaultInstance() : checksummedData_; } } /** * * *
     * A portion of the data for the object. The service **may** leave `data`
     * empty for any given `ReadResponse`. This enables the service to inform the
     * client that the request is still live while it is running an operation to
     * generate more data.
     * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder> getChecksummedDataFieldBuilder() { if (checksummedDataBuilder_ == null) { checksummedDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder>( getChecksummedData(), getParentForChildren(), isClean()); checksummedData_ = null; } return checksummedDataBuilder_; } private com.google.storage.v2.ObjectChecksums objectChecksums_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> objectChecksumsBuilder_; /** * * *
     * The checksums of the complete object. If the object is downloaded in full,
     * the client should compute one of these checksums over the downloaded object
     * and compare it against the value provided here.
     * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; * * @return Whether the objectChecksums field is set. */ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * The checksums of the complete object. If the object is downloaded in full,
     * the client should compute one of these checksums over the downloaded object
     * and compare it against the value provided here.
     * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; * * @return The objectChecksums. */ public com.google.storage.v2.ObjectChecksums getObjectChecksums() { if (objectChecksumsBuilder_ == null) { return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } else { return objectChecksumsBuilder_.getMessage(); } } /** * * *
     * The checksums of the complete object. If the object is downloaded in full,
     * the client should compute one of these checksums over the downloaded object
     * and compare it against the value provided here.
     * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; */ public Builder setObjectChecksums(com.google.storage.v2.ObjectChecksums value) { if (objectChecksumsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } objectChecksums_ = value; } else { objectChecksumsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The checksums of the complete object. If the object is downloaded in full,
     * the client should compute one of these checksums over the downloaded object
     * and compare it against the value provided here.
     * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; */ public Builder setObjectChecksums( com.google.storage.v2.ObjectChecksums.Builder builderForValue) { if (objectChecksumsBuilder_ == null) { objectChecksums_ = builderForValue.build(); } else { objectChecksumsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The checksums of the complete object. If the object is downloaded in full,
     * the client should compute one of these checksums over the downloaded object
     * and compare it against the value provided here.
     * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; */ public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value) { if (objectChecksumsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && objectChecksums_ != null && objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) { getObjectChecksumsBuilder().mergeFrom(value); } else { objectChecksums_ = value; } } else { objectChecksumsBuilder_.mergeFrom(value); } if (objectChecksums_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * The checksums of the complete object. If the object is downloaded in full,
     * the client should compute one of these checksums over the downloaded object
     * and compare it against the value provided here.
     * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; */ public Builder clearObjectChecksums() { bitField0_ = (bitField0_ & ~0x00000002); objectChecksums_ = null; if (objectChecksumsBuilder_ != null) { objectChecksumsBuilder_.dispose(); objectChecksumsBuilder_ = null; } onChanged(); return this; } /** * * *
     * The checksums of the complete object. If the object is downloaded in full,
     * the client should compute one of these checksums over the downloaded object
     * and compare it against the value provided here.
     * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; */ public com.google.storage.v2.ObjectChecksums.Builder getObjectChecksumsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getObjectChecksumsFieldBuilder().getBuilder(); } /** * * *
     * The checksums of the complete object. If the object is downloaded in full,
     * the client should compute one of these checksums over the downloaded object
     * and compare it against the value provided here.
     * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; */ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder() { if (objectChecksumsBuilder_ != null) { return objectChecksumsBuilder_.getMessageOrBuilder(); } else { return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } } /** * * *
     * The checksums of the complete object. If the object is downloaded in full,
     * the client should compute one of these checksums over the downloaded object
     * and compare it against the value provided here.
     * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> getObjectChecksumsFieldBuilder() { if (objectChecksumsBuilder_ == null) { objectChecksumsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder>( getObjectChecksums(), getParentForChildren(), isClean()); objectChecksums_ = null; } return objectChecksumsBuilder_; } private com.google.storage.v2.ContentRange contentRange_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.ContentRange, com.google.storage.v2.ContentRange.Builder, com.google.storage.v2.ContentRangeOrBuilder> contentRangeBuilder_; /** * * *
     * If read_offset and or read_limit was specified on the
     * ReadObjectRequest, ContentRange will be populated on the first
     * ReadObjectResponse message of the read stream.
     * 
* * .google.storage.v2.ContentRange content_range = 3; * * @return Whether the contentRange field is set. */ public boolean hasContentRange() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * If read_offset and or read_limit was specified on the
     * ReadObjectRequest, ContentRange will be populated on the first
     * ReadObjectResponse message of the read stream.
     * 
* * .google.storage.v2.ContentRange content_range = 3; * * @return The contentRange. */ public com.google.storage.v2.ContentRange getContentRange() { if (contentRangeBuilder_ == null) { return contentRange_ == null ? com.google.storage.v2.ContentRange.getDefaultInstance() : contentRange_; } else { return contentRangeBuilder_.getMessage(); } } /** * * *
     * If read_offset and or read_limit was specified on the
     * ReadObjectRequest, ContentRange will be populated on the first
     * ReadObjectResponse message of the read stream.
     * 
* * .google.storage.v2.ContentRange content_range = 3; */ public Builder setContentRange(com.google.storage.v2.ContentRange value) { if (contentRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contentRange_ = value; } else { contentRangeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * If read_offset and or read_limit was specified on the
     * ReadObjectRequest, ContentRange will be populated on the first
     * ReadObjectResponse message of the read stream.
     * 
* * .google.storage.v2.ContentRange content_range = 3; */ public Builder setContentRange(com.google.storage.v2.ContentRange.Builder builderForValue) { if (contentRangeBuilder_ == null) { contentRange_ = builderForValue.build(); } else { contentRangeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * If read_offset and or read_limit was specified on the
     * ReadObjectRequest, ContentRange will be populated on the first
     * ReadObjectResponse message of the read stream.
     * 
* * .google.storage.v2.ContentRange content_range = 3; */ public Builder mergeContentRange(com.google.storage.v2.ContentRange value) { if (contentRangeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && contentRange_ != null && contentRange_ != com.google.storage.v2.ContentRange.getDefaultInstance()) { getContentRangeBuilder().mergeFrom(value); } else { contentRange_ = value; } } else { contentRangeBuilder_.mergeFrom(value); } if (contentRange_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * If read_offset and or read_limit was specified on the
     * ReadObjectRequest, ContentRange will be populated on the first
     * ReadObjectResponse message of the read stream.
     * 
* * .google.storage.v2.ContentRange content_range = 3; */ public Builder clearContentRange() { bitField0_ = (bitField0_ & ~0x00000004); contentRange_ = null; if (contentRangeBuilder_ != null) { contentRangeBuilder_.dispose(); contentRangeBuilder_ = null; } onChanged(); return this; } /** * * *
     * If read_offset and or read_limit was specified on the
     * ReadObjectRequest, ContentRange will be populated on the first
     * ReadObjectResponse message of the read stream.
     * 
* * .google.storage.v2.ContentRange content_range = 3; */ public com.google.storage.v2.ContentRange.Builder getContentRangeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getContentRangeFieldBuilder().getBuilder(); } /** * * *
     * If read_offset and or read_limit was specified on the
     * ReadObjectRequest, ContentRange will be populated on the first
     * ReadObjectResponse message of the read stream.
     * 
* * .google.storage.v2.ContentRange content_range = 3; */ public com.google.storage.v2.ContentRangeOrBuilder getContentRangeOrBuilder() { if (contentRangeBuilder_ != null) { return contentRangeBuilder_.getMessageOrBuilder(); } else { return contentRange_ == null ? com.google.storage.v2.ContentRange.getDefaultInstance() : contentRange_; } } /** * * *
     * If read_offset and or read_limit was specified on the
     * ReadObjectRequest, ContentRange will be populated on the first
     * ReadObjectResponse message of the read stream.
     * 
* * .google.storage.v2.ContentRange content_range = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.ContentRange, com.google.storage.v2.ContentRange.Builder, com.google.storage.v2.ContentRangeOrBuilder> getContentRangeFieldBuilder() { if (contentRangeBuilder_ == null) { contentRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.ContentRange, com.google.storage.v2.ContentRange.Builder, com.google.storage.v2.ContentRangeOrBuilder>( getContentRange(), getParentForChildren(), isClean()); contentRange_ = null; } return contentRangeBuilder_; } private com.google.storage.v2.Object metadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> metadataBuilder_; /** * * *
     * Metadata of the object whose media is being returned.
     * Only populated in the first response in the stream.
     * 
* * .google.storage.v2.Object metadata = 4; * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Metadata of the object whose media is being returned.
     * Only populated in the first response in the stream.
     * 
* * .google.storage.v2.Object metadata = 4; * * @return The metadata. */ public com.google.storage.v2.Object getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? com.google.storage.v2.Object.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
     * Metadata of the object whose media is being returned.
     * Only populated in the first response in the stream.
     * 
* * .google.storage.v2.Object metadata = 4; */ public Builder setMetadata(com.google.storage.v2.Object value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Metadata of the object whose media is being returned.
     * Only populated in the first response in the stream.
     * 
* * .google.storage.v2.Object metadata = 4; */ public Builder setMetadata(com.google.storage.v2.Object.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Metadata of the object whose media is being returned.
     * Only populated in the first response in the stream.
     * 
* * .google.storage.v2.Object metadata = 4; */ public Builder mergeMetadata(com.google.storage.v2.Object value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && metadata_ != null && metadata_ != com.google.storage.v2.Object.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } } else { metadataBuilder_.mergeFrom(value); } if (metadata_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * Metadata of the object whose media is being returned.
     * Only populated in the first response in the stream.
     * 
* * .google.storage.v2.Object metadata = 4; */ public Builder clearMetadata() { bitField0_ = (bitField0_ & ~0x00000008); metadata_ = null; if (metadataBuilder_ != null) { metadataBuilder_.dispose(); metadataBuilder_ = null; } onChanged(); return this; } /** * * *
     * Metadata of the object whose media is being returned.
     * Only populated in the first response in the stream.
     * 
* * .google.storage.v2.Object metadata = 4; */ public com.google.storage.v2.Object.Builder getMetadataBuilder() { bitField0_ |= 0x00000008; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
     * Metadata of the object whose media is being returned.
     * Only populated in the first response in the stream.
     * 
* * .google.storage.v2.Object metadata = 4; */ public com.google.storage.v2.ObjectOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? com.google.storage.v2.Object.getDefaultInstance() : metadata_; } } /** * * *
     * Metadata of the object whose media is being returned.
     * Only populated in the first response in the stream.
     * 
* * .google.storage.v2.Object metadata = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.storage.v2.ReadObjectResponse) } // @@protoc_insertion_point(class_scope:google.storage.v2.ReadObjectResponse) private static final com.google.storage.v2.ReadObjectResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.storage.v2.ReadObjectResponse(); } public static com.google.storage.v2.ReadObjectResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReadObjectResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.storage.v2.ReadObjectResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy