public static final class RecognitionResponseMetadata.Builder extends GeneratedMessage.Builder<RecognitionResponseMetadata.Builder> implements RecognitionResponseMetadataOrBuilderMetadata about the recognition request and response.
Protobuf type google.cloud.speech.v2.RecognitionResponseMetadata
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RecognitionResponseMetadata.BuilderImplements
RecognitionResponseMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public RecognitionResponseMetadata build()| Returns | |
|---|---|
| Type | Description |
RecognitionResponseMetadata |
|
buildPartial()
public RecognitionResponseMetadata buildPartial()| Returns | |
|---|---|
| Type | Description |
RecognitionResponseMetadata |
|
clear()
public RecognitionResponseMetadata.Builder clear()| Returns | |
|---|---|
| Type | Description |
RecognitionResponseMetadata.Builder |
|
clearPrompt()
public RecognitionResponseMetadata.Builder clearPrompt()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 |
RecognitionResponseMetadata.Builder |
This builder for chaining. |
clearRequestId()
public RecognitionResponseMetadata.Builder clearRequestId()Global request identifier auto-generated by the API.
string request_id = 9 [(.google.api.field_info) = { ... }
| Returns | |
|---|---|
| Type | Description |
RecognitionResponseMetadata.Builder |
This builder for chaining. |
clearTotalBilledDuration()
public RecognitionResponseMetadata.Builder clearTotalBilledDuration()When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 6;
| Returns | |
|---|---|
| Type | Description |
RecognitionResponseMetadata.Builder |
|
getDefaultInstanceForType()
public RecognitionResponseMetadata getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RecognitionResponseMetadata |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPrompt()
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. |
getPromptBytes()
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. |
getRequestId()
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. |
getRequestIdBytes()
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. |
getTotalBilledDuration()
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. |
getTotalBilledDurationBuilder()
public Duration.Builder getTotalBilledDurationBuilder()When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 6;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getTotalBilledDurationOrBuilder()
public DurationOrBuilder getTotalBilledDurationOrBuilder()When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 6;
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
hasPrompt()
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. |
hasTotalBilledDuration()
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(RecognitionResponseMetadata other)
public RecognitionResponseMetadata.Builder mergeFrom(RecognitionResponseMetadata other)| Parameter | |
|---|---|
| Name | Description |
other |
RecognitionResponseMetadata |
| Returns | |
|---|---|
| Type | Description |
RecognitionResponseMetadata.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RecognitionResponseMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RecognitionResponseMetadata.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RecognitionResponseMetadata.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RecognitionResponseMetadata.Builder |
|
mergeTotalBilledDuration(Duration value)
public RecognitionResponseMetadata.Builder mergeTotalBilledDuration(Duration value)When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
RecognitionResponseMetadata.Builder |
|
setPrompt(String value)
public RecognitionResponseMetadata.Builder setPrompt(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe prompt to set. |
| Returns | |
|---|---|
| Type | Description |
RecognitionResponseMetadata.Builder |
This builder for chaining. |
setPromptBytes(ByteString value)
public RecognitionResponseMetadata.Builder setPromptBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for prompt to set. |
| Returns | |
|---|---|
| Type | Description |
RecognitionResponseMetadata.Builder |
This builder for chaining. |
setRequestId(String value)
public RecognitionResponseMetadata.Builder setRequestId(String value)Global request identifier auto-generated by the API.
string request_id = 9 [(.google.api.field_info) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe requestId to set. |
| Returns | |
|---|---|
| Type | Description |
RecognitionResponseMetadata.Builder |
This builder for chaining. |
setRequestIdBytes(ByteString value)
public RecognitionResponseMetadata.Builder setRequestIdBytes(ByteString value)Global request identifier auto-generated by the API.
string request_id = 9 [(.google.api.field_info) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for requestId to set. |
| Returns | |
|---|---|
| Type | Description |
RecognitionResponseMetadata.Builder |
This builder for chaining. |
setTotalBilledDuration(Duration value)
public RecognitionResponseMetadata.Builder setTotalBilledDuration(Duration value)When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
RecognitionResponseMetadata.Builder |
|
setTotalBilledDuration(Duration.Builder builderForValue)
public RecognitionResponseMetadata.Builder setTotalBilledDuration(Duration.Builder builderForValue)When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 6;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
RecognitionResponseMetadata.Builder |
|