public static final class OperationInfo.Builder extends GeneratedMessageV3.Builder<OperationInfo.Builder> 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OperationInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public OperationInfo build()
buildPartial()
public OperationInfo buildPartial()
clear()
public OperationInfo.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public OperationInfo.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public OperationInfo.Builder clearMetadataType()
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public OperationInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearResponseType()
public OperationInfo.Builder clearResponseType()
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;
clone()
public OperationInfo.Builder clone()
Overrides
getDefaultInstanceForType()
public OperationInfo getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(OperationInfo other)
public OperationInfo.Builder mergeFrom(OperationInfo other)
public OperationInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public OperationInfo.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OperationInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public OperationInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public OperationInfo.Builder setMetadataType(String value)
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;
Parameter |
---|
Name | Description |
value | String
The metadataType to set.
|
public OperationInfo.Builder setMetadataTypeBytes(ByteString value)
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;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for metadataType to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OperationInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setResponseType(String value)
public OperationInfo.Builder setResponseType(String value)
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;
Parameter |
---|
Name | Description |
value | String
The responseType to set.
|
setResponseTypeBytes(ByteString value)
public OperationInfo.Builder setResponseTypeBytes(ByteString value)
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;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for responseType to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final OperationInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides