Package com.google.cloud.logging
Class Operation.Builder
java.lang.Object
com.google.cloud.logging.Operation.Builder
- Enclosing class:
- Operation
A builder for
Operation
objects.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates anOperation
object for this builder.setFirst
(boolean first) Sets whether the corresponding entry is the first log entry in the operation.Sets the operation identifier.setLast
(boolean last) Sets whether the corresponding entry is the last log entry in the operation.setProducer
(String producer) Sets an arbitrary producer identifier.
-
Method Details
-
setId
Sets the operation identifier. Log entries with the same identifier are assumed to be part of the same operation. The combination of id and producer must be globally unique. -
setProducer
Sets an arbitrary producer identifier. The combination of producer and id must be globally unique. Examples:MyDivision.MyBigCompany.com
,github.com/MyProject/MyApplication
. -
setFirst
Sets whether the corresponding entry is the first log entry in the operation. If not set,false
is used. -
setLast
Sets whether the corresponding entry is the last log entry in the operation. If not set,false
is used. -
build
Creates anOperation
object for this builder.
-