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

dev.cel.expr.conformance.test.TestCase Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: cel/expr/conformance/test/suite.proto

// Protobuf Java Version: 3.25.1
package dev.cel.expr.conformance.test;

/**
 * 
 * A test to validate a CEL policy or expression. The test case encompasses
 * evaluation of the compiled expression using the provided input bindings and
 * asserting the result against the expected result.
 * It can also validate a raw CEL expression string through parse, check and
 * eval stages, making use of the augmenting CEL environment if provided.
 * 
* * Protobuf type {@code cel.expr.conformance.test.TestCase} */ public final class TestCase extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cel.expr.conformance.test.TestCase) TestCaseOrBuilder { private static final long serialVersionUID = 0L; // Use TestCase.newBuilder() to construct. private TestCase(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TestCase() { name_ = ""; description_ = ""; expr_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestCase(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return dev.cel.expr.conformance.test.SuiteProto.internal_static_cel_expr_conformance_test_TestCase_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return dev.cel.expr.conformance.test.SuiteProto.internal_static_cel_expr_conformance_test_TestCase_fieldAccessorTable .ensureFieldAccessorsInitialized( dev.cel.expr.conformance.test.TestCase.class, dev.cel.expr.conformance.test.TestCase.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
   * Name of the test case.
   * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
   * Name of the test case.
   * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** *
   * A description of the test.
   * 
* * string description = 2; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
   * A description of the test.
   * 
* * string description = 2; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXPR_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object expr_ = ""; /** *
   * The text of the CEL expression.
   * 
* * string expr = 3; * @return The expr. */ @java.lang.Override public java.lang.String getExpr() { java.lang.Object ref = expr_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); expr_ = s; return s; } } /** *
   * The text of the CEL expression.
   * 
* * string expr = 3; * @return The bytes for expr. */ @java.lang.Override public com.google.protobuf.ByteString getExprBytes() { java.lang.Object ref = expr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); expr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENV_FIELD_NUMBER = 4; private cel.dev.expr.conformance.Environment env_; /** *
   * Serialized environment to be used for compilation and evaluation of the
   * CEL expression for the current test case.
   * This option allows validating the same expression against multiple
   * environments.
   * 
* * .cel.expr.conformance.Environment env = 4; * @return Whether the env field is set. */ @java.lang.Override public boolean hasEnv() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Serialized environment to be used for compilation and evaluation of the
   * CEL expression for the current test case.
   * This option allows validating the same expression against multiple
   * environments.
   * 
* * .cel.expr.conformance.Environment env = 4; * @return The env. */ @java.lang.Override public cel.dev.expr.conformance.Environment getEnv() { return env_ == null ? cel.dev.expr.conformance.Environment.getDefaultInstance() : env_; } /** *
   * Serialized environment to be used for compilation and evaluation of the
   * CEL expression for the current test case.
   * This option allows validating the same expression against multiple
   * environments.
   * 
* * .cel.expr.conformance.Environment env = 4; */ @java.lang.Override public cel.dev.expr.conformance.EnvironmentOrBuilder getEnvOrBuilder() { return env_ == null ? cel.dev.expr.conformance.Environment.getDefaultInstance() : env_; } public static final int INPUT_FIELD_NUMBER = 5; private dev.cel.expr.conformance.test.TestInput input_; /** *
   * Input for the test case
   * 
* * .cel.expr.conformance.test.TestInput input = 5; * @return Whether the input field is set. */ @java.lang.Override public boolean hasInput() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Input for the test case
   * 
