Class FsImageProto.CacheManagerSection.Builder

java.lang.Object
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder
org.apache.hadoop.thirdparty.protobuf.AbstractMessage.Builder<BuilderT>
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.CacheManagerSection.Builder>
org.apache.hadoop.hdfs.server.namenode.FsImageProto.CacheManagerSection.Builder
All Implemented Interfaces:
Cloneable, FsImageProto.CacheManagerSectionOrBuilder, org.apache.hadoop.thirdparty.protobuf.Message.Builder, org.apache.hadoop.thirdparty.protobuf.MessageLite.Builder, org.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuilder, org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder
Enclosing class:
FsImageProto.CacheManagerSection

public static final class FsImageProto.CacheManagerSection.Builder extends org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.CacheManagerSection.Builder> implements FsImageProto.CacheManagerSectionOrBuilder
Protobuf type hadoop.hdfs.fsimage.CacheManagerSection
  • Method Details

    • getDescriptor

      public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.CacheManagerSection.Builder>
    • clear

      Specified by:
      clear in interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
      Specified by:
      clear in interface org.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
      Overrides:
      clear in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.CacheManagerSection.Builder>
    • getDescriptorForType

      public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.CacheManagerSection.Builder>
    • getDefaultInstanceForType

      public FsImageProto.CacheManagerSection getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface org.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
      Specified by:
      build in interface org.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
    • buildPartial

      public FsImageProto.CacheManagerSection buildPartial()
      Specified by:
      buildPartial in interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
      Specified by:
      buildPartial in interface org.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
      Specified by:
      clone in interface org.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
      Overrides:
      clone in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.CacheManagerSection.Builder>
    • setField

      public FsImageProto.CacheManagerSection.Builder setField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
      Overrides:
      setField in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.CacheManagerSection.Builder>
    • clearField

      public FsImageProto.CacheManagerSection.Builder clearField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
      Overrides:
      clearField in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.CacheManagerSection.Builder>
    • clearOneof

      public FsImageProto.CacheManagerSection.Builder clearOneof(org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
      Overrides:
      clearOneof in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.CacheManagerSection.Builder>
    • setRepeatedField

      public FsImageProto.CacheManagerSection.Builder setRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.CacheManagerSection.Builder>
    • addRepeatedField

      public FsImageProto.CacheManagerSection.Builder addRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.CacheManagerSection.Builder>
    • mergeFrom

      public FsImageProto.CacheManagerSection.Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other)
      Specified by:
      mergeFrom in interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
      Overrides:
      mergeFrom in class org.apache.hadoop.thirdparty.protobuf.AbstractMessage.Builder<FsImageProto.CacheManagerSection.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface org.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.CacheManagerSection.Builder>
    • mergeFrom

      public FsImageProto.CacheManagerSection.Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.CodedInputStream input, org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface org.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class org.apache.hadoop.thirdparty.protobuf.AbstractMessage.Builder<FsImageProto.CacheManagerSection.Builder>
      Throws:
      IOException
    • hasNextDirectiveId

      public boolean hasNextDirectiveId()
      required uint64 nextDirectiveId = 1;
      Specified by:
      hasNextDirectiveId in interface FsImageProto.CacheManagerSectionOrBuilder
      Returns:
      Whether the nextDirectiveId field is set.
    • getNextDirectiveId

      public long getNextDirectiveId()
      required uint64 nextDirectiveId = 1;
      Specified by:
      getNextDirectiveId in interface FsImageProto.CacheManagerSectionOrBuilder
      Returns:
      The nextDirectiveId.
    • setNextDirectiveId

      public FsImageProto.CacheManagerSection.Builder setNextDirectiveId(long value)
      required uint64 nextDirectiveId = 1;
      Parameters:
      value - The nextDirectiveId to set.
      Returns:
      This builder for chaining.
    • clearNextDirectiveId

      public FsImageProto.CacheManagerSection.Builder clearNextDirectiveId()
      required uint64 nextDirectiveId = 1;
      Returns:
      This builder for chaining.
    • hasNumPools

      public boolean hasNumPools()
      required uint32 numPools = 2;
      Specified by:
      hasNumPools in interface FsImageProto.CacheManagerSectionOrBuilder
      Returns:
      Whether the numPools field is set.
    • getNumPools

      public int getNumPools()
      required uint32 numPools = 2;
      Specified by:
      getNumPools in interface FsImageProto.CacheManagerSectionOrBuilder
      Returns:
      The numPools.
    • setNumPools

      public FsImageProto.CacheManagerSection.Builder setNumPools(int value)
      required uint32 numPools = 2;
      Parameters:
      value - The numPools to set.
      Returns:
      This builder for chaining.
    • clearNumPools

      required uint32 numPools = 2;
      Returns:
      This builder for chaining.
    • hasNumDirectives

      public boolean hasNumDirectives()
       repeated CachePoolInfoProto pools
       repeated CacheDirectiveInfoProto directives
       
      required uint32 numDirectives = 3;
      Specified by:
      hasNumDirectives in interface FsImageProto.CacheManagerSectionOrBuilder
      Returns:
      Whether the numDirectives field is set.
    • getNumDirectives

      public int getNumDirectives()
       repeated CachePoolInfoProto pools
       repeated CacheDirectiveInfoProto directives
       
      required uint32 numDirectives = 3;
      Specified by:
      getNumDirectives in interface FsImageProto.CacheManagerSectionOrBuilder
      Returns:
      The numDirectives.
    • setNumDirectives

      public FsImageProto.CacheManagerSection.Builder setNumDirectives(int value)
       repeated CachePoolInfoProto pools
       repeated CacheDirectiveInfoProto directives
       
      required uint32 numDirectives = 3;
      Parameters:
      value - The numDirectives to set.
      Returns:
      This builder for chaining.
    • clearNumDirectives

      public FsImageProto.CacheManagerSection.Builder clearNumDirectives()
       repeated CachePoolInfoProto pools
       repeated CacheDirectiveInfoProto directives
       
      required uint32 numDirectives = 3;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final FsImageProto.CacheManagerSection.Builder setUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.CacheManagerSection.Builder>
    • mergeUnknownFields

      public final FsImageProto.CacheManagerSection.Builder mergeUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.CacheManagerSection.Builder>