Package com.google.cloud.logging
Class Operation
java.lang.Object
com.google.cloud.logging.Operation
- All Implemented Interfaces:
Serializable
Additional information about a potentially long-running operation with which a log entry is
associated.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder forOperationobjects. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanfirst()Returnstrueif the corresponding entry is the first log entry in the operation,falseotherwise.getId()Returns the operation identifier.Returns an arbitrary producer identifier.inthashCode()booleanlast()Returnstrueif the corresponding entry is the last log entry in the operation,falseotherwise.static Operation.BuildernewBuilder(String id, String producer) Returns a builder forOperationobjects given the operation and producer identifiers.static OperationReturns aOperationobject given the operation and producer identifiers.Returns aBuilderfor this operation.toString()
-
Method Details
-
getId
Returns the operation identifier. Log entries with the same identifier are assumed to be part of the same operation. The combination of this value andgetProducer()must be globally unique. -
getProducer
Returns an arbitrary producer identifier. The combination of this value andgetId()must be globally unique. Examples:MyDivision.MyBigCompany.com,github.com/MyProject/MyApplication. -
first
public boolean first()Returnstrueif the corresponding entry is the first log entry in the operation,falseotherwise. -
last
public boolean last()Returnstrueif the corresponding entry is the last log entry in the operation,falseotherwise. -
equals
-
hashCode
public int hashCode() -
toString
-
toBuilder
Returns aBuilderfor this operation. -
newBuilder
Returns a builder forOperationobjects given the operation and producer identifiers. The combination of producer and id must be globally unique. -
of
Returns aOperationobject given the operation and producer identifiers. The combination of producer and id must be globally unique.
-