Class AddCollectionItemRequest.Builder (0.3.0)

public static final class AddCollectionItemRequest.Builder extends GeneratedMessageV3.Builder<AddCollectionItemRequest.Builder> implements AddCollectionItemRequestOrBuilder

Request message for AddCollectionItem.

Protobuf type google.cloud.visionai.v1.AddCollectionItemRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AddCollectionItemRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AddCollectionItemRequest.Builder
Overrides

build()

public AddCollectionItemRequest build()
Returns
Type Description
AddCollectionItemRequest

buildPartial()

public AddCollectionItemRequest buildPartial()
Returns
Type Description
AddCollectionItemRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public AddCollectionItemRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AddCollectionItemRequest.Builder
Overrides

clearItem()

public AddCollectionItemRequest.Builder clearItem()

Required. The item to be added.

.google.cloud.visionai.v1.CollectionItem item = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AddCollectionItemRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AddCollectionItemRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AddCollectionItemRequest.Builder
Overrides

clone()

public AddCollectionItemRequest.Builder clone()
Returns
Type Description
AddCollectionItemRequest.Builder
Overrides

getDefaultInstanceForType()

public AddCollectionItemRequest getDefaultInstanceForType()
Returns
Type Description
AddCollectionItemRequest

getDescriptorForType()

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

getItem()

public CollectionItem getItem()

Required. The item to be added.

.google.cloud.visionai.v1.CollectionItem item = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CollectionItem

The item.

getItemBuilder()

public CollectionItem.Builder getItemBuilder()

Required. The item to be added.

.google.cloud.visionai.v1.CollectionItem item = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CollectionItem.Builder

getItemOrBuilder()

public CollectionItemOrBuilder getItemOrBuilder()

Required. The item to be added.

.google.cloud.visionai.v1.CollectionItem item = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CollectionItemOrBuilder

hasItem()

public boolean hasItem()

Required. The item to be added.

.google.cloud.visionai.v1.CollectionItem item = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the item field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AddCollectionItemRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeItem(CollectionItem value)

public AddCollectionItemRequest.Builder mergeItem(CollectionItem value)

Required. The item to be added.

.google.cloud.visionai.v1.CollectionItem item = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CollectionItem
Returns
Type Description
AddCollectionItemRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AddCollectionItemRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AddCollectionItemRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AddCollectionItemRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AddCollectionItemRequest.Builder
Overrides

setItem(CollectionItem value)

public AddCollectionItemRequest.Builder setItem(CollectionItem value)

Required. The item to be added.

.google.cloud.visionai.v1.CollectionItem item = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CollectionItem
Returns
Type Description
AddCollectionItemRequest.Builder

setItem(CollectionItem.Builder builderForValue)

public AddCollectionItemRequest.Builder setItem(CollectionItem.Builder builderForValue)

Required. The item to be added.

.google.cloud.visionai.v1.CollectionItem item = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CollectionItem.Builder
Returns
Type Description
AddCollectionItemRequest.Builder

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

public AddCollectionItemRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AddCollectionItemRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AddCollectionItemRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AddCollectionItemRequest.Builder
Overrides