org.apache.hadoop.ipc.protobuf

## Class ProtocolInfoProtos.ProtocolVersionProto.Builder

- java.lang.Object
- - com.google.protobuf.AbstractMessageLite.Builder<BuilderType>
  - - com.google.protobuf.AbstractMessage.Builder<BuilderType>
    - - com.google.protobuf.GeneratedMessage.Builder<ProtocolInfoProtos.ProtocolVersionProto.Builder>
      - - org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolVersionProto.Builder

- All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, ProtocolInfoProtos.ProtocolVersionProtoOrBuilder
  Enclosing class:
    ProtocolInfoProtos.ProtocolVersionProto

      public static final class ProtocolInfoProtos.ProtocolVersionProto.Builder
      extends com.google.protobuf.GeneratedMessage.Builder<ProtocolInfoProtos.ProtocolVersionProto.Builder>
      implements ProtocolInfoProtos.ProtocolVersionProtoOrBuilder

  Protobuf type `hadoop.common.ProtocolVersionProto`

       Protocol version with corresponding rpc kind.

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ProtocolInfoProtos.ProtocolVersionProto.Builder` | `addAllVersions(Iterable<? extends Long> values)` `repeated uint64 versions = 2;`
    `ProtocolInfoProtos.ProtocolVersionProto.Builder` | `addVersions(long value)` `repeated uint64 versions = 2;`
    `ProtocolInfoProtos.ProtocolVersionProto` | `build()`
    `ProtocolInfoProtos.ProtocolVersionProto` | `buildPartial()`
    `ProtocolInfoProtos.ProtocolVersionProto.Builder` | `clear()`
    `ProtocolInfoProtos.ProtocolVersionProto.Builder` | `clearRpcKind()` `required string rpcKind = 1;`
    `ProtocolInfoProtos.ProtocolVersionProto.Builder` | `clearVersions()` `repeated uint64 versions = 2;`
    `ProtocolInfoProtos.ProtocolVersionProto.Builder` | `clone()`
    `ProtocolInfoProtos.ProtocolVersionProto` | `getDefaultInstanceForType()`
    `static com.google.protobuf.Descriptors.Descriptor` | `getDescriptor()`
    `com.google.protobuf.Descriptors.Descriptor` | `getDescriptorForType()`
    `String` | `getRpcKind()` `required string rpcKind = 1;`
    `com.google.protobuf.ByteString` | `getRpcKindBytes()` `required string rpcKind = 1;`
    `long` | `getVersions(int index)` `repeated uint64 versions = 2;`
    `int` | `getVersionsCount()` `repeated uint64 versions = 2;`
    `List<Long>` | `getVersionsList()` `repeated uint64 versions = 2;`
    `boolean` | `hasRpcKind()` `required string rpcKind = 1;`
    `protected com.google.protobuf.GeneratedMessage.FieldAccessorTable` | `internalGetFieldAccessorTable()`
    `boolean` | `isInitialized()`
    `ProtocolInfoProtos.ProtocolVersionProto.Builder` | `mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)`
    `ProtocolInfoProtos.ProtocolVersionProto.Builder` | `mergeFrom(com.google.protobuf.Message other)`
    `ProtocolInfoProtos.ProtocolVersionProto.Builder` | `mergeFrom(ProtocolInfoProtos.ProtocolVersionProto other)`
    `ProtocolInfoProtos.ProtocolVersionProto.Builder` | `setRpcKind(String value)` `required string rpcKind = 1;`
    `ProtocolInfoProtos.ProtocolVersionProto.Builder` | `setRpcKindBytes(com.google.protobuf.ByteString value)` `required string rpcKind = 1;`
    `ProtocolInfoProtos.ProtocolVersionProto.Builder` | `setVersions(int index, long value)` `repeated uint64 versions = 2;`

    - ### Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

      `addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields`

    - ### Methods inherited from class com.google.protobuf.AbstractMessage.Builder

      `findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException`

    - ### Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

      `addAll, newUninitializedMessageException`

    - ### Methods inherited from class java.lang.Object

      `equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface com.google.protobuf.MessageOrBuilder

      `findInitializationErrors, getAllFields, getField, getInitializationErrorString, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField`

- - ### 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<ProtocolInfoProtos.ProtocolVersionProto.Builder>`

    - #### clear

          public ProtocolInfoProtos.ProtocolVersionProto.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<ProtocolInfoProtos.ProtocolVersionProto.Builder>`

    - #### clone

          public ProtocolInfoProtos.ProtocolVersionProto.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.GeneratedMessage.Builder<ProtocolInfoProtos.ProtocolVersionProto.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<ProtocolInfoProtos.ProtocolVersionProto.Builder>`

    - #### getDefaultInstanceForType

          public ProtocolInfoProtos.ProtocolVersionProto getDefaultInstanceForType()

      Specified by:
        `getDefaultInstanceForType` in interface `com.google.protobuf.MessageLiteOrBuilder`
      Specified by:
        `getDefaultInstanceForType` in interface `com.google.protobuf.MessageOrBuilder`

    - #### build

          public ProtocolInfoProtos.ProtocolVersionProto build()

      Specified by:
        `build` in interface `com.google.protobuf.Message.Builder`
      Specified by:
        `build` in interface `com.google.protobuf.MessageLite.Builder`

    - #### buildPartial

          public ProtocolInfoProtos.ProtocolVersionProto buildPartial()

      Specified by:
        `buildPartial` in interface `com.google.protobuf.Message.Builder`
      Specified by:
        `buildPartial` in interface `com.google.protobuf.MessageLite.Builder`

    - #### mergeFrom

          public ProtocolInfoProtos.ProtocolVersionProto.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<ProtocolInfoProtos.ProtocolVersionProto.Builder>`

    - #### mergeFrom

          public ProtocolInfoProtos.ProtocolVersionProto.Builder mergeFrom(ProtocolInfoProtos.ProtocolVersionProto other)

    - #### isInitialized

          public final boolean isInitialized()

      Specified by:
        `isInitialized` in interface `com.google.protobuf.MessageLiteOrBuilder`
      Overrides:
        `isInitialized` in class `com.google.protobuf.GeneratedMessage.Builder<ProtocolInfoProtos.ProtocolVersionProto.Builder>`

    - #### mergeFrom

          public ProtocolInfoProtos.ProtocolVersionProto.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<ProtocolInfoProtos.ProtocolVersionProto.Builder>`
      Throws:
        `IOException`

    - #### hasRpcKind

          public boolean hasRpcKind()

      `required string rpcKind = 1;`

          RPC kind

      Specified by:
        `hasRpcKind` in interface `ProtocolInfoProtos.ProtocolVersionProtoOrBuilder`

    - #### getRpcKind

          public String getRpcKind()

      `required string rpcKind = 1;`

          RPC kind

      Specified by:
        `getRpcKind` in interface `ProtocolInfoProtos.ProtocolVersionProtoOrBuilder`

    - #### getRpcKindBytes

          public com.google.protobuf.ByteString getRpcKindBytes()

      `required string rpcKind = 1;`

          RPC kind

      Specified by:
        `getRpcKindBytes` in interface `ProtocolInfoProtos.ProtocolVersionProtoOrBuilder`

    - #### setRpcKind

          public ProtocolInfoProtos.ProtocolVersionProto.Builder setRpcKind(String value)

      `required string rpcKind = 1;`

          RPC kind

    - #### clearRpcKind

          public ProtocolInfoProtos.ProtocolVersionProto.Builder clearRpcKind()

      `required string rpcKind = 1;`

          RPC kind

    - #### setRpcKindBytes

          public ProtocolInfoProtos.ProtocolVersionProto.Builder setRpcKindBytes(com.google.protobuf.ByteString value)

      `required string rpcKind = 1;`

          RPC kind

    - #### getVersionsList

          public List<Long> getVersionsList()

      `repeated uint64 versions = 2;`

          Protocol version corresponding to the rpc kind.

      Specified by:
        `getVersionsList` in interface `ProtocolInfoProtos.ProtocolVersionProtoOrBuilder`

    - #### getVersionsCount

          public int getVersionsCount()

      `repeated uint64 versions = 2;`

          Protocol version corresponding to the rpc kind.

      Specified by:
        `getVersionsCount` in interface `ProtocolInfoProtos.ProtocolVersionProtoOrBuilder`

    - #### getVersions

          public long getVersions(int index)

      `repeated uint64 versions = 2;`

          Protocol version corresponding to the rpc kind.

      Specified by:
        `getVersions` in interface `ProtocolInfoProtos.ProtocolVersionProtoOrBuilder`

    - #### setVersions

          public ProtocolInfoProtos.ProtocolVersionProto.Builder setVersions(int index,
                                                                             long value)

      `repeated uint64 versions = 2;`

          Protocol version corresponding to the rpc kind.

    - #### addVersions

          public ProtocolInfoProtos.ProtocolVersionProto.Builder addVersions(long value)

      `repeated uint64 versions = 2;`

          Protocol version corresponding to the rpc kind.

    - #### addAllVersions

          public ProtocolInfoProtos.ProtocolVersionProto.Builder addAllVersions(Iterable<? extends Long> values)

      `repeated uint64 versions = 2;`

          Protocol version corresponding to the rpc kind.

    - #### clearVersions

          public ProtocolInfoProtos.ProtocolVersionProto.Builder clearVersions()

      `repeated uint64 versions = 2;`

          Protocol version corresponding to the rpc kind.

Copyright © 2008–2022 Apache Software Foundation. All rights reserved.