Class Operation (3.35.0)
Stay organized with collections
Save and categorize content based on your preferences.
3.35.0 (latest)
3.34.0
3.32.0
3.29.0
3.28.0
3.26.0
3.24.0
3.23.10
3.22.6
3.21.4
3.20.7
3.19.0
3.18.0
3.17.2
3.16.2
3.15.17
3.14.9
3.13.7
3.12.1
3.11.10
3.10.7
3.9.0
3.8.0
3.7.6
3.6.4
3.5.3
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.
Returns
Type
Description
String
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.
Returns
Type
Description
String
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()
Returns
Type
Description
String
Overrides
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 2026-08-04 UTC.
[null,null,["Last updated 2026-08-04 UTC."],[],[]]