* * .cel.expr.conformance.test.TestInput input = 5; * @return The input. */ @java.lang.Override public dev.cel.expr.conformance.test.TestInput getInput() { return input_ == null ? dev.cel.expr.conformance.test.TestInput.getDefaultInstance() : input_; } /** *
   * Input for the test case
   * 
* * .cel.expr.conformance.test.TestInput input = 5; */ @java.lang.Override public dev.cel.expr.conformance.test.TestInputOrBuilder getInputOrBuilder() { return input_ == null ? dev.cel.expr.conformance.test.TestInput.getDefaultInstance() : input_; } public static final int OUTPUT_FIELD_NUMBER = 6; private dev.cel.expr.conformance.test.TestOutput output_; /** *
   * Expected result of the test case.
   * 
* * .cel.expr.conformance.test.TestOutput output = 6; * @return Whether the output field is set. */ @java.lang.Override public boolean hasOutput() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Expected result of the test case.
   * 
* * .cel.expr.conformance.test.TestOutput output = 6; * @return The output. */ @java.lang.Override public dev.cel.expr.conformance.test.TestOutput getOutput() { return output_ == null ? dev.cel.expr.conformance.test.TestOutput.getDefaultInstance() : output_; } /** *
   * Expected result of the test case.
   * 
* * .cel.expr.conformance.test.TestOutput output = 6; */ @java.lang.Override public dev.cel.expr.conformance.test.TestOutputOrBuilder getOutputOrBuilder() { return output_ == null ? dev.cel.expr.conformance.test.TestOutput.getDefaultInstance() : output_; } public static final int DEDUCED_TYPE_FIELD_NUMBER = 7; private dev.cel.expr.Type deducedType_; /** *
   * If specified validates that the deduced type at check time matches
   * If the result kind is not set and this field is set, the test is considered
   * "check-only".
   * 
* * .cel.expr.Type deduced_type = 7; * @return Whether the deducedType field is set. */ @java.lang.Override public boolean hasDeducedType() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * If specified validates that the deduced type at check time matches
   * If the result kind is not set and this field is set, the test is considered
   * "check-only".
   * 
* * .cel.expr.Type deduced_type = 7; * @return The deducedType. */ @java.lang.Override public dev.cel.expr.Type getDeducedType() { return deducedType_ == null ? dev.cel.expr.Type.getDefaultInstance() : deducedType_; } /** *
   * If specified validates that the deduced type at check time matches
   * If the result kind is not set and this field is set, the test is considered
   * "check-only".
   * 
* * .cel.expr.Type deduced_type = 7; */ @java.lang.Override public dev.cel.expr.TypeOrBuilder getDeducedTypeOrBuilder() { return deducedType_ == null ? dev.cel.expr.Type.getDefaultInstance() : deducedType_; } public static final int DISABLE_CHECK_FIELD_NUMBER = 8; private boolean disableCheck_ = false; /** *
   * Bypass the type-checking and only attempt to evaluate the parsed
   * expression.
   * 
* * bool disable_check = 8; * @return The disableCheck. */ @java.lang.Override public boolean getDisableCheck() { return disableCheck_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasEnv()) { if (!getEnv().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, expr_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getEnv()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getInput()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getOutput()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(7, getDeducedType()); } if (disableCheck_ != false) { output.writeBool(8, disableCheck_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expr_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, expr_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getEnv()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getInput()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getOutput()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getDeducedType()); } if (disableCheck_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, disableCheck_); } 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 dev.cel.expr.conformance.test.TestCase)) { return super.equals(obj); } dev.cel.expr.conformance.test.TestCase other = (dev.cel.expr.conformance.test.TestCase) obj; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getExpr() .equals(other.getExpr())) return false; if (hasEnv() != other.hasEnv()) return false; if (hasEnv()) { if (!getEnv() .equals(other.getEnv())) return false; } if (hasInput() != other.hasInput()) return false; if (hasInput()) { if (!getInput() .equals(other.getInput())) return false; } if (hasOutput() != other.hasOutput()) return false; if (hasOutput()) { if (!getOutput() .equals(other.getOutput())) return false; } if (hasDeducedType() != other.hasDeducedType()) return false; if (hasDeducedType()) { if (!getDeducedType() .equals(other.getDeducedType())) return false; } if (getDisableCheck() != other.getDisableCheck()) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + EXPR_FIELD_NUMBER; hash = (53 * hash) + getExpr().hashCode(); if (hasEnv()) { hash = (37 * hash) + ENV_FIELD_NUMBER; hash = (53 * hash) + getEnv().hashCode(); } if (hasInput()) { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); } if (hasOutput()) { hash = (37 * hash) + OUTPUT_FIELD_NUMBER; hash = (53 * hash) + getOutput().hashCode(); } if (hasDeducedType()) { hash = (37 * hash) + DEDUCED_TYPE_FIELD_NUMBER; hash = (53 * hash) + getDeducedType().hashCode(); } hash = (37 * hash) + DISABLE_CHECK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisableCheck()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static dev.cel.expr.conformance.test.TestCase parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static dev.cel.expr.conformance.test.TestCase parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static dev.cel.expr.conformance.test.TestCase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static dev.cel.expr.conformance.test.TestCase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static dev.cel.expr.conformance.test.TestCase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static dev.cel.expr.conformance.test.TestCase parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static dev.cel.expr.conformance.test.TestCase parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static dev.cel.expr.conformance.test.TestCase 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 dev.cel.expr.conformance.test.TestCase parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static dev.cel.expr.conformance.test.TestCase 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 dev.cel.expr.conformance.test.TestCase parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static dev.cel.expr.conformance.test.TestCase 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(dev.cel.expr.conformance.test.TestCase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * A test to validate a CEL policy or expression. The test case encompasses
   * evaluation of the compiled expression using the provided input bindings and
   * asserting the result against the expected result.
   * It can also validate a raw CEL expression string through parse, check and
   * eval stages, making use of the augmenting CEL environment if provided.
   * 
* * Protobuf type {@code cel.expr.conformance.test.TestCase} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cel.expr.conformance.test.TestCase) dev.cel.expr.conformance.test.TestCaseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return dev.cel.expr.conformance.test.SuiteProto.internal_static_cel_expr_conformance_test_TestCase_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return dev.cel.expr.conformance.test.SuiteProto.internal_static_cel_expr_conformance_test_TestCase_fieldAccessorTable .ensureFieldAccessorsInitialized( dev.cel.expr.conformance.test.TestCase.class, dev.cel.expr.conformance.test.TestCase.Builder.class); } // Construct using dev.cel.expr.conformance.test.TestCase.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEnvFieldBuilder(); getInputFieldBuilder(); getOutputFieldBuilder(); getDeducedTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; description_ = ""; expr_ = ""; env_ = null; if (envBuilder_ != null) { envBuilder_.dispose(); envBuilder_ = null; } input_ = null; if (inputBuilder_ != null) { inputBuilder_.dispose(); inputBuilder_ = null; } output_ = null; if (outputBuilder_ != null) { outputBuilder_.dispose(); outputBuilder_ = null; } deducedType_ = null; if (deducedTypeBuilder_ != null) { deducedTypeBuilder_.dispose(); deducedTypeBuilder_ = null; } disableCheck_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return dev.cel.expr.conformance.test.SuiteProto.internal_static_cel_expr_conformance_test_TestCase_descriptor; } @java.lang.Override public dev.cel.expr.conformance.test.TestCase getDefaultInstanceForType() { return dev.cel.expr.conformance.test.TestCase.getDefaultInstance(); } @java.lang.Override public dev.cel.expr.conformance.test.TestCase build() { dev.cel.expr.conformance.test.TestCase result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public dev.cel.expr.conformance.test.TestCase buildPartial() { dev.cel.expr.conformance.test.TestCase result = new dev.cel.expr.conformance.test.TestCase(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(dev.cel.expr.conformance.test.TestCase result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.expr_ = expr_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.env_ = envBuilder_ == null ? env_ : envBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.input_ = inputBuilder_ == null ? input_ : inputBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.output_ = outputBuilder_ == null ? output_ : outputBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000040) != 0)) { result.deducedType_ = deducedTypeBuilder_ == null ? deducedType_ : deducedTypeBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000080) != 0)) { result.disableCheck_ = disableCheck_; } 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 dev.cel.expr.conformance.test.TestCase) { return mergeFrom((dev.cel.expr.conformance.test.TestCase)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(dev.cel.expr.conformance.test.TestCase other) { if (other == dev.cel.expr.conformance.test.TestCase.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getExpr().isEmpty()) { expr_ = other.expr_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasEnv()) { mergeEnv(other.getEnv()); } if (other.hasInput()) { mergeInput(other.getInput()); } if (other.hasOutput()) { mergeOutput(other.getOutput()); } if (other.hasDeducedType()) { mergeDeducedType(other.getDeducedType()); } if (other.getDisableCheck() != false) { setDisableCheck(other.getDisableCheck()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (hasEnv()) { if (!getEnv().isInitialized()) { return false; } } 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: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { expr_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getEnvFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getInputFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getOutputFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getDeducedTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 64: { disableCheck_ = input.readBool(); bitField0_ |= 0x00000080; break; } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
     * Name of the test case.
     * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Name of the test case.
     * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Name of the test case.
     * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Name of the test case.
     * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Name of the test case.
     * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
     * A description of the test.
     * 
