Class NamedStruct.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<NamedStruct.Builder>
io.substrait.proto.NamedStruct.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, NamedStructOrBuilder, Cloneable
Enclosing class:
NamedStruct

public static final class NamedStruct.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<NamedStruct.Builder> implements NamedStructOrBuilder
 A message for modeling name/type pairs.

 Useful for representing relation schemas.

 Notes:

 * The names field is in depth-first order.

 For example a schema such as:

 a: int64
 b: struct<c: float32, d: string>

 would have a `names` field that looks like:

 ["a", "b", "c", "d"]

 * Only struct fields are contained in this field's elements,
 * Map keys should be traversed first, then values when producing/consuming
 * When used to represent a relation schema, the outermost struct's
   nullability should be NULLABILITY_REQUIRED.
 
Protobuf type substrait.NamedStruct
  • 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<NamedStruct.Builder>
    • clear

      public NamedStruct.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<NamedStruct.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<NamedStruct.Builder>
    • getDefaultInstanceForType

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

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

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

      public NamedStruct.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<NamedStruct.Builder>
    • setField

      public NamedStruct.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<NamedStruct.Builder>
    • clearField

      public NamedStruct.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<NamedStruct.Builder>
    • clearOneof

      public NamedStruct.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<NamedStruct.Builder>
    • setRepeatedField

      public NamedStruct.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<NamedStruct.Builder>
    • addRepeatedField

      public NamedStruct.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<NamedStruct.Builder>
    • mergeFrom

      public NamedStruct.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<NamedStruct.Builder>
    • mergeFrom

      public NamedStruct.Builder mergeFrom(NamedStruct other)
    • isInitialized

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

      public NamedStruct.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<NamedStruct.Builder>
      Throws:
      IOException
    • getNamesList

      public com.google.protobuf.ProtocolStringList getNamesList()
       list of names in dfs order
       
      repeated string names = 1;
      Specified by:
      getNamesList in interface NamedStructOrBuilder
      Returns:
      A list containing the names.
    • getNamesCount

      public int getNamesCount()
       list of names in dfs order
       
      repeated string names = 1;
      Specified by:
      getNamesCount in interface NamedStructOrBuilder
      Returns:
      The count of names.
    • getNames

      public String getNames(int index)
       list of names in dfs order
       
      repeated string names = 1;
      Specified by:
      getNames in interface NamedStructOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The names at the given index.
    • getNamesBytes

      public com.google.protobuf.ByteString getNamesBytes(int index)
       list of names in dfs order
       
      repeated string names = 1;
      Specified by:
      getNamesBytes in interface NamedStructOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the names at the given index.
    • setNames

      public NamedStruct.Builder setNames(int index, String value)
       list of names in dfs order
       
      repeated string names = 1;
      Parameters:
      index - The index to set the value at.
      value - The names to set.
      Returns:
      This builder for chaining.
    • addNames

      public NamedStruct.Builder addNames(String value)
       list of names in dfs order
       
      repeated string names = 1;
      Parameters:
      value - The names to add.
      Returns:
      This builder for chaining.
    • addAllNames

      public NamedStruct.Builder addAllNames(Iterable<String> values)
       list of names in dfs order
       
      repeated string names = 1;
      Parameters:
      values - The names to add.
      Returns:
      This builder for chaining.
    • clearNames

      public NamedStruct.Builder clearNames()
       list of names in dfs order
       
      repeated string names = 1;
      Returns:
      This builder for chaining.
    • addNamesBytes

      public NamedStruct.Builder addNamesBytes(com.google.protobuf.ByteString value)
       list of names in dfs order
       
      repeated string names = 1;
      Parameters:
      value - The bytes of the names to add.
      Returns:
      This builder for chaining.
    • hasStruct

      public boolean hasStruct()
      .substrait.Type.Struct struct = 2;
      Specified by:
      hasStruct in interface NamedStructOrBuilder
      Returns:
      Whether the struct field is set.
    • getStruct

      public Type.Struct getStruct()
      .substrait.Type.Struct struct = 2;
      Specified by:
      getStruct in interface NamedStructOrBuilder
      Returns:
      The struct.
    • setStruct

      public NamedStruct.Builder setStruct(Type.Struct value)
      .substrait.Type.Struct struct = 2;
    • setStruct

      public NamedStruct.Builder setStruct(Type.Struct.Builder builderForValue)
      .substrait.Type.Struct struct = 2;
    • mergeStruct

      public NamedStruct.Builder mergeStruct(Type.Struct value)
      .substrait.Type.Struct struct = 2;
    • clearStruct

      public NamedStruct.Builder clearStruct()
      .substrait.Type.Struct struct = 2;
    • getStructBuilder

      public Type.Struct.Builder getStructBuilder()
      .substrait.Type.Struct struct = 2;
    • getStructOrBuilder

      public Type.StructOrBuilder getStructOrBuilder()
      .substrait.Type.Struct struct = 2;
      Specified by:
      getStructOrBuilder in interface NamedStructOrBuilder
    • setUnknownFields

      public final NamedStruct.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<NamedStruct.Builder>
    • mergeUnknownFields

      public final NamedStruct.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<NamedStruct.Builder>