Class ByteDataItem.Builder (0.24.0)

public static final class ByteDataItem.Builder extends GeneratedMessage.Builder<ByteDataItem.Builder> implements ByteDataItemOrBuilder

Represents Byte Data item.

Protobuf type google.cloud.modelarmor.v1.ByteDataItem

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ByteDataItem build()
Returns
Type Description
ByteDataItem

buildPartial()

public ByteDataItem buildPartial()
Returns
Type Description
ByteDataItem

clear()

public ByteDataItem.Builder clear()
Returns
Type Description
ByteDataItem.Builder
Overrides

clearByteData()

public ByteDataItem.Builder clearByteData()

Required. Bytes Data

bytes byte_data = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteDataItem.Builder

This builder for chaining.

clearByteDataType()

public ByteDataItem.Builder clearByteDataType()

Required. The type of byte data

.google.cloud.modelarmor.v1.ByteDataItem.ByteItemType byte_data_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteDataItem.Builder

This builder for chaining.

getByteData()

public ByteString getByteData()

Required. Bytes Data

bytes byte_data = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The byteData.

getByteDataType()

public ByteDataItem.ByteItemType getByteDataType()

Required. The type of byte data

.google.cloud.modelarmor.v1.ByteDataItem.ByteItemType byte_data_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteDataItem.ByteItemType

The byteDataType.

getByteDataTypeValue()

public int getByteDataTypeValue()

Required. The type of byte data

.google.cloud.modelarmor.v1.ByteDataItem.ByteItemType byte_data_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for byteDataType.

getDefaultInstanceForType()

public ByteDataItem getDefaultInstanceForType()
Returns
Type Description
ByteDataItem

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ByteDataItem other)

public ByteDataItem.Builder mergeFrom(ByteDataItem other)
Parameter
Name Description
other ByteDataItem
Returns
Type Description
ByteDataItem.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ByteDataItem.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ByteDataItem.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ByteDataItem.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ByteDataItem.Builder
Overrides

setByteData(ByteString value)

public ByteDataItem.Builder setByteData(ByteString value)

Required. Bytes Data

bytes byte_data = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The byteData to set.

Returns
Type Description
ByteDataItem.Builder

This builder for chaining.

setByteDataType(ByteDataItem.ByteItemType value)

public ByteDataItem.Builder setByteDataType(ByteDataItem.ByteItemType value)

Required. The type of byte data

.google.cloud.modelarmor.v1.ByteDataItem.ByteItemType byte_data_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteDataItem.ByteItemType

The byteDataType to set.

Returns
Type Description
ByteDataItem.Builder

This builder for chaining.

setByteDataTypeValue(int value)

public ByteDataItem.Builder setByteDataTypeValue(int value)

Required. The type of byte data

.google.cloud.modelarmor.v1.ByteDataItem.ByteItemType byte_data_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for byteDataType to set.

Returns
Type Description
ByteDataItem.Builder

This builder for chaining.