* * string description = 2; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * A description of the test.
     * 
* * string description = 2; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * A description of the test.
     * 
* * string description = 2; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * A description of the test.
     * 
* * string description = 2; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * A description of the test.
     * 
* * string description = 2; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object expr_ = ""; /** *
     * The text of the CEL expression.
     * 
* * string expr = 3; * @return The expr. */ public java.lang.String getExpr() { java.lang.Object ref = expr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); expr_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The text of the CEL expression.
     * 
* * string expr = 3; * @return The bytes for expr. */ public com.google.protobuf.ByteString getExprBytes() { java.lang.Object ref = expr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); expr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The text of the CEL expression.
     * 
* * string expr = 3; * @param value The expr to set. * @return This builder for chaining. */ public Builder setExpr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } expr_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The text of the CEL expression.
     * 
* * string expr = 3; * @return This builder for chaining. */ public Builder clearExpr() { expr_ = getDefaultInstance().getExpr(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * The text of the CEL expression.
     * 
* * string expr = 3; * @param value The bytes for expr to set. * @return This builder for chaining. */ public Builder setExprBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); expr_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private cel.dev.expr.conformance.Environment env_; private com.google.protobuf.SingleFieldBuilderV3< cel.dev.expr.conformance.Environment, cel.dev.expr.conformance.Environment.Builder, cel.dev.expr.conformance.EnvironmentOrBuilder> envBuilder_; /** *
     * Serialized environment to be used for compilation and evaluation of the
     * CEL expression for the current test case.
     * This option allows validating the same expression against multiple
     * environments.
     * 
* * .cel.expr.conformance.Environment env = 4; * @return Whether the env field is set. */ public boolean hasEnv() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Serialized environment to be used for compilation and evaluation of the
     * CEL expression for the current test case.
     * This option allows validating the same expression against multiple
     * environments.
     * 
* * .cel.expr.conformance.Environment env = 4; * @return The env. */ public cel.dev.expr.conformance.Environment getEnv() { if (envBuilder_ == null) { return env_ == null ? cel.dev.expr.conformance.Environment.getDefaultInstance() : env_; } else { return envBuilder_.getMessage(); } } /** *
     * Serialized environment to be used for compilation and evaluation of the
     * CEL expression for the current test case.
     * This option allows validating the same expression against multiple
     * environments.
     * 
* * .cel.expr.conformance.Environment env = 4; */ public Builder setEnv(cel.dev.expr.conformance.Environment value) { if (envBuilder_ == null) { if (value == null) { throw new NullPointerException(); } env_ = value; } else { envBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Serialized environment to be used for compilation and evaluation of the
     * CEL expression for the current test case.
     * This option allows validating the same expression against multiple
     * environments.
     * 
* * .cel.expr.conformance.Environment env = 4; */ public Builder setEnv( cel.dev.expr.conformance.Environment.Builder builderForValue) { if (envBuilder_ == null) { env_ = builderForValue.build(); } else { envBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Serialized environment to be used for compilation and evaluation of the
     * CEL expression for the current test case.
     * This option allows validating the same expression against multiple
     * environments.
     * 
* * .cel.expr.conformance.Environment env = 4; */ public Builder mergeEnv(cel.dev.expr.conformance.Environment value) { if (envBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && env_ != null && env_ != cel.dev.expr.conformance.Environment.getDefaultInstance()) { getEnvBuilder().mergeFrom(value); } else { env_ = value; } } else { envBuilder_.mergeFrom(value); } if (env_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * Serialized environment to be used for compilation and evaluation of the
     * CEL expression for the current test case.
     * This option allows validating the same expression against multiple
     * environments.
     * 
* * .cel.expr.conformance.Environment env = 4; */ public Builder clearEnv() { bitField0_ = (bitField0_ & ~0x00000008); env_ = null; if (envBuilder_ != null) { envBuilder_.dispose(); envBuilder_ = null; } onChanged(); return this; } /** *
     * Serialized environment to be used for compilation and evaluation of the
     * CEL expression for the current test case.
     * This option allows validating the same expression against multiple
     * environments.
     * 
* * .cel.expr.conformance.Environment env = 4; */ public cel.dev.expr.conformance.Environment.Builder getEnvBuilder() { bitField0_ |= 0x00000008; onChanged(); return getEnvFieldBuilder().getBuilder(); } /** *
     * Serialized environment to be used for compilation and evaluation of the
     * CEL expression for the current test case.
     * This option allows validating the same expression against multiple
     * environments.
     * 
* * .cel.expr.conformance.Environment env = 4; */ public cel.dev.expr.conformance.EnvironmentOrBuilder getEnvOrBuilder() { if (envBuilder_ != null) { return envBuilder_.getMessageOrBuilder(); } else { return env_ == null ? cel.dev.expr.conformance.Environment.getDefaultInstance() : env_; } } /** *
     * Serialized environment to be used for compilation and evaluation of the
     * CEL expression for the current test case.
     * This option allows validating the same expression against multiple
     * environments.
     * 
* * .cel.expr.conformance.Environment env = 4; */ private com.google.protobuf.SingleFieldBuilderV3< cel.dev.expr.conformance.Environment, cel.dev.expr.conformance.Environment.Builder, cel.dev.expr.conformance.EnvironmentOrBuilder> getEnvFieldBuilder() { if (envBuilder_ == null) { envBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cel.dev.expr.conformance.Environment, cel.dev.expr.conformance.Environment.Builder, cel.dev.expr.conformance.EnvironmentOrBuilder>( getEnv(), getParentForChildren(), isClean()); env_ = null; } return envBuilder_; } private dev.cel.expr.conformance.test.TestInput input_; private com.google.protobuf.SingleFieldBuilderV3< dev.cel.expr.conformance.test.TestInput, dev.cel.expr.conformance.test.TestInput.Builder, dev.cel.expr.conformance.test.TestInputOrBuilder> inputBuilder_; /** *
     * Input for the test case
     * 
* * .cel.expr.conformance.test.TestInput input = 5; * @return Whether the input field is set. */ public boolean hasInput() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Input for the test case
     * 
* * .cel.expr.conformance.test.TestInput input = 5; * @return The input. */ public dev.cel.expr.conformance.test.TestInput getInput() { if (inputBuilder_ == null) { return input_ == null ? dev.cel.expr.conformance.test.TestInput.getDefaultInstance() : input_; } else { return inputBuilder_.getMessage(); } } /** *
     * Input for the test case
     * 
* * .cel.expr.conformance.test.TestInput input = 5; */ public Builder setInput(dev.cel.expr.conformance.test.TestInput value) { if (inputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } input_ = value; } else { inputBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Input for the test case
     * 
* * .cel.expr.conformance.test.TestInput input = 5; */ public Builder setInput( dev.cel.expr.conformance.test.TestInput.Builder builderForValue) { if (inputBuilder_ == null) { input_ = builderForValue.build(); } else { inputBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Input for the test case
     * 
* * .cel.expr.conformance.test.TestInput input = 5; */ public Builder mergeInput(dev.cel.expr.conformance.test.TestInput value) { if (inputBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && input_ != null && input_ != dev.cel.expr.conformance.test.TestInput.getDefaultInstance()) { getInputBuilder().mergeFrom(value); } else { input_ = value; } } else { inputBuilder_.mergeFrom(value); } if (input_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
     * Input for the test case
     * 
* * .cel.expr.conformance.test.TestInput input = 5; */ public Builder clearInput() { bitField0_ = (bitField0_ & ~0x00000010); input_ = null; if (inputBuilder_ != null) { inputBuilder_.dispose(); inputBuilder_ = null; } onChanged(); return this; } /** *
     * Input for the test case
     * 
* * .cel.expr.conformance.test.TestInput input = 5; */ public dev.cel.expr.conformance.test.TestInput.Builder getInputBuilder() { bitField0_ |= 0x00000010; onChanged(); return getInputFieldBuilder().getBuilder(); } /** *
     * Input for the test case
     * 
* * .cel.expr.conformance.test.TestInput input = 5; */ public dev.cel.expr.conformance.test.TestInputOrBuilder getInputOrBuilder() { if (inputBuilder_ != null) { return inputBuilder_.getMessageOrBuilder(); } else { return input_ == null ? dev.cel.expr.conformance.test.TestInput.getDefaultInstance() : input_; } } /** *
     * Input for the test case
     * 
* * .cel.expr.conformance.test.TestInput input = 5; */ private com.google.protobuf.SingleFieldBuilderV3< dev.cel.expr.conformance.test.TestInput, dev.cel.expr.conformance.test.TestInput.Builder, dev.cel.expr.conformance.test.TestInputOrBuilder> getInputFieldBuilder() { if (inputBuilder_ == null) { inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< dev.cel.expr.conformance.test.TestInput, dev.cel.expr.conformance.test.TestInput.Builder, dev.cel.expr.conformance.test.TestInputOrBuilder>( getInput(), getParentForChildren(), isClean()); input_ = null; } return inputBuilder_; } private dev.cel.expr.conformance.test.TestOutput output_; private com.google.protobuf.SingleFieldBuilderV3< dev.cel.expr.conformance.test.TestOutput, dev.cel.expr.conformance.test.TestOutput.Builder, dev.cel.expr.conformance.test.TestOutputOrBuilder> outputBuilder_; /** *
     * Expected result of the test case.
     * 
* * .cel.expr.conformance.test.TestOutput output = 6; * @return Whether the output field is set. */ public boolean hasOutput() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Expected result of the test case.
     * 
* * .cel.expr.conformance.test.TestOutput output = 6; * @return The output. */ public dev.cel.expr.conformance.test.TestOutput getOutput() { if (outputBuilder_ == null) { return output_ == null ? dev.cel.expr.conformance.test.TestOutput.getDefaultInstance() : output_; } else { return outputBuilder_.getMessage(); } } /** *
     * Expected result of the test case.
     * 
* * .cel.expr.conformance.test.TestOutput output = 6; */ public Builder setOutput(dev.cel.expr.conformance.test.TestOutput value) { if (outputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } output_ = value; } else { outputBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Expected result of the test case.
     * 
* * .cel.expr.conformance.test.TestOutput output = 6; */ public Builder setOutput( dev.cel.expr.conformance.test.TestOutput.Builder builderForValue) { if (outputBuilder_ == null) { output_ = builderForValue.build(); } else { outputBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Expected result of the test case.
     * 
* * .cel.expr.conformance.test.TestOutput output = 6; */ public Builder mergeOutput(dev.cel.expr.conformance.test.TestOutput value) { if (outputBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && output_ != null && output_ != dev.cel.expr.conformance.test.TestOutput.getDefaultInstance()) { getOutputBuilder().mergeFrom(value); } else { output_ = value; } } else { outputBuilder_.mergeFrom(value); } if (output_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
     * Expected result of the test case.
     * 
* * .cel.expr.conformance.test.TestOutput output = 6; */ public Builder clearOutput() { bitField0_ = (bitField0_ & ~0x00000020); output_ = null; if (outputBuilder_ != null) { outputBuilder_.dispose(); outputBuilder_ = null; } onChanged(); return this; } /** *
     * Expected result of the test case.
     * 
* * .cel.expr.conformance.test.TestOutput output = 6; */ public dev.cel.expr.conformance.test.TestOutput.Builder getOutputBuilder() { bitField0_ |= 0x00000020; onChanged(); return getOutputFieldBuilder().getBuilder(); } /** *
     * Expected result of the test case.
     * 
* * .cel.expr.conformance.test.TestOutput output = 6; */ public dev.cel.expr.conformance.test.TestOutputOrBuilder getOutputOrBuilder() { if (outputBuilder_ != null) { return outputBuilder_.getMessageOrBuilder(); } else { return output_ == null ? dev.cel.expr.conformance.test.TestOutput.getDefaultInstance() : output_; } } /** *
     * Expected result of the test case.
     * 
* * .cel.expr.conformance.test.TestOutput output = 6; */ private com.google.protobuf.SingleFieldBuilderV3< dev.cel.expr.conformance.test.TestOutput, dev.cel.expr.conformance.test.TestOutput.Builder, dev.cel.expr.conformance.test.TestOutputOrBuilder> getOutputFieldBuilder() { if (outputBuilder_ == null) { outputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< dev.cel.expr.conformance.test.TestOutput, dev.cel.expr.conformance.test.TestOutput.Builder, dev.cel.expr.conformance.test.TestOutputOrBuilder>( getOutput(), getParentForChildren(), isClean()); output_ = null; } return outputBuilder_; } private dev.cel.expr.Type deducedType_; private com.google.protobuf.SingleFieldBuilderV3< dev.cel.expr.Type, dev.cel.expr.Type.Builder, dev.cel.expr.TypeOrBuilder> deducedTypeBuilder_; /** *
     * If specified validates that the deduced type at check time matches
     * If the result kind is not set and this field is set, the test is considered
     * "check-only".
     * 
* * .cel.expr.Type deduced_type = 7; * @return Whether the deducedType field is set. */ public boolean hasDeducedType() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * If specified validates that the deduced type at check time matches
     * If the result kind is not set and this field is set, the test is considered
     * "check-only".
     * 
* * .cel.expr.Type deduced_type = 7; * @return The deducedType. */ public dev.cel.expr.Type getDeducedType() { if (deducedTypeBuilder_ == null) { return deducedType_ == null ? dev.cel.expr.Type.getDefaultInstance() : deducedType_; } else { return deducedTypeBuilder_.getMessage(); } } /** *
     * If specified validates that the deduced type at check time matches
     * If the result kind is not set and this field is set, the test is considered
     * "check-only".
     * 
* * .cel.expr.Type deduced_type = 7; */ public Builder setDeducedType(dev.cel.expr.Type value) { if (deducedTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deducedType_ = value; } else { deducedTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * If specified validates that the deduced type at check time matches
     * If the result kind is not set and this field is set, the test is considered
     * "check-only".
     * 
* * .cel.expr.Type deduced_type = 7; */ public Builder setDeducedType( dev.cel.expr.Type.Builder builderForValue) { if (deducedTypeBuilder_ == null) { deducedType_ = builderForValue.build(); } else { deducedTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * If specified validates that the deduced type at check time matches
     * If the result kind is not set and this field is set, the test is considered
     * "check-only".
     * 
* * .cel.expr.Type deduced_type = 7; */ public Builder mergeDeducedType(dev.cel.expr.Type value) { if (deducedTypeBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && deducedType_ != null && deducedType_ != dev.cel.expr.Type.getDefaultInstance()) { getDeducedTypeBuilder().mergeFrom(value); } else { deducedType_ = value; } } else { deducedTypeBuilder_.mergeFrom(value); } if (deducedType_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
     * If specified validates that the deduced type at check time matches
     * If the result kind is not set and this field is set, the test is considered
     * "check-only".
     * 
* * .cel.expr.Type deduced_type = 7; */ public Builder clearDeducedType() { bitField0_ = (bitField0_ & ~0x00000040); deducedType_ = null; if (deducedTypeBuilder_ != null) { deducedTypeBuilder_.dispose(); deducedTypeBuilder_ = null; } onChanged(); return this; } /** *
     * If specified validates that the deduced type at check time matches
     * If the result kind is not set and this field is set, the test is considered
     * "check-only".
     * 
* * .cel.expr.Type deduced_type = 7; */ public dev.cel.expr.Type.Builder getDeducedTypeBuilder() { bitField0_ |= 0x00000040; onChanged(); return getDeducedTypeFieldBuilder().getBuilder(); } /** *
     * If specified validates that the deduced type at check time matches
     * If the result kind is not set and this field is set, the test is considered
     * "check-only".
     * 
* * .cel.expr.Type deduced_type = 7; */ public dev.cel.expr.TypeOrBuilder getDeducedTypeOrBuilder() { if (deducedTypeBuilder_ != null) { return deducedTypeBuilder_.getMessageOrBuilder(); } else { return deducedType_ == null ? dev.cel.expr.Type.getDefaultInstance() : deducedType_; } } /** *
     * If specified validates that the deduced type at check time matches
     * If the result kind is not set and this field is set, the test is considered
     * "check-only".
     * 
* * .cel.expr.Type deduced_type = 7; */ private com.google.protobuf.SingleFieldBuilderV3< dev.cel.expr.Type, dev.cel.expr.Type.Builder, dev.cel.expr.TypeOrBuilder> getDeducedTypeFieldBuilder() { if (deducedTypeBuilder_ == null) { deducedTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< dev.cel.expr.Type, dev.cel.expr.Type.Builder, dev.cel.expr.TypeOrBuilder>( getDeducedType(), getParentForChildren(), isClean()); deducedType_ = null; } return deducedTypeBuilder_; } private boolean disableCheck_ ; /** *
     * Bypass the type-checking and only attempt to evaluate the parsed
     * expression.
     * 
* * bool disable_check = 8; * @return The disableCheck. */ @java.lang.Override public boolean getDisableCheck() { return disableCheck_; } /** *
     * Bypass the type-checking and only attempt to evaluate the parsed
     * expression.
     * 
* * bool disable_check = 8; * @param value The disableCheck to set. * @return This builder for chaining. */ public Builder setDisableCheck(boolean value) { disableCheck_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * Bypass the type-checking and only attempt to evaluate the parsed
     * expression.
     * 
* * bool disable_check = 8; * @return This builder for chaining. */ public Builder clearDisableCheck() { bitField0_ = (bitField0_ & ~0x00000080); disableCheck_ = false; 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:cel.expr.conformance.test.TestCase) } // @@protoc_insertion_point(class_scope:cel.expr.conformance.test.TestCase) private static final dev.cel.expr.conformance.test.TestCase DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new dev.cel.expr.conformance.test.TestCase(); } public static dev.cel.expr.conformance.test.TestCase getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestCase 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 dev.cel.expr.conformance.test.TestCase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy