Class Document.Builder (2.5.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 2.79.0 (latest)
- 2.77.0
- 2.76.0
- 2.75.0
- 2.74.0
- 2.73.0
- 2.71.0
- 2.69.0
- 2.68.0
- 2.65.0
- 2.64.0
- 2.63.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.1
- 2.3.4
- 2.2.0
- 2.1.10
publicstaticfinalclass Document.BuilderextendsGeneratedMessageV3.Builder<Document.Builder>implementsDocumentOrBuilderRepresents the input to API methods.
Protobuf type google.cloud.language.v1.Document
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Document.BuilderImplements
DocumentOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicDocument.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)build()
publicDocumentbuild()buildPartial()
publicDocumentbuildPartial()clear()
publicDocument.Builderclear()clearContent()
publicDocument.BuilderclearContent()The content of the input in string format. Cloud audit logging exempt since it is based on user data.
string content = 2;
This builder for chaining.
clearField(Descriptors.FieldDescriptor field)
publicDocument.BuilderclearField(Descriptors.FieldDescriptorfield)clearGcsContentUri()
publicDocument.BuilderclearGcsContentUri()The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucket_name/object_name. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.
string gcs_content_uri = 3;
This builder for chaining.
clearLanguage()
publicDocument.BuilderclearLanguage() The language of the document (if not specified, the language is
automatically detected). Both ISO and BCP-47 language codes are
accepted.<br>
Language
Support lists
currently supported languages for each API method. If the language (either
specified by the caller or automatically detected) is not supported by the
called API method, an INVALID_ARGUMENT error is returned.
string language = 4;
This builder for chaining.
clearOneof(Descriptors.OneofDescriptor oneof)
publicDocument.BuilderclearOneof(Descriptors.OneofDescriptoroneof)clearSource()
publicDocument.BuilderclearSource()clearType()
publicDocument.BuilderclearType() Required. If the type is not set or is TYPE_UNSPECIFIED,
returns an INVALID_ARGUMENT error.
.google.cloud.language.v1.Document.Type type = 1;
This builder for chaining.
clone()
publicDocument.Builderclone()getContent()
publicStringgetContent()The content of the input in string format. Cloud audit logging exempt since it is based on user data.
string content = 2;
The content.
getContentBytes()
publicByteStringgetContentBytes()The content of the input in string format. Cloud audit logging exempt since it is based on user data.
string content = 2;
The bytes for content.
getDefaultInstanceForType()
publicDocumentgetDefaultInstanceForType()getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()getGcsContentUri()
publicStringgetGcsContentUri()The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucket_name/object_name. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.
string gcs_content_uri = 3;
The gcsContentUri.
getGcsContentUriBytes()
publicByteStringgetGcsContentUriBytes()The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucket_name/object_name. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.
string gcs_content_uri = 3;
The bytes for gcsContentUri.
getLanguage()
publicStringgetLanguage() The language of the document (if not specified, the language is
automatically detected). Both ISO and BCP-47 language codes are
accepted.<br>
Language
Support lists
currently supported languages for each API method. If the language (either
specified by the caller or automatically detected) is not supported by the
called API method, an INVALID_ARGUMENT error is returned.
string language = 4;
The language.
getLanguageBytes()
publicByteStringgetLanguageBytes() The language of the document (if not specified, the language is
automatically detected). Both ISO and BCP-47 language codes are
accepted.<br>
Language
Support lists
currently supported languages for each API method. If the language (either
specified by the caller or automatically detected) is not supported by the
called API method, an INVALID_ARGUMENT error is returned.
string language = 4;
The bytes for language.
getSourceCase()
publicDocument.SourceCasegetSourceCase()getType()
publicDocument.TypegetType() Required. If the type is not set or is TYPE_UNSPECIFIED,
returns an INVALID_ARGUMENT error.
.google.cloud.language.v1.Document.Type type = 1;
The type.
getTypeValue()
publicintgetTypeValue() Required. If the type is not set or is TYPE_UNSPECIFIED,
returns an INVALID_ARGUMENT error.
.google.cloud.language.v1.Document.Type type = 1;
The enum numeric value on the wire for type.
hasContent()
publicbooleanhasContent()The content of the input in string format. Cloud audit logging exempt since it is based on user data.
string content = 2;
Whether the content field is set.
hasGcsContentUri()
publicbooleanhasGcsContentUri()The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucket_name/object_name. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.
string gcs_content_uri = 3;
Whether the gcsContentUri field is set.
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()isInitialized()
publicfinalbooleanisInitialized()mergeFrom(Document other)
publicDocument.BuildermergeFrom(Documentother)mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicDocument.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)mergeFrom(Message other)
publicDocument.BuildermergeFrom(Messageother)mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalDocument.BuildermergeUnknownFields(UnknownFieldSetunknownFields)setContent(String value)
publicDocument.BuildersetContent(Stringvalue)The content of the input in string format. Cloud audit logging exempt since it is based on user data.
string content = 2;
This builder for chaining.
setContentBytes(ByteString value)
publicDocument.BuildersetContentBytes(ByteStringvalue)The content of the input in string format. Cloud audit logging exempt since it is based on user data.
string content = 2;
This builder for chaining.
setField(Descriptors.FieldDescriptor field, Object value)
publicDocument.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)setGcsContentUri(String value)
publicDocument.BuildersetGcsContentUri(Stringvalue)The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucket_name/object_name. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.
string gcs_content_uri = 3;
This builder for chaining.
setGcsContentUriBytes(ByteString value)
publicDocument.BuildersetGcsContentUriBytes(ByteStringvalue)The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucket_name/object_name. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.
string gcs_content_uri = 3;
This builder for chaining.
setLanguage(String value)
publicDocument.BuildersetLanguage(Stringvalue) The language of the document (if not specified, the language is
automatically detected). Both ISO and BCP-47 language codes are
accepted.<br>
Language
Support lists
currently supported languages for each API method. If the language (either
specified by the caller or automatically detected) is not supported by the
called API method, an INVALID_ARGUMENT error is returned.
string language = 4;
This builder for chaining.
setLanguageBytes(ByteString value)
publicDocument.BuildersetLanguageBytes(ByteStringvalue) The language of the document (if not specified, the language is
automatically detected). Both ISO and BCP-47 language codes are
accepted.<br>
Language
Support lists
currently supported languages for each API method. If the language (either
specified by the caller or automatically detected) is not supported by the
called API method, an INVALID_ARGUMENT error is returned.
string language = 4;
This builder for chaining.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicDocument.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)setType(Document.Type value)
publicDocument.BuildersetType(Document.Typevalue) Required. If the type is not set or is TYPE_UNSPECIFIED,
returns an INVALID_ARGUMENT error.
.google.cloud.language.v1.Document.Type type = 1;
This builder for chaining.
setTypeValue(int value)
publicDocument.BuildersetTypeValue(intvalue) Required. If the type is not set or is TYPE_UNSPECIFIED,
returns an INVALID_ARGUMENT error.
.google.cloud.language.v1.Document.Type type = 1;
This builder for chaining.
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalDocument.BuildersetUnknownFields(UnknownFieldSetunknownFields)