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

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

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

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

/**
 * 
 * A response message for
 * [Fetch.FetchDirectory][build.bazel.remote.asset.v1.Fetch.FetchDirectory].
 * 
* * Protobuf type {@code build.bazel.remote.asset.v1.FetchDirectoryResponse} */ public final class FetchDirectoryResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:build.bazel.remote.asset.v1.FetchDirectoryResponse) FetchDirectoryResponseOrBuilder { private static final long serialVersionUID = 0L; // Use FetchDirectoryResponse.newBuilder() to construct. private FetchDirectoryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FetchDirectoryResponse() { uri_ = ""; qualifiers_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FetchDirectoryResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.asset.v1.RemoteAssetProto.internal_static_build_bazel_remote_asset_v1_FetchDirectoryResponse_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_FetchDirectoryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.asset.v1.FetchDirectoryResponse.class, build.bazel.remote.asset.v1.FetchDirectoryResponse.Builder.class); } private int bitField0_; public static final int STATUS_FIELD_NUMBER = 1; private com.google.rpc.Status status_; /** *
   * If the status has a code other than `OK`, it indicates that the operation
   * was unable to be completed for reasons outside the servers' control.
   * The possible fetch errors include:
   * * `DEADLINE_EXCEEDED`: The operation could not be completed within the
   *   specified timeout.
   * * `NOT_FOUND`: The requested asset was not found at the specified location.
   * * `PERMISSION_DENIED`: The request was rejected by a remote server, or
   *   requested an asset from a disallowed origin.
   * * `ABORTED`: The operation could not be completed, typically due to a
   *   failed consistency check.
   * 
* * .google.rpc.Status status = 1; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * If the status has a code other than `OK`, it indicates that the operation
   * was unable to be completed for reasons outside the servers' control.
   * The possible fetch errors include:
   * * `DEADLINE_EXCEEDED`: The operation could not be completed within the
   *   specified timeout.
   * * `NOT_FOUND`: The requested asset was not found at the specified location.
   * * `PERMISSION_DENIED`: The request was rejected by a remote server, or
   *   requested an asset from a disallowed origin.
   * * `ABORTED`: The operation could not be completed, typically due to a
   *   failed consistency check.
   * 
* * .google.rpc.Status status = 1; * @return The status. */ @java.lang.Override public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** *
   * If the status has a code other than `OK`, it indicates that the operation
   * was unable to be completed for reasons outside the servers' control.
   * The possible fetch errors include:
   * * `DEADLINE_EXCEEDED`: The operation could not be completed within the
   *   specified timeout.
   * * `NOT_FOUND`: The requested asset was not found at the specified location.
   * * `PERMISSION_DENIED`: The request was rejected by a remote server, or
   *   requested an asset from a disallowed origin.
   * * `ABORTED`: The operation could not be completed, typically due to a
   *   failed consistency check.
   * 
* * .google.rpc.Status status = 1; */ @java.lang.Override public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } public static final int URI_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** *
   * The uri from the request that resulted in a successful retrieval, or from
   * which the error indicated in `status` was obtained.
   * 
* * string uri = 2; * @return The uri. */ @java.lang.Override public java.lang.String getUri() { java.lang.Object ref = uri_; 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(); uri_ = s; return s; } } /** *
   * The uri from the request that resulted in a successful retrieval, or from
   * which the error indicated in `status` was obtained.
   * 
* * string uri = 2; * @return The bytes for uri. */ @java.lang.Override public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QUALIFIERS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List qualifiers_; /** *
   * Any qualifiers known to the server and of interest to clients.
   * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ @java.lang.Override public java.util.List getQualifiersList() { return qualifiers_; } /** *
   * Any qualifiers known to the server and of interest to clients.
   * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ @java.lang.Override public java.util.List getQualifiersOrBuilderList() { return qualifiers_; } /** *
   * Any qualifiers known to the server and of interest to clients.
   * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ @java.lang.Override public int getQualifiersCount() { return qualifiers_.size(); } /** *
   * Any qualifiers known to the server and of interest to clients.
   * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ @java.lang.Override public build.bazel.remote.asset.v1.Qualifier getQualifiers(int index) { return qualifiers_.get(index); } /** *
   * Any qualifiers known to the server and of interest to clients.
   * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ @java.lang.Override public build.bazel.remote.asset.v1.QualifierOrBuilder getQualifiersOrBuilder( int index) { return qualifiers_.get(index); } public static final int EXPIRES_AT_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp expiresAt_; /** *
   * A minimum timestamp the content is expected to be available through.
   * Servers *MAY* omit this field, if not known with confidence.
   * 
* * .google.protobuf.Timestamp expires_at = 4; * @return Whether the expiresAt field is set. */ @java.lang.Override public boolean hasExpiresAt() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * A minimum timestamp the content is expected to be available through.
   * Servers *MAY* omit this field, if not known with confidence.
   * 
* * .google.protobuf.Timestamp expires_at = 4; * @return The expiresAt. */ @java.lang.Override public com.google.protobuf.Timestamp getExpiresAt() { return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; } /** *
   * A minimum timestamp the content is expected to be available through.
   * Servers *MAY* omit this field, if not known with confidence.
   * 
* * .google.protobuf.Timestamp expires_at = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; } public static final int ROOT_DIRECTORY_DIGEST_FIELD_NUMBER = 5; private build.bazel.remote.execution.v2.Digest rootDirectoryDigest_; /** *
   * The result of the fetch, if the status had code `OK`.
   * the root digest of a directory tree, suitable for fetching via
   * [ContentAddressableStorage.GetTree].
   * 
* * .build.bazel.remote.execution.v2.Digest root_directory_digest = 5; * @return Whether the rootDirectoryDigest field is set. */ @java.lang.Override public boolean hasRootDirectoryDigest() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * The result of the fetch, if the status had code `OK`.
   * the root digest of a directory tree, suitable for fetching via
   * [ContentAddressableStorage.GetTree].
   * 
* * .build.bazel.remote.execution.v2.Digest root_directory_digest = 5; * @return The rootDirectoryDigest. */ @java.lang.Override public build.bazel.remote.execution.v2.Digest getRootDirectoryDigest() { return rootDirectoryDigest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : rootDirectoryDigest_; } /** *
   * The result of the fetch, if the status had code `OK`.
   * the root digest of a directory tree, suitable for fetching via
   * [ContentAddressableStorage.GetTree].
   * 
* * .build.bazel.remote.execution.v2.Digest root_directory_digest = 5; */ @java.lang.Override public build.bazel.remote.execution.v2.DigestOrBuilder getRootDirectoryDigestOrBuilder() { return rootDirectoryDigest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : rootDirectoryDigest_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_); } for (int i = 0; i < qualifiers_.size(); i++) { output.writeMessage(3, qualifiers_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getExpiresAt()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getRootDirectoryDigest()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); } for (int i = 0; i < qualifiers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, qualifiers_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getExpiresAt()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getRootDirectoryDigest()); } 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.FetchDirectoryResponse)) { return super.equals(obj); } build.bazel.remote.asset.v1.FetchDirectoryResponse other = (build.bazel.remote.asset.v1.FetchDirectoryResponse) obj; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus() .equals(other.getStatus())) return false; } if (!getUri() .equals(other.getUri())) return false; if (!getQualifiersList() .equals(other.getQualifiersList())) return false; if (hasExpiresAt() != other.hasExpiresAt()) return false; if (hasExpiresAt()) { if (!getExpiresAt() .equals(other.getExpiresAt())) return false; } if (hasRootDirectoryDigest() != other.hasRootDirectoryDigest()) return false; if (hasRootDirectoryDigest()) { if (!getRootDirectoryDigest() .equals(other.getRootDirectoryDigest())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); if (getQualifiersCount() > 0) { hash = (37 * hash) + QUALIFIERS_FIELD_NUMBER; hash = (53 * hash) + getQualifiersList().hashCode(); } if (hasExpiresAt()) { hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER; hash = (53 * hash) + getExpiresAt().hashCode(); } if (hasRootDirectoryDigest()) { hash = (37 * hash) + ROOT_DIRECTORY_DIGEST_FIELD_NUMBER; hash = (53 * hash) + getRootDirectoryDigest().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static build.bazel.remote.asset.v1.FetchDirectoryResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.asset.v1.FetchDirectoryResponse 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.FetchDirectoryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.asset.v1.FetchDirectoryResponse 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.FetchDirectoryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.asset.v1.FetchDirectoryResponse 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.FetchDirectoryResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static build.bazel.remote.asset.v1.FetchDirectoryResponse 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.FetchDirectoryResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static build.bazel.remote.asset.v1.FetchDirectoryResponse 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.FetchDirectoryResponse 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.FetchDirectoryResponse 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.FetchDirectoryResponse 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 response message for
   * [Fetch.FetchDirectory][build.bazel.remote.asset.v1.Fetch.FetchDirectory].
   * 
* * Protobuf type {@code build.bazel.remote.asset.v1.FetchDirectoryResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:build.bazel.remote.asset.v1.FetchDirectoryResponse) build.bazel.remote.asset.v1.FetchDirectoryResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.asset.v1.RemoteAssetProto.internal_static_build_bazel_remote_asset_v1_FetchDirectoryResponse_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_FetchDirectoryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.asset.v1.FetchDirectoryResponse.class, build.bazel.remote.asset.v1.FetchDirectoryResponse.Builder.class); } // Construct using build.bazel.remote.asset.v1.FetchDirectoryResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStatusFieldBuilder(); getQualifiersFieldBuilder(); getExpiresAtFieldBuilder(); getRootDirectoryDigestFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } uri_ = ""; if (qualifiersBuilder_ == null) { qualifiers_ = java.util.Collections.emptyList(); } else { qualifiers_ = null; qualifiersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); expiresAt_ = null; if (expiresAtBuilder_ != null) { expiresAtBuilder_.dispose(); expiresAtBuilder_ = null; } rootDirectoryDigest_ = null; if (rootDirectoryDigestBuilder_ != null) { rootDirectoryDigestBuilder_.dispose(); rootDirectoryDigestBuilder_ = null; } 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_FetchDirectoryResponse_descriptor; } @java.lang.Override public build.bazel.remote.asset.v1.FetchDirectoryResponse getDefaultInstanceForType() { return build.bazel.remote.asset.v1.FetchDirectoryResponse.getDefaultInstance(); } @java.lang.Override public build.bazel.remote.asset.v1.FetchDirectoryResponse build() { build.bazel.remote.asset.v1.FetchDirectoryResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public build.bazel.remote.asset.v1.FetchDirectoryResponse buildPartial() { build.bazel.remote.asset.v1.FetchDirectoryResponse result = new build.bazel.remote.asset.v1.FetchDirectoryResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(build.bazel.remote.asset.v1.FetchDirectoryResponse result) { if (qualifiersBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { qualifiers_ = java.util.Collections.unmodifiableList(qualifiers_); bitField0_ = (bitField0_ & ~0x00000004); } result.qualifiers_ = qualifiers_; } else { result.qualifiers_ = qualifiersBuilder_.build(); } } private void buildPartial0(build.bazel.remote.asset.v1.FetchDirectoryResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.uri_ = uri_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.expiresAt_ = expiresAtBuilder_ == null ? expiresAt_ : expiresAtBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.rootDirectoryDigest_ = rootDirectoryDigestBuilder_ == null ? rootDirectoryDigest_ : rootDirectoryDigestBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.bazel.remote.asset.v1.FetchDirectoryResponse) { return mergeFrom((build.bazel.remote.asset.v1.FetchDirectoryResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(build.bazel.remote.asset.v1.FetchDirectoryResponse other) { if (other == build.bazel.remote.asset.v1.FetchDirectoryResponse.getDefaultInstance()) return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (!other.getUri().isEmpty()) { uri_ = other.uri_; bitField0_ |= 0x00000002; onChanged(); } if (qualifiersBuilder_ == null) { if (!other.qualifiers_.isEmpty()) { if (qualifiers_.isEmpty()) { qualifiers_ = other.qualifiers_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureQualifiersIsMutable(); qualifiers_.addAll(other.qualifiers_); } onChanged(); } } else { if (!other.qualifiers_.isEmpty()) { if (qualifiersBuilder_.isEmpty()) { qualifiersBuilder_.dispose(); qualifiersBuilder_ = null; qualifiers_ = other.qualifiers_; bitField0_ = (bitField0_ & ~0x00000004); qualifiersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getQualifiersFieldBuilder() : null; } else { qualifiersBuilder_.addAllMessages(other.qualifiers_); } } } if (other.hasExpiresAt()) { mergeExpiresAt(other.getExpiresAt()); } if (other.hasRootDirectoryDigest()) { mergeRootDirectoryDigest(other.getRootDirectoryDigest()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getStatusFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { uri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { build.bazel.remote.asset.v1.Qualifier m = input.readMessage( build.bazel.remote.asset.v1.Qualifier.parser(), extensionRegistry); if (qualifiersBuilder_ == null) { ensureQualifiersIsMutable(); qualifiers_.add(m); } else { qualifiersBuilder_.addMessage(m); } break; } // case 26 case 34: { input.readMessage( getExpiresAtFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getRootDirectoryDigestFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; 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 com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; /** *
     * If the status has a code other than `OK`, it indicates that the operation
     * was unable to be completed for reasons outside the servers' control.
     * The possible fetch errors include:
     * * `DEADLINE_EXCEEDED`: The operation could not be completed within the
     *   specified timeout.
     * * `NOT_FOUND`: The requested asset was not found at the specified location.
     * * `PERMISSION_DENIED`: The request was rejected by a remote server, or
     *   requested an asset from a disallowed origin.
     * * `ABORTED`: The operation could not be completed, typically due to a
     *   failed consistency check.
     * 
* * .google.rpc.Status status = 1; * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * If the status has a code other than `OK`, it indicates that the operation
     * was unable to be completed for reasons outside the servers' control.
     * The possible fetch errors include:
     * * `DEADLINE_EXCEEDED`: The operation could not be completed within the
     *   specified timeout.
     * * `NOT_FOUND`: The requested asset was not found at the specified location.
     * * `PERMISSION_DENIED`: The request was rejected by a remote server, or
     *   requested an asset from a disallowed origin.
     * * `ABORTED`: The operation could not be completed, typically due to a
     *   failed consistency check.
     * 
* * .google.rpc.Status status = 1; * @return The status. */ public com.google.rpc.Status getStatus() { if (statusBuilder_ == null) { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** *
     * If the status has a code other than `OK`, it indicates that the operation
     * was unable to be completed for reasons outside the servers' control.
     * The possible fetch errors include:
     * * `DEADLINE_EXCEEDED`: The operation could not be completed within the
     *   specified timeout.
     * * `NOT_FOUND`: The requested asset was not found at the specified location.
     * * `PERMISSION_DENIED`: The request was rejected by a remote server, or
     *   requested an asset from a disallowed origin.
     * * `ABORTED`: The operation could not be completed, typically due to a
     *   failed consistency check.
     * 
* * .google.rpc.Status status = 1; */ public Builder setStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * If the status has a code other than `OK`, it indicates that the operation
     * was unable to be completed for reasons outside the servers' control.
     * The possible fetch errors include:
     * * `DEADLINE_EXCEEDED`: The operation could not be completed within the
     *   specified timeout.
     * * `NOT_FOUND`: The requested asset was not found at the specified location.
     * * `PERMISSION_DENIED`: The request was rejected by a remote server, or
     *   requested an asset from a disallowed origin.
     * * `ABORTED`: The operation could not be completed, typically due to a
     *   failed consistency check.
     * 
* * .google.rpc.Status status = 1; */ public Builder setStatus( com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * If the status has a code other than `OK`, it indicates that the operation
     * was unable to be completed for reasons outside the servers' control.
     * The possible fetch errors include:
     * * `DEADLINE_EXCEEDED`: The operation could not be completed within the
     *   specified timeout.
     * * `NOT_FOUND`: The requested asset was not found at the specified location.
     * * `PERMISSION_DENIED`: The request was rejected by a remote server, or
     *   requested an asset from a disallowed origin.
     * * `ABORTED`: The operation could not be completed, typically due to a
     *   failed consistency check.
     * 
* * .google.rpc.Status status = 1; */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && status_ != null && status_ != com.google.rpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; } } else { statusBuilder_.mergeFrom(value); } if (status_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * If the status has a code other than `OK`, it indicates that the operation
     * was unable to be completed for reasons outside the servers' control.
     * The possible fetch errors include:
     * * `DEADLINE_EXCEEDED`: The operation could not be completed within the
     *   specified timeout.
     * * `NOT_FOUND`: The requested asset was not found at the specified location.
     * * `PERMISSION_DENIED`: The request was rejected by a remote server, or
     *   requested an asset from a disallowed origin.
     * * `ABORTED`: The operation could not be completed, typically due to a
     *   failed consistency check.
     * 
* * .google.rpc.Status status = 1; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } onChanged(); return this; } /** *
     * If the status has a code other than `OK`, it indicates that the operation
     * was unable to be completed for reasons outside the servers' control.
     * The possible fetch errors include:
     * * `DEADLINE_EXCEEDED`: The operation could not be completed within the
     *   specified timeout.
     * * `NOT_FOUND`: The requested asset was not found at the specified location.
     * * `PERMISSION_DENIED`: The request was rejected by a remote server, or
     *   requested an asset from a disallowed origin.
     * * `ABORTED`: The operation could not be completed, typically due to a
     *   failed consistency check.
     * 
* * .google.rpc.Status status = 1; */ public com.google.rpc.Status.Builder getStatusBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** *
     * If the status has a code other than `OK`, it indicates that the operation
     * was unable to be completed for reasons outside the servers' control.
     * The possible fetch errors include:
     * * `DEADLINE_EXCEEDED`: The operation could not be completed within the
     *   specified timeout.
     * * `NOT_FOUND`: The requested asset was not found at the specified location.
     * * `PERMISSION_DENIED`: The request was rejected by a remote server, or
     *   requested an asset from a disallowed origin.
     * * `ABORTED`: The operation could not be completed, typically due to a
     *   failed consistency check.
     * 
