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

build.bazel.remote.execution.v2.PriorityCapabilities 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;

/**
 * 
 * Allowed values for priority in
 * [ResultsCachePolicy][build.bazel.remoteexecution.v2.ResultsCachePolicy] and
 * [ExecutionPolicy][build.bazel.remoteexecution.v2.ResultsCachePolicy]
 * Used for querying both cache and execution valid priority ranges.
 * 
* * Protobuf type {@code build.bazel.remote.execution.v2.PriorityCapabilities} */ public final class PriorityCapabilities extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:build.bazel.remote.execution.v2.PriorityCapabilities) PriorityCapabilitiesOrBuilder { private static final long serialVersionUID = 0L; // Use PriorityCapabilities.newBuilder() to construct. private PriorityCapabilities(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PriorityCapabilities() { priorities_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PriorityCapabilities(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_PriorityCapabilities_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_PriorityCapabilities_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.execution.v2.PriorityCapabilities.class, build.bazel.remote.execution.v2.PriorityCapabilities.Builder.class); } public interface PriorityRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange) com.google.protobuf.MessageOrBuilder { /** *
     * The minimum numeric value for this priority range, which represents the
     * most urgent task or longest retained item.
     * 
* * int32 min_priority = 1; * @return The minPriority. */ int getMinPriority(); /** *
     * The maximum numeric value for this priority range, which represents the
     * least urgent task or shortest retained item.
     * 
* * int32 max_priority = 2; * @return The maxPriority. */ int getMaxPriority(); } /** *
   * Supported range of priorities, including boundaries.
   * 
* * Protobuf type {@code build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange} */ public static final class PriorityRange extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange) PriorityRangeOrBuilder { private static final long serialVersionUID = 0L; // Use PriorityRange.newBuilder() to construct. private PriorityRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PriorityRange() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PriorityRange(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_PriorityCapabilities_PriorityRange_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_PriorityCapabilities_PriorityRange_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.class, build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.Builder.class); } public static final int MIN_PRIORITY_FIELD_NUMBER = 1; private int minPriority_ = 0; /** *
     * The minimum numeric value for this priority range, which represents the
     * most urgent task or longest retained item.
     * 
* * int32 min_priority = 1; * @return The minPriority. */ @java.lang.Override public int getMinPriority() { return minPriority_; } public static final int MAX_PRIORITY_FIELD_NUMBER = 2; private int maxPriority_ = 0; /** *
     * The maximum numeric value for this priority range, which represents the
     * least urgent task or shortest retained item.
     * 
* * int32 max_priority = 2; * @return The maxPriority. */ @java.lang.Override public int getMaxPriority() { return maxPriority_; } 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 (minPriority_ != 0) { output.writeInt32(1, minPriority_); } if (maxPriority_ != 0) { output.writeInt32(2, maxPriority_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (minPriority_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, minPriority_); } if (maxPriority_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, maxPriority_); } 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.PriorityCapabilities.PriorityRange)) { return super.equals(obj); } build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange other = (build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange) obj; if (getMinPriority() != other.getMinPriority()) return false; if (getMaxPriority() != other.getMaxPriority()) 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) + MIN_PRIORITY_FIELD_NUMBER; hash = (53 * hash) + getMinPriority(); hash = (37 * hash) + MAX_PRIORITY_FIELD_NUMBER; hash = (53 * hash) + getMaxPriority(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange 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.PriorityCapabilities.PriorityRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange 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.PriorityCapabilities.PriorityRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange 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.PriorityCapabilities.PriorityRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange 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.PriorityCapabilities.PriorityRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange 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.PriorityCapabilities.PriorityRange 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.PriorityCapabilities.PriorityRange 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.PriorityCapabilities.PriorityRange 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; } /** *
     * Supported range of priorities, including boundaries.
     * 
* * Protobuf type {@code build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange) build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_PriorityCapabilities_PriorityRange_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_PriorityCapabilities_PriorityRange_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.class, build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.Builder.class); } // Construct using build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; minPriority_ = 0; maxPriority_ = 0; 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_PriorityCapabilities_PriorityRange_descriptor; } @java.lang.Override public build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange getDefaultInstanceForType() { return build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.getDefaultInstance(); } @java.lang.Override public build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange build() { build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange buildPartial() { build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange result = new build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.minPriority_ = minPriority_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.maxPriority_ = maxPriority_; } } @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.PriorityCapabilities.PriorityRange) { return mergeFrom((build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange other) { if (other == build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.getDefaultInstance()) return this; if (other.getMinPriority() != 0) { setMinPriority(other.getMinPriority()); } if (other.getMaxPriority() != 0) { setMaxPriority(other.getMaxPriority()); } 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: { minPriority_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { maxPriority_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 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 minPriority_ ; /** *
       * The minimum numeric value for this priority range, which represents the
       * most urgent task or longest retained item.
       * 
* * int32 min_priority = 1; * @return The minPriority. */ @java.lang.Override public int getMinPriority() { return minPriority_; } /** *
       * The minimum numeric value for this priority range, which represents the
       * most urgent task or longest retained item.
       * 
* * int32 min_priority = 1; * @param value The minPriority to set. * @return This builder for chaining. */ public Builder setMinPriority(int value) { minPriority_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The minimum numeric value for this priority range, which represents the
       * most urgent task or longest retained item.
       * 
* * int32 min_priority = 1; * @return This builder for chaining. */ public Builder clearMinPriority() { bitField0_ = (bitField0_ & ~0x00000001); minPriority_ = 0; onChanged(); return this; } private int maxPriority_ ; /** *
       * The maximum numeric value for this priority range, which represents the
       * least urgent task or shortest retained item.
       * 
* * int32 max_priority = 2; * @return The maxPriority. */ @java.lang.Override public int getMaxPriority() { return maxPriority_; } /** *
       * The maximum numeric value for this priority range, which represents the
       * least urgent task or shortest retained item.
       * 
* * int32 max_priority = 2; * @param value The maxPriority to set. * @return This builder for chaining. */ public Builder setMaxPriority(int value) { maxPriority_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The maximum numeric value for this priority range, which represents the
       * least urgent task or shortest retained item.
       * 
* * int32 max_priority = 2; * @return This builder for chaining. */ public Builder clearMaxPriority() { bitField0_ = (bitField0_ & ~0x00000002); maxPriority_ = 0; 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.PriorityCapabilities.PriorityRange) } // @@protoc_insertion_point(class_scope:build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange) private static final build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange(); } public static build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PriorityRange 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.PriorityCapabilities.PriorityRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int PRIORITIES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List priorities_; /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ @java.lang.Override public java.util.List getPrioritiesList() { return priorities_; } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ @java.lang.Override public java.util.List getPrioritiesOrBuilderList() { return priorities_; } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ @java.lang.Override public int getPrioritiesCount() { return priorities_.size(); } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ @java.lang.Override public build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange getPriorities(int index) { return priorities_.get(index); } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ @java.lang.Override public build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRangeOrBuilder getPrioritiesOrBuilder( int index) { return priorities_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < priorities_.size(); i++) { output.writeMessage(1, priorities_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < priorities_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, priorities_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof build.bazel.remote.execution.v2.PriorityCapabilities)) { return super.equals(obj); } build.bazel.remote.execution.v2.PriorityCapabilities other = (build.bazel.remote.execution.v2.PriorityCapabilities) obj; if (!getPrioritiesList() .equals(other.getPrioritiesList())) 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 (getPrioritiesCount() > 0) { hash = (37 * hash) + PRIORITIES_FIELD_NUMBER; hash = (53 * hash) + getPrioritiesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static build.bazel.remote.execution.v2.PriorityCapabilities parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.PriorityCapabilities 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.PriorityCapabilities parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.PriorityCapabilities 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.PriorityCapabilities parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.PriorityCapabilities 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.PriorityCapabilities parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static build.bazel.remote.execution.v2.PriorityCapabilities 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.PriorityCapabilities parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static build.bazel.remote.execution.v2.PriorityCapabilities 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.PriorityCapabilities 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.PriorityCapabilities 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.PriorityCapabilities 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; } /** *
   * Allowed values for priority in
   * [ResultsCachePolicy][build.bazel.remoteexecution.v2.ResultsCachePolicy] and
   * [ExecutionPolicy][build.bazel.remoteexecution.v2.ResultsCachePolicy]
   * Used for querying both cache and execution valid priority ranges.
   * 
* * Protobuf type {@code build.bazel.remote.execution.v2.PriorityCapabilities} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:build.bazel.remote.execution.v2.PriorityCapabilities) build.bazel.remote.execution.v2.PriorityCapabilitiesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_PriorityCapabilities_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_PriorityCapabilities_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.execution.v2.PriorityCapabilities.class, build.bazel.remote.execution.v2.PriorityCapabilities.Builder.class); } // Construct using build.bazel.remote.execution.v2.PriorityCapabilities.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (prioritiesBuilder_ == null) { priorities_ = java.util.Collections.emptyList(); } else { priorities_ = null; prioritiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); 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_PriorityCapabilities_descriptor; } @java.lang.Override public build.bazel.remote.execution.v2.PriorityCapabilities getDefaultInstanceForType() { return build.bazel.remote.execution.v2.PriorityCapabilities.getDefaultInstance(); } @java.lang.Override public build.bazel.remote.execution.v2.PriorityCapabilities build() { build.bazel.remote.execution.v2.PriorityCapabilities result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public build.bazel.remote.execution.v2.PriorityCapabilities buildPartial() { build.bazel.remote.execution.v2.PriorityCapabilities result = new build.bazel.remote.execution.v2.PriorityCapabilities(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(build.bazel.remote.execution.v2.PriorityCapabilities result) { if (prioritiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { priorities_ = java.util.Collections.unmodifiableList(priorities_); bitField0_ = (bitField0_ & ~0x00000001); } result.priorities_ = priorities_; } else { result.priorities_ = prioritiesBuilder_.build(); } } private void buildPartial0(build.bazel.remote.execution.v2.PriorityCapabilities result) { int from_bitField0_ = 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.PriorityCapabilities) { return mergeFrom((build.bazel.remote.execution.v2.PriorityCapabilities)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(build.bazel.remote.execution.v2.PriorityCapabilities other) { if (other == build.bazel.remote.execution.v2.PriorityCapabilities.getDefaultInstance()) return this; if (prioritiesBuilder_ == null) { if (!other.priorities_.isEmpty()) { if (priorities_.isEmpty()) { priorities_ = other.priorities_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePrioritiesIsMutable(); priorities_.addAll(other.priorities_); } onChanged(); } } else { if (!other.priorities_.isEmpty()) { if (prioritiesBuilder_.isEmpty()) { prioritiesBuilder_.dispose(); prioritiesBuilder_ = null; priorities_ = other.priorities_; bitField0_ = (bitField0_ & ~0x00000001); prioritiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPrioritiesFieldBuilder() : null; } else { prioritiesBuilder_.addAllMessages(other.priorities_); } } } 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: { build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange m = input.readMessage( build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.parser(), extensionRegistry); if (prioritiesBuilder_ == null) { ensurePrioritiesIsMutable(); priorities_.add(m); } else { prioritiesBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List priorities_ = java.util.Collections.emptyList(); private void ensurePrioritiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { priorities_ = new java.util.ArrayList(priorities_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange, build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.Builder, build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRangeOrBuilder> prioritiesBuilder_; /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ public java.util.List getPrioritiesList() { if (prioritiesBuilder_ == null) { return java.util.Collections.unmodifiableList(priorities_); } else { return prioritiesBuilder_.getMessageList(); } } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ public int getPrioritiesCount() { if (prioritiesBuilder_ == null) { return priorities_.size(); } else { return prioritiesBuilder_.getCount(); } } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ public build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange getPriorities(int index) { if (prioritiesBuilder_ == null) { return priorities_.get(index); } else { return prioritiesBuilder_.getMessage(index); } } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ public Builder setPriorities( int index, build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange value) { if (prioritiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePrioritiesIsMutable(); priorities_.set(index, value); onChanged(); } else { prioritiesBuilder_.setMessage(index, value); } return this; } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ public Builder setPriorities( int index, build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.Builder builderForValue) { if (prioritiesBuilder_ == null) { ensurePrioritiesIsMutable(); priorities_.set(index, builderForValue.build()); onChanged(); } else { prioritiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ public Builder addPriorities(build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange value) { if (prioritiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePrioritiesIsMutable(); priorities_.add(value); onChanged(); } else { prioritiesBuilder_.addMessage(value); } return this; } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ public Builder addPriorities( int index, build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange value) { if (prioritiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePrioritiesIsMutable(); priorities_.add(index, value); onChanged(); } else { prioritiesBuilder_.addMessage(index, value); } return this; } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ public Builder addPriorities( build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.Builder builderForValue) { if (prioritiesBuilder_ == null) { ensurePrioritiesIsMutable(); priorities_.add(builderForValue.build()); onChanged(); } else { prioritiesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ public Builder addPriorities( int index, build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.Builder builderForValue) { if (prioritiesBuilder_ == null) { ensurePrioritiesIsMutable(); priorities_.add(index, builderForValue.build()); onChanged(); } else { prioritiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ public Builder addAllPriorities( java.lang.Iterable values) { if (prioritiesBuilder_ == null) { ensurePrioritiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, priorities_); onChanged(); } else { prioritiesBuilder_.addAllMessages(values); } return this; } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ public Builder clearPriorities() { if (prioritiesBuilder_ == null) { priorities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { prioritiesBuilder_.clear(); } return this; } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ public Builder removePriorities(int index) { if (prioritiesBuilder_ == null) { ensurePrioritiesIsMutable(); priorities_.remove(index); onChanged(); } else { prioritiesBuilder_.remove(index); } return this; } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ public build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.Builder getPrioritiesBuilder( int index) { return getPrioritiesFieldBuilder().getBuilder(index); } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ public build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRangeOrBuilder getPrioritiesOrBuilder( int index) { if (prioritiesBuilder_ == null) { return priorities_.get(index); } else { return prioritiesBuilder_.getMessageOrBuilder(index); } } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ public java.util.List getPrioritiesOrBuilderList() { if (prioritiesBuilder_ != null) { return prioritiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(priorities_); } } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ public build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.Builder addPrioritiesBuilder() { return getPrioritiesFieldBuilder().addBuilder( build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.getDefaultInstance()); } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ public build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.Builder addPrioritiesBuilder( int index) { return getPrioritiesFieldBuilder().addBuilder( index, build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.getDefaultInstance()); } /** * repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1; */ public java.util.List getPrioritiesBuilderList() { return getPrioritiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange, build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.Builder, build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRangeOrBuilder> getPrioritiesFieldBuilder() { if (prioritiesBuilder_ == null) { prioritiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange, build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.Builder, build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRangeOrBuilder>( priorities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); priorities_ = null; } return prioritiesBuilder_; } @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.PriorityCapabilities) } // @@protoc_insertion_point(class_scope:build.bazel.remote.execution.v2.PriorityCapabilities) private static final build.bazel.remote.execution.v2.PriorityCapabilities DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new build.bazel.remote.execution.v2.PriorityCapabilities(); } public static build.bazel.remote.execution.v2.PriorityCapabilities getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PriorityCapabilities 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.PriorityCapabilities getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy