Class KindVersion.Builder

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

    public static final class KindVersion.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<KindVersion.Builder>
    implements KindVersionOrBuilder
     KindVersion contains the entry's kind and api version.
     
    Protobuf type dev.sigstore.rekor.v1.KindVersion
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      KindVersion build()  
      KindVersion buildPartial()  
      KindVersion.Builder clear()  
      KindVersion.Builder clearKind()
      Kind is the type of entry being stored in the log.
      KindVersion.Builder clearVersion()
      The specific api version of the type.
      KindVersion getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      java.lang.String getKind()
      Kind is the type of entry being stored in the log.
      com.google.protobuf.ByteString getKindBytes()
      Kind is the type of entry being stored in the log.
      java.lang.String getVersion()
      The specific api version of the type.
      com.google.protobuf.ByteString getVersionBytes()
      The specific api version of the type.
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      KindVersion.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      KindVersion.Builder mergeFrom​(com.google.protobuf.Message other)  
      KindVersion.Builder mergeFrom​(KindVersion other)  
      KindVersion.Builder setKind​(java.lang.String value)
      Kind is the type of entry being stored in the log.
      KindVersion.Builder setKindBytes​(com.google.protobuf.ByteString value)
      Kind is the type of entry being stored in the log.
      KindVersion.Builder setVersion​(java.lang.String value)
      The specific api version of the type.
      KindVersion.Builder setVersionBytes​(com.google.protobuf.ByteString value)
      The specific api version of the type.
      • Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

        addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
      • Methods inherited from class com.google.protobuf.AbstractMessage.Builder

        findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

        addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.Message.Builder

        mergeDelimitedFrom, mergeDelimitedFrom
      • Methods inherited from interface com.google.protobuf.MessageLite.Builder

        mergeFrom
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getDescriptor

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

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

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

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

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

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

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

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

        public KindVersion.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<KindVersion.Builder>
        Throws:
        java.io.IOException
      • getKind

        public java.lang.String getKind()
         Kind is the type of entry being stored in the log.
         See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types
         
        string kind = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getKind in interface KindVersionOrBuilder
        Returns:
        The kind.
      • getKindBytes

        public com.google.protobuf.ByteString getKindBytes()
         Kind is the type of entry being stored in the log.
         See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types
         
        string kind = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getKindBytes in interface KindVersionOrBuilder
        Returns:
        The bytes for kind.
      • setKind

        public KindVersion.Builder setKind​(java.lang.String value)
         Kind is the type of entry being stored in the log.
         See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types
         
        string kind = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The kind to set.
        Returns:
        This builder for chaining.
      • clearKind

        public KindVersion.Builder clearKind()
         Kind is the type of entry being stored in the log.
         See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types
         
        string kind = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setKindBytes

        public KindVersion.Builder setKindBytes​(com.google.protobuf.ByteString value)
         Kind is the type of entry being stored in the log.
         See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types
         
        string kind = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for kind to set.
        Returns:
        This builder for chaining.
      • getVersion

        public java.lang.String getVersion()
         The specific api version of the type.
         
        string version = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getVersion in interface KindVersionOrBuilder
        Returns:
        The version.
      • getVersionBytes

        public com.google.protobuf.ByteString getVersionBytes()
         The specific api version of the type.
         
        string version = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getVersionBytes in interface KindVersionOrBuilder
        Returns:
        The bytes for version.
      • setVersion

        public KindVersion.Builder setVersion​(java.lang.String value)
         The specific api version of the type.
         
        string version = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The version to set.
        Returns:
        This builder for chaining.
      • clearVersion

        public KindVersion.Builder clearVersion()
         The specific api version of the type.
         
        string version = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setVersionBytes

        public KindVersion.Builder setVersionBytes​(com.google.protobuf.ByteString value)
         The specific api version of the type.
         
        string version = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for version to set.
        Returns:
        This builder for chaining.