Class SimpleTestFile.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<SimpleTestFile.Builder>
dev.cel.expr.conformance.test.SimpleTestFile.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SimpleTestFileOrBuilder, Cloneable
Enclosing class:
SimpleTestFile

public static final class SimpleTestFile.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SimpleTestFile.Builder> implements SimpleTestFileOrBuilder
 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.

 Deprecated: Use cel.expr.conformance.test.Suite
 
Protobuf type cel.expr.conformance.test.SimpleTestFile
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SimpleTestFile.Builder>
    • clear

      public SimpleTestFile.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<SimpleTestFile.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SimpleTestFile.Builder>
    • getDefaultInstanceForType

      public SimpleTestFile getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public SimpleTestFile build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SimpleTestFile buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public SimpleTestFile.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<SimpleTestFile.Builder>
    • setField

      public SimpleTestFile.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<SimpleTestFile.Builder>
    • clearField

      public SimpleTestFile.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SimpleTestFile.Builder>
    • clearOneof

      public SimpleTestFile.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SimpleTestFile.Builder>
    • setRepeatedField

      public SimpleTestFile.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SimpleTestFile.Builder>
    • addRepeatedField

      public SimpleTestFile.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SimpleTestFile.Builder>
    • mergeFrom

      public SimpleTestFile.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SimpleTestFile.Builder>
    • mergeFrom

      public SimpleTestFile.Builder mergeFrom(SimpleTestFile other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SimpleTestFile.Builder>
    • mergeFrom

      public SimpleTestFile.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SimpleTestFile.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required.  The name of the file.  Should match the filename.
       
      string name = 1;
      Specified by:
      getName in interface SimpleTestFileOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required.  The name of the file.  Should match the filename.
       
      string name = 1;
      Specified by:
      getNameBytes in interface SimpleTestFileOrBuilder
      Returns:
      The bytes for name.
    • setName

      public SimpleTestFile.Builder setName(String value)
       Required.  The name of the file.  Should match the filename.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public SimpleTestFile.Builder clearName()
       Required.  The name of the file.  Should match the filename.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public SimpleTestFile.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required.  The name of the file.  Should match the filename.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       A description of the file.
       
      string description = 2;
      Specified by:
      getDescription in interface SimpleTestFileOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       A description of the file.
       
      string description = 2;
      Specified by:
      getDescriptionBytes in interface SimpleTestFileOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public SimpleTestFile.Builder setDescription(String value)
       A description of the file.
       
      string description = 2;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public SimpleTestFile.Builder clearDescription()
       A description of the file.
       
      string description = 2;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public SimpleTestFile.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       A description of the file.
       
      string description = 2;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getSectionList

      public List<SimpleTestSection> getSectionList()
       The contained sections.
       
      repeated .cel.expr.conformance.test.SimpleTestSection section = 3;
      Specified by:
      getSectionList in interface SimpleTestFileOrBuilder
    • getSectionCount

      public int getSectionCount()
       The contained sections.
       
      repeated .cel.expr.conformance.test.SimpleTestSection section = 3;
      Specified by:
      getSectionCount in interface SimpleTestFileOrBuilder
    • getSection

      public SimpleTestSection getSection(int index)
       The contained sections.
       
      repeated .cel.expr.conformance.test.SimpleTestSection section = 3;
      Specified by:
      getSection in interface SimpleTestFileOrBuilder
    • setSection

      public SimpleTestFile.Builder setSection(int index, SimpleTestSection value)
       The contained sections.
       
      repeated .cel.expr.conformance.test.SimpleTestSection section = 3;
    • setSection

      public SimpleTestFile.Builder setSection(int index, SimpleTestSection.Builder builderForValue)
       The contained sections.
       
      repeated .cel.expr.conformance.test.SimpleTestSection section = 3;
    • addSection

      public SimpleTestFile.Builder addSection(SimpleTestSection value)
       The contained sections.
       
      repeated .cel.expr.conformance.test.SimpleTestSection section = 3;
    • addSection

      public SimpleTestFile.Builder addSection(int index, SimpleTestSection value)
       The contained sections.
       
      repeated .cel.expr.conformance.test.SimpleTestSection section = 3;
    • addSection

      public SimpleTestFile.Builder addSection(SimpleTestSection.Builder builderForValue)
       The contained sections.
       
      repeated .cel.expr.conformance.test.SimpleTestSection section = 3;
    • addSection

      public SimpleTestFile.Builder addSection(int index, SimpleTestSection.Builder builderForValue)
       The contained sections.
       
      repeated .cel.expr.conformance.test.SimpleTestSection section = 3;
    • addAllSection

      public SimpleTestFile.Builder addAllSection(Iterable<? extends SimpleTestSection> values)
       The contained sections.
       
      repeated .cel.expr.conformance.test.SimpleTestSection section = 3;
    • clearSection

      public SimpleTestFile.Builder clearSection()
       The contained sections.
       
      repeated .cel.expr.conformance.test.SimpleTestSection section = 3;
    • removeSection

      public SimpleTestFile.Builder removeSection(int index)
       The contained sections.
       
      repeated .cel.expr.conformance.test.SimpleTestSection section = 3;
    • getSectionBuilder

      public SimpleTestSection.Builder getSectionBuilder(int index)
       The contained sections.
       
      repeated .cel.expr.conformance.test.SimpleTestSection section = 3;
    • getSectionOrBuilder

      public SimpleTestSectionOrBuilder getSectionOrBuilder(int index)
       The contained sections.
       
      repeated .cel.expr.conformance.test.SimpleTestSection section = 3;
      Specified by:
      getSectionOrBuilder in interface SimpleTestFileOrBuilder
    • getSectionOrBuilderList

      public List<? extends SimpleTestSectionOrBuilder> getSectionOrBuilderList()
       The contained sections.
       
      repeated .cel.expr.conformance.test.SimpleTestSection section = 3;
      Specified by:
      getSectionOrBuilderList in interface SimpleTestFileOrBuilder
    • addSectionBuilder

      public SimpleTestSection.Builder addSectionBuilder()
       The contained sections.
       
      repeated .cel.expr.conformance.test.SimpleTestSection section = 3;
    • addSectionBuilder

      public SimpleTestSection.Builder addSectionBuilder(int index)
       The contained sections.
       
      repeated .cel.expr.conformance.test.SimpleTestSection section = 3;
    • getSectionBuilderList

      public List<SimpleTestSection.Builder> getSectionBuilderList()
       The contained sections.
       
      repeated .cel.expr.conformance.test.SimpleTestSection section = 3;
    • setUnknownFields

      public final SimpleTestFile.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SimpleTestFile.Builder>
    • mergeUnknownFields

      public final SimpleTestFile.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SimpleTestFile.Builder>