Send feedback
Class Operation (3.15.17)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.15.17 keyboard_arrow_down
public final class Operation implements Serializable
Additional information about a potentially long-running operation with which a log entry is
associated.
See Also: Log Entry Operation
Inheritance
Object >
Operation
Static Methods
newBuilder(String id, String producer)
public static Operation . Builder newBuilder ( String id , String producer )
Returns a builder for Operation
objects given the operation and producer identifiers.
The combination of producer and id must be globally unique.
of(String id, String producer)
public static Operation of ( String id , String producer )
Returns a Operation
object given the operation and producer identifiers. The
combination of producer and id must be globally unique.
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
first()
Returns true
if the corresponding entry is the first log entry in the operation,
false
otherwise.
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 and #getProducer() must be
globally unique.
getProducer()
public String getProducer ()
Returns an arbitrary producer identifier. The combination of this value and #getId()
must be globally unique. Examples: MyDivision.MyBigCompany.com
,
github.com/MyProject/MyApplication
.
hashCode()
Returns Type Description int
Overrides
last()
Returns true
if the corresponding entry is the last log entry in the operation,
false
otherwise.
toBuilder()
public Operation . Builder toBuilder ()
Returns a Builder
for this operation.
toString()
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-19 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-19 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-19 UTC."]]