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

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

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

package build.bazel.remote.asset.v1;

/**
 * 
 * A request message for
 * [Fetch.FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
 * 
* * Protobuf type {@code build.bazel.remote.asset.v1.FetchBlobRequest} */ public final class FetchBlobRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:build.bazel.remote.asset.v1.FetchBlobRequest) FetchBlobRequestOrBuilder { private static final long serialVersionUID = 0L; // Use FetchBlobRequest.newBuilder() to construct. private FetchBlobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FetchBlobRequest() { instanceName_ = ""; uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); qualifiers_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FetchBlobRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.asset.v1.RemoteAssetProto.internal_static_build_bazel_remote_asset_v1_FetchBlobRequest_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_FetchBlobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.asset.v1.FetchBlobRequest.class, build.bazel.remote.asset.v1.FetchBlobRequest.Builder.class); } 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 TIMEOUT_FIELD_NUMBER = 2; private com.google.protobuf.Duration timeout_; /** *
   * The timeout for the underlying fetch, if content needs to be retrieved from
   * origin.
   *
   * If unset, the server *MAY* apply an implementation-defined timeout.
   *
   * If set, and the user-provided timeout exceeds the RPC deadline, the server
   * *SHOULD* keep the fetch going after the RPC completes, to be made
   * available for future Fetch calls. The server may also enforce (via clamping
   * and/or an INVALID_ARGUMENT error) implementation-defined minimum and
   * maximum timeout values.
   *
   * If this timeout is exceeded on an attempt to retrieve content from origin
   * the client will receive DEADLINE_EXCEEDED in [FetchBlobResponse.status].
   * 
* * .google.protobuf.Duration timeout = 2; * @return Whether the timeout field is set. */ @java.lang.Override public boolean hasTimeout() { return timeout_ != null; } /** *
   * The timeout for the underlying fetch, if content needs to be retrieved from
   * origin.
   *
   * If unset, the server *MAY* apply an implementation-defined timeout.
   *
   * If set, and the user-provided timeout exceeds the RPC deadline, the server
   * *SHOULD* keep the fetch going after the RPC completes, to be made
   * available for future Fetch calls. The server may also enforce (via clamping
   * and/or an INVALID_ARGUMENT error) implementation-defined minimum and
   * maximum timeout values.
   *
   * If this timeout is exceeded on an attempt to retrieve content from origin
   * the client will receive DEADLINE_EXCEEDED in [FetchBlobResponse.status].
   * 
* * .google.protobuf.Duration timeout = 2; * @return The timeout. */ @java.lang.Override public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** *
   * The timeout for the underlying fetch, if content needs to be retrieved from
   * origin.
   *
   * If unset, the server *MAY* apply an implementation-defined timeout.
   *
   * If set, and the user-provided timeout exceeds the RPC deadline, the server
   * *SHOULD* keep the fetch going after the RPC completes, to be made
   * available for future Fetch calls. The server may also enforce (via clamping
   * and/or an INVALID_ARGUMENT error) implementation-defined minimum and
   * maximum timeout values.
   *
   * If this timeout is exceeded on an attempt to retrieve content from origin
   * the client will receive DEADLINE_EXCEEDED in [FetchBlobResponse.status].
   * 
* * .google.protobuf.Duration timeout = 2; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } public static final int OLDEST_CONTENT_ACCEPTED_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp oldestContentAccepted_; /** *
   * The oldest content the client is willing to accept, as measured from the
   * time it was Push'd or when the underlying retrieval from origin was 
   * started.
   * Upon retries of Fetch requests that cannot be completed within a single
   * RPC, clients *SHOULD* provide the same value for subsequent requests as the
   * original, to simplify combining the request with the previous attempt.
   *
   * If unset, the client *SHOULD* accept content of any age.
   * 
* * .google.protobuf.Timestamp oldest_content_accepted = 3; * @return Whether the oldestContentAccepted field is set. */ @java.lang.Override public boolean hasOldestContentAccepted() { return oldestContentAccepted_ != null; } /** *
   * The oldest content the client is willing to accept, as measured from the
   * time it was Push'd or when the underlying retrieval from origin was 
   * started.
   * Upon retries of Fetch requests that cannot be completed within a single
   * RPC, clients *SHOULD* provide the same value for subsequent requests as the
   * original, to simplify combining the request with the previous attempt.
   *
   * If unset, the client *SHOULD* accept content of any age.
   * 
* * .google.protobuf.Timestamp oldest_content_accepted = 3; * @return The oldestContentAccepted. */ @java.lang.Override public com.google.protobuf.Timestamp getOldestContentAccepted() { return oldestContentAccepted_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : oldestContentAccepted_; } /** *
   * The oldest content the client is willing to accept, as measured from the
   * time it was Push'd or when the underlying retrieval from origin was 
   * started.
   * Upon retries of Fetch requests that cannot be completed within a single
   * RPC, clients *SHOULD* provide the same value for subsequent requests as the
   * original, to simplify combining the request with the previous attempt.
   *
   * If unset, the client *SHOULD* accept content of any age.
   * 
* * .google.protobuf.Timestamp oldest_content_accepted = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getOldestContentAcceptedOrBuilder() { return oldestContentAccepted_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : oldestContentAccepted_; } public static final int URIS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * The URI(s) of the content to fetch. These may be resources that the server
   * can directly fetch from origin, in which case multiple URIs *SHOULD*
   * represent the same content available at different locations (such as an
   * origin and secondary mirrors). These may also be URIs for content known to
   * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
   * service.
   *
   * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
   * supplied URIs.
   * 
* * repeated string uris = 4; * @return A list containing the uris. */ public com.google.protobuf.ProtocolStringList getUrisList() { return uris_; } /** *
   * The URI(s) of the content to fetch. These may be resources that the server
   * can directly fetch from origin, in which case multiple URIs *SHOULD*
   * represent the same content available at different locations (such as an
   * origin and secondary mirrors). These may also be URIs for content known to
   * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
   * service.
   *
   * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
   * supplied URIs.
   * 
* * repeated string uris = 4; * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** *
   * The URI(s) of the content to fetch. These may be resources that the server
   * can directly fetch from origin, in which case multiple URIs *SHOULD*
   * represent the same content available at different locations (such as an
   * origin and secondary mirrors). These may also be URIs for content known to
   * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
   * service.
   *
   * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
   * supplied URIs.
   * 
* * repeated string uris = 4; * @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 fetch. These may be resources that the server
   * can directly fetch from origin, in which case multiple URIs *SHOULD*
   * represent the same content available at different locations (such as an
   * origin and secondary mirrors). These may also be URIs for content known to
   * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
   * service.
   *
   * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
   * supplied URIs.
   * 
* * repeated string uris = 4; * @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 = 5; @SuppressWarnings("serial") private java.util.List qualifiers_; /** *
   * Qualifiers sub-specifying the content to fetch - see comments on
   * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
   * The same qualifiers apply to all URIs.
   *
   * Specified qualifier names *MUST* be unique.
   * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ @java.lang.Override public java.util.List getQualifiersList() { return qualifiers_; } /** *
   * Qualifiers sub-specifying the content to fetch - see comments on
   * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
   * The same qualifiers apply to all URIs.
   *
   * Specified qualifier names *MUST* be unique.
   * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ @java.lang.Override public java.util.List getQualifiersOrBuilderList() { return qualifiers_; } /** *
   * Qualifiers sub-specifying the content to fetch - see comments on
   * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
   * The same qualifiers apply to all URIs.
   *
   * Specified qualifier names *MUST* be unique.
   * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ @java.lang.Override public int getQualifiersCount() { return qualifiers_.size(); } /** *
   * Qualifiers sub-specifying the content to fetch - see comments on
   * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
   * The same qualifiers apply to all URIs.
   *
   * Specified qualifier names *MUST* be unique.
   * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ @java.lang.Override public build.bazel.remote.asset.v1.Qualifier getQualifiers(int index) { return qualifiers_.get(index); } /** *
   * Qualifiers sub-specifying the content to fetch - see comments on
   * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
   * The same qualifiers apply to all URIs.
   *
   * Specified qualifier names *MUST* be unique.
   * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ @java.lang.Override public build.bazel.remote.asset.v1.QualifierOrBuilder getQualifiersOrBuilder( int index) { return qualifiers_.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_); } if (timeout_ != null) { output.writeMessage(2, getTimeout()); } if (oldestContentAccepted_ != null) { output.writeMessage(3, getOldestContentAccepted()); } for (int i = 0; i < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, uris_.getRaw(i)); } for (int i = 0; i < qualifiers_.size(); i++) { output.writeMessage(5, qualifiers_.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_); } if (timeout_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTimeout()); } if (oldestContentAccepted_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getOldestContentAccepted()); } { 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(5, qualifiers_.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.FetchBlobRequest)) { return super.equals(obj); } build.bazel.remote.asset.v1.FetchBlobRequest other = (build.bazel.remote.asset.v1.FetchBlobRequest) obj; if (!getInstanceName() .equals(other.getInstanceName())) return false; if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { if (!getTimeout() .equals(other.getTimeout())) return false; } if (hasOldestContentAccepted() != other.hasOldestContentAccepted()) return false; if (hasOldestContentAccepted()) { if (!getOldestContentAccepted() .equals(other.getOldestContentAccepted())) return false; } if (!getUrisList() .equals(other.getUrisList())) return false; if (!getQualifiersList() .equals(other.getQualifiersList())) 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 (hasTimeout()) { hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getTimeout().hashCode(); } if (hasOldestContentAccepted()) { hash = (37 * hash) + OLDEST_CONTENT_ACCEPTED_FIELD_NUMBER; hash = (53 * hash) + getOldestContentAccepted().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(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static build.bazel.remote.asset.v1.FetchBlobRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.asset.v1.FetchBlobRequest 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.FetchBlobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.asset.v1.FetchBlobRequest 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.FetchBlobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.asset.v1.FetchBlobRequest 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.FetchBlobRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static build.bazel.remote.asset.v1.FetchBlobRequest 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.FetchBlobRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static build.bazel.remote.asset.v1.FetchBlobRequest 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.FetchBlobRequest 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.FetchBlobRequest 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.FetchBlobRequest 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
   * [Fetch.FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
   * 
* * Protobuf type {@code build.bazel.remote.asset.v1.FetchBlobRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:build.bazel.remote.asset.v1.FetchBlobRequest) build.bazel.remote.asset.v1.FetchBlobRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.asset.v1.RemoteAssetProto.internal_static_build_bazel_remote_asset_v1_FetchBlobRequest_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_FetchBlobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.asset.v1.FetchBlobRequest.class, build.bazel.remote.asset.v1.FetchBlobRequest.Builder.class); } // Construct using build.bazel.remote.asset.v1.FetchBlobRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; instanceName_ = ""; timeout_ = null; if (timeoutBuilder_ != null) { timeoutBuilder_.dispose(); timeoutBuilder_ = null; } oldestContentAccepted_ = null; if (oldestContentAcceptedBuilder_ != null) { oldestContentAcceptedBuilder_.dispose(); oldestContentAcceptedBuilder_ = null; } uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (qualifiersBuilder_ == null) { qualifiers_ = java.util.Collections.emptyList(); } else { qualifiers_ = null; qualifiersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); 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_FetchBlobRequest_descriptor; } @java.lang.Override public build.bazel.remote.asset.v1.FetchBlobRequest getDefaultInstanceForType() { return build.bazel.remote.asset.v1.FetchBlobRequest.getDefaultInstance(); } @java.lang.Override public build.bazel.remote.asset.v1.FetchBlobRequest build() { build.bazel.remote.asset.v1.FetchBlobRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public build.bazel.remote.asset.v1.FetchBlobRequest buildPartial() { build.bazel.remote.asset.v1.FetchBlobRequest result = new build.bazel.remote.asset.v1.FetchBlobRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(build.bazel.remote.asset.v1.FetchBlobRequest result) { if (qualifiersBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { qualifiers_ = java.util.Collections.unmodifiableList(qualifiers_); bitField0_ = (bitField0_ & ~0x00000010); } result.qualifiers_ = qualifiers_; } else { result.qualifiers_ = qualifiersBuilder_.build(); } } private void buildPartial0(build.bazel.remote.asset.v1.FetchBlobRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.instanceName_ = instanceName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.timeout_ = timeoutBuilder_ == null ? timeout_ : timeoutBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.oldestContentAccepted_ = oldestContentAcceptedBuilder_ == null ? oldestContentAccepted_ : oldestContentAcceptedBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { uris_.makeImmutable(); result.uris_ = uris_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.bazel.remote.asset.v1.FetchBlobRequest) { return mergeFrom((build.bazel.remote.asset.v1.FetchBlobRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(build.bazel.remote.asset.v1.FetchBlobRequest other) { if (other == build.bazel.remote.asset.v1.FetchBlobRequest.getDefaultInstance()) return this; if (!other.getInstanceName().isEmpty()) { instanceName_ = other.instanceName_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasTimeout()) { mergeTimeout(other.getTimeout()); } if (other.hasOldestContentAccepted()) { mergeOldestContentAccepted(other.getOldestContentAccepted()); } if (!other.uris_.isEmpty()) { if (uris_.isEmpty()) { uris_ = other.uris_; bitField0_ |= 0x00000008; } else { ensureUrisIsMutable(); uris_.addAll(other.uris_); } onChanged(); } if (qualifiersBuilder_ == null) { if (!other.qualifiers_.isEmpty()) { if (qualifiers_.isEmpty()) { qualifiers_ = other.qualifiers_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureQualifiersIsMutable(); qualifiers_.addAll(other.qualifiers_); } onChanged(); } } else { if (!other.qualifiers_.isEmpty()) { if (qualifiersBuilder_.isEmpty()) { qualifiersBuilder_.dispose(); qualifiersBuilder_ = null; qualifiers_ = other.qualifiers_; bitField0_ = (bitField0_ & ~0x00000010); qualifiersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getQualifiersFieldBuilder() : null; } else { qualifiersBuilder_.addAllMessages(other.qualifiers_); } } } 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: { input.readMessage( getTimeoutFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getOldestContentAcceptedFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureUrisIsMutable(); uris_.add(s); break; } // case 34 case 42: { 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 42 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.Duration timeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; /** *
     * The timeout for the underlying fetch, if content needs to be retrieved from
     * origin.
     *
     * If unset, the server *MAY* apply an implementation-defined timeout.
     *
     * If set, and the user-provided timeout exceeds the RPC deadline, the server
     * *SHOULD* keep the fetch going after the RPC completes, to be made
     * available for future Fetch calls. The server may also enforce (via clamping
     * and/or an INVALID_ARGUMENT error) implementation-defined minimum and
     * maximum timeout values.
     *
     * If this timeout is exceeded on an attempt to retrieve content from origin
     * the client will receive DEADLINE_EXCEEDED in [FetchBlobResponse.status].
     * 
* * .google.protobuf.Duration timeout = 2; * @return Whether the timeout field is set. */ public boolean hasTimeout() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The timeout for the underlying fetch, if content needs to be retrieved from
     * origin.
     *
     * If unset, the server *MAY* apply an implementation-defined timeout.
     *
     * If set, and the user-provided timeout exceeds the RPC deadline, the server
     * *SHOULD* keep the fetch going after the RPC completes, to be made
     * available for future Fetch calls. The server may also enforce (via clamping
     * and/or an INVALID_ARGUMENT error) implementation-defined minimum and
     * maximum timeout values.
     *
     * If this timeout is exceeded on an attempt to retrieve content from origin
     * the client will receive DEADLINE_EXCEEDED in [FetchBlobResponse.status].
     * 
* * .google.protobuf.Duration timeout = 2; * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { if (timeoutBuilder_ == null) { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } else { return timeoutBuilder_.getMessage(); } } /** *
     * The timeout for the underlying fetch, if content needs to be retrieved from
     * origin.
     *
     * If unset, the server *MAY* apply an implementation-defined timeout.
     *
     * If set, and the user-provided timeout exceeds the RPC deadline, the server
     * *SHOULD* keep the fetch going after the RPC completes, to be made
     * available for future Fetch calls. The server may also enforce (via clamping
     * and/or an INVALID_ARGUMENT error) implementation-defined minimum and
     * maximum timeout values.
     *
     * If this timeout is exceeded on an attempt to retrieve content from origin
     * the client will receive DEADLINE_EXCEEDED in [FetchBlobResponse.status].
     * 
* * .google.protobuf.Duration timeout = 2; */ public Builder setTimeout(com.google.protobuf.Duration value) { if (timeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timeout_ = value; } else { timeoutBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The timeout for the underlying fetch, if content needs to be retrieved from
     * origin.
     *
     * If unset, the server *MAY* apply an implementation-defined timeout.
     *
     * If set, and the user-provided timeout exceeds the RPC deadline, the server
     * *SHOULD* keep the fetch going after the RPC completes, to be made
     * available for future Fetch calls. The server may also enforce (via clamping
     * and/or an INVALID_ARGUMENT error) implementation-defined minimum and
     * maximum timeout values.
     *
     * If this timeout is exceeded on an attempt to retrieve content from origin
     * the client will receive DEADLINE_EXCEEDED in [FetchBlobResponse.status].
     * 
* * .google.protobuf.Duration timeout = 2; */ public Builder setTimeout( com.google.protobuf.Duration.Builder builderForValue) { if (timeoutBuilder_ == null) { timeout_ = builderForValue.build(); } else { timeoutBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The timeout for the underlying fetch, if content needs to be retrieved from
     * origin.
     *
     * If unset, the server *MAY* apply an implementation-defined timeout.
     *
     * If set, and the user-provided timeout exceeds the RPC deadline, the server
     * *SHOULD* keep the fetch going after the RPC completes, to be made
     * available for future Fetch calls. The server may also enforce (via clamping
     * and/or an INVALID_ARGUMENT error) implementation-defined minimum and
     * maximum timeout values.
     *
     * If this timeout is exceeded on an attempt to retrieve content from origin
     * the client will receive DEADLINE_EXCEEDED in [FetchBlobResponse.status].
     * 
* * .google.protobuf.Duration timeout = 2; */ public Builder mergeTimeout(com.google.protobuf.Duration value) { if (timeoutBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && timeout_ != null && timeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getTimeoutBuilder().mergeFrom(value); } else { timeout_ = value; } } else { timeoutBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The timeout for the underlying fetch, if content needs to be retrieved from
     * origin.
     *
     * If unset, the server *MAY* apply an implementation-defined timeout.
     *
     * If set, and the user-provided timeout exceeds the RPC deadline, the server
     * *SHOULD* keep the fetch going after the RPC completes, to be made
     * available for future Fetch calls. The server may also enforce (via clamping
     * and/or an INVALID_ARGUMENT error) implementation-defined minimum and
     * maximum timeout values.
     *
     * If this timeout is exceeded on an attempt to retrieve content from origin
     * the client will receive DEADLINE_EXCEEDED in [FetchBlobResponse.status].
     * 
* * .google.protobuf.Duration timeout = 2; */ public Builder clearTimeout() { bitField0_ = (bitField0_ & ~0x00000002); timeout_ = null; if (timeoutBuilder_ != null) { timeoutBuilder_.dispose(); timeoutBuilder_ = null; } onChanged(); return this; } /** *
     * The timeout for the underlying fetch, if content needs to be retrieved from
     * origin.
     *
     * If unset, the server *MAY* apply an implementation-defined timeout.
     *
     * If set, and the user-provided timeout exceeds the RPC deadline, the server
     * *SHOULD* keep the fetch going after the RPC completes, to be made
     * available for future Fetch calls. The server may also enforce (via clamping
     * and/or an INVALID_ARGUMENT error) implementation-defined minimum and
     * maximum timeout values.
     *
     * If this timeout is exceeded on an attempt to retrieve content from origin
     * the client will receive DEADLINE_EXCEEDED in [FetchBlobResponse.status].
     * 
* * .google.protobuf.Duration timeout = 2; */ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTimeoutFieldBuilder().getBuilder(); } /** *
     * The timeout for the underlying fetch, if content needs to be retrieved from
     * origin.
     *
     * If unset, the server *MAY* apply an implementation-defined timeout.
     *
     * If set, and the user-provided timeout exceeds the RPC deadline, the server
     * *SHOULD* keep the fetch going after the RPC completes, to be made
     * available for future Fetch calls. The server may also enforce (via clamping
     * and/or an INVALID_ARGUMENT error) implementation-defined minimum and
     * maximum timeout values.
     *
     * If this timeout is exceeded on an attempt to retrieve content from origin
     * the client will receive DEADLINE_EXCEEDED in [FetchBlobResponse.status].
     * 
* * .google.protobuf.Duration timeout = 2; */ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { if (timeoutBuilder_ != null) { return timeoutBuilder_.getMessageOrBuilder(); } else { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } } /** *
     * The timeout for the underlying fetch, if content needs to be retrieved from
     * origin.
     *
     * If unset, the server *MAY* apply an implementation-defined timeout.
     *
     * If set, and the user-provided timeout exceeds the RPC deadline, the server
     * *SHOULD* keep the fetch going after the RPC completes, to be made
     * available for future Fetch calls. The server may also enforce (via clamping
     * and/or an INVALID_ARGUMENT error) implementation-defined minimum and
     * maximum timeout values.
     *
     * If this timeout is exceeded on an attempt to retrieve content from origin
     * the client will receive DEADLINE_EXCEEDED in [FetchBlobResponse.status].
     * 
* * .google.protobuf.Duration timeout = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getTimeoutFieldBuilder() { if (timeoutBuilder_ == null) { timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getTimeout(), getParentForChildren(), isClean()); timeout_ = null; } return timeoutBuilder_; } private com.google.protobuf.Timestamp oldestContentAccepted_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> oldestContentAcceptedBuilder_; /** *
     * The oldest content the client is willing to accept, as measured from the
     * time it was Push'd or when the underlying retrieval from origin was 
     * started.
     * Upon retries of Fetch requests that cannot be completed within a single
     * RPC, clients *SHOULD* provide the same value for subsequent requests as the
     * original, to simplify combining the request with the previous attempt.
     *
     * If unset, the client *SHOULD* accept content of any age.
     * 
* * .google.protobuf.Timestamp oldest_content_accepted = 3; * @return Whether the oldestContentAccepted field is set. */ public boolean hasOldestContentAccepted() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The oldest content the client is willing to accept, as measured from the
     * time it was Push'd or when the underlying retrieval from origin was 
     * started.
     * Upon retries of Fetch requests that cannot be completed within a single
     * RPC, clients *SHOULD* provide the same value for subsequent requests as the
     * original, to simplify combining the request with the previous attempt.
     *
     * If unset, the client *SHOULD* accept content of any age.
     * 
* * .google.protobuf.Timestamp oldest_content_accepted = 3; * @return The oldestContentAccepted. */ public com.google.protobuf.Timestamp getOldestContentAccepted() { if (oldestContentAcceptedBuilder_ == null) { return oldestContentAccepted_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : oldestContentAccepted_; } else { return oldestContentAcceptedBuilder_.getMessage(); } } /** *
     * The oldest content the client is willing to accept, as measured from the
     * time it was Push'd or when the underlying retrieval from origin was 
     * started.
     * Upon retries of Fetch requests that cannot be completed within a single
     * RPC, clients *SHOULD* provide the same value for subsequent requests as the
     * original, to simplify combining the request with the previous attempt.
     *
     * If unset, the client *SHOULD* accept content of any age.
     * 
* * .google.protobuf.Timestamp oldest_content_accepted = 3; */ public Builder setOldestContentAccepted(com.google.protobuf.Timestamp value) { if (oldestContentAcceptedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } oldestContentAccepted_ = value; } else { oldestContentAcceptedBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The oldest content the client is willing to accept, as measured from the
     * time it was Push'd or when the underlying retrieval from origin was 
     * started.
     * Upon retries of Fetch requests that cannot be completed within a single
     * RPC, clients *SHOULD* provide the same value for subsequent requests as the
     * original, to simplify combining the request with the previous attempt.
     *
     * If unset, the client *SHOULD* accept content of any age.
     * 
* * .google.protobuf.Timestamp oldest_content_accepted = 3; */ public Builder setOldestContentAccepted( com.google.protobuf.Timestamp.Builder builderForValue) { if (oldestContentAcceptedBuilder_ == null) { oldestContentAccepted_ = builderForValue.build(); } else { oldestContentAcceptedBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The oldest content the client is willing to accept, as measured from the
     * time it was Push'd or when the underlying retrieval from origin was 
     * started.
     * Upon retries of Fetch requests that cannot be completed within a single
     * RPC, clients *SHOULD* provide the same value for subsequent requests as the
     * original, to simplify combining the request with the previous attempt.
     *
     * If unset, the client *SHOULD* accept content of any age.
     * 
* * .google.protobuf.Timestamp oldest_content_accepted = 3; */ public Builder mergeOldestContentAccepted(com.google.protobuf.Timestamp value) { if (oldestContentAcceptedBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && oldestContentAccepted_ != null && oldestContentAccepted_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getOldestContentAcceptedBuilder().mergeFrom(value); } else { oldestContentAccepted_ = value; } } else { oldestContentAcceptedBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The oldest content the client is willing to accept, as measured from the
     * time it was Push'd or when the underlying retrieval from origin was 
     * started.
     * Upon retries of Fetch requests that cannot be completed within a single
     * RPC, clients *SHOULD* provide the same value for subsequent requests as the
     * original, to simplify combining the request with the previous attempt.
     *
     * If unset, the client *SHOULD* accept content of any age.
     * 
* * .google.protobuf.Timestamp oldest_content_accepted = 3; */ public Builder clearOldestContentAccepted() { bitField0_ = (bitField0_ & ~0x00000004); oldestContentAccepted_ = null; if (oldestContentAcceptedBuilder_ != null) { oldestContentAcceptedBuilder_.dispose(); oldestContentAcceptedBuilder_ = null; } onChanged(); return this; } /** *
     * The oldest content the client is willing to accept, as measured from the
     * time it was Push'd or when the underlying retrieval from origin was 
     * started.
     * Upon retries of Fetch requests that cannot be completed within a single
     * RPC, clients *SHOULD* provide the same value for subsequent requests as the
     * original, to simplify combining the request with the previous attempt.
     *
     * If unset, the client *SHOULD* accept content of any age.
     * 
* * .google.protobuf.Timestamp oldest_content_accepted = 3; */ public com.google.protobuf.Timestamp.Builder getOldestContentAcceptedBuilder() { bitField0_ |= 0x00000004; onChanged(); return getOldestContentAcceptedFieldBuilder().getBuilder(); } /** *
     * The oldest content the client is willing to accept, as measured from the
     * time it was Push'd or when the underlying retrieval from origin was 
     * started.
     * Upon retries of Fetch requests that cannot be completed within a single
     * RPC, clients *SHOULD* provide the same value for subsequent requests as the
     * original, to simplify combining the request with the previous attempt.
     *
     * If unset, the client *SHOULD* accept content of any age.
     * 
* * .google.protobuf.Timestamp oldest_content_accepted = 3; */ public com.google.protobuf.TimestampOrBuilder getOldestContentAcceptedOrBuilder() { if (oldestContentAcceptedBuilder_ != null) { return oldestContentAcceptedBuilder_.getMessageOrBuilder(); } else { return oldestContentAccepted_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : oldestContentAccepted_; } } /** *
     * The oldest content the client is willing to accept, as measured from the
     * time it was Push'd or when the underlying retrieval from origin was 
     * started.
     * Upon retries of Fetch requests that cannot be completed within a single
     * RPC, clients *SHOULD* provide the same value for subsequent requests as the
     * original, to simplify combining the request with the previous attempt.
     *
     * If unset, the client *SHOULD* accept content of any age.
     * 
* * .google.protobuf.Timestamp oldest_content_accepted = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getOldestContentAcceptedFieldBuilder() { if (oldestContentAcceptedBuilder_ == null) { oldestContentAcceptedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getOldestContentAccepted(), getParentForChildren(), isClean()); oldestContentAccepted_ = null; } return oldestContentAcceptedBuilder_; } 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_ |= 0x00000008; } /** *
     * The URI(s) of the content to fetch. These may be resources that the server
     * can directly fetch from origin, in which case multiple URIs *SHOULD*
     * represent the same content available at different locations (such as an
     * origin and secondary mirrors). These may also be URIs for content known to
     * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
     * service.
     *
     * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
     * supplied URIs.
     * 
* * repeated string uris = 4; * @return A list containing the uris. */ public com.google.protobuf.ProtocolStringList getUrisList() { uris_.makeImmutable(); return uris_; } /** *
     * The URI(s) of the content to fetch. These may be resources that the server
     * can directly fetch from origin, in which case multiple URIs *SHOULD*
     * represent the same content available at different locations (such as an
     * origin and secondary mirrors). These may also be URIs for content known to
     * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
     * service.
     *
     * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
     * supplied URIs.
     * 
* * repeated string uris = 4; * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** *
     * The URI(s) of the content to fetch. These may be resources that the server
     * can directly fetch from origin, in which case multiple URIs *SHOULD*
     * represent the same content available at different locations (such as an
     * origin and secondary mirrors). These may also be URIs for content known to
     * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
     * service.
     *
     * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
     * supplied URIs.
     * 
* * repeated string uris = 4; * @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 fetch. These may be resources that the server
     * can directly fetch from origin, in which case multiple URIs *SHOULD*
     * represent the same content available at different locations (such as an
     * origin and secondary mirrors). These may also be URIs for content known to
     * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
     * service.
     *
     * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
     * supplied URIs.
     * 
* * repeated string uris = 4; * @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 fetch. These may be resources that the server
     * can directly fetch from origin, in which case multiple URIs *SHOULD*
     * represent the same content available at different locations (such as an
     * origin and secondary mirrors). These may also be URIs for content known to
     * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
     * service.
     *
     * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
     * supplied URIs.
     * 
* * repeated string uris = 4; * @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_ |= 0x00000008; onChanged(); return this; } /** *
     * The URI(s) of the content to fetch. These may be resources that the server
     * can directly fetch from origin, in which case multiple URIs *SHOULD*
     * represent the same content available at different locations (such as an
     * origin and secondary mirrors). These may also be URIs for content known to
     * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
     * service.
     *
     * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
     * supplied URIs.
     * 
* * repeated string uris = 4; * @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_ |= 0x00000008; onChanged(); return this; } /** *
     * The URI(s) of the content to fetch. These may be resources that the server
     * can directly fetch from origin, in which case multiple URIs *SHOULD*
     * represent the same content available at different locations (such as an
     * origin and secondary mirrors). These may also be URIs for content known to
     * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
     * service.
     *
     * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
     * supplied URIs.
     * 
* * repeated string uris = 4; * @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_ |= 0x00000008; onChanged(); return this; } /** *
     * The URI(s) of the content to fetch. These may be resources that the server
     * can directly fetch from origin, in which case multiple URIs *SHOULD*
     * represent the same content available at different locations (such as an
     * origin and secondary mirrors). These may also be URIs for content known to
     * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
     * service.
     *
     * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
     * supplied URIs.
     * 
* * repeated string uris = 4; * @return This builder for chaining. */ public Builder clearUris() { uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** *
     * The URI(s) of the content to fetch. These may be resources that the server
     * can directly fetch from origin, in which case multiple URIs *SHOULD*
     * represent the same content available at different locations (such as an
     * origin and secondary mirrors). These may also be URIs for content known to
     * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
     * service.
     *
     * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
     * supplied URIs.
     * 
* * repeated string uris = 4; * @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_ |= 0x00000008; onChanged(); return this; } private java.util.List qualifiers_ = java.util.Collections.emptyList(); private void ensureQualifiersIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { qualifiers_ = new java.util.ArrayList(qualifiers_); bitField0_ |= 0x00000010; } } 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 to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ public java.util.List getQualifiersList() { if (qualifiersBuilder_ == null) { return java.util.Collections.unmodifiableList(qualifiers_); } else { return qualifiersBuilder_.getMessageList(); } } /** *
     * Qualifiers sub-specifying the content to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ public int getQualifiersCount() { if (qualifiersBuilder_ == null) { return qualifiers_.size(); } else { return qualifiersBuilder_.getCount(); } } /** *
     * Qualifiers sub-specifying the content to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ 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 to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ 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 to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ 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 to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ 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 to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ 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 to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ 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 to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ 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 to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ 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 to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ public Builder clearQualifiers() { if (qualifiersBuilder_ == null) { qualifiers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { qualifiersBuilder_.clear(); } return this; } /** *
     * Qualifiers sub-specifying the content to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ public Builder removeQualifiers(int index) { if (qualifiersBuilder_ == null) { ensureQualifiersIsMutable(); qualifiers_.remove(index); onChanged(); } else { qualifiersBuilder_.remove(index); } return this; } /** *
     * Qualifiers sub-specifying the content to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ public build.bazel.remote.asset.v1.Qualifier.Builder getQualifiersBuilder( int index) { return getQualifiersFieldBuilder().getBuilder(index); } /** *
     * Qualifiers sub-specifying the content to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ 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 to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ public java.util.List getQualifiersOrBuilderList() { if (qualifiersBuilder_ != null) { return qualifiersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(qualifiers_); } } /** *
     * Qualifiers sub-specifying the content to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ public build.bazel.remote.asset.v1.Qualifier.Builder addQualifiersBuilder() { return getQualifiersFieldBuilder().addBuilder( build.bazel.remote.asset.v1.Qualifier.getDefaultInstance()); } /** *
     * Qualifiers sub-specifying the content to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ 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 to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5; */ 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_ & 0x00000010) != 0), getParentForChildren(), isClean()); qualifiers_ = null; } return qualifiersBuilder_; } @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.FetchBlobRequest) } // @@protoc_insertion_point(class_scope:build.bazel.remote.asset.v1.FetchBlobRequest) private static final build.bazel.remote.asset.v1.FetchBlobRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new build.bazel.remote.asset.v1.FetchBlobRequest(); } public static build.bazel.remote.asset.v1.FetchBlobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FetchBlobRequest 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.FetchBlobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy