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

build.bazel.remote.asset.v1.PushBlobRequest Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: build/bazel/remote/asset/v1/remote_asset.proto

// Protobuf Java Version: 3.25.3
package build.bazel.remote.asset.v1;

/**
 * 
 * A request message for
 * [Push.PushBlob][build.bazel.remote.asset.v1.Push.PushBlob].
 * 
* * Protobuf type {@code build.bazel.remote.asset.v1.PushBlobRequest} */ public final class PushBlobRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:build.bazel.remote.asset.v1.PushBlobRequest) PushBlobRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PushBlobRequest.newBuilder() to construct. private PushBlobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PushBlobRequest() { instanceName_ = ""; uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); qualifiers_ = java.util.Collections.emptyList(); referencesBlobs_ = java.util.Collections.emptyList(); referencesDirectories_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PushBlobRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.asset.v1.RemoteAssetProto.internal_static_build_bazel_remote_asset_v1_PushBlobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return build.bazel.remote.asset.v1.RemoteAssetProto.internal_static_build_bazel_remote_asset_v1_PushBlobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.asset.v1.PushBlobRequest.class, build.bazel.remote.asset.v1.PushBlobRequest.Builder.class); } private int bitField0_; public static final int INSTANCE_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object instanceName_ = ""; /** *
   * The instance of the execution system to operate against. A server may
   * support multiple instances of the execution system (with their own workers,
   * storage, caches, etc.). The server MAY require use of this field to select
   * between them in an implementation-defined fashion, otherwise it can be
   * omitted.
   * 
* * string instance_name = 1; * @return The instanceName. */ @java.lang.Override public java.lang.String getInstanceName() { java.lang.Object ref = instanceName_; 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(); instanceName_ = s; return s; } } /** *
   * The instance of the execution system to operate against. A server may
   * support multiple instances of the execution system (with their own workers,
   * storage, caches, etc.). The server MAY require use of this field to select
   * between them in an implementation-defined fashion, otherwise it can be
   * omitted.
   * 
* * string instance_name = 1; * @return The bytes for instanceName. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceNameBytes() { java.lang.Object ref = instanceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int URIS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * The URI(s) of the content to associate. If multiple URIs are specified, the
   * pushed content will be available to fetch by specifying any of them.
   * 
* * repeated string uris = 2; * @return A list containing the uris. */ public com.google.protobuf.ProtocolStringList getUrisList() { return uris_; } /** *
   * The URI(s) of the content to associate. If multiple URIs are specified, the
   * pushed content will be available to fetch by specifying any of them.
   * 
* * repeated string uris = 2; * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** *
   * The URI(s) of the content to associate. If multiple URIs are specified, the
   * pushed content will be available to fetch by specifying any of them.
   * 
* * repeated string uris = 2; * @param index The index of the element to return. * @return The uris at the given index. */ public java.lang.String getUris(int index) { return uris_.get(index); } /** *
   * The URI(s) of the content to associate. If multiple URIs are specified, the
   * pushed content will be available to fetch by specifying any of them.
   * 
* * repeated string uris = 2; * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } public static final int QUALIFIERS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List qualifiers_; /** *
   * Qualifiers sub-specifying the content that is being pushed - see comments
   * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
   * The same qualifiers apply to all URIs.
   * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ @java.lang.Override public java.util.List getQualifiersList() { return qualifiers_; } /** *
   * Qualifiers sub-specifying the content that is being pushed - see comments
   * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
   * The same qualifiers apply to all URIs.
   * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ @java.lang.Override public java.util.List getQualifiersOrBuilderList() { return qualifiers_; } /** *
   * Qualifiers sub-specifying the content that is being pushed - see comments
   * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
   * The same qualifiers apply to all URIs.
   * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ @java.lang.Override public int getQualifiersCount() { return qualifiers_.size(); } /** *
   * Qualifiers sub-specifying the content that is being pushed - see comments
   * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
   * The same qualifiers apply to all URIs.
   * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ @java.lang.Override public build.bazel.remote.asset.v1.Qualifier getQualifiers(int index) { return qualifiers_.get(index); } /** *
   * Qualifiers sub-specifying the content that is being pushed - see comments
   * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
   * The same qualifiers apply to all URIs.
   * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ @java.lang.Override public build.bazel.remote.asset.v1.QualifierOrBuilder getQualifiersOrBuilder( int index) { return qualifiers_.get(index); } public static final int EXPIRE_AT_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp expireAt_; /** *
   * A time after which this content should stop being returned via [FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
   * Servers *MAY* expire content early, e.g. due to storage pressure.
   * 
* * .google.protobuf.Timestamp expire_at = 4; * @return Whether the expireAt field is set. */ @java.lang.Override public boolean hasExpireAt() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * A time after which this content should stop being returned via [FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
   * Servers *MAY* expire content early, e.g. due to storage pressure.
   * 
* * .google.protobuf.Timestamp expire_at = 4; * @return The expireAt. */ @java.lang.Override public com.google.protobuf.Timestamp getExpireAt() { return expireAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireAt_; } /** *
   * A time after which this content should stop being returned via [FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
   * Servers *MAY* expire content early, e.g. due to storage pressure.
   * 
* * .google.protobuf.Timestamp expire_at = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireAtOrBuilder() { return expireAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireAt_; } public static final int BLOB_DIGEST_FIELD_NUMBER = 5; private build.bazel.remote.execution.v2.Digest blobDigest_; /** *
   * The blob to associate.
   * 
* * .build.bazel.remote.execution.v2.Digest blob_digest = 5; * @return Whether the blobDigest field is set. */ @java.lang.Override public boolean hasBlobDigest() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The blob to associate.
   * 
* * .build.bazel.remote.execution.v2.Digest blob_digest = 5; * @return The blobDigest. */ @java.lang.Override public build.bazel.remote.execution.v2.Digest getBlobDigest() { return blobDigest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : blobDigest_; } /** *
   * The blob to associate.
   * 
* * .build.bazel.remote.execution.v2.Digest blob_digest = 5; */ @java.lang.Override public build.bazel.remote.execution.v2.DigestOrBuilder getBlobDigestOrBuilder() { return blobDigest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : blobDigest_; } public static final int REFERENCES_BLOBS_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List referencesBlobs_; /** *
   * Referenced blobs or directories that need to not expire before expiration
   * of this association, in addition to `blob_digest` itself.
   * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
   * respect them, at the risk of increased incidents of Fetch responses
   * indirectly referencing unavailable blobs.
   * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ @java.lang.Override public java.util.List getReferencesBlobsList() { return referencesBlobs_; } /** *
   * Referenced blobs or directories that need to not expire before expiration
   * of this association, in addition to `blob_digest` itself.
   * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
   * respect them, at the risk of increased incidents of Fetch responses
   * indirectly referencing unavailable blobs.
   * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ @java.lang.Override public java.util.List getReferencesBlobsOrBuilderList() { return referencesBlobs_; } /** *
   * Referenced blobs or directories that need to not expire before expiration
   * of this association, in addition to `blob_digest` itself.
   * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
   * respect them, at the risk of increased incidents of Fetch responses
   * indirectly referencing unavailable blobs.
   * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ @java.lang.Override public int getReferencesBlobsCount() { return referencesBlobs_.size(); } /** *
   * Referenced blobs or directories that need to not expire before expiration
   * of this association, in addition to `blob_digest` itself.
   * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
   * respect them, at the risk of increased incidents of Fetch responses
   * indirectly referencing unavailable blobs.
   * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ @java.lang.Override public build.bazel.remote.execution.v2.Digest getReferencesBlobs(int index) { return referencesBlobs_.get(index); } /** *
   * Referenced blobs or directories that need to not expire before expiration
   * of this association, in addition to `blob_digest` itself.
   * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
   * respect them, at the risk of increased incidents of Fetch responses
   * indirectly referencing unavailable blobs.
   * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ @java.lang.Override public build.bazel.remote.execution.v2.DigestOrBuilder getReferencesBlobsOrBuilder( int index) { return referencesBlobs_.get(index); } public static final int REFERENCES_DIRECTORIES_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List referencesDirectories_; /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ @java.lang.Override public java.util.List getReferencesDirectoriesList() { return referencesDirectories_; } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ @java.lang.Override public java.util.List getReferencesDirectoriesOrBuilderList() { return referencesDirectories_; } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ @java.lang.Override public int getReferencesDirectoriesCount() { return referencesDirectories_.size(); } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ @java.lang.Override public build.bazel.remote.execution.v2.Digest getReferencesDirectories(int index) { return referencesDirectories_.get(index); } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ @java.lang.Override public build.bazel.remote.execution.v2.DigestOrBuilder getReferencesDirectoriesOrBuilder( int index) { return referencesDirectories_.get(index); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceName_); } for (int i = 0; i < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uris_.getRaw(i)); } for (int i = 0; i < qualifiers_.size(); i++) { output.writeMessage(3, qualifiers_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getExpireAt()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getBlobDigest()); } for (int i = 0; i < referencesBlobs_.size(); i++) { output.writeMessage(6, referencesBlobs_.get(i)); } for (int i = 0; i < referencesDirectories_.size(); i++) { output.writeMessage(7, referencesDirectories_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceName_); } { int dataSize = 0; for (int i = 0; i < uris_.size(); i++) { dataSize += computeStringSizeNoTag(uris_.getRaw(i)); } size += dataSize; size += 1 * getUrisList().size(); } for (int i = 0; i < qualifiers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, qualifiers_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getExpireAt()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getBlobDigest()); } for (int i = 0; i < referencesBlobs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, referencesBlobs_.get(i)); } for (int i = 0; i < referencesDirectories_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, referencesDirectories_.get(i)); } 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 build.bazel.remote.asset.v1.PushBlobRequest)) { return super.equals(obj); } build.bazel.remote.asset.v1.PushBlobRequest other = (build.bazel.remote.asset.v1.PushBlobRequest) obj; if (!getInstanceName() .equals(other.getInstanceName())) return false; if (!getUrisList() .equals(other.getUrisList())) return false; if (!getQualifiersList() .equals(other.getQualifiersList())) return false; if (hasExpireAt() != other.hasExpireAt()) return false; if (hasExpireAt()) { if (!getExpireAt() .equals(other.getExpireAt())) return false; } if (hasBlobDigest() != other.hasBlobDigest()) return false; if (hasBlobDigest()) { if (!getBlobDigest() .equals(other.getBlobDigest())) return false; } if (!getReferencesBlobsList() .equals(other.getReferencesBlobsList())) return false; if (!getReferencesDirectoriesList() .equals(other.getReferencesDirectoriesList())) 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(); hash = (37 * hash) + INSTANCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getInstanceName().hashCode(); if (getUrisCount() > 0) { hash = (37 * hash) + URIS_FIELD_NUMBER; hash = (53 * hash) + getUrisList().hashCode(); } if (getQualifiersCount() > 0) { hash = (37 * hash) + QUALIFIERS_FIELD_NUMBER; hash = (53 * hash) + getQualifiersList().hashCode(); } if (hasExpireAt()) { hash = (37 * hash) + EXPIRE_AT_FIELD_NUMBER; hash = (53 * hash) + getExpireAt().hashCode(); } if (hasBlobDigest()) { hash = (37 * hash) + BLOB_DIGEST_FIELD_NUMBER; hash = (53 * hash) + getBlobDigest().hashCode(); } if (getReferencesBlobsCount() > 0) { hash = (37 * hash) + REFERENCES_BLOBS_FIELD_NUMBER; hash = (53 * hash) + getReferencesBlobsList().hashCode(); } if (getReferencesDirectoriesCount() > 0) { hash = (37 * hash) + REFERENCES_DIRECTORIES_FIELD_NUMBER; hash = (53 * hash) + getReferencesDirectoriesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static build.bazel.remote.asset.v1.PushBlobRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.asset.v1.PushBlobRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static build.bazel.remote.asset.v1.PushBlobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.asset.v1.PushBlobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static build.bazel.remote.asset.v1.PushBlobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.asset.v1.PushBlobRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static build.bazel.remote.asset.v1.PushBlobRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static build.bazel.remote.asset.v1.PushBlobRequest 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 build.bazel.remote.asset.v1.PushBlobRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static build.bazel.remote.asset.v1.PushBlobRequest 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 build.bazel.remote.asset.v1.PushBlobRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static build.bazel.remote.asset.v1.PushBlobRequest 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(build.bazel.remote.asset.v1.PushBlobRequest 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; } /** *
   * A request message for
   * [Push.PushBlob][build.bazel.remote.asset.v1.Push.PushBlob].
   * 
* * Protobuf type {@code build.bazel.remote.asset.v1.PushBlobRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:build.bazel.remote.asset.v1.PushBlobRequest) build.bazel.remote.asset.v1.PushBlobRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.asset.v1.RemoteAssetProto.internal_static_build_bazel_remote_asset_v1_PushBlobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return build.bazel.remote.asset.v1.RemoteAssetProto.internal_static_build_bazel_remote_asset_v1_PushBlobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.asset.v1.PushBlobRequest.class, build.bazel.remote.asset.v1.PushBlobRequest.Builder.class); } // Construct using build.bazel.remote.asset.v1.PushBlobRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getQualifiersFieldBuilder(); getExpireAtFieldBuilder(); getBlobDigestFieldBuilder(); getReferencesBlobsFieldBuilder(); getReferencesDirectoriesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; instanceName_ = ""; uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (qualifiersBuilder_ == null) { qualifiers_ = java.util.Collections.emptyList(); } else { qualifiers_ = null; qualifiersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); expireAt_ = null; if (expireAtBuilder_ != null) { expireAtBuilder_.dispose(); expireAtBuilder_ = null; } blobDigest_ = null; if (blobDigestBuilder_ != null) { blobDigestBuilder_.dispose(); blobDigestBuilder_ = null; } if (referencesBlobsBuilder_ == null) { referencesBlobs_ = java.util.Collections.emptyList(); } else { referencesBlobs_ = null; referencesBlobsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (referencesDirectoriesBuilder_ == null) { referencesDirectories_ = java.util.Collections.emptyList(); } else { referencesDirectories_ = null; referencesDirectoriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return build.bazel.remote.asset.v1.RemoteAssetProto.internal_static_build_bazel_remote_asset_v1_PushBlobRequest_descriptor; } @java.lang.Override public build.bazel.remote.asset.v1.PushBlobRequest getDefaultInstanceForType() { return build.bazel.remote.asset.v1.PushBlobRequest.getDefaultInstance(); } @java.lang.Override public build.bazel.remote.asset.v1.PushBlobRequest build() { build.bazel.remote.asset.v1.PushBlobRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public build.bazel.remote.asset.v1.PushBlobRequest buildPartial() { build.bazel.remote.asset.v1.PushBlobRequest result = new build.bazel.remote.asset.v1.PushBlobRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(build.bazel.remote.asset.v1.PushBlobRequest result) { if (qualifiersBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { qualifiers_ = java.util.Collections.unmodifiableList(qualifiers_); bitField0_ = (bitField0_ & ~0x00000004); } result.qualifiers_ = qualifiers_; } else { result.qualifiers_ = qualifiersBuilder_.build(); } if (referencesBlobsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { referencesBlobs_ = java.util.Collections.unmodifiableList(referencesBlobs_); bitField0_ = (bitField0_ & ~0x00000020); } result.referencesBlobs_ = referencesBlobs_; } else { result.referencesBlobs_ = referencesBlobsBuilder_.build(); } if (referencesDirectoriesBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { referencesDirectories_ = java.util.Collections.unmodifiableList(referencesDirectories_); bitField0_ = (bitField0_ & ~0x00000040); } result.referencesDirectories_ = referencesDirectories_; } else { result.referencesDirectories_ = referencesDirectoriesBuilder_.build(); } } private void buildPartial0(build.bazel.remote.asset.v1.PushBlobRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.instanceName_ = instanceName_; } if (((from_bitField0_ & 0x00000002) != 0)) { uris_.makeImmutable(); result.uris_ = uris_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.expireAt_ = expireAtBuilder_ == null ? expireAt_ : expireAtBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.blobDigest_ = blobDigestBuilder_ == null ? blobDigest_ : blobDigestBuilder_.build(); to_bitField0_ |= 0x00000002; } 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 build.bazel.remote.asset.v1.PushBlobRequest) { return mergeFrom((build.bazel.remote.asset.v1.PushBlobRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(build.bazel.remote.asset.v1.PushBlobRequest other) { if (other == build.bazel.remote.asset.v1.PushBlobRequest.getDefaultInstance()) return this; if (!other.getInstanceName().isEmpty()) { instanceName_ = other.instanceName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.uris_.isEmpty()) { if (uris_.isEmpty()) { uris_ = other.uris_; bitField0_ |= 0x00000002; } else { ensureUrisIsMutable(); uris_.addAll(other.uris_); } onChanged(); } if (qualifiersBuilder_ == null) { if (!other.qualifiers_.isEmpty()) { if (qualifiers_.isEmpty()) { qualifiers_ = other.qualifiers_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureQualifiersIsMutable(); qualifiers_.addAll(other.qualifiers_); } onChanged(); } } else { if (!other.qualifiers_.isEmpty()) { if (qualifiersBuilder_.isEmpty()) { qualifiersBuilder_.dispose(); qualifiersBuilder_ = null; qualifiers_ = other.qualifiers_; bitField0_ = (bitField0_ & ~0x00000004); qualifiersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getQualifiersFieldBuilder() : null; } else { qualifiersBuilder_.addAllMessages(other.qualifiers_); } } } if (other.hasExpireAt()) { mergeExpireAt(other.getExpireAt()); } if (other.hasBlobDigest()) { mergeBlobDigest(other.getBlobDigest()); } if (referencesBlobsBuilder_ == null) { if (!other.referencesBlobs_.isEmpty()) { if (referencesBlobs_.isEmpty()) { referencesBlobs_ = other.referencesBlobs_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureReferencesBlobsIsMutable(); referencesBlobs_.addAll(other.referencesBlobs_); } onChanged(); } } else { if (!other.referencesBlobs_.isEmpty()) { if (referencesBlobsBuilder_.isEmpty()) { referencesBlobsBuilder_.dispose(); referencesBlobsBuilder_ = null; referencesBlobs_ = other.referencesBlobs_; bitField0_ = (bitField0_ & ~0x00000020); referencesBlobsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getReferencesBlobsFieldBuilder() : null; } else { referencesBlobsBuilder_.addAllMessages(other.referencesBlobs_); } } } if (referencesDirectoriesBuilder_ == null) { if (!other.referencesDirectories_.isEmpty()) { if (referencesDirectories_.isEmpty()) { referencesDirectories_ = other.referencesDirectories_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureReferencesDirectoriesIsMutable(); referencesDirectories_.addAll(other.referencesDirectories_); } onChanged(); } } else { if (!other.referencesDirectories_.isEmpty()) { if (referencesDirectoriesBuilder_.isEmpty()) { referencesDirectoriesBuilder_.dispose(); referencesDirectoriesBuilder_ = null; referencesDirectories_ = other.referencesDirectories_; bitField0_ = (bitField0_ & ~0x00000040); referencesDirectoriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getReferencesDirectoriesFieldBuilder() : null; } else { referencesDirectoriesBuilder_.addAllMessages(other.referencesDirectories_); } } } 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: { instanceName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureUrisIsMutable(); uris_.add(s); break; } // case 18 case 26: { build.bazel.remote.asset.v1.Qualifier m = input.readMessage( build.bazel.remote.asset.v1.Qualifier.parser(), extensionRegistry); if (qualifiersBuilder_ == null) { ensureQualifiersIsMutable(); qualifiers_.add(m); } else { qualifiersBuilder_.addMessage(m); } break; } // case 26 case 34: { input.readMessage( getExpireAtFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getBlobDigestFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { build.bazel.remote.execution.v2.Digest m = input.readMessage( build.bazel.remote.execution.v2.Digest.parser(), extensionRegistry); if (referencesBlobsBuilder_ == null) { ensureReferencesBlobsIsMutable(); referencesBlobs_.add(m); } else { referencesBlobsBuilder_.addMessage(m); } break; } // case 50 case 58: { build.bazel.remote.execution.v2.Digest m = input.readMessage( build.bazel.remote.execution.v2.Digest.parser(), extensionRegistry); if (referencesDirectoriesBuilder_ == null) { ensureReferencesDirectoriesIsMutable(); referencesDirectories_.add(m); } else { referencesDirectoriesBuilder_.addMessage(m); } break; } // case 58 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 java.lang.Object instanceName_ = ""; /** *
     * The instance of the execution system to operate against. A server may
     * support multiple instances of the execution system (with their own workers,
     * storage, caches, etc.). The server MAY require use of this field to select
     * between them in an implementation-defined fashion, otherwise it can be
     * omitted.
     * 
* * string instance_name = 1; * @return The instanceName. */ public java.lang.String getInstanceName() { java.lang.Object ref = instanceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The instance of the execution system to operate against. A server may
     * support multiple instances of the execution system (with their own workers,
     * storage, caches, etc.). The server MAY require use of this field to select
     * between them in an implementation-defined fashion, otherwise it can be
     * omitted.
     * 
* * string instance_name = 1; * @return The bytes for instanceName. */ public com.google.protobuf.ByteString getInstanceNameBytes() { java.lang.Object ref = instanceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The instance of the execution system to operate against. A server may
     * support multiple instances of the execution system (with their own workers,
     * storage, caches, etc.). The server MAY require use of this field to select
     * between them in an implementation-defined fashion, otherwise it can be
     * omitted.
     * 
* * string instance_name = 1; * @param value The instanceName to set. * @return This builder for chaining. */ public Builder setInstanceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The instance of the execution system to operate against. A server may
     * support multiple instances of the execution system (with their own workers,
     * storage, caches, etc.). The server MAY require use of this field to select
     * between them in an implementation-defined fashion, otherwise it can be
     * omitted.
     * 
* * string instance_name = 1; * @return This builder for chaining. */ public Builder clearInstanceName() { instanceName_ = getDefaultInstance().getInstanceName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * The instance of the execution system to operate against. A server may
     * support multiple instances of the execution system (with their own workers,
     * storage, caches, etc.). The server MAY require use of this field to select
     * between them in an implementation-defined fashion, otherwise it can be
     * omitted.
     * 
* * string instance_name = 1; * @param value The bytes for instanceName to set. * @return This builder for chaining. */ public Builder setInstanceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureUrisIsMutable() { if (!uris_.isModifiable()) { uris_ = new com.google.protobuf.LazyStringArrayList(uris_); } bitField0_ |= 0x00000002; } /** *
     * The URI(s) of the content to associate. If multiple URIs are specified, the
     * pushed content will be available to fetch by specifying any of them.
     * 
* * repeated string uris = 2; * @return A list containing the uris. */ public com.google.protobuf.ProtocolStringList getUrisList() { uris_.makeImmutable(); return uris_; } /** *
     * The URI(s) of the content to associate. If multiple URIs are specified, the
     * pushed content will be available to fetch by specifying any of them.
     * 
* * repeated string uris = 2; * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** *
     * The URI(s) of the content to associate. If multiple URIs are specified, the
     * pushed content will be available to fetch by specifying any of them.
     * 
* * repeated string uris = 2; * @param index The index of the element to return. * @return The uris at the given index. */ public java.lang.String getUris(int index) { return uris_.get(index); } /** *
     * The URI(s) of the content to associate. If multiple URIs are specified, the
     * pushed content will be available to fetch by specifying any of them.
     * 
* * repeated string uris = 2; * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } /** *
     * The URI(s) of the content to associate. If multiple URIs are specified, the
     * pushed content will be available to fetch by specifying any of them.
     * 
* * repeated string uris = 2; * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ public Builder setUris( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUrisIsMutable(); uris_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The URI(s) of the content to associate. If multiple URIs are specified, the
     * pushed content will be available to fetch by specifying any of them.
     * 
* * repeated string uris = 2; * @param value The uris to add. * @return This builder for chaining. */ public Builder addUris( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUrisIsMutable(); uris_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The URI(s) of the content to associate. If multiple URIs are specified, the
     * pushed content will be available to fetch by specifying any of them.
     * 
* * repeated string uris = 2; * @param values The uris to add. * @return This builder for chaining. */ public Builder addAllUris( java.lang.Iterable values) { ensureUrisIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, uris_); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The URI(s) of the content to associate. If multiple URIs are specified, the
     * pushed content will be available to fetch by specifying any of them.
     * 
* * repeated string uris = 2; * @return This builder for chaining. */ public Builder clearUris() { uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** *
     * The URI(s) of the content to associate. If multiple URIs are specified, the
     * pushed content will be available to fetch by specifying any of them.
     * 
* * repeated string uris = 2; * @param value The bytes of the uris to add. * @return This builder for chaining. */ public Builder addUrisBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } private java.util.List qualifiers_ = java.util.Collections.emptyList(); private void ensureQualifiersIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { qualifiers_ = new java.util.ArrayList(qualifiers_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.asset.v1.Qualifier, build.bazel.remote.asset.v1.Qualifier.Builder, build.bazel.remote.asset.v1.QualifierOrBuilder> qualifiersBuilder_; /** *
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public java.util.List getQualifiersList() { if (qualifiersBuilder_ == null) { return java.util.Collections.unmodifiableList(qualifiers_); } else { return qualifiersBuilder_.getMessageList(); } } /** *
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public int getQualifiersCount() { if (qualifiersBuilder_ == null) { return qualifiers_.size(); } else { return qualifiersBuilder_.getCount(); } } /** *
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public build.bazel.remote.asset.v1.Qualifier getQualifiers(int index) { if (qualifiersBuilder_ == null) { return qualifiers_.get(index); } else { return qualifiersBuilder_.getMessage(index); } } /** *
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public Builder setQualifiers( int index, build.bazel.remote.asset.v1.Qualifier value) { if (qualifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQualifiersIsMutable(); qualifiers_.set(index, value); onChanged(); } else { qualifiersBuilder_.setMessage(index, value); } return this; } /** *
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public Builder setQualifiers( int index, build.bazel.remote.asset.v1.Qualifier.Builder builderForValue) { if (qualifiersBuilder_ == null) { ensureQualifiersIsMutable(); qualifiers_.set(index, builderForValue.build()); onChanged(); } else { qualifiersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public Builder addQualifiers(build.bazel.remote.asset.v1.Qualifier value) { if (qualifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQualifiersIsMutable(); qualifiers_.add(value); onChanged(); } else { qualifiersBuilder_.addMessage(value); } return this; } /** *
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public Builder addQualifiers( int index, build.bazel.remote.asset.v1.Qualifier value) { if (qualifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQualifiersIsMutable(); qualifiers_.add(index, value); onChanged(); } else { qualifiersBuilder_.addMessage(index, value); } return this; } /** *
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public Builder addQualifiers( build.bazel.remote.asset.v1.Qualifier.Builder builderForValue) { if (qualifiersBuilder_ == null) { ensureQualifiersIsMutable(); qualifiers_.add(builderForValue.build()); onChanged(); } else { qualifiersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public Builder addQualifiers( int index, build.bazel.remote.asset.v1.Qualifier.Builder builderForValue) { if (qualifiersBuilder_ == null) { ensureQualifiersIsMutable(); qualifiers_.add(index, builderForValue.build()); onChanged(); } else { qualifiersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public Builder addAllQualifiers( java.lang.Iterable values) { if (qualifiersBuilder_ == null) { ensureQualifiersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, qualifiers_); onChanged(); } else { qualifiersBuilder_.addAllMessages(values); } return this; } /** *
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public Builder clearQualifiers() { if (qualifiersBuilder_ == null) { qualifiers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { qualifiersBuilder_.clear(); } return this; } /** *
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public Builder removeQualifiers(int index) { if (qualifiersBuilder_ == null) { ensureQualifiersIsMutable(); qualifiers_.remove(index); onChanged(); } else { qualifiersBuilder_.remove(index); } return this; } /** *
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public build.bazel.remote.asset.v1.Qualifier.Builder getQualifiersBuilder( int index) { return getQualifiersFieldBuilder().getBuilder(index); } /** *
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public build.bazel.remote.asset.v1.QualifierOrBuilder getQualifiersOrBuilder( int index) { if (qualifiersBuilder_ == null) { return qualifiers_.get(index); } else { return qualifiersBuilder_.getMessageOrBuilder(index); } } /** *
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public java.util.List getQualifiersOrBuilderList() { if (qualifiersBuilder_ != null) { return qualifiersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(qualifiers_); } } /** *
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public build.bazel.remote.asset.v1.Qualifier.Builder addQualifiersBuilder() { return getQualifiersFieldBuilder().addBuilder( build.bazel.remote.asset.v1.Qualifier.getDefaultInstance()); } /** *
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public build.bazel.remote.asset.v1.Qualifier.Builder addQualifiersBuilder( int index) { return getQualifiersFieldBuilder().addBuilder( index, build.bazel.remote.asset.v1.Qualifier.getDefaultInstance()); } /** *
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public java.util.List getQualifiersBuilderList() { return getQualifiersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.asset.v1.Qualifier, build.bazel.remote.asset.v1.Qualifier.Builder, build.bazel.remote.asset.v1.QualifierOrBuilder> getQualifiersFieldBuilder() { if (qualifiersBuilder_ == null) { qualifiersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.asset.v1.Qualifier, build.bazel.remote.asset.v1.Qualifier.Builder, build.bazel.remote.asset.v1.QualifierOrBuilder>( qualifiers_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); qualifiers_ = null; } return qualifiersBuilder_; } private com.google.protobuf.Timestamp expireAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireAtBuilder_; /** *
     * A time after which this content should stop being returned via [FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
     * Servers *MAY* expire content early, e.g. due to storage pressure.
     * 
* * .google.protobuf.Timestamp expire_at = 4; * @return Whether the expireAt field is set. */ public boolean hasExpireAt() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * A time after which this content should stop being returned via [FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
     * Servers *MAY* expire content early, e.g. due to storage pressure.
     * 
* * .google.protobuf.Timestamp expire_at = 4; * @return The expireAt. */ public com.google.protobuf.Timestamp getExpireAt() { if (expireAtBuilder_ == null) { return expireAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireAt_; } else { return expireAtBuilder_.getMessage(); } } /** *
     * A time after which this content should stop being returned via [FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
     * Servers *MAY* expire content early, e.g. due to storage pressure.
     * 
* * .google.protobuf.Timestamp expire_at = 4; */ public Builder setExpireAt(com.google.protobuf.Timestamp value) { if (expireAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expireAt_ = value; } else { expireAtBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * A time after which this content should stop being returned via [FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
     * Servers *MAY* expire content early, e.g. due to storage pressure.
     * 
* * .google.protobuf.Timestamp expire_at = 4; */ public Builder setExpireAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (expireAtBuilder_ == null) { expireAt_ = builderForValue.build(); } else { expireAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * A time after which this content should stop being returned via [FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
     * Servers *MAY* expire content early, e.g. due to storage pressure.
     * 
* * .google.protobuf.Timestamp expire_at = 4; */ public Builder mergeExpireAt(com.google.protobuf.Timestamp value) { if (expireAtBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && expireAt_ != null && expireAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireAtBuilder().mergeFrom(value); } else { expireAt_ = value; } } else { expireAtBuilder_.mergeFrom(value); } if (expireAt_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * A time after which this content should stop being returned via [FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
     * Servers *MAY* expire content early, e.g. due to storage pressure.
     * 
* * .google.protobuf.Timestamp expire_at = 4; */ public Builder clearExpireAt() { bitField0_ = (bitField0_ & ~0x00000008); expireAt_ = null; if (expireAtBuilder_ != null) { expireAtBuilder_.dispose(); expireAtBuilder_ = null; } onChanged(); return this; } /** *
     * A time after which this content should stop being returned via [FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
     * Servers *MAY* expire content early, e.g. due to storage pressure.
     * 
* * .google.protobuf.Timestamp expire_at = 4; */ public com.google.protobuf.Timestamp.Builder getExpireAtBuilder() { bitField0_ |= 0x00000008; onChanged(); return getExpireAtFieldBuilder().getBuilder(); } /** *
     * A time after which this content should stop being returned via [FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
     * Servers *MAY* expire content early, e.g. due to storage pressure.
     * 
* * .google.protobuf.Timestamp expire_at = 4; */ public com.google.protobuf.TimestampOrBuilder getExpireAtOrBuilder() { if (expireAtBuilder_ != null) { return expireAtBuilder_.getMessageOrBuilder(); } else { return expireAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireAt_; } } /** *
     * A time after which this content should stop being returned via [FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
     * Servers *MAY* expire content early, e.g. due to storage pressure.
     * 
* * .google.protobuf.Timestamp expire_at = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getExpireAtFieldBuilder() { if (expireAtBuilder_ == null) { expireAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getExpireAt(), getParentForChildren(), isClean()); expireAt_ = null; } return expireAtBuilder_; } private build.bazel.remote.execution.v2.Digest blobDigest_; private com.google.protobuf.SingleFieldBuilderV3< build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder> blobDigestBuilder_; /** *
     * The blob to associate.
     * 
* * .build.bazel.remote.execution.v2.Digest blob_digest = 5; * @return Whether the blobDigest field is set. */ public boolean hasBlobDigest() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * The blob to associate.
     * 
* * .build.bazel.remote.execution.v2.Digest blob_digest = 5; * @return The blobDigest. */ public build.bazel.remote.execution.v2.Digest getBlobDigest() { if (blobDigestBuilder_ == null) { return blobDigest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : blobDigest_; } else { return blobDigestBuilder_.getMessage(); } } /** *
     * The blob to associate.
     * 
* * .build.bazel.remote.execution.v2.Digest blob_digest = 5; */ public Builder setBlobDigest(build.bazel.remote.execution.v2.Digest value) { if (blobDigestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } blobDigest_ = value; } else { blobDigestBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The blob to associate.
     * 
* * .build.bazel.remote.execution.v2.Digest blob_digest = 5; */ public Builder setBlobDigest( build.bazel.remote.execution.v2.Digest.Builder builderForValue) { if (blobDigestBuilder_ == null) { blobDigest_ = builderForValue.build(); } else { blobDigestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The blob to associate.
     * 
* * .build.bazel.remote.execution.v2.Digest blob_digest = 5; */ public Builder mergeBlobDigest(build.bazel.remote.execution.v2.Digest value) { if (blobDigestBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && blobDigest_ != null && blobDigest_ != build.bazel.remote.execution.v2.Digest.getDefaultInstance()) { getBlobDigestBuilder().mergeFrom(value); } else { blobDigest_ = value; } } else { blobDigestBuilder_.mergeFrom(value); } if (blobDigest_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
     * The blob to associate.
     * 
* * .build.bazel.remote.execution.v2.Digest blob_digest = 5; */ public Builder clearBlobDigest() { bitField0_ = (bitField0_ & ~0x00000010); blobDigest_ = null; if (blobDigestBuilder_ != null) { blobDigestBuilder_.dispose(); blobDigestBuilder_ = null; } onChanged(); return this; } /** *
     * The blob to associate.
     * 
* * .build.bazel.remote.execution.v2.Digest blob_digest = 5; */ public build.bazel.remote.execution.v2.Digest.Builder getBlobDigestBuilder() { bitField0_ |= 0x00000010; onChanged(); return getBlobDigestFieldBuilder().getBuilder(); } /** *
     * The blob to associate.
     * 
* * .build.bazel.remote.execution.v2.Digest blob_digest = 5; */ public build.bazel.remote.execution.v2.DigestOrBuilder getBlobDigestOrBuilder() { if (blobDigestBuilder_ != null) { return blobDigestBuilder_.getMessageOrBuilder(); } else { return blobDigest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : blobDigest_; } } /** *
     * The blob to associate.
     * 
* * .build.bazel.remote.execution.v2.Digest blob_digest = 5; */ private com.google.protobuf.SingleFieldBuilderV3< build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder> getBlobDigestFieldBuilder() { if (blobDigestBuilder_ == null) { blobDigestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder>( getBlobDigest(), getParentForChildren(), isClean()); blobDigest_ = null; } return blobDigestBuilder_; } private java.util.List referencesBlobs_ = java.util.Collections.emptyList(); private void ensureReferencesBlobsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { referencesBlobs_ = new java.util.ArrayList(referencesBlobs_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder> referencesBlobsBuilder_; /** *
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ public java.util.List getReferencesBlobsList() { if (referencesBlobsBuilder_ == null) { return java.util.Collections.unmodifiableList(referencesBlobs_); } else { return referencesBlobsBuilder_.getMessageList(); } } /** *
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ public int getReferencesBlobsCount() { if (referencesBlobsBuilder_ == null) { return referencesBlobs_.size(); } else { return referencesBlobsBuilder_.getCount(); } } /** *
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ public build.bazel.remote.execution.v2.Digest getReferencesBlobs(int index) { if (referencesBlobsBuilder_ == null) { return referencesBlobs_.get(index); } else { return referencesBlobsBuilder_.getMessage(index); } } /** *
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ public Builder setReferencesBlobs( int index, build.bazel.remote.execution.v2.Digest value) { if (referencesBlobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReferencesBlobsIsMutable(); referencesBlobs_.set(index, value); onChanged(); } else { referencesBlobsBuilder_.setMessage(index, value); } return this; } /** *
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ public Builder setReferencesBlobs( int index, build.bazel.remote.execution.v2.Digest.Builder builderForValue) { if (referencesBlobsBuilder_ == null) { ensureReferencesBlobsIsMutable(); referencesBlobs_.set(index, builderForValue.build()); onChanged(); } else { referencesBlobsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ public Builder addReferencesBlobs(build.bazel.remote.execution.v2.Digest value) { if (referencesBlobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReferencesBlobsIsMutable(); referencesBlobs_.add(value); onChanged(); } else { referencesBlobsBuilder_.addMessage(value); } return this; } /** *
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ public Builder addReferencesBlobs( int index, build.bazel.remote.execution.v2.Digest value) { if (referencesBlobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReferencesBlobsIsMutable(); referencesBlobs_.add(index, value); onChanged(); } else { referencesBlobsBuilder_.addMessage(index, value); } return this; } /** *
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ public Builder addReferencesBlobs( build.bazel.remote.execution.v2.Digest.Builder builderForValue) { if (referencesBlobsBuilder_ == null) { ensureReferencesBlobsIsMutable(); referencesBlobs_.add(builderForValue.build()); onChanged(); } else { referencesBlobsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ public Builder addReferencesBlobs( int index, build.bazel.remote.execution.v2.Digest.Builder builderForValue) { if (referencesBlobsBuilder_ == null) { ensureReferencesBlobsIsMutable(); referencesBlobs_.add(index, builderForValue.build()); onChanged(); } else { referencesBlobsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ public Builder addAllReferencesBlobs( java.lang.Iterable values) { if (referencesBlobsBuilder_ == null) { ensureReferencesBlobsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, referencesBlobs_); onChanged(); } else { referencesBlobsBuilder_.addAllMessages(values); } return this; } /** *
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ public Builder clearReferencesBlobs() { if (referencesBlobsBuilder_ == null) { referencesBlobs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { referencesBlobsBuilder_.clear(); } return this; } /** *
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ public Builder removeReferencesBlobs(int index) { if (referencesBlobsBuilder_ == null) { ensureReferencesBlobsIsMutable(); referencesBlobs_.remove(index); onChanged(); } else { referencesBlobsBuilder_.remove(index); } return this; } /** *
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ public build.bazel.remote.execution.v2.Digest.Builder getReferencesBlobsBuilder( int index) { return getReferencesBlobsFieldBuilder().getBuilder(index); } /** *
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ public build.bazel.remote.execution.v2.DigestOrBuilder getReferencesBlobsOrBuilder( int index) { if (referencesBlobsBuilder_ == null) { return referencesBlobs_.get(index); } else { return referencesBlobsBuilder_.getMessageOrBuilder(index); } } /** *
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ public java.util.List getReferencesBlobsOrBuilderList() { if (referencesBlobsBuilder_ != null) { return referencesBlobsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(referencesBlobs_); } } /** *
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ public build.bazel.remote.execution.v2.Digest.Builder addReferencesBlobsBuilder() { return getReferencesBlobsFieldBuilder().addBuilder( build.bazel.remote.execution.v2.Digest.getDefaultInstance()); } /** *
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ public build.bazel.remote.execution.v2.Digest.Builder addReferencesBlobsBuilder( int index) { return getReferencesBlobsFieldBuilder().addBuilder( index, build.bazel.remote.execution.v2.Digest.getDefaultInstance()); } /** *
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * 
* * repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6; */ public java.util.List getReferencesBlobsBuilderList() { return getReferencesBlobsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder> getReferencesBlobsFieldBuilder() { if (referencesBlobsBuilder_ == null) { referencesBlobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder>( referencesBlobs_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); referencesBlobs_ = null; } return referencesBlobsBuilder_; } private java.util.List referencesDirectories_ = java.util.Collections.emptyList(); private void ensureReferencesDirectoriesIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { referencesDirectories_ = new java.util.ArrayList(referencesDirectories_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder> referencesDirectoriesBuilder_; /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ public java.util.List getReferencesDirectoriesList() { if (referencesDirectoriesBuilder_ == null) { return java.util.Collections.unmodifiableList(referencesDirectories_); } else { return referencesDirectoriesBuilder_.getMessageList(); } } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ public int getReferencesDirectoriesCount() { if (referencesDirectoriesBuilder_ == null) { return referencesDirectories_.size(); } else { return referencesDirectoriesBuilder_.getCount(); } } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ public build.bazel.remote.execution.v2.Digest getReferencesDirectories(int index) { if (referencesDirectoriesBuilder_ == null) { return referencesDirectories_.get(index); } else { return referencesDirectoriesBuilder_.getMessage(index); } } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ public Builder setReferencesDirectories( int index, build.bazel.remote.execution.v2.Digest value) { if (referencesDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReferencesDirectoriesIsMutable(); referencesDirectories_.set(index, value); onChanged(); } else { referencesDirectoriesBuilder_.setMessage(index, value); } return this; } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ public Builder setReferencesDirectories( int index, build.bazel.remote.execution.v2.Digest.Builder builderForValue) { if (referencesDirectoriesBuilder_ == null) { ensureReferencesDirectoriesIsMutable(); referencesDirectories_.set(index, builderForValue.build()); onChanged(); } else { referencesDirectoriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ public Builder addReferencesDirectories(build.bazel.remote.execution.v2.Digest value) { if (referencesDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReferencesDirectoriesIsMutable(); referencesDirectories_.add(value); onChanged(); } else { referencesDirectoriesBuilder_.addMessage(value); } return this; } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ public Builder addReferencesDirectories( int index, build.bazel.remote.execution.v2.Digest value) { if (referencesDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReferencesDirectoriesIsMutable(); referencesDirectories_.add(index, value); onChanged(); } else { referencesDirectoriesBuilder_.addMessage(index, value); } return this; } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ public Builder addReferencesDirectories( build.bazel.remote.execution.v2.Digest.Builder builderForValue) { if (referencesDirectoriesBuilder_ == null) { ensureReferencesDirectoriesIsMutable(); referencesDirectories_.add(builderForValue.build()); onChanged(); } else { referencesDirectoriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ public Builder addReferencesDirectories( int index, build.bazel.remote.execution.v2.Digest.Builder builderForValue) { if (referencesDirectoriesBuilder_ == null) { ensureReferencesDirectoriesIsMutable(); referencesDirectories_.add(index, builderForValue.build()); onChanged(); } else { referencesDirectoriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ public Builder addAllReferencesDirectories( java.lang.Iterable values) { if (referencesDirectoriesBuilder_ == null) { ensureReferencesDirectoriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, referencesDirectories_); onChanged(); } else { referencesDirectoriesBuilder_.addAllMessages(values); } return this; } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ public Builder clearReferencesDirectories() { if (referencesDirectoriesBuilder_ == null) { referencesDirectories_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { referencesDirectoriesBuilder_.clear(); } return this; } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ public Builder removeReferencesDirectories(int index) { if (referencesDirectoriesBuilder_ == null) { ensureReferencesDirectoriesIsMutable(); referencesDirectories_.remove(index); onChanged(); } else { referencesDirectoriesBuilder_.remove(index); } return this; } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ public build.bazel.remote.execution.v2.Digest.Builder getReferencesDirectoriesBuilder( int index) { return getReferencesDirectoriesFieldBuilder().getBuilder(index); } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ public build.bazel.remote.execution.v2.DigestOrBuilder getReferencesDirectoriesOrBuilder( int index) { if (referencesDirectoriesBuilder_ == null) { return referencesDirectories_.get(index); } else { return referencesDirectoriesBuilder_.getMessageOrBuilder(index); } } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ public java.util.List getReferencesDirectoriesOrBuilderList() { if (referencesDirectoriesBuilder_ != null) { return referencesDirectoriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(referencesDirectories_); } } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ public build.bazel.remote.execution.v2.Digest.Builder addReferencesDirectoriesBuilder() { return getReferencesDirectoriesFieldBuilder().addBuilder( build.bazel.remote.execution.v2.Digest.getDefaultInstance()); } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ public build.bazel.remote.execution.v2.Digest.Builder addReferencesDirectoriesBuilder( int index) { return getReferencesDirectoriesFieldBuilder().addBuilder( index, build.bazel.remote.execution.v2.Digest.getDefaultInstance()); } /** * repeated .build.bazel.remote.execution.v2.Digest references_directories = 7; */ public java.util.List getReferencesDirectoriesBuilderList() { return getReferencesDirectoriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder> getReferencesDirectoriesFieldBuilder() { if (referencesDirectoriesBuilder_ == null) { referencesDirectoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder>( referencesDirectories_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); referencesDirectories_ = null; } return referencesDirectoriesBuilder_; } @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:build.bazel.remote.asset.v1.PushBlobRequest) } // @@protoc_insertion_point(class_scope:build.bazel.remote.asset.v1.PushBlobRequest) private static final build.bazel.remote.asset.v1.PushBlobRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new build.bazel.remote.asset.v1.PushBlobRequest(); } public static build.bazel.remote.asset.v1.PushBlobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PushBlobRequest 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 build.bazel.remote.asset.v1.PushBlobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy