implements
// @@protoc_insertion_point(builder_implements:build.bazel.remote.execution.v2.ServerCapabilities)
build.bazel.remote.execution.v2.ServerCapabilitiesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_ServerCapabilities_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_ServerCapabilities_fieldAccessorTable
.ensureFieldAccessorsInitialized(
build.bazel.remote.execution.v2.ServerCapabilities.class, build.bazel.remote.execution.v2.ServerCapabilities.Builder.class);
}
// Construct using build.bazel.remote.execution.v2.ServerCapabilities.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCacheCapabilitiesFieldBuilder();
getExecutionCapabilitiesFieldBuilder();
getDeprecatedApiVersionFieldBuilder();
getLowApiVersionFieldBuilder();
getHighApiVersionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
cacheCapabilities_ = null;
if (cacheCapabilitiesBuilder_ != null) {
cacheCapabilitiesBuilder_.dispose();
cacheCapabilitiesBuilder_ = null;
}
executionCapabilities_ = null;
if (executionCapabilitiesBuilder_ != null) {
executionCapabilitiesBuilder_.dispose();
executionCapabilitiesBuilder_ = null;
}
deprecatedApiVersion_ = null;
if (deprecatedApiVersionBuilder_ != null) {
deprecatedApiVersionBuilder_.dispose();
deprecatedApiVersionBuilder_ = null;
}
lowApiVersion_ = null;
if (lowApiVersionBuilder_ != null) {
lowApiVersionBuilder_.dispose();
lowApiVersionBuilder_ = null;
}
highApiVersion_ = null;
if (highApiVersionBuilder_ != null) {
highApiVersionBuilder_.dispose();
highApiVersionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_ServerCapabilities_descriptor;
}
@java.lang.Override
public build.bazel.remote.execution.v2.ServerCapabilities getDefaultInstanceForType() {
return build.bazel.remote.execution.v2.ServerCapabilities.getDefaultInstance();
}
@java.lang.Override
public build.bazel.remote.execution.v2.ServerCapabilities build() {
build.bazel.remote.execution.v2.ServerCapabilities result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public build.bazel.remote.execution.v2.ServerCapabilities buildPartial() {
build.bazel.remote.execution.v2.ServerCapabilities result = new build.bazel.remote.execution.v2.ServerCapabilities(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(build.bazel.remote.execution.v2.ServerCapabilities result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.cacheCapabilities_ = cacheCapabilitiesBuilder_ == null
? cacheCapabilities_
: cacheCapabilitiesBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.executionCapabilities_ = executionCapabilitiesBuilder_ == null
? executionCapabilities_
: executionCapabilitiesBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.deprecatedApiVersion_ = deprecatedApiVersionBuilder_ == null
? deprecatedApiVersion_
: deprecatedApiVersionBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.lowApiVersion_ = lowApiVersionBuilder_ == null
? lowApiVersion_
: lowApiVersionBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.highApiVersion_ = highApiVersionBuilder_ == null
? highApiVersion_
: highApiVersionBuilder_.build();
to_bitField0_ |= 0x00000010;
}
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.execution.v2.ServerCapabilities) {
return mergeFrom((build.bazel.remote.execution.v2.ServerCapabilities)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(build.bazel.remote.execution.v2.ServerCapabilities other) {
if (other == build.bazel.remote.execution.v2.ServerCapabilities.getDefaultInstance()) return this;
if (other.hasCacheCapabilities()) {
mergeCacheCapabilities(other.getCacheCapabilities());
}
if (other.hasExecutionCapabilities()) {
mergeExecutionCapabilities(other.getExecutionCapabilities());
}
if (other.hasDeprecatedApiVersion()) {
mergeDeprecatedApiVersion(other.getDeprecatedApiVersion());
}
if (other.hasLowApiVersion()) {
mergeLowApiVersion(other.getLowApiVersion());
}
if (other.hasHighApiVersion()) {
mergeHighApiVersion(other.getHighApiVersion());
}
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(
getCacheCapabilitiesFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getExecutionCapabilitiesFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getDeprecatedApiVersionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getLowApiVersionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getHighApiVersionFieldBuilder().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 build.bazel.remote.execution.v2.CacheCapabilities cacheCapabilities_;
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.CacheCapabilities, build.bazel.remote.execution.v2.CacheCapabilities.Builder, build.bazel.remote.execution.v2.CacheCapabilitiesOrBuilder> cacheCapabilitiesBuilder_;
/**
*
* Capabilities of the remote cache system.
*
*
* .build.bazel.remote.execution.v2.CacheCapabilities cache_capabilities = 1;
* @return Whether the cacheCapabilities field is set.
*/
public boolean hasCacheCapabilities() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Capabilities of the remote cache system.
*
*
* .build.bazel.remote.execution.v2.CacheCapabilities cache_capabilities = 1;
* @return The cacheCapabilities.
*/
public build.bazel.remote.execution.v2.CacheCapabilities getCacheCapabilities() {
if (cacheCapabilitiesBuilder_ == null) {
return cacheCapabilities_ == null ? build.bazel.remote.execution.v2.CacheCapabilities.getDefaultInstance() : cacheCapabilities_;
} else {
return cacheCapabilitiesBuilder_.getMessage();
}
}
/**
*
* Capabilities of the remote cache system.
*
*
* .build.bazel.remote.execution.v2.CacheCapabilities cache_capabilities = 1;
*/
public Builder setCacheCapabilities(build.bazel.remote.execution.v2.CacheCapabilities value) {
if (cacheCapabilitiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cacheCapabilities_ = value;
} else {
cacheCapabilitiesBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Capabilities of the remote cache system.
*
*
* .build.bazel.remote.execution.v2.CacheCapabilities cache_capabilities = 1;
*/
public Builder setCacheCapabilities(
build.bazel.remote.execution.v2.CacheCapabilities.Builder builderForValue) {
if (cacheCapabilitiesBuilder_ == null) {
cacheCapabilities_ = builderForValue.build();
} else {
cacheCapabilitiesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Capabilities of the remote cache system.
*
*
* .build.bazel.remote.execution.v2.CacheCapabilities cache_capabilities = 1;
*/
public Builder mergeCacheCapabilities(build.bazel.remote.execution.v2.CacheCapabilities value) {
if (cacheCapabilitiesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
cacheCapabilities_ != null &&
cacheCapabilities_ != build.bazel.remote.execution.v2.CacheCapabilities.getDefaultInstance()) {
getCacheCapabilitiesBuilder().mergeFrom(value);
} else {
cacheCapabilities_ = value;
}
} else {
cacheCapabilitiesBuilder_.mergeFrom(value);
}
if (cacheCapabilities_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Capabilities of the remote cache system.
*
*
* .build.bazel.remote.execution.v2.CacheCapabilities cache_capabilities = 1;
*/
public Builder clearCacheCapabilities() {
bitField0_ = (bitField0_ & ~0x00000001);
cacheCapabilities_ = null;
if (cacheCapabilitiesBuilder_ != null) {
cacheCapabilitiesBuilder_.dispose();
cacheCapabilitiesBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Capabilities of the remote cache system.
*
*
* .build.bazel.remote.execution.v2.CacheCapabilities cache_capabilities = 1;
*/
public build.bazel.remote.execution.v2.CacheCapabilities.Builder getCacheCapabilitiesBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getCacheCapabilitiesFieldBuilder().getBuilder();
}
/**
*
* Capabilities of the remote cache system.
*
*
* .build.bazel.remote.execution.v2.CacheCapabilities cache_capabilities = 1;
*/
public build.bazel.remote.execution.v2.CacheCapabilitiesOrBuilder getCacheCapabilitiesOrBuilder() {
if (cacheCapabilitiesBuilder_ != null) {
return cacheCapabilitiesBuilder_.getMessageOrBuilder();
} else {
return cacheCapabilities_ == null ?
build.bazel.remote.execution.v2.CacheCapabilities.getDefaultInstance() : cacheCapabilities_;
}
}
/**
*
* Capabilities of the remote cache system.
*
*
* .build.bazel.remote.execution.v2.CacheCapabilities cache_capabilities = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.CacheCapabilities, build.bazel.remote.execution.v2.CacheCapabilities.Builder, build.bazel.remote.execution.v2.CacheCapabilitiesOrBuilder>
getCacheCapabilitiesFieldBuilder() {
if (cacheCapabilitiesBuilder_ == null) {
cacheCapabilitiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.CacheCapabilities, build.bazel.remote.execution.v2.CacheCapabilities.Builder, build.bazel.remote.execution.v2.CacheCapabilitiesOrBuilder>(
getCacheCapabilities(),
getParentForChildren(),
isClean());
cacheCapabilities_ = null;
}
return cacheCapabilitiesBuilder_;
}
private build.bazel.remote.execution.v2.ExecutionCapabilities executionCapabilities_;
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.ExecutionCapabilities, build.bazel.remote.execution.v2.ExecutionCapabilities.Builder, build.bazel.remote.execution.v2.ExecutionCapabilitiesOrBuilder> executionCapabilitiesBuilder_;
/**
*
* Capabilities of the remote execution system.
*
*
* .build.bazel.remote.execution.v2.ExecutionCapabilities execution_capabilities = 2;
* @return Whether the executionCapabilities field is set.
*/
public boolean hasExecutionCapabilities() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Capabilities of the remote execution system.
*
*
* .build.bazel.remote.execution.v2.ExecutionCapabilities execution_capabilities = 2;
* @return The executionCapabilities.
*/
public build.bazel.remote.execution.v2.ExecutionCapabilities getExecutionCapabilities() {
if (executionCapabilitiesBuilder_ == null) {
return executionCapabilities_ == null ? build.bazel.remote.execution.v2.ExecutionCapabilities.getDefaultInstance() : executionCapabilities_;
} else {
return executionCapabilitiesBuilder_.getMessage();
}
}
/**
*
* Capabilities of the remote execution system.
*
*
* .build.bazel.remote.execution.v2.ExecutionCapabilities execution_capabilities = 2;
*/
public Builder setExecutionCapabilities(build.bazel.remote.execution.v2.ExecutionCapabilities value) {
if (executionCapabilitiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
executionCapabilities_ = value;
} else {
executionCapabilitiesBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Capabilities of the remote execution system.
*
*
* .build.bazel.remote.execution.v2.ExecutionCapabilities execution_capabilities = 2;
*/
public Builder setExecutionCapabilities(
build.bazel.remote.execution.v2.ExecutionCapabilities.Builder builderForValue) {
if (executionCapabilitiesBuilder_ == null) {
executionCapabilities_ = builderForValue.build();
} else {
executionCapabilitiesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Capabilities of the remote execution system.
*
*
* .build.bazel.remote.execution.v2.ExecutionCapabilities execution_capabilities = 2;
*/
public Builder mergeExecutionCapabilities(build.bazel.remote.execution.v2.ExecutionCapabilities value) {
if (executionCapabilitiesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
executionCapabilities_ != null &&
executionCapabilities_ != build.bazel.remote.execution.v2.ExecutionCapabilities.getDefaultInstance()) {
getExecutionCapabilitiesBuilder().mergeFrom(value);
} else {
executionCapabilities_ = value;
}
} else {
executionCapabilitiesBuilder_.mergeFrom(value);
}
if (executionCapabilities_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Capabilities of the remote execution system.
*
*
* .build.bazel.remote.execution.v2.ExecutionCapabilities execution_capabilities = 2;
*/
public Builder clearExecutionCapabilities() {
bitField0_ = (bitField0_ & ~0x00000002);
executionCapabilities_ = null;
if (executionCapabilitiesBuilder_ != null) {
executionCapabilitiesBuilder_.dispose();
executionCapabilitiesBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Capabilities of the remote execution system.
*
*
* .build.bazel.remote.execution.v2.ExecutionCapabilities execution_capabilities = 2;
*/
public build.bazel.remote.execution.v2.ExecutionCapabilities.Builder getExecutionCapabilitiesBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getExecutionCapabilitiesFieldBuilder().getBuilder();
}
/**
*
* Capabilities of the remote execution system.
*
*
* .build.bazel.remote.execution.v2.ExecutionCapabilities execution_capabilities = 2;
*/
public build.bazel.remote.execution.v2.ExecutionCapabilitiesOrBuilder getExecutionCapabilitiesOrBuilder() {
if (executionCapabilitiesBuilder_ != null) {
return executionCapabilitiesBuilder_.getMessageOrBuilder();
} else {
return executionCapabilities_ == null ?
build.bazel.remote.execution.v2.ExecutionCapabilities.getDefaultInstance() : executionCapabilities_;
}
}
/**
*
* Capabilities of the remote execution system.
*
*
* .build.bazel.remote.execution.v2.ExecutionCapabilities execution_capabilities = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.ExecutionCapabilities, build.bazel.remote.execution.v2.ExecutionCapabilities.Builder, build.bazel.remote.execution.v2.ExecutionCapabilitiesOrBuilder>
getExecutionCapabilitiesFieldBuilder() {
if (executionCapabilitiesBuilder_ == null) {
executionCapabilitiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.ExecutionCapabilities, build.bazel.remote.execution.v2.ExecutionCapabilities.Builder, build.bazel.remote.execution.v2.ExecutionCapabilitiesOrBuilder>(
getExecutionCapabilities(),
getParentForChildren(),
isClean());
executionCapabilities_ = null;
}
return executionCapabilitiesBuilder_;
}
private build.bazel.semver.SemVer deprecatedApiVersion_;
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.semver.SemVer, build.bazel.semver.SemVer.Builder, build.bazel.semver.SemVerOrBuilder> deprecatedApiVersionBuilder_;
/**
*
* Earliest RE API version supported, including deprecated versions.
*
*
* .build.bazel.semver.SemVer deprecated_api_version = 3;
* @return Whether the deprecatedApiVersion field is set.
*/
public boolean hasDeprecatedApiVersion() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Earliest RE API version supported, including deprecated versions.
*
*
* .build.bazel.semver.SemVer deprecated_api_version = 3;
* @return The deprecatedApiVersion.
*/
public build.bazel.semver.SemVer getDeprecatedApiVersion() {
if (deprecatedApiVersionBuilder_ == null) {
return deprecatedApiVersion_ == null ? build.bazel.semver.SemVer.getDefaultInstance() : deprecatedApiVersion_;
} else {
return deprecatedApiVersionBuilder_.getMessage();
}
}
/**
*
* Earliest RE API version supported, including deprecated versions.
*
*
* .build.bazel.semver.SemVer deprecated_api_version = 3;
*/
public Builder setDeprecatedApiVersion(build.bazel.semver.SemVer value) {
if (deprecatedApiVersionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deprecatedApiVersion_ = value;
} else {
deprecatedApiVersionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Earliest RE API version supported, including deprecated versions.
*
*
* .build.bazel.semver.SemVer deprecated_api_version = 3;
*/
public Builder setDeprecatedApiVersion(
build.bazel.semver.SemVer.Builder builderForValue) {
if (deprecatedApiVersionBuilder_ == null) {
deprecatedApiVersion_ = builderForValue.build();
} else {
deprecatedApiVersionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Earliest RE API version supported, including deprecated versions.
*
*
* .build.bazel.semver.SemVer deprecated_api_version = 3;
*/
public Builder mergeDeprecatedApiVersion(build.bazel.semver.SemVer value) {
if (deprecatedApiVersionBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
deprecatedApiVersion_ != null &&
deprecatedApiVersion_ != build.bazel.semver.SemVer.getDefaultInstance()) {
getDeprecatedApiVersionBuilder().mergeFrom(value);
} else {
deprecatedApiVersion_ = value;
}
} else {
deprecatedApiVersionBuilder_.mergeFrom(value);
}
if (deprecatedApiVersion_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* Earliest RE API version supported, including deprecated versions.
*
*
* .build.bazel.semver.SemVer deprecated_api_version = 3;
*/
public Builder clearDeprecatedApiVersion() {
bitField0_ = (bitField0_ & ~0x00000004);
deprecatedApiVersion_ = null;
if (deprecatedApiVersionBuilder_ != null) {
deprecatedApiVersionBuilder_.dispose();
deprecatedApiVersionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Earliest RE API version supported, including deprecated versions.
*
*
* .build.bazel.semver.SemVer deprecated_api_version = 3;
*/
public build.bazel.semver.SemVer.Builder getDeprecatedApiVersionBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getDeprecatedApiVersionFieldBuilder().getBuilder();
}
/**
*
* Earliest RE API version supported, including deprecated versions.
*
*
* .build.bazel.semver.SemVer deprecated_api_version = 3;
*/
public build.bazel.semver.SemVerOrBuilder getDeprecatedApiVersionOrBuilder() {
if (deprecatedApiVersionBuilder_ != null) {
return deprecatedApiVersionBuilder_.getMessageOrBuilder();
} else {
return deprecatedApiVersion_ == null ?
build.bazel.semver.SemVer.getDefaultInstance() : deprecatedApiVersion_;
}
}
/**
*
* Earliest RE API version supported, including deprecated versions.
*
*
* .build.bazel.semver.SemVer deprecated_api_version = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.semver.SemVer, build.bazel.semver.SemVer.Builder, build.bazel.semver.SemVerOrBuilder>
getDeprecatedApiVersionFieldBuilder() {
if (deprecatedApiVersionBuilder_ == null) {
deprecatedApiVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
build.bazel.semver.SemVer, build.bazel.semver.SemVer.Builder, build.bazel.semver.SemVerOrBuilder>(
getDeprecatedApiVersion(),
getParentForChildren(),
isClean());
deprecatedApiVersion_ = null;
}
return deprecatedApiVersionBuilder_;
}
private build.bazel.semver.SemVer lowApiVersion_;
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.semver.SemVer, build.bazel.semver.SemVer.Builder, build.bazel.semver.SemVerOrBuilder> lowApiVersionBuilder_;
/**
*
* Earliest non-deprecated RE API version supported.
*
*
* .build.bazel.semver.SemVer low_api_version = 4;
* @return Whether the lowApiVersion field is set.
*/
public boolean hasLowApiVersion() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Earliest non-deprecated RE API version supported.
*
*
* .build.bazel.semver.SemVer low_api_version = 4;
* @return The lowApiVersion.
*/
public build.bazel.semver.SemVer getLowApiVersion() {
if (lowApiVersionBuilder_ == null) {
return lowApiVersion_ == null ? build.bazel.semver.SemVer.getDefaultInstance() : lowApiVersion_;
} else {
return lowApiVersionBuilder_.getMessage();
}
}
/**
*
* Earliest non-deprecated RE API version supported.
*
*
* .build.bazel.semver.SemVer low_api_version = 4;
*/
public Builder setLowApiVersion(build.bazel.semver.SemVer value) {
if (lowApiVersionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lowApiVersion_ = value;
} else {
lowApiVersionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Earliest non-deprecated RE API version supported.
*
*
* .build.bazel.semver.SemVer low_api_version = 4;
*/
public Builder setLowApiVersion(
build.bazel.semver.SemVer.Builder builderForValue) {
if (lowApiVersionBuilder_ == null) {
lowApiVersion_ = builderForValue.build();
} else {
lowApiVersionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Earliest non-deprecated RE API version supported.
*
*
* .build.bazel.semver.SemVer low_api_version = 4;
*/
public Builder mergeLowApiVersion(build.bazel.semver.SemVer value) {
if (lowApiVersionBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
lowApiVersion_ != null &&
lowApiVersion_ != build.bazel.semver.SemVer.getDefaultInstance()) {
getLowApiVersionBuilder().mergeFrom(value);
} else {
lowApiVersion_ = value;
}
} else {
lowApiVersionBuilder_.mergeFrom(value);
}
if (lowApiVersion_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* Earliest non-deprecated RE API version supported.
*
*
* .build.bazel.semver.SemVer low_api_version = 4;
*/
public Builder clearLowApiVersion() {
bitField0_ = (bitField0_ & ~0x00000008);
lowApiVersion_ = null;
if (lowApiVersionBuilder_ != null) {
lowApiVersionBuilder_.dispose();
lowApiVersionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Earliest non-deprecated RE API version supported.
*
*
* .build.bazel.semver.SemVer low_api_version = 4;
*/
public build.bazel.semver.SemVer.Builder getLowApiVersionBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getLowApiVersionFieldBuilder().getBuilder();
}
/**
*
* Earliest non-deprecated RE API version supported.
*
*
* .build.bazel.semver.SemVer low_api_version = 4;
*/
public build.bazel.semver.SemVerOrBuilder getLowApiVersionOrBuilder() {
if (lowApiVersionBuilder_ != null) {
return lowApiVersionBuilder_.getMessageOrBuilder();
} else {
return lowApiVersion_ == null ?
build.bazel.semver.SemVer.getDefaultInstance() : lowApiVersion_;
}
}
/**
*
* Earliest non-deprecated RE API version supported.
*
*
* .build.bazel.semver.SemVer low_api_version = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.semver.SemVer, build.bazel.semver.SemVer.Builder, build.bazel.semver.SemVerOrBuilder>
getLowApiVersionFieldBuilder() {
if (lowApiVersionBuilder_ == null) {
lowApiVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
build.bazel.semver.SemVer, build.bazel.semver.SemVer.Builder, build.bazel.semver.SemVerOrBuilder>(
getLowApiVersion(),
getParentForChildren(),
isClean());
lowApiVersion_ = null;
}
return lowApiVersionBuilder_;
}
private build.bazel.semver.SemVer highApiVersion_;
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.semver.SemVer, build.bazel.semver.SemVer.Builder, build.bazel.semver.SemVerOrBuilder> highApiVersionBuilder_;
/**
*
* Latest RE API version supported.
*
*
* .build.bazel.semver.SemVer high_api_version = 5;
* @return Whether the highApiVersion field is set.
*/
public boolean hasHighApiVersion() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Latest RE API version supported.
*
*
* .build.bazel.semver.SemVer high_api_version = 5;
* @return The highApiVersion.
*/
public build.bazel.semver.SemVer getHighApiVersion() {
if (highApiVersionBuilder_ == null) {
return highApiVersion_ == null ? build.bazel.semver.SemVer.getDefaultInstance() : highApiVersion_;
} else {
return highApiVersionBuilder_.getMessage();
}
}
/**
*
* Latest RE API version supported.
*
*
* .build.bazel.semver.SemVer high_api_version = 5;
*/
public Builder setHighApiVersion(build.bazel.semver.SemVer value) {
if (highApiVersionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
highApiVersion_ = value;
} else {
highApiVersionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Latest RE API version supported.
*
*
* .build.bazel.semver.SemVer high_api_version = 5;
*/
public Builder setHighApiVersion(
build.bazel.semver.SemVer.Builder builderForValue) {
if (highApiVersionBuilder_ == null) {
highApiVersion_ = builderForValue.build();
} else {
highApiVersionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Latest RE API version supported.
*
*
* .build.bazel.semver.SemVer high_api_version = 5;
*/
public Builder mergeHighApiVersion(build.bazel.semver.SemVer value) {
if (highApiVersionBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
highApiVersion_ != null &&
highApiVersion_ != build.bazel.semver.SemVer.getDefaultInstance()) {
getHighApiVersionBuilder().mergeFrom(value);
} else {
highApiVersion_ = value;
}
} else {
highApiVersionBuilder_.mergeFrom(value);
}
if (highApiVersion_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* Latest RE API version supported.
*
*
* .build.bazel.semver.SemVer high_api_version = 5;
*/
public Builder clearHighApiVersion() {
bitField0_ = (bitField0_ & ~0x00000010);
highApiVersion_ = null;
if (highApiVersionBuilder_ != null) {
highApiVersionBuilder_.dispose();
highApiVersionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Latest RE API version supported.
*
*
* .build.bazel.semver.SemVer high_api_version = 5;
*/
public build.bazel.semver.SemVer.Builder getHighApiVersionBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getHighApiVersionFieldBuilder().getBuilder();
}
/**
*
* Latest RE API version supported.
*
*
* .build.bazel.semver.SemVer high_api_version = 5;
*/
public build.bazel.semver.SemVerOrBuilder getHighApiVersionOrBuilder() {
if (highApiVersionBuilder_ != null) {
return highApiVersionBuilder_.getMessageOrBuilder();
} else {
return highApiVersion_ == null ?
build.bazel.semver.SemVer.getDefaultInstance() : highApiVersion_;
}
}
/**
*
* Latest RE API version supported.
*
*
* .build.bazel.semver.SemVer high_api_version = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.semver.SemVer, build.bazel.semver.SemVer.Builder, build.bazel.semver.SemVerOrBuilder>
getHighApiVersionFieldBuilder() {
if (highApiVersionBuilder_ == null) {
highApiVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
build.bazel.semver.SemVer, build.bazel.semver.SemVer.Builder, build.bazel.semver.SemVerOrBuilder>(
getHighApiVersion(),
getParentForChildren(),
isClean());
highApiVersion_ = null;
}
return highApiVersionBuilder_;
}
@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.execution.v2.ServerCapabilities)
}
// @@protoc_insertion_point(class_scope:build.bazel.remote.execution.v2.ServerCapabilities)
private static final build.bazel.remote.execution.v2.ServerCapabilities DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new build.bazel.remote.execution.v2.ServerCapabilities();
}
public static build.bazel.remote.execution.v2.ServerCapabilities getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ServerCapabilities 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.execution.v2.ServerCapabilities getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}