Class Operation.Builder

java.lang.Object
com.google.cloud.logging.Operation.Builder
Enclosing class:
Operation

public static final class Operation.Builder extends Object
A builder for Operation objects.
  • Method Details

    • 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 an Operation object for this builder.