Class RootV1.Root.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable, RootV1.RootOrBuilder
    Enclosing class:
    RootV1.Root

    public static final class RootV1.Root.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RootV1.Root.Builder>
    implements RootV1.RootOrBuilder
    Protobuf type org.magmacollective.darkcrystal.keybackup.messageschemas.Root
    • 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<RootV1.Root.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public RootV1.Root.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws java.io.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<RootV1.Root.Builder>
        Throws:
        java.io.IOException
      • hasType

        public boolean hasType()
        required string type = 1;
        Specified by:
        hasType in interface RootV1.RootOrBuilder
        Returns:
        Whether the type field is set.
      • getType

        public java.lang.String getType()
        required string type = 1;
        Specified by:
        getType in interface RootV1.RootOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
        required string type = 1;
        Specified by:
        getTypeBytes in interface RootV1.RootOrBuilder
        Returns:
        The bytes for type.
      • setType

        public RootV1.Root.Builder setType​(java.lang.String value)
        required string type = 1;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public RootV1.Root.Builder clearType()
        required string type = 1;
        Returns:
        This builder for chaining.
      • setTypeBytes

        public RootV1.Root.Builder setTypeBytes​(com.google.protobuf.ByteString value)
        required string type = 1;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • hasVersion

        public boolean hasVersion()
        required string version = 2;
        Specified by:
        hasVersion in interface RootV1.RootOrBuilder
        Returns:
        Whether the version field is set.
      • getVersion

        public java.lang.String getVersion()
        required string version = 2;
        Specified by:
        getVersion in interface RootV1.RootOrBuilder
        Returns:
        The version.
      • getVersionBytes

        public com.google.protobuf.ByteString getVersionBytes()
        required string version = 2;
        Specified by:
        getVersionBytes in interface RootV1.RootOrBuilder
        Returns:
        The bytes for version.
      • setVersion

        public RootV1.Root.Builder setVersion​(java.lang.String value)
        required string version = 2;
        Parameters:
        value - The version to set.
        Returns:
        This builder for chaining.
      • clearVersion

        public RootV1.Root.Builder clearVersion()
        required string version = 2;
        Returns:
        This builder for chaining.
      • setVersionBytes

        public RootV1.Root.Builder setVersionBytes​(com.google.protobuf.ByteString value)
        required string version = 2;
        Parameters:
        value - The bytes for version to set.
        Returns:
        This builder for chaining.
      • hasTimestamp

        public boolean hasTimestamp()
        required fixed64 timestamp = 3;
        Specified by:
        hasTimestamp in interface RootV1.RootOrBuilder
        Returns:
        Whether the timestamp field is set.
      • getTimestamp

        public long getTimestamp()
        required fixed64 timestamp = 3;
        Specified by:
        getTimestamp in interface RootV1.RootOrBuilder
        Returns:
        The timestamp.
      • setTimestamp

        public RootV1.Root.Builder setTimestamp​(long value)
        required fixed64 timestamp = 3;
        Parameters:
        value - The timestamp to set.
        Returns:
        This builder for chaining.
      • clearTimestamp

        public RootV1.Root.Builder clearTimestamp()
        required fixed64 timestamp = 3;
        Returns:
        This builder for chaining.
      • hasQuorum

        public boolean hasQuorum()
        required uint32 quorum = 4;
        Specified by:
        hasQuorum in interface RootV1.RootOrBuilder
        Returns:
        Whether the quorum field is set.
      • getQuorum

        public int getQuorum()
        required uint32 quorum = 4;
        Specified by:
        getQuorum in interface RootV1.RootOrBuilder
        Returns:
        The quorum.
      • setQuorum

        public RootV1.Root.Builder setQuorum​(int value)
        required uint32 quorum = 4;
        Parameters:
        value - The quorum to set.
        Returns:
        This builder for chaining.
      • clearQuorum

        public RootV1.Root.Builder clearQuorum()
        required uint32 quorum = 4;
        Returns:
        This builder for chaining.
      • hasShards

        public boolean hasShards()
        required uint32 shards = 5;
        Specified by:
        hasShards in interface RootV1.RootOrBuilder
        Returns:
        Whether the shards field is set.
      • getShards

        public int getShards()
        required uint32 shards = 5;
        Specified by:
        getShards in interface RootV1.RootOrBuilder
        Returns:
        The shards.
      • setShards

        public RootV1.Root.Builder setShards​(int value)
        required uint32 shards = 5;
        Parameters:
        value - The shards to set.
        Returns:
        This builder for chaining.
      • clearShards

        public RootV1.Root.Builder clearShards()
        required uint32 shards = 5;
        Returns:
        This builder for chaining.
      • hasName

        public boolean hasName()
        optional string name = 6;
        Specified by:
        hasName in interface RootV1.RootOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public java.lang.String getName()
        optional string name = 6;
        Specified by:
        getName in interface RootV1.RootOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
        optional string name = 6;
        Specified by:
        getNameBytes in interface RootV1.RootOrBuilder
        Returns:
        The bytes for name.
      • setName

        public RootV1.Root.Builder setName​(java.lang.String value)
        optional string name = 6;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public RootV1.Root.Builder clearName()
        optional string name = 6;
        Returns:
        This builder for chaining.
      • setNameBytes

        public RootV1.Root.Builder setNameBytes​(com.google.protobuf.ByteString value)
        optional string name = 6;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasTool

        public boolean hasTool()
        optional string tool = 7;
        Specified by:
        hasTool in interface RootV1.RootOrBuilder
        Returns:
        Whether the tool field is set.
      • getTool

        public java.lang.String getTool()
        optional string tool = 7;
        Specified by:
        getTool in interface RootV1.RootOrBuilder
        Returns:
        The tool.
      • getToolBytes

        public com.google.protobuf.ByteString getToolBytes()
        optional string tool = 7;
        Specified by:
        getToolBytes in interface RootV1.RootOrBuilder
        Returns:
        The bytes for tool.
      • setTool

        public RootV1.Root.Builder setTool​(java.lang.String value)
        optional string tool = 7;
        Parameters:
        value - The tool to set.
        Returns:
        This builder for chaining.
      • clearTool

        public RootV1.Root.Builder clearTool()
        optional string tool = 7;
        Returns:
        This builder for chaining.
      • setToolBytes

        public RootV1.Root.Builder setToolBytes​(com.google.protobuf.ByteString value)
        optional string tool = 7;
        Parameters:
        value - The bytes for tool to set.
        Returns:
        This builder for chaining.
      • hasTag

        public boolean hasTag()
        optional bytes tag = 8;
        Specified by:
        hasTag in interface RootV1.RootOrBuilder
        Returns:
        Whether the tag field is set.
      • getTag

        public com.google.protobuf.ByteString getTag()
        optional bytes tag = 8;
        Specified by:
        getTag in interface RootV1.RootOrBuilder
        Returns:
        The tag.
      • setTag

        public RootV1.Root.Builder setTag​(com.google.protobuf.ByteString value)
        optional bytes tag = 8;
        Parameters:
        value - The tag to set.
        Returns:
        This builder for chaining.
      • clearTag

        public RootV1.Root.Builder clearTag()
        optional bytes tag = 8;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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