Class GatewayOuterClass.Partition.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<GatewayOuterClass.Partition.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<GatewayOuterClass.Partition.Builder>
      • getDefaultInstanceForType

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

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

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

        public GatewayOuterClass.Partition.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<GatewayOuterClass.Partition.Builder>
        Throws:
        IOException
      • setPartitionId

        public GatewayOuterClass.Partition.Builder setPartitionId​(int value)
         the unique ID of this partition
         
        int32 partitionId = 1;
        Parameters:
        value - The partitionId to set.
        Returns:
        This builder for chaining.
      • getRoleValue

        public int getRoleValue()
         the role of the broker for this partition
         
        .gateway_protocol.Partition.PartitionBrokerRole role = 2;
        Specified by:
        getRoleValue in interface GatewayOuterClass.PartitionOrBuilder
        Returns:
        The enum numeric value on the wire for role.
      • setRoleValue

        public GatewayOuterClass.Partition.Builder setRoleValue​(int value)
         the role of the broker for this partition
         
        .gateway_protocol.Partition.PartitionBrokerRole role = 2;
        Parameters:
        value - The enum numeric value on the wire for role to set.
        Returns:
        This builder for chaining.
      • clearRole

        public GatewayOuterClass.Partition.Builder clearRole()
         the role of the broker for this partition
         
        .gateway_protocol.Partition.PartitionBrokerRole role = 2;
        Returns:
        This builder for chaining.
      • mergeUnknownFields

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