
dev.cel.expr.conformance.test.TestSuite 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 suite is a collection of tests designed to evaluate the correctness of
* a CEL policy, a CEL expression or the conformance of a CEL implementation to
* the standard specification.
*
*
* Protobuf type {@code cel.expr.conformance.test.TestSuite}
*/
public final class TestSuite extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cel.expr.conformance.test.TestSuite)
TestSuiteOrBuilder {
private static final long serialVersionUID = 0L;
// Use TestSuite.newBuilder() to construct.
private TestSuite(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TestSuite() {
name_ = "";
description_ = "";
sections_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TestSuite();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.cel.expr.conformance.test.SuiteProto.internal_static_cel_expr_conformance_test_TestSuite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.cel.expr.conformance.test.SuiteProto.internal_static_cel_expr_conformance_test_TestSuite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.cel.expr.conformance.test.TestSuite.class, dev.cel.expr.conformance.test.TestSuite.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* The name of the test suite.
*
*
* 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;
}
}
/**
*
* The name of the test suite.
*
*
* 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 suite.
*
*
* 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 suite.
*
*
* 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 SECTIONS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List sections_;
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
@java.lang.Override
public java.util.List getSectionsList() {
return sections_;
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
@java.lang.Override
public java.util.List extends dev.cel.expr.conformance.test.TestSectionOrBuilder>
getSectionsOrBuilderList() {
return sections_;
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
@java.lang.Override
public int getSectionsCount() {
return sections_.size();
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
@java.lang.Override
public dev.cel.expr.conformance.test.TestSection getSections(int index) {
return sections_.get(index);
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
@java.lang.Override
public dev.cel.expr.conformance.test.TestSectionOrBuilder getSectionsOrBuilder(
int index) {
return sections_.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 < getSectionsCount(); i++) {
if (!getSections(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 < sections_.size(); i++) {
output.writeMessage(3, sections_.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 < sections_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, sections_.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.TestSuite)) {
return super.equals(obj);
}
dev.cel.expr.conformance.test.TestSuite other = (dev.cel.expr.conformance.test.TestSuite) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!getSectionsList()
.equals(other.getSectionsList())) 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 (getSectionsCount() > 0) {
hash = (37 * hash) + SECTIONS_FIELD_NUMBER;
hash = (53 * hash) + getSectionsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static dev.cel.expr.conformance.test.TestSuite parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.cel.expr.conformance.test.TestSuite 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.TestSuite parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.cel.expr.conformance.test.TestSuite 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.TestSuite parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.cel.expr.conformance.test.TestSuite 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.TestSuite parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static dev.cel.expr.conformance.test.TestSuite 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.TestSuite parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static dev.cel.expr.conformance.test.TestSuite 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.TestSuite 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.TestSuite 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.TestSuite 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 suite is a collection of tests designed to evaluate the correctness of
* a CEL policy, a CEL expression or the conformance of a CEL implementation to
* the standard specification.
*
*
* Protobuf type {@code cel.expr.conformance.test.TestSuite}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cel.expr.conformance.test.TestSuite)
dev.cel.expr.conformance.test.TestSuiteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.cel.expr.conformance.test.SuiteProto.internal_static_cel_expr_conformance_test_TestSuite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.cel.expr.conformance.test.SuiteProto.internal_static_cel_expr_conformance_test_TestSuite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.cel.expr.conformance.test.TestSuite.class, dev.cel.expr.conformance.test.TestSuite.Builder.class);
}
// Construct using dev.cel.expr.conformance.test.TestSuite.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 (sectionsBuilder_ == null) {
sections_ = java.util.Collections.emptyList();
} else {
sections_ = null;
sectionsBuilder_.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_TestSuite_descriptor;
}
@java.lang.Override
public dev.cel.expr.conformance.test.TestSuite getDefaultInstanceForType() {
return dev.cel.expr.conformance.test.TestSuite.getDefaultInstance();
}
@java.lang.Override
public dev.cel.expr.conformance.test.TestSuite build() {
dev.cel.expr.conformance.test.TestSuite result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public dev.cel.expr.conformance.test.TestSuite buildPartial() {
dev.cel.expr.conformance.test.TestSuite result = new dev.cel.expr.conformance.test.TestSuite(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(dev.cel.expr.conformance.test.TestSuite result) {
if (sectionsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
sections_ = java.util.Collections.unmodifiableList(sections_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.sections_ = sections_;
} else {
result.sections_ = sectionsBuilder_.build();
}
}
private void buildPartial0(dev.cel.expr.conformance.test.TestSuite 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.TestSuite) {
return mergeFrom((dev.cel.expr.conformance.test.TestSuite)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(dev.cel.expr.conformance.test.TestSuite other) {
if (other == dev.cel.expr.conformance.test.TestSuite.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
bitField0_ |= 0x00000002;
onChanged();
}
if (sectionsBuilder_ == null) {
if (!other.sections_.isEmpty()) {
if (sections_.isEmpty()) {
sections_ = other.sections_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSectionsIsMutable();
sections_.addAll(other.sections_);
}
onChanged();
}
} else {
if (!other.sections_.isEmpty()) {
if (sectionsBuilder_.isEmpty()) {
sectionsBuilder_.dispose();
sectionsBuilder_ = null;
sections_ = other.sections_;
bitField0_ = (bitField0_ & ~0x00000004);
sectionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSectionsFieldBuilder() : null;
} else {
sectionsBuilder_.addAllMessages(other.sections_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getSectionsCount(); i++) {
if (!getSections(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.TestSection m =
input.readMessage(
dev.cel.expr.conformance.test.TestSection.parser(),
extensionRegistry);
if (sectionsBuilder_ == null) {
ensureSectionsIsMutable();
sections_.add(m);
} else {
sectionsBuilder_.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_ = "";
/**
*
* The name of the test suite.
*
*
* 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;
}
}
/**
*
* The name of the test suite.
*
*
* 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;
}
}
/**
*
* The name of the test suite.
*
*
* 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;
}
/**
*
* The name of the test suite.
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The name of the test suite.
*
*
* 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 suite.
*
*
* 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 suite.
*
*
* 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 suite.
*
*
* 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 suite.
*
*
* string description = 2;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Description of the test suite.
*
*
* 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 sections_ =
java.util.Collections.emptyList();
private void ensureSectionsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
sections_ = new java.util.ArrayList(sections_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
dev.cel.expr.conformance.test.TestSection, dev.cel.expr.conformance.test.TestSection.Builder, dev.cel.expr.conformance.test.TestSectionOrBuilder> sectionsBuilder_;
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
public java.util.List getSectionsList() {
if (sectionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(sections_);
} else {
return sectionsBuilder_.getMessageList();
}
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
public int getSectionsCount() {
if (sectionsBuilder_ == null) {
return sections_.size();
} else {
return sectionsBuilder_.getCount();
}
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
public dev.cel.expr.conformance.test.TestSection getSections(int index) {
if (sectionsBuilder_ == null) {
return sections_.get(index);
} else {
return sectionsBuilder_.getMessage(index);
}
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
public Builder setSections(
int index, dev.cel.expr.conformance.test.TestSection value) {
if (sectionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSectionsIsMutable();
sections_.set(index, value);
onChanged();
} else {
sectionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
public Builder setSections(
int index, dev.cel.expr.conformance.test.TestSection.Builder builderForValue) {
if (sectionsBuilder_ == null) {
ensureSectionsIsMutable();
sections_.set(index, builderForValue.build());
onChanged();
} else {
sectionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
public Builder addSections(dev.cel.expr.conformance.test.TestSection value) {
if (sectionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSectionsIsMutable();
sections_.add(value);
onChanged();
} else {
sectionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
public Builder addSections(
int index, dev.cel.expr.conformance.test.TestSection value) {
if (sectionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSectionsIsMutable();
sections_.add(index, value);
onChanged();
} else {
sectionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
public Builder addSections(
dev.cel.expr.conformance.test.TestSection.Builder builderForValue) {
if (sectionsBuilder_ == null) {
ensureSectionsIsMutable();
sections_.add(builderForValue.build());
onChanged();
} else {
sectionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
public Builder addSections(
int index, dev.cel.expr.conformance.test.TestSection.Builder builderForValue) {
if (sectionsBuilder_ == null) {
ensureSectionsIsMutable();
sections_.add(index, builderForValue.build());
onChanged();
} else {
sectionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
public Builder addAllSections(
java.lang.Iterable extends dev.cel.expr.conformance.test.TestSection> values) {
if (sectionsBuilder_ == null) {
ensureSectionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sections_);
onChanged();
} else {
sectionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
public Builder clearSections() {
if (sectionsBuilder_ == null) {
sections_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
sectionsBuilder_.clear();
}
return this;
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
public Builder removeSections(int index) {
if (sectionsBuilder_ == null) {
ensureSectionsIsMutable();
sections_.remove(index);
onChanged();
} else {
sectionsBuilder_.remove(index);
}
return this;
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
public dev.cel.expr.conformance.test.TestSection.Builder getSectionsBuilder(
int index) {
return getSectionsFieldBuilder().getBuilder(index);
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
public dev.cel.expr.conformance.test.TestSectionOrBuilder getSectionsOrBuilder(
int index) {
if (sectionsBuilder_ == null) {
return sections_.get(index); } else {
return sectionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
public java.util.List extends dev.cel.expr.conformance.test.TestSectionOrBuilder>
getSectionsOrBuilderList() {
if (sectionsBuilder_ != null) {
return sectionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sections_);
}
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
public dev.cel.expr.conformance.test.TestSection.Builder addSectionsBuilder() {
return getSectionsFieldBuilder().addBuilder(
dev.cel.expr.conformance.test.TestSection.getDefaultInstance());
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
public dev.cel.expr.conformance.test.TestSection.Builder addSectionsBuilder(
int index) {
return getSectionsFieldBuilder().addBuilder(
index, dev.cel.expr.conformance.test.TestSection.getDefaultInstance());
}
/**
*
* Test sections of the test suite.
* Each section represents a behavior to be tested.
*
*
* repeated .cel.expr.conformance.test.TestSection sections = 3;
*/
public java.util.List
getSectionsBuilderList() {
return getSectionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
dev.cel.expr.conformance.test.TestSection, dev.cel.expr.conformance.test.TestSection.Builder, dev.cel.expr.conformance.test.TestSectionOrBuilder>
getSectionsFieldBuilder() {
if (sectionsBuilder_ == null) {
sectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
dev.cel.expr.conformance.test.TestSection, dev.cel.expr.conformance.test.TestSection.Builder, dev.cel.expr.conformance.test.TestSectionOrBuilder>(
sections_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
sections_ = null;
}
return sectionsBuilder_;
}
@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.TestSuite)
}
// @@protoc_insertion_point(class_scope:cel.expr.conformance.test.TestSuite)
private static final dev.cel.expr.conformance.test.TestSuite DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new dev.cel.expr.conformance.test.TestSuite();
}
public static dev.cel.expr.conformance.test.TestSuite getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TestSuite 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.TestSuite getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy