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

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

There is a newer version: 2.46.0-beta
Show newest version
/*
 * Copyright 2020 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

package com.google.storage.v2;

/**
 *
 *
 * 
 * Request message for ReadObject.
 * 
* * Protobuf type {@code google.storage.v2.ReadObjectRequest} */ public final class ReadObjectRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ReadObjectRequest) ReadObjectRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ReadObjectRequest.newBuilder() to construct. private ReadObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadObjectRequest() { bucket_ = ""; object_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadObjectRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReadObjectRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); bucket_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); object_ = s; break; } case 24: { generation_ = input.readInt64(); break; } case 32: { readOffset_ = input.readInt64(); break; } case 40: { readLimit_ = input.readInt64(); break; } case 48: { bitField0_ |= 0x00000001; ifGenerationMatch_ = input.readInt64(); break; } case 56: { bitField0_ |= 0x00000002; ifGenerationNotMatch_ = input.readInt64(); break; } case 64: { bitField0_ |= 0x00000004; ifMetagenerationMatch_ = input.readInt64(); break; } case 72: { bitField0_ |= 0x00000008; ifMetagenerationNotMatch_ = input.readInt64(); break; } case 82: { com.google.storage.v2.CommonObjectRequestParams.Builder subBuilder = null; if (commonObjectRequestParams_ != null) { subBuilder = commonObjectRequestParams_.toBuilder(); } commonObjectRequestParams_ = input.readMessage( com.google.storage.v2.CommonObjectRequestParams.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(commonObjectRequestParams_); commonObjectRequestParams_ = subBuilder.buildPartial(); } break; } case 90: { com.google.storage.v2.CommonRequestParams.Builder subBuilder = null; if (commonRequestParams_ != null) { subBuilder = commonRequestParams_.toBuilder(); } commonRequestParams_ = input.readMessage( com.google.storage.v2.CommonRequestParams.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(commonRequestParams_); commonRequestParams_ = subBuilder.buildPartial(); } break; } case 98: { com.google.protobuf.FieldMask.Builder subBuilder = null; if (((bitField0_ & 0x00000010) != 0)) { subBuilder = readMask_.toBuilder(); } readMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(readMask_); readMask_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.storage.v2.StorageProto .internal_static_google_storage_v2_ReadObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.storage.v2.StorageProto .internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.storage.v2.ReadObjectRequest.class, com.google.storage.v2.ReadObjectRequest.Builder.class); } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; private volatile java.lang.Object bucket_; /** * * *
   * The name of the bucket containing the object to read.
   * 
* * string bucket = 1; * * @return The bucket. */ @java.lang.Override public java.lang.String getBucket() { java.lang.Object ref = bucket_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } } /** * * *
   * The name of the bucket containing the object to read.
   * 
* * string bucket = 1; * * @return The bytes for bucket. */ @java.lang.Override public com.google.protobuf.ByteString getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucket_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OBJECT_FIELD_NUMBER = 2; private volatile java.lang.Object object_; /** * * *
   * The name of the object to read.
   * 
* * string object = 2; * * @return The object. */ @java.lang.Override public java.lang.String getObject() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } } /** * * *
   * The name of the object to read.
   * 
* * string object = 2; * * @return The bytes for object. */ @java.lang.Override public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); object_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GENERATION_FIELD_NUMBER = 3; private long generation_; /** * * *
   * If present, selects a specific revision of this object (as opposed
   * to the latest version, the default).
   * 
* * int64 generation = 3; * * @return The generation. */ @java.lang.Override public long getGeneration() { return generation_; } public static final int READ_OFFSET_FIELD_NUMBER = 4; private long readOffset_; /** * * *
   * The offset for the first byte to return in the read, relative to the start
   * of the object.
   * A negative `read_offset` value will be interpreted as the number of bytes
   * back from the end of the object to be returned. For example, if an object's
   * length is 15 bytes, a ReadObjectRequest with `read_offset` = -5 and
   * `read_limit` = 3 would return bytes 10 through 12 of the object. Requesting
   * a negative offset whose magnitude is larger than the size of the object
   * will result in an error.
   * 
* * int64 read_offset = 4; * * @return The readOffset. */ @java.lang.Override public long getReadOffset() { return readOffset_; } public static final int READ_LIMIT_FIELD_NUMBER = 5; private long readLimit_; /** * * *
   * The maximum number of `data` bytes the server is allowed to return in the
   * sum of all `Object` messages. A `read_limit` of zero indicates that there
   * is no limit, and a negative `read_limit` will cause an error.
   * If the stream returns fewer bytes than allowed by the `read_limit` and no
   * error occurred, the stream includes all data from the `read_offset` to the
   * end of the resource.
   * 
* * int64 read_limit = 5; * * @return The readLimit. */ @java.lang.Override public long getReadLimit() { return readLimit_; } public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 6; private long ifGenerationMatch_; /** * * *
   * Makes the operation conditional on whether the object's current generation
   * matches the given value. Setting to 0 makes the operation succeed only if
   * there are no live versions of the object.
   * 
* * int64 if_generation_match = 6; * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Makes the operation conditional on whether the object's current generation
   * matches the given value. Setting to 0 makes the operation succeed only if
   * there are no live versions of the object.
   * 
* * int64 if_generation_match = 6; * * @return The ifGenerationMatch. */ @java.lang.Override public long getIfGenerationMatch() { return ifGenerationMatch_; } public static final int IF_GENERATION_NOT_MATCH_FIELD_NUMBER = 7; private long ifGenerationNotMatch_; /** * * *
   * Makes the operation conditional on whether the object's current generation
   * does not match the given value. If no live object exists, the precondition
   * fails. Setting to 0 makes the operation succeed only if there is a live
   * version of the object.
   * 
* * int64 if_generation_not_match = 7; * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Makes the operation conditional on whether the object's current generation
   * does not match the given value. If no live object exists, the precondition
   * fails. Setting to 0 makes the operation succeed only if there is a live
   * version of the object.
   * 
* * int64 if_generation_not_match = 7; * * @return The ifGenerationNotMatch. */ @java.lang.Override public long getIfGenerationNotMatch() { return ifGenerationNotMatch_; } public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 8; private long ifMetagenerationMatch_; /** * * *
   * Makes the operation conditional on whether the object's current
   * metageneration matches the given value.
   * 
* * int64 if_metageneration_match = 8; * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Makes the operation conditional on whether the object's current
   * metageneration matches the given value.
   * 
* * int64 if_metageneration_match = 8; * * @return The ifMetagenerationMatch. */ @java.lang.Override public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 9; private long ifMetagenerationNotMatch_; /** * * *
   * Makes the operation conditional on whether the object's current
   * metageneration does not match the given value.
   * 
* * int64 if_metageneration_not_match = 9; * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Makes the operation conditional on whether the object's current
   * metageneration does not match the given value.
   * 
* * int64 if_metageneration_not_match = 9; * * @return The ifMetagenerationNotMatch. */ @java.lang.Override public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER = 10; private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; /** * * *
   * A set of parameters common to Storage API requests concerning an object.
   * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; * * @return Whether the commonObjectRequestParams field is set. */ @java.lang.Override public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** * * *
   * A set of parameters common to Storage API requests concerning an object.
   * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } /** * * *
   * A set of parameters common to Storage API requests concerning an object.
   * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { return getCommonObjectRequestParams(); } public static final int COMMON_REQUEST_PARAMS_FIELD_NUMBER = 11; private com.google.storage.v2.CommonRequestParams commonRequestParams_; /** * * *
   * A set of parameters common to all Storage API requests.
   * 
* * .google.storage.v2.CommonRequestParams common_request_params = 11; * * @return Whether the commonRequestParams field is set. */ @java.lang.Override public boolean hasCommonRequestParams() { return commonRequestParams_ != null; } /** * * *
   * A set of parameters common to all Storage API requests.
   * 
* * .google.storage.v2.CommonRequestParams common_request_params = 11; * * @return The commonRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonRequestParams getCommonRequestParams() { return commonRequestParams_ == null ? com.google.storage.v2.CommonRequestParams.getDefaultInstance() : commonRequestParams_; } /** * * *
   * A set of parameters common to all Storage API requests.
   * 
* * .google.storage.v2.CommonRequestParams common_request_params = 11; */ @java.lang.Override public com.google.storage.v2.CommonRequestParamsOrBuilder getCommonRequestParamsOrBuilder() { return getCommonRequestParams(); } public static final int READ_MASK_FIELD_NUMBER = 12; private com.google.protobuf.FieldMask readMask_; /** * * *
   * Mask specifying which fields to read.
   * The checksummed_data field and its children will always be present.
   * If no mask is specified, will default to all fields except metadata.owner
   * and metadata.acl.
   * * may be used to mean "all fields".
   * 
* * .google.protobuf.FieldMask read_mask = 12; * * @return Whether the readMask field is set. */ @java.lang.Override public boolean hasReadMask() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * Mask specifying which fields to read.
   * The checksummed_data field and its children will always be present.
   * If no mask is specified, will default to all fields except metadata.owner
   * and metadata.acl.
   * * may be used to mean "all fields".
   * 
