Class CompatibleVersionSet.Builder

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

    public static final class CompatibleVersionSet.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CompatibleVersionSet.Builder>
    implements CompatibleVersionSetOrBuilder
     Used by the worker versioning APIs, represents an unordered set of one or more versions which are
     considered to be compatible with each other. Currently the versions are always worker build IDs.
     
    Protobuf type temporal.api.taskqueue.v1.CompatibleVersionSet
    • 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<CompatibleVersionSet.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public com.google.protobuf.ProtocolStringList getBuildIdsList()
         All the compatible versions, unordered, except for the last element, which is considered the set "default".
         
        repeated string build_ids = 1;
        Specified by:
        getBuildIdsList in interface CompatibleVersionSetOrBuilder
        Returns:
        A list containing the buildIds.
      • getBuildIdsCount

        public int getBuildIdsCount()
         All the compatible versions, unordered, except for the last element, which is considered the set "default".
         
        repeated string build_ids = 1;
        Specified by:
        getBuildIdsCount in interface CompatibleVersionSetOrBuilder
        Returns:
        The count of buildIds.
      • getBuildIds

        public java.lang.String getBuildIds​(int index)
         All the compatible versions, unordered, except for the last element, which is considered the set "default".
         
        repeated string build_ids = 1;
        Specified by:
        getBuildIds in interface CompatibleVersionSetOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The buildIds at the given index.
      • getBuildIdsBytes

        public com.google.protobuf.ByteString getBuildIdsBytes​(int index)
         All the compatible versions, unordered, except for the last element, which is considered the set "default".
         
        repeated string build_ids = 1;
        Specified by:
        getBuildIdsBytes in interface CompatibleVersionSetOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the buildIds at the given index.
      • setBuildIds

        public CompatibleVersionSet.Builder setBuildIds​(int index,
                                                        java.lang.String value)
         All the compatible versions, unordered, except for the last element, which is considered the set "default".
         
        repeated string build_ids = 1;
        Parameters:
        index - The index to set the value at.
        value - The buildIds to set.
        Returns:
        This builder for chaining.
      • addBuildIds

        public CompatibleVersionSet.Builder addBuildIds​(java.lang.String value)
         All the compatible versions, unordered, except for the last element, which is considered the set "default".
         
        repeated string build_ids = 1;
        Parameters:
        value - The buildIds to add.
        Returns:
        This builder for chaining.
      • addAllBuildIds

        public CompatibleVersionSet.Builder addAllBuildIds​(java.lang.Iterable<java.lang.String> values)
         All the compatible versions, unordered, except for the last element, which is considered the set "default".
         
        repeated string build_ids = 1;
        Parameters:
        values - The buildIds to add.
        Returns:
        This builder for chaining.
      • clearBuildIds

        public CompatibleVersionSet.Builder clearBuildIds()
         All the compatible versions, unordered, except for the last element, which is considered the set "default".
         
        repeated string build_ids = 1;
        Returns:
        This builder for chaining.
      • addBuildIdsBytes

        public CompatibleVersionSet.Builder addBuildIdsBytes​(com.google.protobuf.ByteString value)
         All the compatible versions, unordered, except for the last element, which is considered the set "default".
         
        repeated string build_ids = 1;
        Parameters:
        value - The bytes of the buildIds to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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