* * .google.rpc.Status status = 1; */ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } } /** *
     * If the status has a code other than `OK`, it indicates that the operation
     * was unable to be completed for reasons outside the servers' control.
     * The possible fetch errors include:
     * * `DEADLINE_EXCEEDED`: The operation could not be completed within the
     *   specified timeout.
     * * `NOT_FOUND`: The requested asset was not found at the specified location.
     * * `PERMISSION_DENIED`: The request was rejected by a remote server, or
     *   requested an asset from a disallowed origin.
     * * `ABORTED`: The operation could not be completed, typically due to a
     *   failed consistency check.
     * 
* * .google.rpc.Status status = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private java.lang.Object uri_ = ""; /** *
     * The uri from the request that resulted in a successful retrieval, or from
     * which the error indicated in `status` was obtained.
     * 
* * string uri = 2; * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The uri from the request that resulted in a successful retrieval, or from
     * which the error indicated in `status` was obtained.
     * 
* * string uri = 2; * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The uri from the request that resulted in a successful retrieval, or from
     * which the error indicated in `status` was obtained.
     * 
* * string uri = 2; * @param value The uri to set. * @return This builder for chaining. */ public Builder setUri( java.lang.String value) { if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The uri from the request that resulted in a successful retrieval, or from
     * which the error indicated in `status` was obtained.
     * 
* * string uri = 2; * @return This builder for chaining. */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * The uri from the request that resulted in a successful retrieval, or from
     * which the error indicated in `status` was obtained.
     * 
* * string uri = 2; * @param value The bytes for uri to set. * @return This builder for chaining. */ public Builder setUriBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.util.List qualifiers_ = java.util.Collections.emptyList(); private void ensureQualifiersIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { qualifiers_ = new java.util.ArrayList(qualifiers_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.asset.v1.Qualifier, build.bazel.remote.asset.v1.Qualifier.Builder, build.bazel.remote.asset.v1.QualifierOrBuilder> qualifiersBuilder_; /** *
     * Any qualifiers known to the server and of interest to clients.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public java.util.List getQualifiersList() { if (qualifiersBuilder_ == null) { return java.util.Collections.unmodifiableList(qualifiers_); } else { return qualifiersBuilder_.getMessageList(); } } /** *
     * Any qualifiers known to the server and of interest to clients.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public int getQualifiersCount() { if (qualifiersBuilder_ == null) { return qualifiers_.size(); } else { return qualifiersBuilder_.getCount(); } } /** *
     * Any qualifiers known to the server and of interest to clients.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public build.bazel.remote.asset.v1.Qualifier getQualifiers(int index) { if (qualifiersBuilder_ == null) { return qualifiers_.get(index); } else { return qualifiersBuilder_.getMessage(index); } } /** *
     * Any qualifiers known to the server and of interest to clients.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public Builder setQualifiers( int index, build.bazel.remote.asset.v1.Qualifier value) { if (qualifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQualifiersIsMutable(); qualifiers_.set(index, value); onChanged(); } else { qualifiersBuilder_.setMessage(index, value); } return this; } /** *
     * Any qualifiers known to the server and of interest to clients.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public Builder setQualifiers( int index, build.bazel.remote.asset.v1.Qualifier.Builder builderForValue) { if (qualifiersBuilder_ == null) { ensureQualifiersIsMutable(); qualifiers_.set(index, builderForValue.build()); onChanged(); } else { qualifiersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Any qualifiers known to the server and of interest to clients.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public Builder addQualifiers(build.bazel.remote.asset.v1.Qualifier value) { if (qualifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQualifiersIsMutable(); qualifiers_.add(value); onChanged(); } else { qualifiersBuilder_.addMessage(value); } return this; } /** *
     * Any qualifiers known to the server and of interest to clients.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public Builder addQualifiers( int index, build.bazel.remote.asset.v1.Qualifier value) { if (qualifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQualifiersIsMutable(); qualifiers_.add(index, value); onChanged(); } else { qualifiersBuilder_.addMessage(index, value); } return this; } /** *
     * Any qualifiers known to the server and of interest to clients.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public Builder addQualifiers( build.bazel.remote.asset.v1.Qualifier.Builder builderForValue) { if (qualifiersBuilder_ == null) { ensureQualifiersIsMutable(); qualifiers_.add(builderForValue.build()); onChanged(); } else { qualifiersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Any qualifiers known to the server and of interest to clients.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public Builder addQualifiers( int index, build.bazel.remote.asset.v1.Qualifier.Builder builderForValue) { if (qualifiersBuilder_ == null) { ensureQualifiersIsMutable(); qualifiers_.add(index, builderForValue.build()); onChanged(); } else { qualifiersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Any qualifiers known to the server and of interest to clients.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public Builder addAllQualifiers( java.lang.Iterable values) { if (qualifiersBuilder_ == null) { ensureQualifiersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, qualifiers_); onChanged(); } else { qualifiersBuilder_.addAllMessages(values); } return this; } /** *
     * Any qualifiers known to the server and of interest to clients.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public Builder clearQualifiers() { if (qualifiersBuilder_ == null) { qualifiers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { qualifiersBuilder_.clear(); } return this; } /** *
     * Any qualifiers known to the server and of interest to clients.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public Builder removeQualifiers(int index) { if (qualifiersBuilder_ == null) { ensureQualifiersIsMutable(); qualifiers_.remove(index); onChanged(); } else { qualifiersBuilder_.remove(index); } return this; } /** *
     * Any qualifiers known to the server and of interest to clients.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public build.bazel.remote.asset.v1.Qualifier.Builder getQualifiersBuilder( int index) { return getQualifiersFieldBuilder().getBuilder(index); } /** *
     * Any qualifiers known to the server and of interest to clients.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public build.bazel.remote.asset.v1.QualifierOrBuilder getQualifiersOrBuilder( int index) { if (qualifiersBuilder_ == null) { return qualifiers_.get(index); } else { return qualifiersBuilder_.getMessageOrBuilder(index); } } /** *
     * Any qualifiers known to the server and of interest to clients.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public java.util.List getQualifiersOrBuilderList() { if (qualifiersBuilder_ != null) { return qualifiersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(qualifiers_); } } /** *
     * Any qualifiers known to the server and of interest to clients.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public build.bazel.remote.asset.v1.Qualifier.Builder addQualifiersBuilder() { return getQualifiersFieldBuilder().addBuilder( build.bazel.remote.asset.v1.Qualifier.getDefaultInstance()); } /** *
     * Any qualifiers known to the server and of interest to clients.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public build.bazel.remote.asset.v1.Qualifier.Builder addQualifiersBuilder( int index) { return getQualifiersFieldBuilder().addBuilder( index, build.bazel.remote.asset.v1.Qualifier.getDefaultInstance()); } /** *
     * Any qualifiers known to the server and of interest to clients.
     * 
* * repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3; */ public java.util.List getQualifiersBuilderList() { return getQualifiersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.asset.v1.Qualifier, build.bazel.remote.asset.v1.Qualifier.Builder, build.bazel.remote.asset.v1.QualifierOrBuilder> getQualifiersFieldBuilder() { if (qualifiersBuilder_ == null) { qualifiersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.asset.v1.Qualifier, build.bazel.remote.asset.v1.Qualifier.Builder, build.bazel.remote.asset.v1.QualifierOrBuilder>( qualifiers_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); qualifiers_ = null; } return qualifiersBuilder_; } private com.google.protobuf.Timestamp expiresAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expiresAtBuilder_; /** *
     * A minimum timestamp the content is expected to be available through.
     * Servers *MAY* omit this field, if not known with confidence.
     * 
* * .google.protobuf.Timestamp expires_at = 4; * @return Whether the expiresAt field is set. */ public boolean hasExpiresAt() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * A minimum timestamp the content is expected to be available through.
     * Servers *MAY* omit this field, if not known with confidence.
     * 
* * .google.protobuf.Timestamp expires_at = 4; * @return The expiresAt. */ public com.google.protobuf.Timestamp getExpiresAt() { if (expiresAtBuilder_ == null) { return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; } else { return expiresAtBuilder_.getMessage(); } } /** *
     * A minimum timestamp the content is expected to be available through.
     * Servers *MAY* omit this field, if not known with confidence.
     * 
* * .google.protobuf.Timestamp expires_at = 4; */ public Builder setExpiresAt(com.google.protobuf.Timestamp value) { if (expiresAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expiresAt_ = value; } else { expiresAtBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * A minimum timestamp the content is expected to be available through.
     * Servers *MAY* omit this field, if not known with confidence.
     * 
* * .google.protobuf.Timestamp expires_at = 4; */ public Builder setExpiresAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (expiresAtBuilder_ == null) { expiresAt_ = builderForValue.build(); } else { expiresAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * A minimum timestamp the content is expected to be available through.
     * Servers *MAY* omit this field, if not known with confidence.
     * 
* * .google.protobuf.Timestamp expires_at = 4; */ public Builder mergeExpiresAt(com.google.protobuf.Timestamp value) { if (expiresAtBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && expiresAt_ != null && expiresAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpiresAtBuilder().mergeFrom(value); } else { expiresAt_ = value; } } else { expiresAtBuilder_.mergeFrom(value); } if (expiresAt_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * A minimum timestamp the content is expected to be available through.
     * Servers *MAY* omit this field, if not known with confidence.
     * 
* * .google.protobuf.Timestamp expires_at = 4; */ public Builder clearExpiresAt() { bitField0_ = (bitField0_ & ~0x00000008); expiresAt_ = null; if (expiresAtBuilder_ != null) { expiresAtBuilder_.dispose(); expiresAtBuilder_ = null; } onChanged(); return this; } /** *
     * A minimum timestamp the content is expected to be available through.
     * Servers *MAY* omit this field, if not known with confidence.
     * 
* * .google.protobuf.Timestamp expires_at = 4; */ public com.google.protobuf.Timestamp.Builder getExpiresAtBuilder() { bitField0_ |= 0x00000008; onChanged(); return getExpiresAtFieldBuilder().getBuilder(); } /** *
     * A minimum timestamp the content is expected to be available through.
     * Servers *MAY* omit this field, if not known with confidence.
     * 
* * .google.protobuf.Timestamp expires_at = 4; */ public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { if (expiresAtBuilder_ != null) { return expiresAtBuilder_.getMessageOrBuilder(); } else { return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; } } /** *
     * A minimum timestamp the content is expected to be available through.
     * Servers *MAY* omit this field, if not known with confidence.
     * 
* * .google.protobuf.Timestamp expires_at = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getExpiresAtFieldBuilder() { if (expiresAtBuilder_ == null) { expiresAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getExpiresAt(), getParentForChildren(), isClean()); expiresAt_ = null; } return expiresAtBuilder_; } private build.bazel.remote.execution.v2.Digest rootDirectoryDigest_; private com.google.protobuf.SingleFieldBuilderV3< build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder> rootDirectoryDigestBuilder_; /** *
     * The result of the fetch, if the status had code `OK`.
     * the root digest of a directory tree, suitable for fetching via
     * [ContentAddressableStorage.GetTree].
     * 
* * .build.bazel.remote.execution.v2.Digest root_directory_digest = 5; * @return Whether the rootDirectoryDigest field is set. */ public boolean hasRootDirectoryDigest() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * The result of the fetch, if the status had code `OK`.
     * the root digest of a directory tree, suitable for fetching via
     * [ContentAddressableStorage.GetTree].
     * 
* * .build.bazel.remote.execution.v2.Digest root_directory_digest = 5; * @return The rootDirectoryDigest. */ public build.bazel.remote.execution.v2.Digest getRootDirectoryDigest() { if (rootDirectoryDigestBuilder_ == null) { return rootDirectoryDigest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : rootDirectoryDigest_; } else { return rootDirectoryDigestBuilder_.getMessage(); } } /** *
     * The result of the fetch, if the status had code `OK`.
     * the root digest of a directory tree, suitable for fetching via
     * [ContentAddressableStorage.GetTree].
     * 
* * .build.bazel.remote.execution.v2.Digest root_directory_digest = 5; */ public Builder setRootDirectoryDigest(build.bazel.remote.execution.v2.Digest value) { if (rootDirectoryDigestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rootDirectoryDigest_ = value; } else { rootDirectoryDigestBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The result of the fetch, if the status had code `OK`.
     * the root digest of a directory tree, suitable for fetching via
     * [ContentAddressableStorage.GetTree].
     * 
* * .build.bazel.remote.execution.v2.Digest root_directory_digest = 5; */ public Builder setRootDirectoryDigest( build.bazel.remote.execution.v2.Digest.Builder builderForValue) { if (rootDirectoryDigestBuilder_ == null) { rootDirectoryDigest_ = builderForValue.build(); } else { rootDirectoryDigestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The result of the fetch, if the status had code `OK`.
     * the root digest of a directory tree, suitable for fetching via
     * [ContentAddressableStorage.GetTree].
     * 
* * .build.bazel.remote.execution.v2.Digest root_directory_digest = 5; */ public Builder mergeRootDirectoryDigest(build.bazel.remote.execution.v2.Digest value) { if (rootDirectoryDigestBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && rootDirectoryDigest_ != null && rootDirectoryDigest_ != build.bazel.remote.execution.v2.Digest.getDefaultInstance()) { getRootDirectoryDigestBuilder().mergeFrom(value); } else { rootDirectoryDigest_ = value; } } else { rootDirectoryDigestBuilder_.mergeFrom(value); } if (rootDirectoryDigest_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
     * The result of the fetch, if the status had code `OK`.
     * the root digest of a directory tree, suitable for fetching via
     * [ContentAddressableStorage.GetTree].
     * 
* * .build.bazel.remote.execution.v2.Digest root_directory_digest = 5; */ public Builder clearRootDirectoryDigest() { bitField0_ = (bitField0_ & ~0x00000010); rootDirectoryDigest_ = null; if (rootDirectoryDigestBuilder_ != null) { rootDirectoryDigestBuilder_.dispose(); rootDirectoryDigestBuilder_ = null; } onChanged(); return this; } /** *
     * The result of the fetch, if the status had code `OK`.
     * the root digest of a directory tree, suitable for fetching via
     * [ContentAddressableStorage.GetTree].
     * 
* * .build.bazel.remote.execution.v2.Digest root_directory_digest = 5; */ public build.bazel.remote.execution.v2.Digest.Builder getRootDirectoryDigestBuilder() { bitField0_ |= 0x00000010; onChanged(); return getRootDirectoryDigestFieldBuilder().getBuilder(); } /** *
     * The result of the fetch, if the status had code `OK`.
     * the root digest of a directory tree, suitable for fetching via
     * [ContentAddressableStorage.GetTree].
     * 
* * .build.bazel.remote.execution.v2.Digest root_directory_digest = 5; */ public build.bazel.remote.execution.v2.DigestOrBuilder getRootDirectoryDigestOrBuilder() { if (rootDirectoryDigestBuilder_ != null) { return rootDirectoryDigestBuilder_.getMessageOrBuilder(); } else { return rootDirectoryDigest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : rootDirectoryDigest_; } } /** *
     * The result of the fetch, if the status had code `OK`.
     * the root digest of a directory tree, suitable for fetching via
     * [ContentAddressableStorage.GetTree].
     * 
* * .build.bazel.remote.execution.v2.Digest root_directory_digest = 5; */ private com.google.protobuf.SingleFieldBuilderV3< build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder> getRootDirectoryDigestFieldBuilder() { if (rootDirectoryDigestBuilder_ == null) { rootDirectoryDigestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder>( getRootDirectoryDigest(), getParentForChildren(), isClean()); rootDirectoryDigest_ = null; } return rootDirectoryDigestBuilder_; } @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.FetchDirectoryResponse) } // @@protoc_insertion_point(class_scope:build.bazel.remote.asset.v1.FetchDirectoryResponse) private static final build.bazel.remote.asset.v1.FetchDirectoryResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new build.bazel.remote.asset.v1.FetchDirectoryResponse(); } public static build.bazel.remote.asset.v1.FetchDirectoryResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FetchDirectoryResponse 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.FetchDirectoryResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy