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 class
A builder forOperation
objects. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
first()
Returnstrue
if the corresponding entry is the first log entry in the operation,false
otherwise.getId()
Returns the operation identifier.Returns an arbitrary producer identifier.int
hashCode()
boolean
last()
Returnstrue
if the corresponding entry is the last log entry in the operation,false
otherwise.static Operation.Builder
newBuilder
(String id, String producer) Returns a builder forOperation
objects given the operation and producer identifiers.static Operation
Returns aOperation
object given the operation and producer identifiers.Returns aBuilder
for 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()Returnstrue
if the corresponding entry is the first log entry in the operation,false
otherwise. -
last
public boolean last()Returnstrue
if the corresponding entry is the last log entry in the operation,false
otherwise. -
equals
-
hashCode
public int hashCode() -
toString
-
toBuilder
Returns aBuilder
for this operation. -
newBuilder
Returns a builder forOperation
objects given the operation and producer identifiers. The combination of producer and id must be globally unique. -
of
Returns aOperation
object given the operation and producer identifiers. The combination of producer and id must be globally unique.
-