public static final class DataItem.Builder extends GeneratedMessage.Builder<DataItem.Builder> implements DataItemOrBuilderRepresents Data item
Protobuf type google.cloud.modelarmor.v1.DataItem
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DataItem.BuilderImplements
DataItemOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DataItem build()| Returns | |
|---|---|
| Type | Description |
DataItem |
|
buildPartial()
public DataItem buildPartial()| Returns | |
|---|---|
| Type | Description |
DataItem |
|
clear()
public DataItem.Builder clear()| Returns | |
|---|---|
| Type | Description |
DataItem.Builder |
|
clearByteItem()
public DataItem.Builder clearByteItem()Data provided in the form of bytes.
.google.cloud.modelarmor.v1.ByteDataItem byte_item = 2;
| Returns | |
|---|---|
| Type | Description |
DataItem.Builder |
|
clearDataItem()
public DataItem.Builder clearDataItem()| Returns | |
|---|---|
| Type | Description |
DataItem.Builder |
|
clearText()
public DataItem.Builder clearText()Plaintext string data for sanitization.
string text = 1;
| Returns | |
|---|---|
| Type | Description |
DataItem.Builder |
This builder for chaining. |
getByteItem()
public ByteDataItem getByteItem()Data provided in the form of bytes.
.google.cloud.modelarmor.v1.ByteDataItem byte_item = 2;
| Returns | |
|---|---|
| Type | Description |
ByteDataItem |
The byteItem. |
getByteItemBuilder()
public ByteDataItem.Builder getByteItemBuilder()Data provided in the form of bytes.
.google.cloud.modelarmor.v1.ByteDataItem byte_item = 2;
| Returns | |
|---|---|
| Type | Description |
ByteDataItem.Builder |
|
getByteItemOrBuilder()
public ByteDataItemOrBuilder getByteItemOrBuilder()Data provided in the form of bytes.
.google.cloud.modelarmor.v1.ByteDataItem byte_item = 2;
| Returns | |
|---|---|
| Type | Description |
ByteDataItemOrBuilder |
|
getDataItemCase()
public DataItem.DataItemCase getDataItemCase()| Returns | |
|---|---|
| Type | Description |
DataItem.DataItemCase |
|
getDefaultInstanceForType()
public DataItem getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DataItem |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getText()
public String getText()Plaintext string data for sanitization.
string text = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The text. |
getTextBytes()
public ByteString getTextBytes()Plaintext string data for sanitization.
string text = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for text. |
hasByteItem()
public boolean hasByteItem()Data provided in the form of bytes.
.google.cloud.modelarmor.v1.ByteDataItem byte_item = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the byteItem field is set. |
hasText()
public boolean hasText()Plaintext string data for sanitization.
string text = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the text field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeByteItem(ByteDataItem value)
public DataItem.Builder mergeByteItem(ByteDataItem value)Data provided in the form of bytes.
.google.cloud.modelarmor.v1.ByteDataItem byte_item = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteDataItem |
| Returns | |
|---|---|
| Type | Description |
DataItem.Builder |
|
mergeFrom(DataItem other)
public DataItem.Builder mergeFrom(DataItem other)| Parameter | |
|---|---|
| Name | Description |
other |
DataItem |
| Returns | |
|---|---|
| Type | Description |
DataItem.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DataItem.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataItem.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DataItem.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DataItem.Builder |
|
setByteItem(ByteDataItem value)
public DataItem.Builder setByteItem(ByteDataItem value)Data provided in the form of bytes.
.google.cloud.modelarmor.v1.ByteDataItem byte_item = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteDataItem |
| Returns | |
|---|---|
| Type | Description |
DataItem.Builder |
|
setByteItem(ByteDataItem.Builder builderForValue)
public DataItem.Builder setByteItem(ByteDataItem.Builder builderForValue)Data provided in the form of bytes.
.google.cloud.modelarmor.v1.ByteDataItem byte_item = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ByteDataItem.Builder |
| Returns | |
|---|---|
| Type | Description |
DataItem.Builder |
|
setText(String value)
public DataItem.Builder setText(String value)Plaintext string data for sanitization.
string text = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe text to set. |
| Returns | |
|---|---|
| Type | Description |
DataItem.Builder |
This builder for chaining. |
setTextBytes(ByteString value)
public DataItem.Builder setTextBytes(ByteString value)Plaintext string data for sanitization.
string text = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for text to set. |
| Returns | |
|---|---|
| Type | Description |
DataItem.Builder |
This builder for chaining. |