public static final class TextSentimentPredictionInstance.Builder extends GeneratedMessageV3.Builder<TextSentimentPredictionInstance.Builder> implements TextSentimentPredictionInstanceOrBuilder
Prediction input format for Text Sentiment.
Protobuf type
google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextSentimentPredictionInstance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public TextSentimentPredictionInstance build()
buildPartial()
public TextSentimentPredictionInstance buildPartial()
clear()
public TextSentimentPredictionInstance.Builder clear()
Overrides
clearContent()
public TextSentimentPredictionInstance.Builder clearContent()
The text snippet to make the predictions on.
string content = 1;
clearField(Descriptors.FieldDescriptor field)
public TextSentimentPredictionInstance.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMimeType()
public TextSentimentPredictionInstance.Builder clearMimeType()
The MIME type of the text snippet. The supported MIME types are listed
below.
string mime_type = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public TextSentimentPredictionInstance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public TextSentimentPredictionInstance.Builder clone()
Overrides
getContent()
public String getContent()
The text snippet to make the predictions on.
string content = 1;
Returns |
---|
Type | Description |
String | The content.
|
getContentBytes()
public ByteString getContentBytes()
The text snippet to make the predictions on.
string content = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for content.
|
getDefaultInstanceForType()
public TextSentimentPredictionInstance getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMimeType()
public String getMimeType()
The MIME type of the text snippet. The supported MIME types are listed
below.
string mime_type = 2;
Returns |
---|
Type | Description |
String | The mimeType.
|
getMimeTypeBytes()
public ByteString getMimeTypeBytes()
The MIME type of the text snippet. The supported MIME types are listed
below.
string mime_type = 2;
Returns |
---|
Type | Description |
ByteString | The bytes for mimeType.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(TextSentimentPredictionInstance other)
public TextSentimentPredictionInstance.Builder mergeFrom(TextSentimentPredictionInstance other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextSentimentPredictionInstance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public TextSentimentPredictionInstance.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextSentimentPredictionInstance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setContent(String value)
public TextSentimentPredictionInstance.Builder setContent(String value)
The text snippet to make the predictions on.
string content = 1;
Parameter |
---|
Name | Description |
value | String
The content to set.
|
setContentBytes(ByteString value)
public TextSentimentPredictionInstance.Builder setContentBytes(ByteString value)
The text snippet to make the predictions on.
string content = 1;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for content to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public TextSentimentPredictionInstance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setMimeType(String value)
public TextSentimentPredictionInstance.Builder setMimeType(String value)
The MIME type of the text snippet. The supported MIME types are listed
below.
string mime_type = 2;
Parameter |
---|
Name | Description |
value | String
The mimeType to set.
|
setMimeTypeBytes(ByteString value)
public TextSentimentPredictionInstance.Builder setMimeTypeBytes(ByteString value)
The MIME type of the text snippet. The supported MIME types are listed
below.
string mime_type = 2;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for mimeType to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TextSentimentPredictionInstance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TextSentimentPredictionInstance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides