Package com.google.cloud.logging
Class Operation.Builder
- java.lang.Object
-
- com.google.cloud.logging.Operation.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Operation
build()
Creates anOperation
object for this builder.Operation.Builder
setFirst(boolean first)
Sets whether the corresponding entry is the first log entry in the operation.Operation.Builder
setId(String id)
Sets the operation identifier.Operation.Builder
setLast(boolean last)
Sets whether the corresponding entry is the last log entry in the operation.Operation.Builder
setProducer(String producer)
Sets an arbitrary producer identifier.
-
-
-
Method Detail
-
setId
@CanIgnoreReturnValue public Operation.Builder setId(String id)
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
@CanIgnoreReturnValue public Operation.Builder setProducer(String producer)
Sets an arbitrary producer identifier. The combination of producer and id must be globally unique. Examples:MyDivision.MyBigCompany.com
,github.com/MyProject/MyApplication
.
-
setFirst
@CanIgnoreReturnValue public Operation.Builder setFirst(boolean first)
Sets whether the corresponding entry is the first log entry in the operation. If not set,false
is used.
-
setLast
@CanIgnoreReturnValue public Operation.Builder setLast(boolean last)
Sets whether the corresponding entry is the last log entry in the operation. If not set,false
is used.
-
build
public Operation build()
Creates anOperation
object for this builder.
-
-