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

dev.cel.expr.conformance.SimpleTestFile Maven / Gradle / Ivy

There is a newer version: 1.0.47
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: cel/expr/conformance/simple.proto

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

/**
 * 
 * The format of a simple test file, expected to be stored in text format.
 * A file is the unit of granularity for selecting conformance tests,
 * so tests of optional features should be segregated into separate files.
 * 
* * Protobuf type {@code cel.expr.conformance.SimpleTestFile} */ public final class SimpleTestFile extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cel.expr.conformance.SimpleTestFile) SimpleTestFileOrBuilder { private static final long serialVersionUID = 0L; // Use SimpleTestFile.newBuilder() to construct. private SimpleTestFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SimpleTestFile() { name_ = ""; description_ = ""; section_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SimpleTestFile(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return dev.cel.expr.conformance.SimpleProto.internal_static_cel_expr_conformance_SimpleTestFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return dev.cel.expr.conformance.SimpleProto.internal_static_cel_expr_conformance_SimpleTestFile_fieldAccessorTable .ensureFieldAccessorsInitialized( dev.cel.expr.conformance.SimpleTestFile.class, dev.cel.expr.conformance.SimpleTestFile.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
   * Required.  The name of the file.  Should match the filename.
   * 
* * 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; } } /** *
   * Required.  The name of the file.  Should match the filename.
   * 
* * 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 file.
   * 
* * 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 file.
   * 
* * 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 SECTION_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List section_; /** *
   * The contained sections.
   * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ @java.lang.Override public java.util.List getSectionList() { return section_; } /** *
   * The contained sections.
   * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ @java.lang.Override public java.util.List getSectionOrBuilderList() { return section_; } /** *
   * The contained sections.
   * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ @java.lang.Override public int getSectionCount() { return section_.size(); } /** *
   * The contained sections.
   * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ @java.lang.Override public dev.cel.expr.conformance.SimpleTestSection getSection(int index) { return section_.get(index); } /** *
   * The contained sections.
   * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ @java.lang.Override public dev.cel.expr.conformance.SimpleTestSectionOrBuilder getSectionOrBuilder( int index) { return section_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 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 < section_.size(); i++) { output.writeMessage(3, section_.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 < section_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, section_.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.SimpleTestFile)) { return super.equals(obj); } dev.cel.expr.conformance.SimpleTestFile other = (dev.cel.expr.conformance.SimpleTestFile) obj; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getSectionList() .equals(other.getSectionList())) 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 (getSectionCount() > 0) { hash = (37 * hash) + SECTION_FIELD_NUMBER; hash = (53 * hash) + getSectionList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static dev.cel.expr.conformance.SimpleTestFile parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static dev.cel.expr.conformance.SimpleTestFile 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.SimpleTestFile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static dev.cel.expr.conformance.SimpleTestFile 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.SimpleTestFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static dev.cel.expr.conformance.SimpleTestFile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static dev.cel.expr.conformance.SimpleTestFile parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static dev.cel.expr.conformance.SimpleTestFile 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.SimpleTestFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static dev.cel.expr.conformance.SimpleTestFile 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.SimpleTestFile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static dev.cel.expr.conformance.SimpleTestFile 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.SimpleTestFile 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; } /** *
   * The format of a simple test file, expected to be stored in text format.
   * A file is the unit of granularity for selecting conformance tests,
   * so tests of optional features should be segregated into separate files.
   * 
* * Protobuf type {@code cel.expr.conformance.SimpleTestFile} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cel.expr.conformance.SimpleTestFile) dev.cel.expr.conformance.SimpleTestFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return dev.cel.expr.conformance.SimpleProto.internal_static_cel_expr_conformance_SimpleTestFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return dev.cel.expr.conformance.SimpleProto.internal_static_cel_expr_conformance_SimpleTestFile_fieldAccessorTable .ensureFieldAccessorsInitialized( dev.cel.expr.conformance.SimpleTestFile.class, dev.cel.expr.conformance.SimpleTestFile.Builder.class); } // Construct using dev.cel.expr.conformance.SimpleTestFile.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 (sectionBuilder_ == null) { section_ = java.util.Collections.emptyList(); } else { section_ = null; sectionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return dev.cel.expr.conformance.SimpleProto.internal_static_cel_expr_conformance_SimpleTestFile_descriptor; } @java.lang.Override public dev.cel.expr.conformance.SimpleTestFile getDefaultInstanceForType() { return dev.cel.expr.conformance.SimpleTestFile.getDefaultInstance(); } @java.lang.Override public dev.cel.expr.conformance.SimpleTestFile build() { dev.cel.expr.conformance.SimpleTestFile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public dev.cel.expr.conformance.SimpleTestFile buildPartial() { dev.cel.expr.conformance.SimpleTestFile result = new dev.cel.expr.conformance.SimpleTestFile(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(dev.cel.expr.conformance.SimpleTestFile result) { if (sectionBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { section_ = java.util.Collections.unmodifiableList(section_); bitField0_ = (bitField0_ & ~0x00000004); } result.section_ = section_; } else { result.section_ = sectionBuilder_.build(); } } private void buildPartial0(dev.cel.expr.conformance.SimpleTestFile 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.SimpleTestFile) { return mergeFrom((dev.cel.expr.conformance.SimpleTestFile)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(dev.cel.expr.conformance.SimpleTestFile other) { if (other == dev.cel.expr.conformance.SimpleTestFile.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000002; onChanged(); } if (sectionBuilder_ == null) { if (!other.section_.isEmpty()) { if (section_.isEmpty()) { section_ = other.section_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureSectionIsMutable(); section_.addAll(other.section_); } onChanged(); } } else { if (!other.section_.isEmpty()) { if (sectionBuilder_.isEmpty()) { sectionBuilder_.dispose(); sectionBuilder_ = null; section_ = other.section_; bitField0_ = (bitField0_ & ~0x00000004); sectionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSectionFieldBuilder() : null; } else { sectionBuilder_.addAllMessages(other.section_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { dev.cel.expr.conformance.SimpleTestSection m = input.readMessage( dev.cel.expr.conformance.SimpleTestSection.parser(), extensionRegistry); if (sectionBuilder_ == null) { ensureSectionIsMutable(); section_.add(m); } else { sectionBuilder_.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_ = ""; /** *
     * Required.  The name of the file.  Should match the filename.
     * 
* * 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; } } /** *
     * Required.  The name of the file.  Should match the filename.
     * 
* * 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; } } /** *
     * Required.  The name of the file.  Should match the filename.
     * 
* * 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; } /** *
     * Required.  The name of the file.  Should match the filename.
     * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Required.  The name of the file.  Should match the filename.
     * 
* * 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 file.
     * 
* * 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 file.
     * 
* * 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 file.
     * 
* * 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 file.
     * 
* * string description = 2; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * A description of the file.
     * 
* * 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 section_ = java.util.Collections.emptyList(); private void ensureSectionIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { section_ = new java.util.ArrayList(section_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< dev.cel.expr.conformance.SimpleTestSection, dev.cel.expr.conformance.SimpleTestSection.Builder, dev.cel.expr.conformance.SimpleTestSectionOrBuilder> sectionBuilder_; /** *
     * The contained sections.
     * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ public java.util.List getSectionList() { if (sectionBuilder_ == null) { return java.util.Collections.unmodifiableList(section_); } else { return sectionBuilder_.getMessageList(); } } /** *
     * The contained sections.
     * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ public int getSectionCount() { if (sectionBuilder_ == null) { return section_.size(); } else { return sectionBuilder_.getCount(); } } /** *
     * The contained sections.
     * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ public dev.cel.expr.conformance.SimpleTestSection getSection(int index) { if (sectionBuilder_ == null) { return section_.get(index); } else { return sectionBuilder_.getMessage(index); } } /** *
     * The contained sections.
     * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ public Builder setSection( int index, dev.cel.expr.conformance.SimpleTestSection value) { if (sectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSectionIsMutable(); section_.set(index, value); onChanged(); } else { sectionBuilder_.setMessage(index, value); } return this; } /** *
     * The contained sections.
     * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ public Builder setSection( int index, dev.cel.expr.conformance.SimpleTestSection.Builder builderForValue) { if (sectionBuilder_ == null) { ensureSectionIsMutable(); section_.set(index, builderForValue.build()); onChanged(); } else { sectionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The contained sections.
     * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ public Builder addSection(dev.cel.expr.conformance.SimpleTestSection value) { if (sectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSectionIsMutable(); section_.add(value); onChanged(); } else { sectionBuilder_.addMessage(value); } return this; } /** *
     * The contained sections.
     * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ public Builder addSection( int index, dev.cel.expr.conformance.SimpleTestSection value) { if (sectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSectionIsMutable(); section_.add(index, value); onChanged(); } else { sectionBuilder_.addMessage(index, value); } return this; } /** *
     * The contained sections.
     * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ public Builder addSection( dev.cel.expr.conformance.SimpleTestSection.Builder builderForValue) { if (sectionBuilder_ == null) { ensureSectionIsMutable(); section_.add(builderForValue.build()); onChanged(); } else { sectionBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The contained sections.
     * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ public Builder addSection( int index, dev.cel.expr.conformance.SimpleTestSection.Builder builderForValue) { if (sectionBuilder_ == null) { ensureSectionIsMutable(); section_.add(index, builderForValue.build()); onChanged(); } else { sectionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The contained sections.
     * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ public Builder addAllSection( java.lang.Iterable values) { if (sectionBuilder_ == null) { ensureSectionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, section_); onChanged(); } else { sectionBuilder_.addAllMessages(values); } return this; } /** *
     * The contained sections.
     * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ public Builder clearSection() { if (sectionBuilder_ == null) { section_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { sectionBuilder_.clear(); } return this; } /** *
     * The contained sections.
     * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ public Builder removeSection(int index) { if (sectionBuilder_ == null) { ensureSectionIsMutable(); section_.remove(index); onChanged(); } else { sectionBuilder_.remove(index); } return this; } /** *
     * The contained sections.
     * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ public dev.cel.expr.conformance.SimpleTestSection.Builder getSectionBuilder( int index) { return getSectionFieldBuilder().getBuilder(index); } /** *
     * The contained sections.
     * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ public dev.cel.expr.conformance.SimpleTestSectionOrBuilder getSectionOrBuilder( int index) { if (sectionBuilder_ == null) { return section_.get(index); } else { return sectionBuilder_.getMessageOrBuilder(index); } } /** *
     * The contained sections.
     * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ public java.util.List getSectionOrBuilderList() { if (sectionBuilder_ != null) { return sectionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(section_); } } /** *
     * The contained sections.
     * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ public dev.cel.expr.conformance.SimpleTestSection.Builder addSectionBuilder() { return getSectionFieldBuilder().addBuilder( dev.cel.expr.conformance.SimpleTestSection.getDefaultInstance()); } /** *
     * The contained sections.
     * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ public dev.cel.expr.conformance.SimpleTestSection.Builder addSectionBuilder( int index) { return getSectionFieldBuilder().addBuilder( index, dev.cel.expr.conformance.SimpleTestSection.getDefaultInstance()); } /** *
     * The contained sections.
     * 
* * repeated .cel.expr.conformance.SimpleTestSection section = 3; */ public java.util.List getSectionBuilderList() { return getSectionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< dev.cel.expr.conformance.SimpleTestSection, dev.cel.expr.conformance.SimpleTestSection.Builder, dev.cel.expr.conformance.SimpleTestSectionOrBuilder> getSectionFieldBuilder() { if (sectionBuilder_ == null) { sectionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< dev.cel.expr.conformance.SimpleTestSection, dev.cel.expr.conformance.SimpleTestSection.Builder, dev.cel.expr.conformance.SimpleTestSectionOrBuilder>( section_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); section_ = null; } return sectionBuilder_; } @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.SimpleTestFile) } // @@protoc_insertion_point(class_scope:cel.expr.conformance.SimpleTestFile) private static final dev.cel.expr.conformance.SimpleTestFile DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new dev.cel.expr.conformance.SimpleTestFile(); } public static dev.cel.expr.conformance.SimpleTestFile getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SimpleTestFile 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.SimpleTestFile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy