Class WebDetection.WebLabel (3.20.0)

publicstaticfinalclass WebDetection.WebLabelextendsGeneratedMessageV3implementsWebDetection.WebLabelOrBuilder

Label to provide extra metadata for the web detection.

Protobuf type google.cloud.vision.v1.WebDetection.WebLabel

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)

Static Fields

LABEL_FIELD_NUMBER

publicstaticfinalintLABEL_FIELD_NUMBER
Field Value
Type Description
int

LANGUAGE_CODE_FIELD_NUMBER

publicstaticfinalintLANGUAGE_CODE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticWebDetection.WebLabelgetDefaultInstance()
Returns
Type Description
WebDetection.WebLabel

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticWebDetection.WebLabel.BuildernewBuilder()
Returns
Type Description
WebDetection.WebLabel.Builder

newBuilder(WebDetection.WebLabel prototype)

publicstaticWebDetection.WebLabel.BuildernewBuilder(WebDetection.WebLabelprototype)
Parameter
Name Description
prototype WebDetection.WebLabel
Returns
Type Description
WebDetection.WebLabel.Builder

parseDelimitedFrom(InputStream input)

publicstaticWebDetection.WebLabelparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
WebDetection.WebLabel
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetection.WebLabelparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection.WebLabel
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticWebDetection.WebLabelparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
WebDetection.WebLabel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetection.WebLabelparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection.WebLabel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticWebDetection.WebLabelparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
WebDetection.WebLabel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetection.WebLabelparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection.WebLabel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticWebDetection.WebLabelparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WebDetection.WebLabel
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetection.WebLabelparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection.WebLabel
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticWebDetection.WebLabelparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
WebDetection.WebLabel
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetection.WebLabelparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection.WebLabel
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticWebDetection.WebLabelparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WebDetection.WebLabel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticWebDetection.WebLabelparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebDetection.WebLabel
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<WebDetection.WebLabel>parser()
Returns
Type Description
Parser<WebLabel>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicWebDetection.WebLabelgetDefaultInstanceForType()
Returns
Type Description
WebDetection.WebLabel

getLabel()

publicStringgetLabel()

Label for extra metadata.

string label = 1;

Returns
Type Description
String

The label.

getLabelBytes()

publicByteStringgetLabelBytes()

Label for extra metadata.

string label = 1;

Returns
Type Description
ByteString

The bytes for label.

getLanguageCode()

publicStringgetLanguageCode()

The BCP-47 language code for label, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

string language_code = 2;

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

publicByteStringgetLanguageCodeBytes()

The BCP-47 language code for label, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

string language_code = 2;

Returns
Type Description
ByteString

The bytes for languageCode.

getParserForType()

publicParser<WebDetection.WebLabel>getParserForType()
Returns
Type Description
Parser<WebLabel>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicWebDetection.WebLabel.BuildernewBuilderForType()
Returns
Type Description
WebDetection.WebLabel.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedWebDetection.WebLabel.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WebDetection.WebLabel.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicWebDetection.WebLabel.BuildertoBuilder()
Returns
Type Description
WebDetection.WebLabel.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.