public static final class CreatePhraseSetRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreatePhraseSetRequest.Builder> implements CreatePhraseSetRequestOrBuilder
Request message for the [CreatePhraseSet][google.cloud.speech.v2.Speech.CreatePhraseSet] method.Protobuf type
google.cloud.speech.v2.CreatePhraseSetRequest| Modifier and Type | Method and Description |
|---|---|
CreatePhraseSetRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CreatePhraseSetRequest |
build() |
CreatePhraseSetRequest |
buildPartial() |
CreatePhraseSetRequest.Builder |
clear() |
CreatePhraseSetRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CreatePhraseSetRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CreatePhraseSetRequest.Builder |
clearParent()
Required.
|
CreatePhraseSetRequest.Builder |
clearPhraseSet()
Required.
|
CreatePhraseSetRequest.Builder |
clearPhraseSetId()
The ID to use for the PhraseSet, which will become the final component of
the PhraseSet's resource name.
|
CreatePhraseSetRequest.Builder |
clearValidateOnly()
If set, validate the request and preview the PhraseSet, but do not
actually create it.
|
CreatePhraseSetRequest.Builder |
clone() |
CreatePhraseSetRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getParent()
Required.
|
com.google.protobuf.ByteString |
getParentBytes()
Required.
|
PhraseSet |
getPhraseSet()
Required.
|
PhraseSet.Builder |
getPhraseSetBuilder()
Required.
|
String |
getPhraseSetId()
The ID to use for the PhraseSet, which will become the final component of
the PhraseSet's resource name.
|
com.google.protobuf.ByteString |
getPhraseSetIdBytes()
The ID to use for the PhraseSet, which will become the final component of
the PhraseSet's resource name.
|
PhraseSetOrBuilder |
getPhraseSetOrBuilder()
Required.
|
boolean |
getValidateOnly()
If set, validate the request and preview the PhraseSet, but do not
actually create it.
|
boolean |
hasPhraseSet()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CreatePhraseSetRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CreatePhraseSetRequest.Builder |
mergeFrom(CreatePhraseSetRequest other) |
CreatePhraseSetRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
CreatePhraseSetRequest.Builder |
mergePhraseSet(PhraseSet value)
Required.
|
CreatePhraseSetRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CreatePhraseSetRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CreatePhraseSetRequest.Builder |
setParent(String value)
Required.
|
CreatePhraseSetRequest.Builder |
setParentBytes(com.google.protobuf.ByteString value)
Required.
|
CreatePhraseSetRequest.Builder |
setPhraseSet(PhraseSet.Builder builderForValue)
Required.
|
CreatePhraseSetRequest.Builder |
setPhraseSet(PhraseSet value)
Required.
|
CreatePhraseSetRequest.Builder |
setPhraseSetId(String value)
The ID to use for the PhraseSet, which will become the final component of
the PhraseSet's resource name.
|
CreatePhraseSetRequest.Builder |
setPhraseSetIdBytes(com.google.protobuf.ByteString value)
The ID to use for the PhraseSet, which will become the final component of
the PhraseSet's resource name.
|
CreatePhraseSetRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CreatePhraseSetRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CreatePhraseSetRequest.Builder |
setValidateOnly(boolean value)
If set, validate the request and preview the PhraseSet, but do not
actually create it.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CreatePhraseSetRequest.Builder>public CreatePhraseSetRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CreatePhraseSetRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CreatePhraseSetRequest.Builder>public CreatePhraseSetRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CreatePhraseSetRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CreatePhraseSetRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CreatePhraseSetRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CreatePhraseSetRequest.Builder>public CreatePhraseSetRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CreatePhraseSetRequest.Builder>public CreatePhraseSetRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CreatePhraseSetRequest.Builder>public CreatePhraseSetRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CreatePhraseSetRequest.Builder>public CreatePhraseSetRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreatePhraseSetRequest.Builder>public CreatePhraseSetRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreatePhraseSetRequest.Builder>public CreatePhraseSetRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreatePhraseSetRequest.Builder>public CreatePhraseSetRequest.Builder mergeFrom(CreatePhraseSetRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreatePhraseSetRequest.Builder>public CreatePhraseSetRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreatePhraseSetRequest.Builder>IOExceptionpublic boolean hasPhraseSet()
Required. The PhraseSet to create.
.google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
hasPhraseSet in interface CreatePhraseSetRequestOrBuilderpublic PhraseSet getPhraseSet()
Required. The PhraseSet to create.
.google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
getPhraseSet in interface CreatePhraseSetRequestOrBuilderpublic CreatePhraseSetRequest.Builder setPhraseSet(PhraseSet value)
Required. The PhraseSet to create.
.google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
public CreatePhraseSetRequest.Builder setPhraseSet(PhraseSet.Builder builderForValue)
Required. The PhraseSet to create.
.google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
public CreatePhraseSetRequest.Builder mergePhraseSet(PhraseSet value)
Required. The PhraseSet to create.
.google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
public CreatePhraseSetRequest.Builder clearPhraseSet()
Required. The PhraseSet to create.
.google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
public PhraseSet.Builder getPhraseSetBuilder()
Required. The PhraseSet to create.
.google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
public PhraseSetOrBuilder getPhraseSetOrBuilder()
Required. The PhraseSet to create.
.google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
getPhraseSetOrBuilder in interface CreatePhraseSetRequestOrBuilderpublic boolean getValidateOnly()
If set, validate the request and preview the PhraseSet, but do not actually create it.
bool validate_only = 2;getValidateOnly in interface CreatePhraseSetRequestOrBuilderpublic CreatePhraseSetRequest.Builder setValidateOnly(boolean value)
If set, validate the request and preview the PhraseSet, but do not actually create it.
bool validate_only = 2;value - The validateOnly to set.public CreatePhraseSetRequest.Builder clearValidateOnly()
If set, validate the request and preview the PhraseSet, but do not actually create it.
bool validate_only = 2;public String getPhraseSetId()
The ID to use for the PhraseSet, which will become the final component of the PhraseSet's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
string phrase_set_id = 3;getPhraseSetId in interface CreatePhraseSetRequestOrBuilderpublic com.google.protobuf.ByteString getPhraseSetIdBytes()
The ID to use for the PhraseSet, which will become the final component of the PhraseSet's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
string phrase_set_id = 3;getPhraseSetIdBytes in interface CreatePhraseSetRequestOrBuilderpublic CreatePhraseSetRequest.Builder setPhraseSetId(String value)
The ID to use for the PhraseSet, which will become the final component of the PhraseSet's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
string phrase_set_id = 3;value - The phraseSetId to set.public CreatePhraseSetRequest.Builder clearPhraseSetId()
The ID to use for the PhraseSet, which will become the final component of the PhraseSet's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
string phrase_set_id = 3;public CreatePhraseSetRequest.Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value)
The ID to use for the PhraseSet, which will become the final component of the PhraseSet's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
string phrase_set_id = 3;value - The bytes for phraseSetId to set.public String getParent()
Required. The project and location where this PhraseSet will be created.
The expected format is `projects/{project}/locations/{location}`.
string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParent in interface CreatePhraseSetRequestOrBuilderpublic com.google.protobuf.ByteString getParentBytes()
Required. The project and location where this PhraseSet will be created.
The expected format is `projects/{project}/locations/{location}`.
string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParentBytes in interface CreatePhraseSetRequestOrBuilderpublic CreatePhraseSetRequest.Builder setParent(String value)
Required. The project and location where this PhraseSet will be created.
The expected format is `projects/{project}/locations/{location}`.
string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The parent to set.public CreatePhraseSetRequest.Builder clearParent()
Required. The project and location where this PhraseSet will be created.
The expected format is `projects/{project}/locations/{location}`.
string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public CreatePhraseSetRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Required. The project and location where this PhraseSet will be created.
The expected format is `projects/{project}/locations/{location}`.
string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for parent to set.public final CreatePhraseSetRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreatePhraseSetRequest.Builder>public final CreatePhraseSetRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreatePhraseSetRequest.Builder>Copyright © 2023 Google LLC. All rights reserved.