Class/Object

org.etcd4s.pb.etcdserverpb

PutRequest

Related Docs: object PutRequest | package etcdserverpb

Permalink

final case class PutRequest(key: ByteString = ..., value: ByteString = ..., lease: Long = 0L, prevKv: Boolean = false, ignoreValue: Boolean = false, ignoreLease: Boolean = false) extends GeneratedMessage with Message[PutRequest] with Updatable[PutRequest] with Product with Serializable

key

key is the key, in bytes, to put into the key-value store.

value

value is the value, in bytes, to associate with the key in the key-value store.

lease

lease is the lease ID to associate with the key in the key-value store. A lease value of 0 indicates no lease.

prevKv

If prev_kv is set, etcd gets the previous key-value pair before changing it. The previous key-value pair will be returned in the put response.

ignoreValue

If ignore_value is set, etcd updates the key using its current value. Returns an error if the key does not exist.

ignoreLease

If ignore_lease is set, etcd updates the key using its current lease. Returns an error if the key does not exist.

Annotations
@SerialVersionUID()
Linear Supertypes
Product, Equals, Updatable[PutRequest], Message[PutRequest], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PutRequest
  2. Product
  3. Equals
  4. Updatable
  5. Message
  6. GeneratedMessage
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PutRequest(key: ByteString = ..., value: ByteString = ..., lease: Long = 0L, prevKv: Boolean = false, ignoreValue: Boolean = false, ignoreLease: Boolean = false)

    Permalink

    key

    key is the key, in bytes, to put into the key-value store.

    value

    value is the value, in bytes, to associate with the key in the key-value store.

    lease

    lease is the lease ID to associate with the key in the key-value store. A lease value of 0 indicates no lease.

    prevKv

    If prev_kv is set, etcd gets the previous key-value pair before changing it. The previous key-value pair will be returned in the put response.

    ignoreValue

    If ignore_value is set, etcd updates the key using its current value. Returns an error if the key does not exist.

    ignoreLease

    If ignore_lease is set, etcd updates the key using its current lease. Returns an error if the key does not exist.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def companion: PutRequest.type

    Permalink
    Definition Classes
    PutRequest → GeneratedMessage
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def getField(__field: FieldDescriptor): PValue

    Permalink
    Definition Classes
    PutRequest → GeneratedMessage
  11. def getFieldByNumber(__fieldNumber: Int): Any

    Permalink
    Definition Classes
    PutRequest → GeneratedMessage
  12. val ignoreLease: Boolean

    Permalink

    If ignore_lease is set, etcd updates the key using its current lease.

    If ignore_lease is set, etcd updates the key using its current lease. Returns an error if the key does not exist.

  13. val ignoreValue: Boolean

    Permalink

    If ignore_value is set, etcd updates the key using its current value.

    If ignore_value is set, etcd updates the key using its current value. Returns an error if the key does not exist.

  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. val key: ByteString

    Permalink

    key is the key, in bytes, to put into the key-value store.

  16. val lease: Long

    Permalink

    lease is the lease ID to associate with the key in the key-value store.

    lease is the lease ID to associate with the key in the key-value store. A lease value of 0 indicates no lease.

  17. def mergeFrom(_input__: CodedInputStream): PutRequest

    Permalink
    Definition Classes
    PutRequest → Message
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. val prevKv: Boolean

    Permalink

    If prev_kv is set, etcd gets the previous key-value pair before changing it.

    If prev_kv is set, etcd gets the previous key-value pair before changing it. The previous key-value pair will be returned in the put response.

  22. final def serializedSize: Int

    Permalink
    Definition Classes
    PutRequest → GeneratedMessage
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toByteArray: Array[Byte]

    Permalink
    Definition Classes
    GeneratedMessage
  25. def toByteString: ByteString

    Permalink
    Definition Classes
    GeneratedMessage
  26. def toPMessage: PMessage

    Permalink
    Definition Classes
    GeneratedMessage
  27. def toString(): String

    Permalink
    Definition Classes
    PutRequest → AnyRef → Any
  28. def update(ms: (Lens[PutRequest, PutRequest]) ⇒ Mutation[PutRequest]*): PutRequest

    Permalink
    Definition Classes
    Updatable
  29. val value: ByteString

    Permalink

    value is the value, in bytes, to associate with the key in the key-value store.

  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def withIgnoreLease(__v: Boolean): PutRequest

    Permalink
  34. def withIgnoreValue(__v: Boolean): PutRequest

    Permalink
  35. def withKey(__v: ByteString): PutRequest

    Permalink
  36. def withLease(__v: Long): PutRequest

    Permalink
  37. def withPrevKv(__v: Boolean): PutRequest

    Permalink
  38. def withValue(__v: ByteString): PutRequest

    Permalink
  39. def writeDelimitedTo(output: OutputStream): Unit

    Permalink
    Definition Classes
    GeneratedMessage
  40. def writeTo(_output__: CodedOutputStream): Unit

    Permalink
    Definition Classes
    PutRequest → GeneratedMessage
  41. def writeTo(output: OutputStream): Unit

    Permalink
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def getAllFields: Map[FieldDescriptor, Any]

    Permalink
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use toPMessage

  2. def getField(field: FieldDescriptor): Any

    Permalink
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use getField that accepts a ScalaPB descriptor and returns PValue

Inherited from Product

Inherited from Equals

Inherited from Updatable[PutRequest]

Inherited from Message[PutRequest]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped