Class ByteDataItem.Builder (0.5.0)

publicstaticfinalclass ByteDataItem.BuilderextendsGeneratedMessageV3.Builder<ByteDataItem.Builder>implementsByteDataItemOrBuilder

Represents Byte Data item.

Protobuf type google.cloud.modelarmor.v1.ByteDataItem

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()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicByteDataItem.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ByteDataItem.Builder
Overrides

build()

publicByteDataItembuild()
Returns
Type Description
ByteDataItem

buildPartial()

publicByteDataItembuildPartial()
Returns
Type Description
ByteDataItem

clear()

publicByteDataItem.Builderclear()
Returns
Type Description
ByteDataItem.Builder
Overrides

clearByteData()

publicByteDataItem.BuilderclearByteData()

Required. Bytes Data

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

Returns
Type Description
ByteDataItem.Builder

This builder for chaining.

clearByteDataType()

publicByteDataItem.BuilderclearByteDataType()

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.

clearField(Descriptors.FieldDescriptor field)

publicByteDataItem.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ByteDataItem.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicByteDataItem.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ByteDataItem.Builder
Overrides

clone()

publicByteDataItem.Builderclone()
Returns
Type Description
ByteDataItem.Builder
Overrides

getByteData()

publicByteStringgetByteData()

Required. Bytes Data

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

Returns
Type Description
ByteString

The byteData.

getByteDataType()

publicByteDataItem.ByteItemTypegetByteDataType()

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()

publicintgetByteDataTypeValue()

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()

publicByteDataItemgetDefaultInstanceForType()
Returns
Type Description
ByteDataItem

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ByteDataItem other)

publicByteDataItem.BuildermergeFrom(ByteDataItemother)
Parameter
Name Description
other ByteDataItem
Returns
Type Description
ByteDataItem.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicByteDataItem.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ByteDataItem.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicByteDataItem.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
ByteDataItem.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalByteDataItem.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ByteDataItem.Builder
Overrides

setByteData(ByteString value)

publicByteDataItem.BuildersetByteData(ByteStringvalue)

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)

publicByteDataItem.BuildersetByteDataType(ByteDataItem.ByteItemTypevalue)

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)

publicByteDataItem.BuildersetByteDataTypeValue(intvalue)

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.

setField(Descriptors.FieldDescriptor field, Object value)

publicByteDataItem.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ByteDataItem.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicByteDataItem.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ByteDataItem.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalByteDataItem.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ByteDataItem.Builder
Overrides

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年10月30日 UTC.