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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > OperationInfoImplements
OperationInfoOrBuilderStatic Fields
METADATA_TYPE_FIELD_NUMBER
public static final int METADATA_TYPE_FIELD_NUMBER
Type | Description |
int |
RESPONSE_TYPE_FIELD_NUMBER
public static final int RESPONSE_TYPE_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static OperationInfo getDefaultInstance()
Type | Description |
OperationInfo |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static OperationInfo.Builder newBuilder()
Type | Description |
OperationInfo.Builder |
newBuilder(OperationInfo prototype)
public static OperationInfo.Builder newBuilder(OperationInfo prototype)
Name | Description |
prototype | OperationInfo |
Type | Description |
OperationInfo.Builder |
parseDelimitedFrom(InputStream input)
public static OperationInfo parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
OperationInfo |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static OperationInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
OperationInfo |
Type | Description |
IOException |
parseFrom(byte[] data)
public static OperationInfo parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
OperationInfo |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OperationInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
OperationInfo |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static OperationInfo parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
OperationInfo |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OperationInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
OperationInfo |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static OperationInfo parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
OperationInfo |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static OperationInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
OperationInfo |
Type | Description |
IOException |
parseFrom(InputStream input)
public static OperationInfo parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
OperationInfo |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static OperationInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
OperationInfo |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static OperationInfo parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
OperationInfo |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OperationInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
OperationInfo |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<OperationInfo> parser()
Type | Description |
Parser<OperationInfo> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public OperationInfo getDefaultInstanceForType()
Type | Description |
OperationInfo |
getMetadataType()
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;
Type | Description |
String | The metadataType. |
getMetadataTypeBytes()
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;
Type | Description |
ByteString | The bytes for metadataType. |
getParserForType()
public Parser<OperationInfo> getParserForType()
Type | Description |
Parser<OperationInfo> |
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;
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;
Type | Description |
ByteString | The bytes for responseType. |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public OperationInfo.Builder newBuilderForType()
Type | Description |
OperationInfo.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected OperationInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
OperationInfo.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public OperationInfo.Builder toBuilder()
Type | Description |
OperationInfo.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |