Class Path.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, PathOrBuilder
    Enclosing class:
    Path

    public static final class Path.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Path.Builder>
    implements PathOrBuilder
     A path is a more general substitute for the name of a field or feature that
     can be used for flat examples as well as structured data. For example, if
     we had data in a protocol buffer:
     message Person {
       int age = 1;
       optional string gender = 2;
       repeated Person parent = 3;
     }
     Thus, here the path {step:["parent", "age"]} in statistics would refer to the
     age of a parent, and {step:["parent", "parent", "age"]} would refer to the
     age of a grandparent. This allows us to distinguish between the statistics
     of parents' ages and grandparents' ages. In general, repeated messages are
     to be preferred to linked lists of arbitrary length.
     For SequenceExample, if we have a feature list "foo", this is represented
     by {step:["##SEQUENCE##", "foo"]}.
     
    Protobuf type tensorflow.metadata.v0.Path
    • Method Detail

      • 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<Path.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public Path.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<Path.Builder>
      • isInitialized

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

        public Path.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<Path.Builder>
        Throws:
        IOException
      • getStepList

        public com.google.protobuf.ProtocolStringList getStepList()
         Any string is a valid step.
         However, whenever possible have a step be [A-Za-z0-9_]+.
         
        repeated string step = 1;
        Specified by:
        getStepList in interface PathOrBuilder
        Returns:
        A list containing the step.
      • getStepCount

        public int getStepCount()
         Any string is a valid step.
         However, whenever possible have a step be [A-Za-z0-9_]+.
         
        repeated string step = 1;
        Specified by:
        getStepCount in interface PathOrBuilder
        Returns:
        The count of step.
      • getStep

        public String getStep​(int index)
         Any string is a valid step.
         However, whenever possible have a step be [A-Za-z0-9_]+.
         
        repeated string step = 1;
        Specified by:
        getStep in interface PathOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The step at the given index.
      • getStepBytes

        public com.google.protobuf.ByteString getStepBytes​(int index)
         Any string is a valid step.
         However, whenever possible have a step be [A-Za-z0-9_]+.
         
        repeated string step = 1;
        Specified by:
        getStepBytes in interface PathOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the step at the given index.
      • setStep

        public Path.Builder setStep​(int index,
                                    String value)
         Any string is a valid step.
         However, whenever possible have a step be [A-Za-z0-9_]+.
         
        repeated string step = 1;
        Parameters:
        index - The index to set the value at.
        value - The step to set.
        Returns:
        This builder for chaining.
      • addStep

        public Path.Builder addStep​(String value)
         Any string is a valid step.
         However, whenever possible have a step be [A-Za-z0-9_]+.
         
        repeated string step = 1;
        Parameters:
        value - The step to add.
        Returns:
        This builder for chaining.
      • addAllStep

        public Path.Builder addAllStep​(Iterable<String> values)
         Any string is a valid step.
         However, whenever possible have a step be [A-Za-z0-9_]+.
         
        repeated string step = 1;
        Parameters:
        values - The step to add.
        Returns:
        This builder for chaining.
      • clearStep

        public Path.Builder clearStep()
         Any string is a valid step.
         However, whenever possible have a step be [A-Za-z0-9_]+.
         
        repeated string step = 1;
        Returns:
        This builder for chaining.
      • addStepBytes

        public Path.Builder addStepBytes​(com.google.protobuf.ByteString value)
         Any string is a valid step.
         However, whenever possible have a step be [A-Za-z0-9_]+.
         
        repeated string step = 1;
        Parameters:
        value - The bytes of the step to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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