Class StringDomain.Builder

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

    public static final class StringDomain.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<StringDomain.Builder>
    implements StringDomainOrBuilder
     Encodes information for domains of string values.
     
    Protobuf type tensorflow.metadata.v0.StringDomain
    • 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<StringDomain.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public StringDomain.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<StringDomain.Builder>
        Throws:
        IOException
      • hasName

        public boolean hasName()
         Id of the domain. Required if the domain is defined at the schema level. If
         so, then the name must be unique within the schema.
         
        optional string name = 1;
        Specified by:
        hasName in interface StringDomainOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public String getName()
         Id of the domain. Required if the domain is defined at the schema level. If
         so, then the name must be unique within the schema.
         
        optional string name = 1;
        Specified by:
        getName in interface StringDomainOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Id of the domain. Required if the domain is defined at the schema level. If
         so, then the name must be unique within the schema.
         
        optional string name = 1;
        Specified by:
        getNameBytes in interface StringDomainOrBuilder
        Returns:
        The bytes for name.
      • setName

        public StringDomain.Builder setName​(String value)
         Id of the domain. Required if the domain is defined at the schema level. If
         so, then the name must be unique within the schema.
         
        optional string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public StringDomain.Builder clearName()
         Id of the domain. Required if the domain is defined at the schema level. If
         so, then the name must be unique within the schema.
         
        optional string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public StringDomain.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Id of the domain. Required if the domain is defined at the schema level. If
         so, then the name must be unique within the schema.
         
        optional string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getValueList

        public com.google.protobuf.ProtocolStringList getValueList()
         The values appearing in the domain.
         
        repeated string value = 2;
        Specified by:
        getValueList in interface StringDomainOrBuilder
        Returns:
        A list containing the value.
      • getValueCount

        public int getValueCount()
         The values appearing in the domain.
         
        repeated string value = 2;
        Specified by:
        getValueCount in interface StringDomainOrBuilder
        Returns:
        The count of value.
      • getValue

        public String getValue​(int index)
         The values appearing in the domain.
         
        repeated string value = 2;
        Specified by:
        getValue in interface StringDomainOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The value at the given index.
      • getValueBytes

        public com.google.protobuf.ByteString getValueBytes​(int index)
         The values appearing in the domain.
         
        repeated string value = 2;
        Specified by:
        getValueBytes in interface StringDomainOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the value at the given index.
      • setValue

        public StringDomain.Builder setValue​(int index,
                                             String value)
         The values appearing in the domain.
         
        repeated string value = 2;
        Parameters:
        index - The index to set the value at.
        value - The value to set.
        Returns:
        This builder for chaining.
      • addValue

        public StringDomain.Builder addValue​(String value)
         The values appearing in the domain.
         
        repeated string value = 2;
        Parameters:
        value - The value to add.
        Returns:
        This builder for chaining.
      • addAllValue

        public StringDomain.Builder addAllValue​(Iterable<String> values)
         The values appearing in the domain.
         
        repeated string value = 2;
        Parameters:
        values - The value to add.
        Returns:
        This builder for chaining.
      • clearValue

        public StringDomain.Builder clearValue()
         The values appearing in the domain.
         
        repeated string value = 2;
        Returns:
        This builder for chaining.
      • addValueBytes

        public StringDomain.Builder addValueBytes​(com.google.protobuf.ByteString value)
         The values appearing in the domain.
         
        repeated string value = 2;
        Parameters:
        value - The bytes of the value to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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