* * .google.protobuf.FieldMask read_mask = 12; * * @return The readMask. */ @java.lang.Override public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** * * *
   * Mask specifying which fields to read.
   * The checksummed_data field and its children will always be present.
   * If no mask is specified, will default to all fields except metadata.owner
   * and metadata.acl.
   * * may be used to mean "all fields".
   * 
* * .google.protobuf.FieldMask read_mask = 12; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } 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 (!getBucketBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); } if (!getObjectBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, object_); } if (generation_ != 0L) { output.writeInt64(3, generation_); } if (readOffset_ != 0L) { output.writeInt64(4, readOffset_); } if (readLimit_ != 0L) { output.writeInt64(5, readLimit_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(6, ifGenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(7, ifGenerationNotMatch_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(8, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt64(9, ifMetagenerationNotMatch_); } if (commonObjectRequestParams_ != null) { output.writeMessage(10, getCommonObjectRequestParams()); } if (commonRequestParams_ != null) { output.writeMessage(11, getCommonRequestParams()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(12, getReadMask()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getBucketBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); } if (!getObjectBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_); } if (generation_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_); } if (readOffset_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, readOffset_); } if (readLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, readLimit_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, ifGenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, ifGenerationNotMatch_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, ifMetagenerationNotMatch_); } if (commonObjectRequestParams_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 10, getCommonObjectRequestParams()); } if (commonRequestParams_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCommonRequestParams()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getReadMask()); } size += unknownFields.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.ReadObjectRequest)) { return super.equals(obj); } com.google.storage.v2.ReadObjectRequest other = (com.google.storage.v2.ReadObjectRequest) obj; if (!getBucket().equals(other.getBucket())) return false; if (!getObject().equals(other.getObject())) return false; if (getGeneration() != other.getGeneration()) return false; if (getReadOffset() != other.getReadOffset()) return false; if (getReadLimit() != other.getReadLimit()) return false; if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false; if (hasIfGenerationMatch()) { if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false; } if (hasIfGenerationNotMatch() != other.hasIfGenerationNotMatch()) return false; if (hasIfGenerationNotMatch()) { if (getIfGenerationNotMatch() != other.getIfGenerationNotMatch()) return false; } if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; } if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false; if (hasCommonObjectRequestParams()) { if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams())) return false; } if (hasCommonRequestParams() != other.hasCommonRequestParams()) return false; if (hasCommonRequestParams()) { if (!getCommonRequestParams().equals(other.getCommonRequestParams())) return false; } if (hasReadMask() != other.hasReadMask()) return false; if (hasReadMask()) { if (!getReadMask().equals(other.getReadMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BUCKET_FIELD_NUMBER; hash = (53 * hash) + getBucket().hashCode(); hash = (37 * hash) + OBJECT_FIELD_NUMBER; hash = (53 * hash) + getObject().hashCode(); hash = (37 * hash) + GENERATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration()); hash = (37 * hash) + READ_OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReadOffset()); hash = (37 * hash) + READ_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReadLimit()); if (hasIfGenerationMatch()) { hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch()); } if (hasIfGenerationNotMatch()) { hash = (37 * hash) + IF_GENERATION_NOT_MATCH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationNotMatch()); } if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); } if (hasCommonObjectRequestParams()) { hash = (37 * hash) + COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getCommonObjectRequestParams().hashCode(); } if (hasCommonRequestParams()) { hash = (37 * hash) + COMMON_REQUEST_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getCommonRequestParams().hashCode(); } if (hasReadMask()) { hash = (37 * hash) + READ_MASK_FIELD_NUMBER; hash = (53 * hash) + getReadMask().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.storage.v2.ReadObjectRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.storage.v2.ReadObjectRequest 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.ReadObjectRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.storage.v2.ReadObjectRequest 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.ReadObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.storage.v2.ReadObjectRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.storage.v2.ReadObjectRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.storage.v2.ReadObjectRequest 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.ReadObjectRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ReadObjectRequest 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.ReadObjectRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.storage.v2.ReadObjectRequest 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.ReadObjectRequest 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; } /** * * *
   * Request message for ReadObject.
   * 
* * Protobuf type {@code google.storage.v2.ReadObjectRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.ReadObjectRequest) com.google.storage.v2.ReadObjectRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.storage.v2.StorageProto .internal_static_google_storage_v2_ReadObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.storage.v2.StorageProto .internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.storage.v2.ReadObjectRequest.class, com.google.storage.v2.ReadObjectRequest.Builder.class); } // Construct using com.google.storage.v2.ReadObjectRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getReadMaskFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bucket_ = ""; object_ = ""; generation_ = 0L; readOffset_ = 0L; readLimit_ = 0L; ifGenerationMatch_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); ifGenerationNotMatch_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); ifMetagenerationMatch_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); ifMetagenerationNotMatch_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); if (commonObjectRequestParamsBuilder_ == null) { commonObjectRequestParams_ = null; } else { commonObjectRequestParams_ = null; commonObjectRequestParamsBuilder_ = null; } if (commonRequestParamsBuilder_ == null) { commonRequestParams_ = null; } else { commonRequestParams_ = null; commonRequestParamsBuilder_ = null; } if (readMaskBuilder_ == null) { readMask_ = null; } else { readMaskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.storage.v2.StorageProto .internal_static_google_storage_v2_ReadObjectRequest_descriptor; } @java.lang.Override public com.google.storage.v2.ReadObjectRequest getDefaultInstanceForType() { return com.google.storage.v2.ReadObjectRequest.getDefaultInstance(); } @java.lang.Override public com.google.storage.v2.ReadObjectRequest build() { com.google.storage.v2.ReadObjectRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.storage.v2.ReadObjectRequest buildPartial() { com.google.storage.v2.ReadObjectRequest result = new com.google.storage.v2.ReadObjectRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.bucket_ = bucket_; result.object_ = object_; result.generation_ = generation_; result.readOffset_ = readOffset_; result.readLimit_ = readLimit_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ifGenerationMatch_ = ifGenerationMatch_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.ifGenerationNotMatch_ = ifGenerationNotMatch_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.ifMetagenerationMatch_ = ifMetagenerationMatch_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.ifMetagenerationNotMatch_ = ifMetagenerationNotMatch_; to_bitField0_ |= 0x00000008; } if (commonObjectRequestParamsBuilder_ == null) { result.commonObjectRequestParams_ = commonObjectRequestParams_; } else { result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_.build(); } if (commonRequestParamsBuilder_ == null) { result.commonRequestParams_ = commonRequestParams_; } else { result.commonRequestParams_ = commonRequestParamsBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { if (readMaskBuilder_ == null) { result.readMask_ = readMask_; } else { result.readMask_ = readMaskBuilder_.build(); } to_bitField0_ |= 0x00000010; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @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.ReadObjectRequest) { return mergeFrom((com.google.storage.v2.ReadObjectRequest) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.storage.v2.ReadObjectRequest other) { if (other == com.google.storage.v2.ReadObjectRequest.getDefaultInstance()) return this; if (!other.getBucket().isEmpty()) { bucket_ = other.bucket_; onChanged(); } if (!other.getObject().isEmpty()) { object_ = other.object_; onChanged(); } if (other.getGeneration() != 0L) { setGeneration(other.getGeneration()); } if (other.getReadOffset() != 0L) { setReadOffset(other.getReadOffset()); } if (other.getReadLimit() != 0L) { setReadLimit(other.getReadLimit()); } if (other.hasIfGenerationMatch()) { setIfGenerationMatch(other.getIfGenerationMatch()); } if (other.hasIfGenerationNotMatch()) { setIfGenerationNotMatch(other.getIfGenerationNotMatch()); } if (other.hasIfMetagenerationMatch()) { setIfMetagenerationMatch(other.getIfMetagenerationMatch()); } if (other.hasIfMetagenerationNotMatch()) { setIfMetagenerationNotMatch(other.getIfMetagenerationNotMatch()); } if (other.hasCommonObjectRequestParams()) { mergeCommonObjectRequestParams(other.getCommonObjectRequestParams()); } if (other.hasCommonRequestParams()) { mergeCommonRequestParams(other.getCommonRequestParams()); } if (other.hasReadMask()) { mergeReadMask(other.getReadMask()); } this.mergeUnknownFields(other.unknownFields); 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 { com.google.storage.v2.ReadObjectRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.storage.v2.ReadObjectRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object bucket_ = ""; /** * * *
     * The name of the bucket containing the object to read.
     * 
* * string bucket = 1; * * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The name of the bucket containing the object to read.
     * 
* * string bucket = 1; * * @return The bytes for bucket. */ public com.google.protobuf.ByteString getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucket_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The name of the bucket containing the object to read.
     * 
