Class ExamplesOverride.Builder (0.2.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass ExamplesOverride.BuilderextendsGeneratedMessageV3.Builder<ExamplesOverride.Builder>implementsExamplesOverrideOrBuilderOverrides for example-based explanations.
Protobuf type google.cloud.vertexai.v1beta1.ExamplesOverride
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ExamplesOverride.BuilderImplements
ExamplesOverrideOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllRestrictions(Iterable<? extends ExamplesRestrictionsNamespace> values)
publicExamplesOverride.BuilderaddAllRestrictions(Iterable<?extendsExamplesRestrictionsNamespace>values)Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.vertexai.api.ExamplesRestrictionsNamespace> |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicExamplesOverride.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
addRestrictions(ExamplesRestrictionsNamespace value)
publicExamplesOverride.BuilderaddRestrictions(ExamplesRestrictionsNamespacevalue)Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ExamplesRestrictionsNamespace |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
addRestrictions(ExamplesRestrictionsNamespace.Builder builderForValue)
publicExamplesOverride.BuilderaddRestrictions(ExamplesRestrictionsNamespace.BuilderbuilderForValue)Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ExamplesRestrictionsNamespace.Builder |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
addRestrictions(int index, ExamplesRestrictionsNamespace value)
publicExamplesOverride.BuilderaddRestrictions(intindex,ExamplesRestrictionsNamespacevalue)Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ExamplesRestrictionsNamespace |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
addRestrictions(int index, ExamplesRestrictionsNamespace.Builder builderForValue)
publicExamplesOverride.BuilderaddRestrictions(intindex,ExamplesRestrictionsNamespace.BuilderbuilderForValue)Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ExamplesRestrictionsNamespace.Builder |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
addRestrictionsBuilder()
publicExamplesRestrictionsNamespace.BuilderaddRestrictionsBuilder()Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
| Returns | |
|---|---|
| Type | Description |
ExamplesRestrictionsNamespace.Builder |
|
addRestrictionsBuilder(int index)
publicExamplesRestrictionsNamespace.BuilderaddRestrictionsBuilder(intindex)Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ExamplesRestrictionsNamespace.Builder |
|
build()
publicExamplesOverridebuild()| Returns | |
|---|---|
| Type | Description |
ExamplesOverride |
|
buildPartial()
publicExamplesOverridebuildPartial()| Returns | |
|---|---|
| Type | Description |
ExamplesOverride |
|
clear()
publicExamplesOverride.Builderclear()| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
clearCrowdingCount()
publicExamplesOverride.BuilderclearCrowdingCount()The number of neighbors to return that have the same crowding tag.
int32 crowding_count = 2;
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
This builder for chaining. |
clearDataFormat()
publicExamplesOverride.BuilderclearDataFormat()The format of the data being provided with each call.
.google.cloud.vertexai.v1beta1.ExamplesOverride.DataFormat data_format = 5;
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
publicExamplesOverride.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
clearNeighborCount()
publicExamplesOverride.BuilderclearNeighborCount()The number of neighbors to return.
int32 neighbor_count = 1;
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
publicExamplesOverride.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
clearRestrictions()
publicExamplesOverride.BuilderclearRestrictions()Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
clearReturnEmbeddings()
publicExamplesOverride.BuilderclearReturnEmbeddings()If true, return the embeddings instead of neighbors.
bool return_embeddings = 4;
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
This builder for chaining. |
clone()
publicExamplesOverride.Builderclone()| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
getCrowdingCount()
publicintgetCrowdingCount()The number of neighbors to return that have the same crowding tag.
int32 crowding_count = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The crowdingCount. |
getDataFormat()
publicExamplesOverride.DataFormatgetDataFormat()The format of the data being provided with each call.
.google.cloud.vertexai.v1beta1.ExamplesOverride.DataFormat data_format = 5;
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.DataFormat |
The dataFormat. |
getDataFormatValue()
publicintgetDataFormatValue()The format of the data being provided with each call.
.google.cloud.vertexai.v1beta1.ExamplesOverride.DataFormat data_format = 5;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for dataFormat. |
getDefaultInstanceForType()
publicExamplesOverridegetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ExamplesOverride |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getNeighborCount()
publicintgetNeighborCount()The number of neighbors to return.
int32 neighbor_count = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The neighborCount. |
getRestrictions(int index)
publicExamplesRestrictionsNamespacegetRestrictions(intindex)Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ExamplesRestrictionsNamespace |
|
getRestrictionsBuilder(int index)
publicExamplesRestrictionsNamespace.BuildergetRestrictionsBuilder(intindex)Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ExamplesRestrictionsNamespace.Builder |
|
getRestrictionsBuilderList()
publicList<ExamplesRestrictionsNamespace.Builder>getRestrictionsBuilderList()Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getRestrictionsCount()
publicintgetRestrictionsCount()Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
| Returns | |
|---|---|
| Type | Description |
int |
|
getRestrictionsList()
publicList<ExamplesRestrictionsNamespace>getRestrictionsList()Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
| Returns | |
|---|---|
| Type | Description |
List<ExamplesRestrictionsNamespace> |
|
getRestrictionsOrBuilder(int index)
publicExamplesRestrictionsNamespaceOrBuildergetRestrictionsOrBuilder(intindex)Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ExamplesRestrictionsNamespaceOrBuilder |
|
getRestrictionsOrBuilderList()
publicList<?extendsExamplesRestrictionsNamespaceOrBuilder>getRestrictionsOrBuilderList()Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.vertexai.api.ExamplesRestrictionsNamespaceOrBuilder> |
|
getReturnEmbeddings()
publicbooleangetReturnEmbeddings()If true, return the embeddings instead of neighbors.
bool return_embeddings = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
The returnEmbeddings. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ExamplesOverride other)
publicExamplesOverride.BuildermergeFrom(ExamplesOverrideother)| Parameter | |
|---|---|
| Name | Description |
other |
ExamplesOverride |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicExamplesOverride.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicExamplesOverride.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalExamplesOverride.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
removeRestrictions(int index)
publicExamplesOverride.BuilderremoveRestrictions(intindex)Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
setCrowdingCount(int value)
publicExamplesOverride.BuildersetCrowdingCount(intvalue)The number of neighbors to return that have the same crowding tag.
int32 crowding_count = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
int The crowdingCount to set. |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
This builder for chaining. |
setDataFormat(ExamplesOverride.DataFormat value)
publicExamplesOverride.BuildersetDataFormat(ExamplesOverride.DataFormatvalue)The format of the data being provided with each call.
.google.cloud.vertexai.v1beta1.ExamplesOverride.DataFormat data_format = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ExamplesOverride.DataFormat The dataFormat to set. |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
This builder for chaining. |
setDataFormatValue(int value)
publicExamplesOverride.BuildersetDataFormatValue(intvalue)The format of the data being provided with each call.
.google.cloud.vertexai.v1beta1.ExamplesOverride.DataFormat data_format = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
int The enum numeric value on the wire for dataFormat to set. |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
publicExamplesOverride.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
setNeighborCount(int value)
publicExamplesOverride.BuildersetNeighborCount(intvalue)The number of neighbors to return.
int32 neighbor_count = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
int The neighborCount to set. |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicExamplesOverride.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
setRestrictions(int index, ExamplesRestrictionsNamespace value)
publicExamplesOverride.BuildersetRestrictions(intindex,ExamplesRestrictionsNamespacevalue)Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ExamplesRestrictionsNamespace |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
setRestrictions(int index, ExamplesRestrictionsNamespace.Builder builderForValue)
publicExamplesOverride.BuildersetRestrictions(intindex,ExamplesRestrictionsNamespace.BuilderbuilderForValue)Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.vertexai.v1beta1.ExamplesRestrictionsNamespace restrictions = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ExamplesRestrictionsNamespace.Builder |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|
setReturnEmbeddings(boolean value)
publicExamplesOverride.BuildersetReturnEmbeddings(booleanvalue)If true, return the embeddings instead of neighbors.
bool return_embeddings = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
boolean The returnEmbeddings to set. |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalExamplesOverride.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ExamplesOverride.Builder |
|