class com.mongodb.internal.connection.UpdateProtocol extends com.mongodb.internal.connection.WriteProtocol
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: com.mongodb.internal.connection.UpdateProtocol
  super_class: com.mongodb.internal.connection.WriteProtocol
{
  private static final com.mongodb.diagnostics.logging.Logger LOGGER;
    descriptor: Lcom/mongodb/diagnostics/logging/Logger;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private final com.mongodb.bulk.UpdateRequest updateRequest;
    descriptor: Lcom/mongodb/bulk/UpdateRequest;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 41
            ldc "protocol.update"
            invokestatic com.mongodb.diagnostics.logging.Loggers.getLogger:(Ljava/lang/String;)Lcom/mongodb/diagnostics/logging/Logger;
            putstatic com.mongodb.internal.connection.UpdateProtocol.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  void <init>(com.mongodb.MongoNamespace, boolean, com.mongodb.bulk.UpdateRequest);
    descriptor: (Lcom/mongodb/MongoNamespace;ZLcom/mongodb/bulk/UpdateRequest;)V
    flags: (0x0000) 
    Code:
      stack=3, locals=4, args_size=4
        start local 0 // com.mongodb.internal.connection.UpdateProtocol this
        start local 1 // com.mongodb.MongoNamespace namespace
        start local 2 // boolean ordered
        start local 3 // com.mongodb.bulk.UpdateRequest updateRequest
         0: .line 46
            aload 0 /* this */
            aload 1 /* namespace */
            iload 2 /* ordered */
            invokespecial com.mongodb.internal.connection.WriteProtocol.<init>:(Lcom/mongodb/MongoNamespace;Z)V
         1: .line 47
            aload 0 /* this */
            aload 3 /* updateRequest */
            putfield com.mongodb.internal.connection.UpdateProtocol.updateRequest:Lcom/mongodb/bulk/UpdateRequest;
         2: .line 48
            return
        end local 3 // com.mongodb.bulk.UpdateRequest updateRequest
        end local 2 // boolean ordered
        end local 1 // com.mongodb.MongoNamespace namespace
        end local 0 // com.mongodb.internal.connection.UpdateProtocol this
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0    3     0           this  Lcom/mongodb/internal/connection/UpdateProtocol;
            0    3     1      namespace  Lcom/mongodb/MongoNamespace;
            0    3     2        ordered  Z
            0    3     3  updateRequest  Lcom/mongodb/bulk/UpdateRequest;
    MethodParameters:
               Name  Flags
      namespace      final
      ordered        final
      updateRequest  final

  public com.mongodb.WriteConcernResult execute(com.mongodb.internal.connection.InternalConnection);
    descriptor: (Lcom/mongodb/internal/connection/InternalConnection;)Lcom/mongodb/WriteConcernResult;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=3, args_size=2
        start local 0 // com.mongodb.internal.connection.UpdateProtocol this
        start local 1 // com.mongodb.internal.connection.InternalConnection connection
         0: .line 52
            getstatic com.mongodb.internal.connection.UpdateProtocol.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
            invokeinterface com.mongodb.diagnostics.logging.Logger.isDebugEnabled:()Z
            ifeq 4
         1: .line 53
            getstatic com.mongodb.internal.connection.UpdateProtocol.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
            ldc "Updating documents in namespace %s on connection [%s] to server %s"
            iconst_3
            anewarray java.lang.Object
            dup
            iconst_0
            aload 0 /* this */
            invokevirtual com.mongodb.internal.connection.UpdateProtocol.getNamespace:()Lcom/mongodb/MongoNamespace;
            aastore
            dup
            iconst_1
         2: .line 54
            aload 1 /* connection */
            invokeinterface com.mongodb.internal.connection.InternalConnection.getDescription:()Lcom/mongodb/connection/ConnectionDescription;
            invokevirtual com.mongodb.connection.ConnectionDescription.getConnectionId:()Lcom/mongodb/connection/ConnectionId;
            aastore
            dup
            iconst_2
            aload 1 /* connection */
            invokeinterface com.mongodb.internal.connection.InternalConnection.getDescription:()Lcom/mongodb/connection/ConnectionDescription;
            invokevirtual com.mongodb.connection.ConnectionDescription.getServerAddress:()Lcom/mongodb/ServerAddress;
            aastore
         3: .line 53
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokeinterface com.mongodb.diagnostics.logging.Logger.debug:(Ljava/lang/String;)V
         4: .line 56
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* connection */
            invokespecial com.mongodb.internal.connection.WriteProtocol.execute:(Lcom/mongodb/internal/connection/InternalConnection;)Lcom/mongodb/WriteConcernResult;
            astore 2 /* writeConcernResult */
        start local 2 // com.mongodb.WriteConcernResult writeConcernResult
         5: .line 57
            getstatic com.mongodb.internal.connection.UpdateProtocol.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
            ldc "Update completed"
            invokeinterface com.mongodb.diagnostics.logging.Logger.debug:(Ljava/lang/String;)V
         6: .line 58
            aload 2 /* writeConcernResult */
            areturn
        end local 2 // com.mongodb.WriteConcernResult writeConcernResult
        end local 1 // com.mongodb.internal.connection.InternalConnection connection
        end local 0 // com.mongodb.internal.connection.UpdateProtocol this
      LocalVariableTable:
        Start  End  Slot                Name  Signature
            0    7     0                this  Lcom/mongodb/internal/connection/UpdateProtocol;
            0    7     1          connection  Lcom/mongodb/internal/connection/InternalConnection;
            5    7     2  writeConcernResult  Lcom/mongodb/WriteConcernResult;
    MethodParameters:
            Name  Flags
      connection  final

  public void executeAsync(com.mongodb.internal.connection.InternalConnection, com.mongodb.async.SingleResultCallback<com.mongodb.WriteConcernResult>);
    descriptor: (Lcom/mongodb/internal/connection/InternalConnection;Lcom/mongodb/async/SingleResultCallback;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=4, args_size=3
        start local 0 // com.mongodb.internal.connection.UpdateProtocol this
        start local 1 // com.mongodb.internal.connection.InternalConnection connection
        start local 2 // com.mongodb.async.SingleResultCallback callback
         0: .line 64
            getstatic com.mongodb.internal.connection.UpdateProtocol.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
            invokeinterface com.mongodb.diagnostics.logging.Logger.isDebugEnabled:()Z
            ifeq 4
         1: .line 65
            getstatic com.mongodb.internal.connection.UpdateProtocol.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
            ldc "Asynchronously updating documents in namespace %s on connection [%s] to server %s"
            iconst_3
            anewarray java.lang.Object
            dup
            iconst_0
            aload 0 /* this */
            invokevirtual com.mongodb.internal.connection.UpdateProtocol.getNamespace:()Lcom/mongodb/MongoNamespace;
            aastore
            dup
            iconst_1
         2: .line 66
            aload 1 /* connection */
            invokeinterface com.mongodb.internal.connection.InternalConnection.getDescription:()Lcom/mongodb/connection/ConnectionDescription;
            invokevirtual com.mongodb.connection.ConnectionDescription.getConnectionId:()Lcom/mongodb/connection/ConnectionId;
            aastore
            dup
            iconst_2
            aload 1 /* connection */
            invokeinterface com.mongodb.internal.connection.InternalConnection.getDescription:()Lcom/mongodb/connection/ConnectionDescription;
            invokevirtual com.mongodb.connection.ConnectionDescription.getServerAddress:()Lcom/mongodb/ServerAddress;
            aastore
         3: .line 65
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokeinterface com.mongodb.diagnostics.logging.Logger.debug:(Ljava/lang/String;)V
         4: .line 68
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* connection */
            new com.mongodb.internal.connection.UpdateProtocol$1
            dup
            aload 0 /* this */
            aload 2 /* callback */
            invokespecial com.mongodb.internal.connection.UpdateProtocol$1.<init>:(Lcom/mongodb/internal/connection/UpdateProtocol;Lcom/mongodb/async/SingleResultCallback;)V
            invokespecial com.mongodb.internal.connection.WriteProtocol.executeAsync:(Lcom/mongodb/internal/connection/InternalConnection;Lcom/mongodb/async/SingleResultCallback;)V
         5: .line 79
            goto 8
      StackMap locals:
      StackMap stack: java.lang.Throwable
         6: astore 3 /* t */
        start local 3 // java.lang.Throwable t
         7: .line 80
            aload 2 /* callback */
            aconst_null
            aload 3 /* t */
            invokeinterface com.mongodb.async.SingleResultCallback.onResult:(Ljava/lang/Object;Ljava/lang/Throwable;)V
        end local 3 // java.lang.Throwable t
         8: .line 82
      StackMap locals:
      StackMap stack:
            return
        end local 2 // com.mongodb.async.SingleResultCallback callback
        end local 1 // com.mongodb.internal.connection.InternalConnection connection
        end local 0 // com.mongodb.internal.connection.UpdateProtocol this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    9     0        this  Lcom/mongodb/internal/connection/UpdateProtocol;
            0    9     1  connection  Lcom/mongodb/internal/connection/InternalConnection;
            0    9     2    callback  Lcom/mongodb/async/SingleResultCallback<Lcom/mongodb/WriteConcernResult;>;
            7    8     3           t  Ljava/lang/Throwable;
      Exception table:
        from    to  target  type
           0     5       6  Class java.lang.Throwable
    Signature: (Lcom/mongodb/internal/connection/InternalConnection;Lcom/mongodb/async/SingleResultCallback<Lcom/mongodb/WriteConcernResult;>;)V
    MethodParameters:
            Name  Flags
      connection  final
      callback    final

  protected org.bson.BsonDocument getAsWriteCommand(com.mongodb.connection.ByteBufferBsonOutput, int);
    descriptor: (Lcom/mongodb/connection/ByteBufferBsonOutput;I)Lorg/bson/BsonDocument;
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=5, locals=5, args_size=3
        start local 0 // com.mongodb.internal.connection.UpdateProtocol this
        start local 1 // com.mongodb.connection.ByteBufferBsonOutput bsonOutput
        start local 2 // int firstDocumentPosition
         0: .line 86
            aload 1 /* bsonOutput */
            iload 2 /* firstDocumentPosition */
            invokestatic com.mongodb.internal.connection.ByteBufBsonDocument.createList:(Lcom/mongodb/connection/ByteBufferBsonOutput;I)Ljava/util/List;
            astore 3 /* documents */
        start local 3 // java.util.List documents
         1: .line 87
            new org.bson.BsonDocument
            dup
            ldc "q"
            aload 3 /* documents */
            iconst_0
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            checkcast org.bson.BsonValue
            invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
            ldc "u"
            aload 3 /* documents */
            iconst_1
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            checkcast org.bson.BsonValue
            invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
            astore 4 /* updateDocument */
        start local 4 // org.bson.BsonDocument updateDocument
         2: .line 88
            aload 0 /* this */
            getfield com.mongodb.internal.connection.UpdateProtocol.updateRequest:Lcom/mongodb/bulk/UpdateRequest;
            invokevirtual com.mongodb.bulk.UpdateRequest.isMulti:()Z
            ifeq 4
         3: .line 89
            aload 4 /* updateDocument */
            ldc "multi"
            getstatic org.bson.BsonBoolean.TRUE:Lorg/bson/BsonBoolean;
            invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
            pop
         4: .line 91
      StackMap locals: java.util.List org.bson.BsonDocument
      StackMap stack:
            aload 0 /* this */
            getfield com.mongodb.internal.connection.UpdateProtocol.updateRequest:Lcom/mongodb/bulk/UpdateRequest;
            invokevirtual com.mongodb.bulk.UpdateRequest.isUpsert:()Z
            ifeq 6
         5: .line 92
            aload 4 /* updateDocument */
            ldc "upsert"
            getstatic org.bson.BsonBoolean.TRUE:Lorg/bson/BsonBoolean;
            invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
            pop
         6: .line 94
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            ldc "update"
            invokevirtual com.mongodb.internal.connection.UpdateProtocol.getBaseCommandDocument:(Ljava/lang/String;)Lorg/bson/BsonDocument;
            ldc "updates"
            new org.bson.BsonArray
            dup
            aload 4 /* updateDocument */
            invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
            invokespecial org.bson.BsonArray.<init>:(Ljava/util/List;)V
            invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
            areturn
        end local 4 // org.bson.BsonDocument updateDocument
        end local 3 // java.util.List documents
        end local 2 // int firstDocumentPosition
        end local 1 // com.mongodb.connection.ByteBufferBsonOutput bsonOutput
        end local 0 // com.mongodb.internal.connection.UpdateProtocol this
      LocalVariableTable:
        Start  End  Slot                   Name  Signature
            0    7     0                   this  Lcom/mongodb/internal/connection/UpdateProtocol;
            0    7     1             bsonOutput  Lcom/mongodb/connection/ByteBufferBsonOutput;
            0    7     2  firstDocumentPosition  I
            1    7     3              documents  Ljava/util/List<Lcom/mongodb/internal/connection/ByteBufBsonDocument;>;
            2    7     4         updateDocument  Lorg/bson/BsonDocument;
    MethodParameters:
                       Name  Flags
      bsonOutput             final
      firstDocumentPosition  final

  protected com.mongodb.internal.connection.RequestMessage createRequestMessage(com.mongodb.internal.connection.MessageSettings);
    descriptor: (Lcom/mongodb/internal/connection/MessageSettings;)Lcom/mongodb/internal/connection/RequestMessage;
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // com.mongodb.internal.connection.UpdateProtocol this
        start local 1 // com.mongodb.internal.connection.MessageSettings settings
         0: .line 100
            new com.mongodb.internal.connection.UpdateMessage
            dup
            aload 0 /* this */
            invokevirtual com.mongodb.internal.connection.UpdateProtocol.getNamespace:()Lcom/mongodb/MongoNamespace;
            invokevirtual com.mongodb.MongoNamespace.getFullName:()Ljava/lang/String;
            aload 0 /* this */
            getfield com.mongodb.internal.connection.UpdateProtocol.updateRequest:Lcom/mongodb/bulk/UpdateRequest;
            aload 1 /* settings */
            invokespecial com.mongodb.internal.connection.UpdateMessage.<init>:(Ljava/lang/String;Lcom/mongodb/bulk/UpdateRequest;Lcom/mongodb/internal/connection/MessageSettings;)V
            areturn
        end local 1 // com.mongodb.internal.connection.MessageSettings settings
        end local 0 // com.mongodb.internal.connection.UpdateProtocol this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    1     0      this  Lcom/mongodb/internal/connection/UpdateProtocol;
            0    1     1  settings  Lcom/mongodb/internal/connection/MessageSettings;
    MethodParameters:
          Name  Flags
      settings  final

  protected com.mongodb.diagnostics.logging.Logger getLogger();
    descriptor: ()Lcom/mongodb/diagnostics/logging/Logger;
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.mongodb.internal.connection.UpdateProtocol this
         0: .line 105
            getstatic com.mongodb.internal.connection.UpdateProtocol.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
            areturn
        end local 0 // com.mongodb.internal.connection.UpdateProtocol this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/mongodb/internal/connection/UpdateProtocol;
}
SourceFile: "UpdateProtocol.java"
NestMembers:
  com.mongodb.internal.connection.UpdateProtocol$1
InnerClasses:
  com.mongodb.internal.connection.UpdateProtocol$1