
dev.cel.expr.conformance.test.TestSection 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 collection of related test cases.
*
*
* Protobuf type {@code cel.expr.conformance.test.TestSection}
*/
public final class TestSection extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cel.expr.conformance.test.TestSection)
TestSectionOrBuilder {
private static final long serialVersionUID = 0L;
// Use TestSection.newBuilder() to construct.
private TestSection(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TestSection() {
name_ = "";
description_ = "";
tests_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TestSection();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.cel.expr.conformance.test.SuiteProto.internal_static_cel_expr_conformance_test_TestSection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.cel.expr.conformance.test.SuiteProto.internal_static_cel_expr_conformance_test_TestSection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.cel.expr.conformance.test.TestSection.class, dev.cel.expr.conformance.test.TestSection.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* Name of the test section.
*
*
* 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 section.
*
*
* 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_ = "";
/**
*
* Description of the test section.
*
*
* 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;
}
}
/**
*
* Description of the test section.
*
*
* 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 TESTS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List tests_;
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
@java.lang.Override
public java.util.List getTestsList() {
return tests_;
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
@java.lang.Override
public java.util.List extends dev.cel.expr.conformance.test.TestCaseOrBuilder>
getTestsOrBuilderList() {
return tests_;
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
@java.lang.Override
public int getTestsCount() {
return tests_.size();
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
@java.lang.Override
public dev.cel.expr.conformance.test.TestCase getTests(int index) {
return tests_.get(index);
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
@java.lang.Override
public dev.cel.expr.conformance.test.TestCaseOrBuilder getTestsOrBuilder(
int index) {
return tests_.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;
for (int i = 0; i < getTestsCount(); i++) {
if (!getTests(i).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_);
}
for (int i = 0; i < tests_.size(); i++) {
output.writeMessage(3, tests_.get(i));
}
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_);
}
for (int i = 0; i < tests_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, tests_.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 dev.cel.expr.conformance.test.TestSection)) {
return super.equals(obj);
}
dev.cel.expr.conformance.test.TestSection other = (dev.cel.expr.conformance.test.TestSection) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!getTestsList()
.equals(other.getTestsList())) 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();
if (getTestsCount() > 0) {
hash = (37 * hash) + TESTS_FIELD_NUMBER;
hash = (53 * hash) + getTestsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static dev.cel.expr.conformance.test.TestSection parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.cel.expr.conformance.test.TestSection 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.TestSection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.cel.expr.conformance.test.TestSection 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.TestSection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.cel.expr.conformance.test.TestSection 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.TestSection parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static dev.cel.expr.conformance.test.TestSection 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.TestSection parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static dev.cel.expr.conformance.test.TestSection 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.TestSection 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.TestSection 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.TestSection 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 collection of related test cases.
*
*
* Protobuf type {@code cel.expr.conformance.test.TestSection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cel.expr.conformance.test.TestSection)
dev.cel.expr.conformance.test.TestSectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.cel.expr.conformance.test.SuiteProto.internal_static_cel_expr_conformance_test_TestSection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.cel.expr.conformance.test.SuiteProto.internal_static_cel_expr_conformance_test_TestSection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.cel.expr.conformance.test.TestSection.class, dev.cel.expr.conformance.test.TestSection.Builder.class);
}
// Construct using dev.cel.expr.conformance.test.TestSection.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
description_ = "";
if (testsBuilder_ == null) {
tests_ = java.util.Collections.emptyList();
} else {
tests_ = null;
testsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
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_TestSection_descriptor;
}
@java.lang.Override
public dev.cel.expr.conformance.test.TestSection getDefaultInstanceForType() {
return dev.cel.expr.conformance.test.TestSection.getDefaultInstance();
}
@java.lang.Override
public dev.cel.expr.conformance.test.TestSection build() {
dev.cel.expr.conformance.test.TestSection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public dev.cel.expr.conformance.test.TestSection buildPartial() {
dev.cel.expr.conformance.test.TestSection result = new dev.cel.expr.conformance.test.TestSection(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(dev.cel.expr.conformance.test.TestSection result) {
if (testsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
tests_ = java.util.Collections.unmodifiableList(tests_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.tests_ = tests_;
} else {
result.tests_ = testsBuilder_.build();
}
}
private void buildPartial0(dev.cel.expr.conformance.test.TestSection result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.description_ = description_;
}
}
@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.TestSection) {
return mergeFrom((dev.cel.expr.conformance.test.TestSection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(dev.cel.expr.conformance.test.TestSection other) {
if (other == dev.cel.expr.conformance.test.TestSection.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
bitField0_ |= 0x00000002;
onChanged();
}
if (testsBuilder_ == null) {
if (!other.tests_.isEmpty()) {
if (tests_.isEmpty()) {
tests_ = other.tests_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureTestsIsMutable();
tests_.addAll(other.tests_);
}
onChanged();
}
} else {
if (!other.tests_.isEmpty()) {
if (testsBuilder_.isEmpty()) {
testsBuilder_.dispose();
testsBuilder_ = null;
tests_ = other.tests_;
bitField0_ = (bitField0_ & ~0x00000004);
testsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTestsFieldBuilder() : null;
} else {
testsBuilder_.addAllMessages(other.tests_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getTestsCount(); i++) {
if (!getTests(i).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: {
dev.cel.expr.conformance.test.TestCase m =
input.readMessage(
dev.cel.expr.conformance.test.TestCase.parser(),
extensionRegistry);
if (testsBuilder_ == null) {
ensureTestsIsMutable();
tests_.add(m);
} else {
testsBuilder_.addMessage(m);
}
break;
} // case 26
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 section.
*
*
* 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 section.
*
*
* 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 section.
*
*
* 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 section.
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Name of the test section.
*
*
* 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_ = "";
/**
*
* Description of the test section.
*
*
* 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;
}
}
/**
*
* Description of the test section.
*
*
* 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;
}
}
/**
*
* Description of the test section.
*
*
* 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;
}
/**
*
* Description of the test section.
*
*
* string description = 2;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Description of the test section.
*
*
* 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.util.List tests_ =
java.util.Collections.emptyList();
private void ensureTestsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
tests_ = new java.util.ArrayList(tests_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
dev.cel.expr.conformance.test.TestCase, dev.cel.expr.conformance.test.TestCase.Builder, dev.cel.expr.conformance.test.TestCaseOrBuilder> testsBuilder_;
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
public java.util.List getTestsList() {
if (testsBuilder_ == null) {
return java.util.Collections.unmodifiableList(tests_);
} else {
return testsBuilder_.getMessageList();
}
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
public int getTestsCount() {
if (testsBuilder_ == null) {
return tests_.size();
} else {
return testsBuilder_.getCount();
}
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
public dev.cel.expr.conformance.test.TestCase getTests(int index) {
if (testsBuilder_ == null) {
return tests_.get(index);
} else {
return testsBuilder_.getMessage(index);
}
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
public Builder setTests(
int index, dev.cel.expr.conformance.test.TestCase value) {
if (testsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTestsIsMutable();
tests_.set(index, value);
onChanged();
} else {
testsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
public Builder setTests(
int index, dev.cel.expr.conformance.test.TestCase.Builder builderForValue) {
if (testsBuilder_ == null) {
ensureTestsIsMutable();
tests_.set(index, builderForValue.build());
onChanged();
} else {
testsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
public Builder addTests(dev.cel.expr.conformance.test.TestCase value) {
if (testsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTestsIsMutable();
tests_.add(value);
onChanged();
} else {
testsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
public Builder addTests(
int index, dev.cel.expr.conformance.test.TestCase value) {
if (testsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTestsIsMutable();
tests_.add(index, value);
onChanged();
} else {
testsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
public Builder addTests(
dev.cel.expr.conformance.test.TestCase.Builder builderForValue) {
if (testsBuilder_ == null) {
ensureTestsIsMutable();
tests_.add(builderForValue.build());
onChanged();
} else {
testsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
public Builder addTests(
int index, dev.cel.expr.conformance.test.TestCase.Builder builderForValue) {
if (testsBuilder_ == null) {
ensureTestsIsMutable();
tests_.add(index, builderForValue.build());
onChanged();
} else {
testsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
public Builder addAllTests(
java.lang.Iterable extends dev.cel.expr.conformance.test.TestCase> values) {
if (testsBuilder_ == null) {
ensureTestsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tests_);
onChanged();
} else {
testsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
public Builder clearTests() {
if (testsBuilder_ == null) {
tests_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
testsBuilder_.clear();
}
return this;
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
public Builder removeTests(int index) {
if (testsBuilder_ == null) {
ensureTestsIsMutable();
tests_.remove(index);
onChanged();
} else {
testsBuilder_.remove(index);
}
return this;
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
public dev.cel.expr.conformance.test.TestCase.Builder getTestsBuilder(
int index) {
return getTestsFieldBuilder().getBuilder(index);
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
public dev.cel.expr.conformance.test.TestCaseOrBuilder getTestsOrBuilder(
int index) {
if (testsBuilder_ == null) {
return tests_.get(index); } else {
return testsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
public java.util.List extends dev.cel.expr.conformance.test.TestCaseOrBuilder>
getTestsOrBuilderList() {
if (testsBuilder_ != null) {
return testsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tests_);
}
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
public dev.cel.expr.conformance.test.TestCase.Builder addTestsBuilder() {
return getTestsFieldBuilder().addBuilder(
dev.cel.expr.conformance.test.TestCase.getDefaultInstance());
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
public dev.cel.expr.conformance.test.TestCase.Builder addTestsBuilder(
int index) {
return getTestsFieldBuilder().addBuilder(
index, dev.cel.expr.conformance.test.TestCase.getDefaultInstance());
}
/**
*
* Test cases of the test section.
* Each test case represents a test scenario.
*
*
* repeated .cel.expr.conformance.test.TestCase tests = 3;
*/
public java.util.List
getTestsBuilderList() {
return getTestsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
dev.cel.expr.conformance.test.TestCase, dev.cel.expr.conformance.test.TestCase.Builder, dev.cel.expr.conformance.test.TestCaseOrBuilder>
getTestsFieldBuilder() {
if (testsBuilder_ == null) {
testsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
dev.cel.expr.conformance.test.TestCase, dev.cel.expr.conformance.test.TestCase.Builder, dev.cel.expr.conformance.test.TestCaseOrBuilder>(
tests_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
tests_ = null;
}
return testsBuilder_;
}
@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.TestSection)
}
// @@protoc_insertion_point(class_scope:cel.expr.conformance.test.TestSection)
private static final dev.cel.expr.conformance.test.TestSection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new dev.cel.expr.conformance.test.TestSection();
}
public static dev.cel.expr.conformance.test.TestSection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TestSection 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.TestSection getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy