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 Operationbuild()Creates anOperationobject for this builder.Operation.BuildersetFirst(boolean first)Sets whether the corresponding entry is the first log entry in the operation.Operation.BuildersetId(String id)Sets the operation identifier.Operation.BuildersetLast(boolean last)Sets whether the corresponding entry is the last log entry in the operation.Operation.BuildersetProducer(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,falseis 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,falseis used.
-
build
public Operation build()
Creates anOperationobject for this builder.
-
-