* * string bucket = 1; * * @param value The bucket to set. * @return This builder for chaining. */ public Builder setBucket(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bucket_ = value; onChanged(); return this; } /** * * *
     * The name of the bucket containing the object to read.
     * 
* * string bucket = 1; * * @return This builder for chaining. */ public Builder clearBucket() { bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } /** * * *
     * The name of the bucket containing the object to read.
     * 
* * string bucket = 1; * * @param value The bytes for bucket to set. * @return This builder for chaining. */ public Builder setBucketBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucket_ = value; onChanged(); return this; } private java.lang.Object object_ = ""; /** * * *
     * The name of the object to read.
     * 
* * string object = 2; * * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The name of the object to read.
     * 
* * string object = 2; * * @return The bytes for object. */ public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); object_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The name of the object to read.
     * 
* * string object = 2; * * @param value The object to set. * @return This builder for chaining. */ public Builder setObject(java.lang.String value) { if (value == null) { throw new NullPointerException(); } object_ = value; onChanged(); return this; } /** * * *
     * The name of the object to read.
     * 
* * string object = 2; * * @return This builder for chaining. */ public Builder clearObject() { object_ = getDefaultInstance().getObject(); onChanged(); return this; } /** * * *
     * The name of the object to read.
     * 
* * string object = 2; * * @param value The bytes for object to set. * @return This builder for chaining. */ public Builder setObjectBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); object_ = value; onChanged(); return this; } private long generation_; /** * * *
     * If present, selects a specific revision of this object (as opposed
     * to the latest version, the default).
     * 
* * int64 generation = 3; * * @return The generation. */ @java.lang.Override public long getGeneration() { return generation_; } /** * * *
     * If present, selects a specific revision of this object (as opposed
     * to the latest version, the default).
     * 
* * int64 generation = 3; * * @param value The generation to set. * @return This builder for chaining. */ public Builder setGeneration(long value) { generation_ = value; onChanged(); return this; } /** * * *
     * If present, selects a specific revision of this object (as opposed
     * to the latest version, the default).
     * 
* * int64 generation = 3; * * @return This builder for chaining. */ public Builder clearGeneration() { generation_ = 0L; onChanged(); return this; } private long readOffset_; /** * * *
     * The offset for the first byte to return in the read, relative to the start
     * of the object.
     * A negative `read_offset` value will be interpreted as the number of bytes
     * back from the end of the object to be returned. For example, if an object's
     * length is 15 bytes, a ReadObjectRequest with `read_offset` = -5 and
     * `read_limit` = 3 would return bytes 10 through 12 of the object. Requesting
     * a negative offset whose magnitude is larger than the size of the object
     * will result in an error.
     * 
* * int64 read_offset = 4; * * @return The readOffset. */ @java.lang.Override public long getReadOffset() { return readOffset_; } /** * * *
     * The offset for the first byte to return in the read, relative to the start
     * of the object.
     * A negative `read_offset` value will be interpreted as the number of bytes
     * back from the end of the object to be returned. For example, if an object's
     * length is 15 bytes, a ReadObjectRequest with `read_offset` = -5 and
     * `read_limit` = 3 would return bytes 10 through 12 of the object. Requesting
     * a negative offset whose magnitude is larger than the size of the object
     * will result in an error.
     * 
* * int64 read_offset = 4; * * @param value The readOffset to set. * @return This builder for chaining. */ public Builder setReadOffset(long value) { readOffset_ = value; onChanged(); return this; } /** * * *
     * The offset for the first byte to return in the read, relative to the start
     * of the object.
     * A negative `read_offset` value will be interpreted as the number of bytes
     * back from the end of the object to be returned. For example, if an object's
     * length is 15 bytes, a ReadObjectRequest with `read_offset` = -5 and
     * `read_limit` = 3 would return bytes 10 through 12 of the object. Requesting
     * a negative offset whose magnitude is larger than the size of the object
     * will result in an error.
     * 
* * int64 read_offset = 4; * * @return This builder for chaining. */ public Builder clearReadOffset() { readOffset_ = 0L; onChanged(); return this; } private long readLimit_; /** * * *
     * The maximum number of `data` bytes the server is allowed to return in the
     * sum of all `Object` messages. A `read_limit` of zero indicates that there
     * is no limit, and a negative `read_limit` will cause an error.
     * If the stream returns fewer bytes than allowed by the `read_limit` and no
     * error occurred, the stream includes all data from the `read_offset` to the
     * end of the resource.
     * 
* * int64 read_limit = 5; * * @return The readLimit. */ @java.lang.Override public long getReadLimit() { return readLimit_; } /** * * *
     * The maximum number of `data` bytes the server is allowed to return in the
     * sum of all `Object` messages. A `read_limit` of zero indicates that there
     * is no limit, and a negative `read_limit` will cause an error.
     * If the stream returns fewer bytes than allowed by the `read_limit` and no
     * error occurred, the stream includes all data from the `read_offset` to the
     * end of the resource.
     * 
* * int64 read_limit = 5; * * @param value The readLimit to set. * @return This builder for chaining. */ public Builder setReadLimit(long value) { readLimit_ = value; onChanged(); return this; } /** * * *
     * The maximum number of `data` bytes the server is allowed to return in the
     * sum of all `Object` messages. A `read_limit` of zero indicates that there
     * is no limit, and a negative `read_limit` will cause an error.
     * If the stream returns fewer bytes than allowed by the `read_limit` and no
     * error occurred, the stream includes all data from the `read_offset` to the
     * end of the resource.
     * 
* * int64 read_limit = 5; * * @return This builder for chaining. */ public Builder clearReadLimit() { readLimit_ = 0L; onChanged(); return this; } private long ifGenerationMatch_; /** * * *
     * Makes the operation conditional on whether the object's current generation
     * matches the given value. Setting to 0 makes the operation succeed only if
     * there are no live versions of the object.
     * 
* * int64 if_generation_match = 6; * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Makes the operation conditional on whether the object's current generation
     * matches the given value. Setting to 0 makes the operation succeed only if
     * there are no live versions of the object.
     * 
* * int64 if_generation_match = 6; * * @return The ifGenerationMatch. */ @java.lang.Override public long getIfGenerationMatch() { return ifGenerationMatch_; } /** * * *
     * Makes the operation conditional on whether the object's current generation
     * matches the given value. Setting to 0 makes the operation succeed only if
     * there are no live versions of the object.
     * 
* * int64 if_generation_match = 6; * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationMatch(long value) { bitField0_ |= 0x00000001; ifGenerationMatch_ = value; onChanged(); return this; } /** * * *
     * Makes the operation conditional on whether the object's current generation
     * matches the given value. Setting to 0 makes the operation succeed only if
     * there are no live versions of the object.
     * 
* * int64 if_generation_match = 6; * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { bitField0_ = (bitField0_ & ~0x00000001); ifGenerationMatch_ = 0L; onChanged(); return this; } private long ifGenerationNotMatch_; /** * * *
     * Makes the operation conditional on whether the object's current generation
     * does not match the given value. If no live object exists, the precondition
     * fails. Setting to 0 makes the operation succeed only if there is a live
     * version of the object.
     * 
* * int64 if_generation_not_match = 7; * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Makes the operation conditional on whether the object's current generation
     * does not match the given value. If no live object exists, the precondition
     * fails. Setting to 0 makes the operation succeed only if there is a live
     * version of the object.
     * 
* * int64 if_generation_not_match = 7; * * @return The ifGenerationNotMatch. */ @java.lang.Override public long getIfGenerationNotMatch() { return ifGenerationNotMatch_; } /** * * *
     * Makes the operation conditional on whether the object's current generation
     * does not match the given value. If no live object exists, the precondition
     * fails. Setting to 0 makes the operation succeed only if there is a live
     * version of the object.
     * 
* * int64 if_generation_not_match = 7; * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationNotMatch(long value) { bitField0_ |= 0x00000002; ifGenerationNotMatch_ = value; onChanged(); return this; } /** * * *
     * Makes the operation conditional on whether the object's current generation
     * does not match the given value. If no live object exists, the precondition
     * fails. Setting to 0 makes the operation succeed only if there is a live
     * version of the object.
     * 
* * int64 if_generation_not_match = 7; * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { bitField0_ = (bitField0_ & ~0x00000002); ifGenerationNotMatch_ = 0L; onChanged(); return this; } private long ifMetagenerationMatch_; /** * * *
     * Makes the operation conditional on whether the object's current
     * metageneration matches the given value.
     * 
* * int64 if_metageneration_match = 8; * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Makes the operation conditional on whether the object's current
     * metageneration matches the given value.
     * 
* * int64 if_metageneration_match = 8; * * @return The ifMetagenerationMatch. */ @java.lang.Override public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** * * *
     * Makes the operation conditional on whether the object's current
     * metageneration matches the given value.
     * 
