public final class OperationInfo extends GeneratedMessageV3 implements OperationInfoOrBuilder
A message representing the message types used by a long-running operation.
Example:
rpc LongRunningRecognize(LongRunningRecognizeRequest)
returns (google.longrunning.Operation) {
option (google.longrunning.operation_info) = {
response_type: "LongRunningRecognizeResponse"
metadata_type: "LongRunningRecognizeMetadata"
};
}
Protobuf type google.longrunning.OperationInfo
Static Fields
public static final int METADATA_TYPE_FIELD_NUMBER
Field Value
RESPONSE_TYPE_FIELD_NUMBER
public static final int RESPONSE_TYPE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static OperationInfo getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static OperationInfo.Builder newBuilder()
Returns
newBuilder(OperationInfo prototype)
public static OperationInfo.Builder newBuilder(OperationInfo prototype)
Parameter
Returns
public static OperationInfo parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static OperationInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static OperationInfo parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OperationInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static OperationInfo parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OperationInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static OperationInfo parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static OperationInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static OperationInfo parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static OperationInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static OperationInfo parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OperationInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<OperationInfo> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public OperationInfo getDefaultInstanceForType()
Returns
public String getMetadataType()
Required. The message name of the metadata type for this long-running
operation.
If the response is in a different package from the rpc, a fully-qualified
message name must be used (e.g. google.protobuf.Struct
).
Note: Altering this value constitutes a breaking change.
string metadata_type = 2;
Returns
Type | Description |
String | The metadataType.
|
public ByteString getMetadataTypeBytes()
Required. The message name of the metadata type for this long-running
operation.
If the response is in a different package from the rpc, a fully-qualified
message name must be used (e.g. google.protobuf.Struct
).
Note: Altering this value constitutes a breaking change.
string metadata_type = 2;
Returns
Type | Description |
ByteString | The bytes for metadataType.
|
getParserForType()
public Parser<OperationInfo> getParserForType()
Returns
Overrides
getResponseType()
public String getResponseType()
Required. The message name of the primary return type for this
long-running operation.
This type will be used to deserialize the LRO's response.
If the response is in a different package from the rpc, a fully-qualified
message name must be used (e.g. google.protobuf.Struct
).
Note: Altering this value constitutes a breaking change.
string response_type = 1;
Returns
Type | Description |
String | The responseType.
|
getResponseTypeBytes()
public ByteString getResponseTypeBytes()
Required. The message name of the primary return type for this
long-running operation.
This type will be used to deserialize the LRO's response.
If the response is in a different package from the rpc, a fully-qualified
message name must be used (e.g. google.protobuf.Struct
).
Note: Altering this value constitutes a breaking change.
string response_type = 1;
Returns
Type | Description |
ByteString | The bytes for responseType.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public OperationInfo.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected OperationInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public OperationInfo.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions