public final class RecognitionResponseMetadata extends GeneratedMessage implements RecognitionResponseMetadataOrBuilder
Metadata about the recognition request and response.
Protobuf type google.cloud.speech.v2.RecognitionResponseMetadata
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int PROMPT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int REQUEST_ID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TOTAL_BILLED_DURATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static RecognitionResponseMetadata getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static RecognitionResponseMetadata.Builder newBuilder()
public static RecognitionResponseMetadata.Builder newBuilder(RecognitionResponseMetadata prototype)
public static RecognitionResponseMetadata parseDelimitedFrom(InputStream input)
public static RecognitionResponseMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RecognitionResponseMetadata parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static RecognitionResponseMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RecognitionResponseMetadata parseFrom(ByteString data)
public static RecognitionResponseMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RecognitionResponseMetadata parseFrom(CodedInputStream input)
public static RecognitionResponseMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RecognitionResponseMetadata parseFrom(InputStream input)
public static RecognitionResponseMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RecognitionResponseMetadata parseFrom(ByteBuffer data)
public static RecognitionResponseMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<RecognitionResponseMetadata> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public RecognitionResponseMetadata getDefaultInstanceForType()
public Parser<RecognitionResponseMetadata> getParserForType()
Overrides
public String getPrompt()
Optional. Output only. Provides the prompt used for the recognition
request.
optional string prompt = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The prompt.
|
public ByteString getPromptBytes()
Optional. Output only. Provides the prompt used for the recognition
request.
optional string prompt = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for prompt.
|
public String getRequestId()
Global request identifier auto-generated by the API.
string request_id = 9 [(.google.api.field_info) = { ... }
| Returns |
| Type |
Description |
String |
The requestId.
|
public ByteString getRequestIdBytes()
Global request identifier auto-generated by the API.
string request_id = 9 [(.google.api.field_info) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for requestId.
|
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public Duration getTotalBilledDuration()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 6;
| Returns |
| Type |
Description |
Duration |
The totalBilledDuration.
|
public DurationOrBuilder getTotalBilledDurationOrBuilder()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 6;
public boolean hasPrompt()
Optional. Output only. Provides the prompt used for the recognition
request.
optional string prompt = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the prompt field is set.
|
public boolean hasTotalBilledDuration()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 6;
| Returns |
| Type |
Description |
boolean |
Whether the totalBilledDuration field is set.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public RecognitionResponseMetadata.Builder newBuilderForType()
protected RecognitionResponseMetadata.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public RecognitionResponseMetadata.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides