public final class DataItem extends GeneratedMessage implements DataItemOrBuilderRepresents Data item
Protobuf type google.cloud.modelarmor.v1.DataItem
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > DataItemImplements
DataItemOrBuilderStatic Fields
BYTE_ITEM_FIELD_NUMBER
public static final int BYTE_ITEM_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static DataItem getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
DataItem |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static DataItem.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
DataItem.Builder |
|
newBuilder(DataItem prototype)
public static DataItem.Builder newBuilder(DataItem prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
DataItem |
| Returns | |
|---|---|
| Type | Description |
DataItem.Builder |
|
parseDelimitedFrom(InputStream input)
public static DataItem parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
DataItem |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DataItem parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataItem |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static DataItem parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
DataItem |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DataItem parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataItem |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static DataItem parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
DataItem |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DataItem parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataItem |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static DataItem parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
DataItem |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DataItem parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataItem |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static DataItem parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
DataItem |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DataItem parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataItem |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static DataItem parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
DataItem |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DataItem parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataItem |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<DataItem> parser()| Returns | |
|---|---|
| Type | Description |
Parser<DataItem> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
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. |
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 |
|
getParserForType()
public Parser<DataItem> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<DataItem> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public DataItem.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
DataItem.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected DataItem.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
DataItem.Builder |
|
toBuilder()
public DataItem.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
DataItem.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|