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

build.bazel.remote.execution.v2.ExecutionCapabilities Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: build/bazel/remote/execution/v2/remote_execution.proto

// Protobuf Java Version: 3.25.3
package build.bazel.remote.execution.v2;

/**
 * 
 * Capabilities of the remote execution system.
 * 
* * Protobuf type {@code build.bazel.remote.execution.v2.ExecutionCapabilities} */ public final class ExecutionCapabilities extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:build.bazel.remote.execution.v2.ExecutionCapabilities) ExecutionCapabilitiesOrBuilder { private static final long serialVersionUID = 0L; // Use ExecutionCapabilities.newBuilder() to construct. private ExecutionCapabilities(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExecutionCapabilities() { digestFunction_ = 0; supportedNodeProperties_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExecutionCapabilities(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_ExecutionCapabilities_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_ExecutionCapabilities_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.execution.v2.ExecutionCapabilities.class, build.bazel.remote.execution.v2.ExecutionCapabilities.Builder.class); } private int bitField0_; public static final int DIGEST_FUNCTION_FIELD_NUMBER = 1; private int digestFunction_ = 0; /** *
   * Remote execution may only support a single digest function.
   * 
* * .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1; * @return The enum numeric value on the wire for digestFunction. */ @java.lang.Override public int getDigestFunctionValue() { return digestFunction_; } /** *
   * Remote execution may only support a single digest function.
   * 
* * .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1; * @return The digestFunction. */ @java.lang.Override public build.bazel.remote.execution.v2.DigestFunction.Value getDigestFunction() { build.bazel.remote.execution.v2.DigestFunction.Value result = build.bazel.remote.execution.v2.DigestFunction.Value.forNumber(digestFunction_); return result == null ? build.bazel.remote.execution.v2.DigestFunction.Value.UNRECOGNIZED : result; } public static final int EXEC_ENABLED_FIELD_NUMBER = 2; private boolean execEnabled_ = false; /** *
   * Whether remote execution is enabled for the particular server/instance.
   * 
* * bool exec_enabled = 2; * @return The execEnabled. */ @java.lang.Override public boolean getExecEnabled() { return execEnabled_; } public static final int EXECUTION_PRIORITY_CAPABILITIES_FIELD_NUMBER = 3; private build.bazel.remote.execution.v2.PriorityCapabilities executionPriorityCapabilities_; /** *
   * Supported execution priority range.
   * 
* * .build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3; * @return Whether the executionPriorityCapabilities field is set. */ @java.lang.Override public boolean hasExecutionPriorityCapabilities() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Supported execution priority range.
   * 
* * .build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3; * @return The executionPriorityCapabilities. */ @java.lang.Override public build.bazel.remote.execution.v2.PriorityCapabilities getExecutionPriorityCapabilities() { return executionPriorityCapabilities_ == null ? build.bazel.remote.execution.v2.PriorityCapabilities.getDefaultInstance() : executionPriorityCapabilities_; } /** *
   * Supported execution priority range.
   * 
* * .build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3; */ @java.lang.Override public build.bazel.remote.execution.v2.PriorityCapabilitiesOrBuilder getExecutionPriorityCapabilitiesOrBuilder() { return executionPriorityCapabilities_ == null ? build.bazel.remote.execution.v2.PriorityCapabilities.getDefaultInstance() : executionPriorityCapabilities_; } public static final int SUPPORTED_NODE_PROPERTIES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList supportedNodeProperties_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * Supported node properties.
   * 
* * repeated string supported_node_properties = 4; * @return A list containing the supportedNodeProperties. */ public com.google.protobuf.ProtocolStringList getSupportedNodePropertiesList() { return supportedNodeProperties_; } /** *
   * Supported node properties.
   * 
* * repeated string supported_node_properties = 4; * @return The count of supportedNodeProperties. */ public int getSupportedNodePropertiesCount() { return supportedNodeProperties_.size(); } /** *
   * Supported node properties.
   * 
* * repeated string supported_node_properties = 4; * @param index The index of the element to return. * @return The supportedNodeProperties at the given index. */ public java.lang.String getSupportedNodeProperties(int index) { return supportedNodeProperties_.get(index); } /** *
   * Supported node properties.
   * 
* * repeated string supported_node_properties = 4; * @param index The index of the value to return. * @return The bytes of the supportedNodeProperties at the given index. */ public com.google.protobuf.ByteString getSupportedNodePropertiesBytes(int index) { return supportedNodeProperties_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (digestFunction_ != build.bazel.remote.execution.v2.DigestFunction.Value.UNKNOWN.getNumber()) { output.writeEnum(1, digestFunction_); } if (execEnabled_ != false) { output.writeBool(2, execEnabled_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getExecutionPriorityCapabilities()); } for (int i = 0; i < supportedNodeProperties_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, supportedNodeProperties_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (digestFunction_ != build.bazel.remote.execution.v2.DigestFunction.Value.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, digestFunction_); } if (execEnabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, execEnabled_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getExecutionPriorityCapabilities()); } { int dataSize = 0; for (int i = 0; i < supportedNodeProperties_.size(); i++) { dataSize += computeStringSizeNoTag(supportedNodeProperties_.getRaw(i)); } size += dataSize; size += 1 * getSupportedNodePropertiesList().size(); } 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.execution.v2.ExecutionCapabilities)) { return super.equals(obj); } build.bazel.remote.execution.v2.ExecutionCapabilities other = (build.bazel.remote.execution.v2.ExecutionCapabilities) obj; if (digestFunction_ != other.digestFunction_) return false; if (getExecEnabled() != other.getExecEnabled()) return false; if (hasExecutionPriorityCapabilities() != other.hasExecutionPriorityCapabilities()) return false; if (hasExecutionPriorityCapabilities()) { if (!getExecutionPriorityCapabilities() .equals(other.getExecutionPriorityCapabilities())) return false; } if (!getSupportedNodePropertiesList() .equals(other.getSupportedNodePropertiesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DIGEST_FUNCTION_FIELD_NUMBER; hash = (53 * hash) + digestFunction_; hash = (37 * hash) + EXEC_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getExecEnabled()); if (hasExecutionPriorityCapabilities()) { hash = (37 * hash) + EXECUTION_PRIORITY_CAPABILITIES_FIELD_NUMBER; hash = (53 * hash) + getExecutionPriorityCapabilities().hashCode(); } if (getSupportedNodePropertiesCount() > 0) { hash = (37 * hash) + SUPPORTED_NODE_PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getSupportedNodePropertiesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static build.bazel.remote.execution.v2.ExecutionCapabilities parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.ExecutionCapabilities 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.execution.v2.ExecutionCapabilities parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.ExecutionCapabilities 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.execution.v2.ExecutionCapabilities parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.ExecutionCapabilities parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static build.bazel.remote.execution.v2.ExecutionCapabilities parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static build.bazel.remote.execution.v2.ExecutionCapabilities 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.execution.v2.ExecutionCapabilities parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static build.bazel.remote.execution.v2.ExecutionCapabilities 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.execution.v2.ExecutionCapabilities parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static build.bazel.remote.execution.v2.ExecutionCapabilities 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.execution.v2.ExecutionCapabilities 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; } /** *
   * Capabilities of the remote execution system.
   * 
* * Protobuf type {@code build.bazel.remote.execution.v2.ExecutionCapabilities} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:build.bazel.remote.execution.v2.ExecutionCapabilities) build.bazel.remote.execution.v2.ExecutionCapabilitiesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_ExecutionCapabilities_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_ExecutionCapabilities_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.execution.v2.ExecutionCapabilities.class, build.bazel.remote.execution.v2.ExecutionCapabilities.Builder.class); } // Construct using build.bazel.remote.execution.v2.ExecutionCapabilities.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getExecutionPriorityCapabilitiesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; digestFunction_ = 0; execEnabled_ = false; executionPriorityCapabilities_ = null; if (executionPriorityCapabilitiesBuilder_ != null) { executionPriorityCapabilitiesBuilder_.dispose(); executionPriorityCapabilitiesBuilder_ = null; } supportedNodeProperties_ = com.google.protobuf.LazyStringArrayList.emptyList(); 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_ExecutionCapabilities_descriptor; } @java.lang.Override public build.bazel.remote.execution.v2.ExecutionCapabilities getDefaultInstanceForType() { return build.bazel.remote.execution.v2.ExecutionCapabilities.getDefaultInstance(); } @java.lang.Override public build.bazel.remote.execution.v2.ExecutionCapabilities build() { build.bazel.remote.execution.v2.ExecutionCapabilities result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public build.bazel.remote.execution.v2.ExecutionCapabilities buildPartial() { build.bazel.remote.execution.v2.ExecutionCapabilities result = new build.bazel.remote.execution.v2.ExecutionCapabilities(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(build.bazel.remote.execution.v2.ExecutionCapabilities result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.digestFunction_ = digestFunction_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.execEnabled_ = execEnabled_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.executionPriorityCapabilities_ = executionPriorityCapabilitiesBuilder_ == null ? executionPriorityCapabilities_ : executionPriorityCapabilitiesBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { supportedNodeProperties_.makeImmutable(); result.supportedNodeProperties_ = supportedNodeProperties_; } 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.ExecutionCapabilities) { return mergeFrom((build.bazel.remote.execution.v2.ExecutionCapabilities)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(build.bazel.remote.execution.v2.ExecutionCapabilities other) { if (other == build.bazel.remote.execution.v2.ExecutionCapabilities.getDefaultInstance()) return this; if (other.digestFunction_ != 0) { setDigestFunctionValue(other.getDigestFunctionValue()); } if (other.getExecEnabled() != false) { setExecEnabled(other.getExecEnabled()); } if (other.hasExecutionPriorityCapabilities()) { mergeExecutionPriorityCapabilities(other.getExecutionPriorityCapabilities()); } if (!other.supportedNodeProperties_.isEmpty()) { if (supportedNodeProperties_.isEmpty()) { supportedNodeProperties_ = other.supportedNodeProperties_; bitField0_ |= 0x00000008; } else { ensureSupportedNodePropertiesIsMutable(); supportedNodeProperties_.addAll(other.supportedNodeProperties_); } onChanged(); } 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 8: { digestFunction_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { execEnabled_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getExecutionPriorityCapabilitiesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureSupportedNodePropertiesIsMutable(); supportedNodeProperties_.add(s); break; } // case 34 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 int digestFunction_ = 0; /** *
     * Remote execution may only support a single digest function.
     * 
* * .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1; * @return The enum numeric value on the wire for digestFunction. */ @java.lang.Override public int getDigestFunctionValue() { return digestFunction_; } /** *
     * Remote execution may only support a single digest function.
     * 
* * .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1; * @param value The enum numeric value on the wire for digestFunction to set. * @return This builder for chaining. */ public Builder setDigestFunctionValue(int value) { digestFunction_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Remote execution may only support a single digest function.
     * 
* * .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1; * @return The digestFunction. */ @java.lang.Override public build.bazel.remote.execution.v2.DigestFunction.Value getDigestFunction() { build.bazel.remote.execution.v2.DigestFunction.Value result = build.bazel.remote.execution.v2.DigestFunction.Value.forNumber(digestFunction_); return result == null ? build.bazel.remote.execution.v2.DigestFunction.Value.UNRECOGNIZED : result; } /** *
     * Remote execution may only support a single digest function.
     * 
* * .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1; * @param value The digestFunction to set. * @return This builder for chaining. */ public Builder setDigestFunction(build.bazel.remote.execution.v2.DigestFunction.Value value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; digestFunction_ = value.getNumber(); onChanged(); return this; } /** *
     * Remote execution may only support a single digest function.
     * 
* * .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1; * @return This builder for chaining. */ public Builder clearDigestFunction() { bitField0_ = (bitField0_ & ~0x00000001); digestFunction_ = 0; onChanged(); return this; } private boolean execEnabled_ ; /** *
     * Whether remote execution is enabled for the particular server/instance.
     * 
* * bool exec_enabled = 2; * @return The execEnabled. */ @java.lang.Override public boolean getExecEnabled() { return execEnabled_; } /** *
     * Whether remote execution is enabled for the particular server/instance.
     * 
* * bool exec_enabled = 2; * @param value The execEnabled to set. * @return This builder for chaining. */ public Builder setExecEnabled(boolean value) { execEnabled_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Whether remote execution is enabled for the particular server/instance.
     * 
* * bool exec_enabled = 2; * @return This builder for chaining. */ public Builder clearExecEnabled() { bitField0_ = (bitField0_ & ~0x00000002); execEnabled_ = false; onChanged(); return this; } private build.bazel.remote.execution.v2.PriorityCapabilities executionPriorityCapabilities_; private com.google.protobuf.SingleFieldBuilderV3< build.bazel.remote.execution.v2.PriorityCapabilities, build.bazel.remote.execution.v2.PriorityCapabilities.Builder, build.bazel.remote.execution.v2.PriorityCapabilitiesOrBuilder> executionPriorityCapabilitiesBuilder_; /** *
     * Supported execution priority range.
     * 
* * .build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3; * @return Whether the executionPriorityCapabilities field is set. */ public boolean hasExecutionPriorityCapabilities() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Supported execution priority range.
     * 
* * .build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3; * @return The executionPriorityCapabilities. */ public build.bazel.remote.execution.v2.PriorityCapabilities getExecutionPriorityCapabilities() { if (executionPriorityCapabilitiesBuilder_ == null) { return executionPriorityCapabilities_ == null ? build.bazel.remote.execution.v2.PriorityCapabilities.getDefaultInstance() : executionPriorityCapabilities_; } else { return executionPriorityCapabilitiesBuilder_.getMessage(); } } /** *
     * Supported execution priority range.
     * 
* * .build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3; */ public Builder setExecutionPriorityCapabilities(build.bazel.remote.execution.v2.PriorityCapabilities value) { if (executionPriorityCapabilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } executionPriorityCapabilities_ = value; } else { executionPriorityCapabilitiesBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Supported execution priority range.
     * 
* * .build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3; */ public Builder setExecutionPriorityCapabilities( build.bazel.remote.execution.v2.PriorityCapabilities.Builder builderForValue) { if (executionPriorityCapabilitiesBuilder_ == null) { executionPriorityCapabilities_ = builderForValue.build(); } else { executionPriorityCapabilitiesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Supported execution priority range.
     * 
* * .build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3; */ public Builder mergeExecutionPriorityCapabilities(build.bazel.remote.execution.v2.PriorityCapabilities value) { if (executionPriorityCapabilitiesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && executionPriorityCapabilities_ != null && executionPriorityCapabilities_ != build.bazel.remote.execution.v2.PriorityCapabilities.getDefaultInstance()) { getExecutionPriorityCapabilitiesBuilder().mergeFrom(value); } else { executionPriorityCapabilities_ = value; } } else { executionPriorityCapabilitiesBuilder_.mergeFrom(value); } if (executionPriorityCapabilities_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * Supported execution priority range.
     * 
* * .build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3; */ public Builder clearExecutionPriorityCapabilities() { bitField0_ = (bitField0_ & ~0x00000004); executionPriorityCapabilities_ = null; if (executionPriorityCapabilitiesBuilder_ != null) { executionPriorityCapabilitiesBuilder_.dispose(); executionPriorityCapabilitiesBuilder_ = null; } onChanged(); return this; } /** *
     * Supported execution priority range.
     * 
* * .build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3; */ public build.bazel.remote.execution.v2.PriorityCapabilities.Builder getExecutionPriorityCapabilitiesBuilder() { bitField0_ |= 0x00000004; onChanged(); return getExecutionPriorityCapabilitiesFieldBuilder().getBuilder(); } /** *
     * Supported execution priority range.
     * 
* * .build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3; */ public build.bazel.remote.execution.v2.PriorityCapabilitiesOrBuilder getExecutionPriorityCapabilitiesOrBuilder() { if (executionPriorityCapabilitiesBuilder_ != null) { return executionPriorityCapabilitiesBuilder_.getMessageOrBuilder(); } else { return executionPriorityCapabilities_ == null ? build.bazel.remote.execution.v2.PriorityCapabilities.getDefaultInstance() : executionPriorityCapabilities_; } } /** *
     * Supported execution priority range.
     * 
* * .build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3; */ private com.google.protobuf.SingleFieldBuilderV3< build.bazel.remote.execution.v2.PriorityCapabilities, build.bazel.remote.execution.v2.PriorityCapabilities.Builder, build.bazel.remote.execution.v2.PriorityCapabilitiesOrBuilder> getExecutionPriorityCapabilitiesFieldBuilder() { if (executionPriorityCapabilitiesBuilder_ == null) { executionPriorityCapabilitiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< build.bazel.remote.execution.v2.PriorityCapabilities, build.bazel.remote.execution.v2.PriorityCapabilities.Builder, build.bazel.remote.execution.v2.PriorityCapabilitiesOrBuilder>( getExecutionPriorityCapabilities(), getParentForChildren(), isClean()); executionPriorityCapabilities_ = null; } return executionPriorityCapabilitiesBuilder_; } private com.google.protobuf.LazyStringArrayList supportedNodeProperties_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSupportedNodePropertiesIsMutable() { if (!supportedNodeProperties_.isModifiable()) { supportedNodeProperties_ = new com.google.protobuf.LazyStringArrayList(supportedNodeProperties_); } bitField0_ |= 0x00000008; } /** *
     * Supported node properties.
     * 
* * repeated string supported_node_properties = 4; * @return A list containing the supportedNodeProperties. */ public com.google.protobuf.ProtocolStringList getSupportedNodePropertiesList() { supportedNodeProperties_.makeImmutable(); return supportedNodeProperties_; } /** *
     * Supported node properties.
     * 
* * repeated string supported_node_properties = 4; * @return The count of supportedNodeProperties. */ public int getSupportedNodePropertiesCount() { return supportedNodeProperties_.size(); } /** *
     * Supported node properties.
     * 
* * repeated string supported_node_properties = 4; * @param index The index of the element to return. * @return The supportedNodeProperties at the given index. */ public java.lang.String getSupportedNodeProperties(int index) { return supportedNodeProperties_.get(index); } /** *
     * Supported node properties.
     * 
* * repeated string supported_node_properties = 4; * @param index The index of the value to return. * @return The bytes of the supportedNodeProperties at the given index. */ public com.google.protobuf.ByteString getSupportedNodePropertiesBytes(int index) { return supportedNodeProperties_.getByteString(index); } /** *
     * Supported node properties.
     * 
* * repeated string supported_node_properties = 4; * @param index The index to set the value at. * @param value The supportedNodeProperties to set. * @return This builder for chaining. */ public Builder setSupportedNodeProperties( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSupportedNodePropertiesIsMutable(); supportedNodeProperties_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Supported node properties.
     * 
* * repeated string supported_node_properties = 4; * @param value The supportedNodeProperties to add. * @return This builder for chaining. */ public Builder addSupportedNodeProperties( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSupportedNodePropertiesIsMutable(); supportedNodeProperties_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Supported node properties.
     * 
* * repeated string supported_node_properties = 4; * @param values The supportedNodeProperties to add. * @return This builder for chaining. */ public Builder addAllSupportedNodeProperties( java.lang.Iterable values) { ensureSupportedNodePropertiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, supportedNodeProperties_); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Supported node properties.
     * 
* * repeated string supported_node_properties = 4; * @return This builder for chaining. */ public Builder clearSupportedNodeProperties() { supportedNodeProperties_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** *
     * Supported node properties.
     * 
* * repeated string supported_node_properties = 4; * @param value The bytes of the supportedNodeProperties to add. * @return This builder for chaining. */ public Builder addSupportedNodePropertiesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSupportedNodePropertiesIsMutable(); supportedNodeProperties_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } @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.ExecutionCapabilities) } // @@protoc_insertion_point(class_scope:build.bazel.remote.execution.v2.ExecutionCapabilities) private static final build.bazel.remote.execution.v2.ExecutionCapabilities DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new build.bazel.remote.execution.v2.ExecutionCapabilities(); } public static build.bazel.remote.execution.v2.ExecutionCapabilities getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExecutionCapabilities 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.ExecutionCapabilities getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy