Class PlanProtocol.ExecutionCluster.Builder

    • 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<PlanProtocol.ExecutionCluster.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<PlanProtocol.ExecutionCluster.Builder>
      • getDefaultInstanceForType

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

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

        public PlanProtocol.ExecutionCluster buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public PlanProtocol.ExecutionCluster.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<PlanProtocol.ExecutionCluster.Builder>
        Throws:
        IOException
      • setVmClusterId

        public PlanProtocol.ExecutionCluster.Builder setVmClusterId​(com.google.protobuf.ByteString value)
        the uuid of the vm cluster
         
        bytes vm_cluster_id = 1;
        Parameters:
        value - The vmClusterId to set.
        Returns:
        This builder for chaining.
      • setComputeSequenceNumber

        public PlanProtocol.ExecutionCluster.Builder setComputeSequenceNumber​(int value)
        the csn identifying this set of peers as a subset of the cluster
         
        uint32 compute_sequence_number = 2;
        Parameters:
        value - The computeSequenceNumber to set.
        Returns:
        This builder for chaining.
      • clearComputeSequenceNumber

        public PlanProtocol.ExecutionCluster.Builder clearComputeSequenceNumber()
        the csn identifying this set of peers as a subset of the cluster
         
        uint32 compute_sequence_number = 2;
        Returns:
        This builder for chaining.
      • getNodeIds

        public int getNodeIds​(int index)
        the set of node ids (participants of the specified vm cluster)
         
        repeated uint32 node_ids = 3;
        Specified by:
        getNodeIds in interface PlanProtocol.ExecutionClusterOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The nodeIds at the given index.
      • setNodeIds

        public PlanProtocol.ExecutionCluster.Builder setNodeIds​(int index,
                                                                int value)
        the set of node ids (participants of the specified vm cluster)
         
        repeated uint32 node_ids = 3;
        Parameters:
        index - The index to set the value at.
        value - The nodeIds to set.
        Returns:
        This builder for chaining.
      • addNodeIds

        public PlanProtocol.ExecutionCluster.Builder addNodeIds​(int value)
        the set of node ids (participants of the specified vm cluster)
         
        repeated uint32 node_ids = 3;
        Parameters:
        value - The nodeIds to add.
        Returns:
        This builder for chaining.
      • addAllNodeIds

        public PlanProtocol.ExecutionCluster.Builder addAllNodeIds​(Iterable<? extends Integer> values)
        the set of node ids (participants of the specified vm cluster)
         
        repeated uint32 node_ids = 3;
        Parameters:
        values - The nodeIds to add.
        Returns:
        This builder for chaining.
      • clearNodeIds

        public PlanProtocol.ExecutionCluster.Builder clearNodeIds()
        the set of node ids (participants of the specified vm cluster)
         
        repeated uint32 node_ids = 3;
        Returns:
        This builder for chaining.
      • getOwnershipSequenceNumber

        public long getOwnershipSequenceNumber()
         the osn identifying the segment ownership for leaf nodes in the storage cluster
         
        uint64 ownership_sequence_number = 4;
        Specified by:
        getOwnershipSequenceNumber in interface PlanProtocol.ExecutionClusterOrBuilder
        Returns:
        The ownershipSequenceNumber.
      • setOwnershipSequenceNumber

        public PlanProtocol.ExecutionCluster.Builder setOwnershipSequenceNumber​(long value)
         the osn identifying the segment ownership for leaf nodes in the storage cluster
         
        uint64 ownership_sequence_number = 4;
        Parameters:
        value - The ownershipSequenceNumber to set.
        Returns:
        This builder for chaining.
      • clearOwnershipSequenceNumber

        public PlanProtocol.ExecutionCluster.Builder clearOwnershipSequenceNumber()
         the osn identifying the segment ownership for leaf nodes in the storage cluster
         
        uint64 ownership_sequence_number = 4;
        Returns:
        This builder for chaining.