* * int64 if_metageneration_match = 8; * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ public Builder setIfMetagenerationMatch(long value) { bitField0_ |= 0x00000004; ifMetagenerationMatch_ = value; onChanged(); return this; } /** * * *
     * Makes the operation conditional on whether the object's current
     * metageneration matches the given value.
     * 
* * int64 if_metageneration_match = 8; * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { bitField0_ = (bitField0_ & ~0x00000004); ifMetagenerationMatch_ = 0L; onChanged(); return this; } private long ifMetagenerationNotMatch_; /** * * *
     * Makes the operation conditional on whether the object's current
     * metageneration does not match the given value.
     * 
* * int64 if_metageneration_not_match = 9; * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Makes the operation conditional on whether the object's current
     * metageneration does not match the given value.
     * 
* * int64 if_metageneration_not_match = 9; * * @return The ifMetagenerationNotMatch. */ @java.lang.Override public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** * * *
     * Makes the operation conditional on whether the object's current
     * metageneration does not match the given value.
     * 
* * int64 if_metageneration_not_match = 9; * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ public Builder setIfMetagenerationNotMatch(long value) { bitField0_ |= 0x00000008; ifMetagenerationNotMatch_ = value; onChanged(); return this; } /** * * *
     * Makes the operation conditional on whether the object's current
     * metageneration does not match the given value.
     * 
* * int64 if_metageneration_not_match = 9; * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { bitField0_ = (bitField0_ & ~0x00000008); ifMetagenerationNotMatch_ = 0L; onChanged(); return this; } private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** * * *
     * A set of parameters common to Storage API requests concerning an object.
     * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParamsBuilder_ != null || commonObjectRequestParams_ != null; } /** * * *
     * A set of parameters common to Storage API requests concerning an object.
     * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** * * *
     * A set of parameters common to Storage API requests concerning an object.
     * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ public Builder setCommonObjectRequestParams( com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } commonObjectRequestParams_ = value; onChanged(); } else { commonObjectRequestParamsBuilder_.setMessage(value); } return this; } /** * * *
     * A set of parameters common to Storage API requests concerning an object.
     * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ public Builder setCommonObjectRequestParams( com.google.storage.v2.CommonObjectRequestParams.Builder builderForValue) { if (commonObjectRequestParamsBuilder_ == null) { commonObjectRequestParams_ = builderForValue.build(); onChanged(); } else { commonObjectRequestParamsBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
     * A set of parameters common to Storage API requests concerning an object.
     * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ public Builder mergeCommonObjectRequestParams( com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (commonObjectRequestParams_ != null) { commonObjectRequestParams_ = com.google.storage.v2.CommonObjectRequestParams.newBuilder(commonObjectRequestParams_) .mergeFrom(value) .buildPartial(); } else { commonObjectRequestParams_ = value; } onChanged(); } else { commonObjectRequestParamsBuilder_.mergeFrom(value); } return this; } /** * * *
     * A set of parameters common to Storage API requests concerning an object.
     * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ public Builder clearCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { commonObjectRequestParams_ = null; onChanged(); } else { commonObjectRequestParams_ = null; commonObjectRequestParamsBuilder_ = null; } return this; } /** * * *
     * A set of parameters common to Storage API requests concerning an object.
     * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** * * *
     * A set of parameters common to Storage API requests concerning an object.
     * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** * * *
     * A set of parameters common to Storage API requests concerning an object.
     * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( getCommonObjectRequestParams(), getParentForChildren(), isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; } private com.google.storage.v2.CommonRequestParams commonRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.CommonRequestParams, com.google.storage.v2.CommonRequestParams.Builder, com.google.storage.v2.CommonRequestParamsOrBuilder> commonRequestParamsBuilder_; /** * * *
     * A set of parameters common to all Storage API requests.
     * 
* * .google.storage.v2.CommonRequestParams common_request_params = 11; * * @return Whether the commonRequestParams field is set. */ public boolean hasCommonRequestParams() { return commonRequestParamsBuilder_ != null || commonRequestParams_ != null; } /** * * *
     * A set of parameters common to all Storage API requests.
     * 
* * .google.storage.v2.CommonRequestParams common_request_params = 11; * * @return The commonRequestParams. */ public com.google.storage.v2.CommonRequestParams getCommonRequestParams() { if (commonRequestParamsBuilder_ == null) { return commonRequestParams_ == null ? com.google.storage.v2.CommonRequestParams.getDefaultInstance() : commonRequestParams_; } else { return commonRequestParamsBuilder_.getMessage(); } } /** * * *
     * A set of parameters common to all Storage API requests.
     * 
* * .google.storage.v2.CommonRequestParams common_request_params = 11; */ public Builder setCommonRequestParams(com.google.storage.v2.CommonRequestParams value) { if (commonRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } commonRequestParams_ = value; onChanged(); } else { commonRequestParamsBuilder_.setMessage(value); } return this; } /** * * *
     * A set of parameters common to all Storage API requests.
     * 
* * .google.storage.v2.CommonRequestParams common_request_params = 11; */ public Builder setCommonRequestParams( com.google.storage.v2.CommonRequestParams.Builder builderForValue) { if (commonRequestParamsBuilder_ == null) { commonRequestParams_ = builderForValue.build(); onChanged(); } else { commonRequestParamsBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
     * A set of parameters common to all Storage API requests.
     * 
* * .google.storage.v2.CommonRequestParams common_request_params = 11; */ public Builder mergeCommonRequestParams(com.google.storage.v2.CommonRequestParams value) { if (commonRequestParamsBuilder_ == null) { if (commonRequestParams_ != null) { commonRequestParams_ = com.google.storage.v2.CommonRequestParams.newBuilder(commonRequestParams_) .mergeFrom(value) .buildPartial(); } else { commonRequestParams_ = value; } onChanged(); } else { commonRequestParamsBuilder_.mergeFrom(value); } return this; } /** * * *
     * A set of parameters common to all Storage API requests.
     * 
* * .google.storage.v2.CommonRequestParams common_request_params = 11; */ public Builder clearCommonRequestParams() { if (commonRequestParamsBuilder_ == null) { commonRequestParams_ = null; onChanged(); } else { commonRequestParams_ = null; commonRequestParamsBuilder_ = null; } return this; } /** * * *
     * A set of parameters common to all Storage API requests.
     * 
* * .google.storage.v2.CommonRequestParams common_request_params = 11; */ public com.google.storage.v2.CommonRequestParams.Builder getCommonRequestParamsBuilder() { onChanged(); return getCommonRequestParamsFieldBuilder().getBuilder(); } /** * * *
     * A set of parameters common to all Storage API requests.
     * 
* * .google.storage.v2.CommonRequestParams common_request_params = 11; */ public com.google.storage.v2.CommonRequestParamsOrBuilder getCommonRequestParamsOrBuilder() { if (commonRequestParamsBuilder_ != null) { return commonRequestParamsBuilder_.getMessageOrBuilder(); } else { return commonRequestParams_ == null ? com.google.storage.v2.CommonRequestParams.getDefaultInstance() : commonRequestParams_; } } /** * * *
     * A set of parameters common to all Storage API requests.
     * 
* * .google.storage.v2.CommonRequestParams common_request_params = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.CommonRequestParams, com.google.storage.v2.CommonRequestParams.Builder, com.google.storage.v2.CommonRequestParamsOrBuilder> getCommonRequestParamsFieldBuilder() { if (commonRequestParamsBuilder_ == null) { commonRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.v2.CommonRequestParams, com.google.storage.v2.CommonRequestParams.Builder, com.google.storage.v2.CommonRequestParamsOrBuilder>( getCommonRequestParams(), getParentForChildren(), isClean()); commonRequestParams_ = null; } return commonRequestParamsBuilder_; } private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; /** * * *
     * Mask specifying which fields to read.
     * The checksummed_data field and its children will always be present.
     * If no mask is specified, will default to all fields except metadata.owner
     * and metadata.acl.
     * * may be used to mean "all fields".
     * 
* * .google.protobuf.FieldMask read_mask = 12; * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * Mask specifying which fields to read.
     * The checksummed_data field and its children will always be present.
     * If no mask is specified, will default to all fields except metadata.owner
     * and metadata.acl.
     * * may be used to mean "all fields".
     * 
* * .google.protobuf.FieldMask read_mask = 12; * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { if (readMaskBuilder_ == null) { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } else { return readMaskBuilder_.getMessage(); } } /** * * *
     * Mask specifying which fields to read.
     * The checksummed_data field and its children will always be present.
     * If no mask is specified, will default to all fields except metadata.owner
     * and metadata.acl.
     * * may be used to mean "all fields".
     * 
* * .google.protobuf.FieldMask read_mask = 12; */ public Builder setReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } readMask_ = value; onChanged(); } else { readMaskBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * * *
     * Mask specifying which fields to read.
     * The checksummed_data field and its children will always be present.
     * If no mask is specified, will default to all fields except metadata.owner
     * and metadata.acl.
     * * may be used to mean "all fields".
     * 
* * .google.protobuf.FieldMask read_mask = 12; */ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * * *
     * Mask specifying which fields to read.
     * The checksummed_data field and its children will always be present.
     * If no mask is specified, will default to all fields except metadata.owner
     * and metadata.acl.
     * * may be used to mean "all fields".
     * 
* * .google.protobuf.FieldMask read_mask = 12; */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && readMask_ != null && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { readMask_ = com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); } else { readMask_ = value; } onChanged(); } else { readMaskBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * * *
     * Mask specifying which fields to read.
     * The checksummed_data field and its children will always be present.
     * If no mask is specified, will default to all fields except metadata.owner
     * and metadata.acl.
     * * may be used to mean "all fields".
     * 
* * .google.protobuf.FieldMask read_mask = 12; */ public Builder clearReadMask() { if (readMaskBuilder_ == null) { readMask_ = null; onChanged(); } else { readMaskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * * *
     * Mask specifying which fields to read.
     * The checksummed_data field and its children will always be present.
     * If no mask is specified, will default to all fields except metadata.owner
     * and metadata.acl.
     * * may be used to mean "all fields".
     * 
* * .google.protobuf.FieldMask read_mask = 12; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } /** * * *
     * Mask specifying which fields to read.
     * The checksummed_data field and its children will always be present.
     * If no mask is specified, will default to all fields except metadata.owner
     * and metadata.acl.
     * * may be used to mean "all fields".
     * 
* * .google.protobuf.FieldMask read_mask = 12; */ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { if (readMaskBuilder_ != null) { return readMaskBuilder_.getMessageOrBuilder(); } else { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } } /** * * *
     * Mask specifying which fields to read.
     * The checksummed_data field and its children will always be present.
     * If no mask is specified, will default to all fields except metadata.owner
     * and metadata.acl.
     * * may be used to mean "all fields".
     * 
* * .google.protobuf.FieldMask read_mask = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getReadMaskFieldBuilder() { if (readMaskBuilder_ == null) { readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( getReadMask(), getParentForChildren(), isClean()); readMask_ = null; } return readMaskBuilder_; } @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.ReadObjectRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.ReadObjectRequest) private static final com.google.storage.v2.ReadObjectRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.storage.v2.ReadObjectRequest(); } public static com.google.storage.v2.ReadObjectRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReadObjectRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReadObjectRequest(input, extensionRegistry); } }; 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.ReadObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy