implements
// @@protoc_insertion_point(builder_implements:build.bazel.remote.asset.v1.FetchDirectoryRequest)
build.bazel.remote.asset.v1.FetchDirectoryRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return build.bazel.remote.asset.v1.RemoteAssetProto.internal_static_build_bazel_remote_asset_v1_FetchDirectoryRequest_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_FetchDirectoryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
build.bazel.remote.asset.v1.FetchDirectoryRequest.class, build.bazel.remote.asset.v1.FetchDirectoryRequest.Builder.class);
}
// Construct using build.bazel.remote.asset.v1.FetchDirectoryRequest.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_FetchDirectoryRequest_descriptor;
}
@java.lang.Override
public build.bazel.remote.asset.v1.FetchDirectoryRequest getDefaultInstanceForType() {
return build.bazel.remote.asset.v1.FetchDirectoryRequest.getDefaultInstance();
}
@java.lang.Override
public build.bazel.remote.asset.v1.FetchDirectoryRequest build() {
build.bazel.remote.asset.v1.FetchDirectoryRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public build.bazel.remote.asset.v1.FetchDirectoryRequest buildPartial() {
build.bazel.remote.asset.v1.FetchDirectoryRequest result = new build.bazel.remote.asset.v1.FetchDirectoryRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(build.bazel.remote.asset.v1.FetchDirectoryRequest 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.FetchDirectoryRequest 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.FetchDirectoryRequest) {
return mergeFrom((build.bazel.remote.asset.v1.FetchDirectoryRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(build.bazel.remote.asset.v1.FetchDirectoryRequest other) {
if (other == build.bazel.remote.asset.v1.FetchDirectoryRequest.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. This value is allowed to exceed the RPC deadline, in which case the
* server *SHOULD* keep the fetch going after the RPC completes, to be made
* available for future Fetch calls.
*
* If this timeout is exceeded on an attempt to retrieve content from origin
* the client will receive DEADLINE_EXCEEDED in [FetchDirectoryResponse.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. This value is allowed to exceed the RPC deadline, in which case the
* server *SHOULD* keep the fetch going after the RPC completes, to be made
* available for future Fetch calls.
*
* If this timeout is exceeded on an attempt to retrieve content from origin
* the client will receive DEADLINE_EXCEEDED in [FetchDirectoryResponse.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. This value is allowed to exceed the RPC deadline, in which case the
* server *SHOULD* keep the fetch going after the RPC completes, to be made
* available for future Fetch calls.
*
* If this timeout is exceeded on an attempt to retrieve content from origin
* the client will receive DEADLINE_EXCEEDED in [FetchDirectoryResponse.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. This value is allowed to exceed the RPC deadline, in which case the
* server *SHOULD* keep the fetch going after the RPC completes, to be made
* available for future Fetch calls.
*
* If this timeout is exceeded on an attempt to retrieve content from origin
* the client will receive DEADLINE_EXCEEDED in [FetchDirectoryResponse.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. This value is allowed to exceed the RPC deadline, in which case the
* server *SHOULD* keep the fetch going after the RPC completes, to be made
* available for future Fetch calls.
*
* If this timeout is exceeded on an attempt to retrieve content from origin
* the client will receive DEADLINE_EXCEEDED in [FetchDirectoryResponse.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. This value is allowed to exceed the RPC deadline, in which case the
* server *SHOULD* keep the fetch going after the RPC completes, to be made
* available for future Fetch calls.
*
* If this timeout is exceeded on an attempt to retrieve content from origin
* the client will receive DEADLINE_EXCEEDED in [FetchDirectoryResponse.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. This value is allowed to exceed the RPC deadline, in which case the
* server *SHOULD* keep the fetch going after the RPC completes, to be made
* available for future Fetch calls.
*
* If this timeout is exceeded on an attempt to retrieve content from origin
* the client will receive DEADLINE_EXCEEDED in [FetchDirectoryResponse.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. This value is allowed to exceed the RPC deadline, in which case the
* server *SHOULD* keep the fetch going after the RPC completes, to be made
* available for future Fetch calls.
*
* If this timeout is exceeded on an attempt to retrieve content from origin
* the client will receive DEADLINE_EXCEEDED in [FetchDirectoryResponse.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. This value is allowed to exceed the RPC deadline, in which case the
* server *SHOULD* keep the fetch going after the RPC completes, to be made
* available for future Fetch calls.
*
* If this timeout is exceeded on an attempt to retrieve content from origin
* the client will receive DEADLINE_EXCEEDED in [FetchDirectoryResponse.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 extends build.bazel.remote.asset.v1.Qualifier> 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 extends build.bazel.remote.asset.v1.QualifierOrBuilder>
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.FetchDirectoryRequest)
}
// @@protoc_insertion_point(class_scope:build.bazel.remote.asset.v1.FetchDirectoryRequest)
private static final build.bazel.remote.asset.v1.FetchDirectoryRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new build.bazel.remote.asset.v1.FetchDirectoryRequest();
}
public static build.bazel.remote.asset.v1.FetchDirectoryRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FetchDirectoryRequest 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.FetchDirectoryRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}