public final class ExamplesOverride extends GeneratedMessageV3 implements ExamplesOverrideOrBuilder
Overrides for example-based explanations.
Protobuf type google.cloud.aiplatform.v1.ExamplesOverride
Static Fields
public static final int CROWDING_COUNT_FIELD_NUMBER
Field Value
public static final int DATA_FORMAT_FIELD_NUMBER
Field Value
public static final int NEIGHBOR_COUNT_FIELD_NUMBER
Field Value
public static final int RESTRICTIONS_FIELD_NUMBER
Field Value
public static final int RETURN_EMBEDDINGS_FIELD_NUMBER
Field Value
Static Methods
public static ExamplesOverride getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static ExamplesOverride.Builder newBuilder()
Returns
public static ExamplesOverride.Builder newBuilder(ExamplesOverride prototype)
Parameter
Returns
public static ExamplesOverride parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ExamplesOverride parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ExamplesOverride parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static ExamplesOverride parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ExamplesOverride parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static ExamplesOverride parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ExamplesOverride parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ExamplesOverride parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ExamplesOverride parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ExamplesOverride parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ExamplesOverride parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static ExamplesOverride parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<ExamplesOverride> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public int getCrowdingCount()
The number of neighbors to return that have the same crowding tag.
int32 crowding_count = 2;
Returns
Type | Description |
int | The crowdingCount.
|
public ExamplesOverride.DataFormat getDataFormat()
The format of the data being provided with each call.
.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5;
Returns
public int getDataFormatValue()
The format of the data being provided with each call.
.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5;
Returns
Type | Description |
int | The enum numeric value on the wire for dataFormat.
|
public ExamplesOverride getDefaultInstanceForType()
Returns
public int getNeighborCount()
The number of neighbors to return.
int32 neighbor_count = 1;
Returns
Type | Description |
int | The neighborCount.
|
public Parser<ExamplesOverride> getParserForType()
Returns
Overrides
public ExamplesRestrictionsNamespace getRestrictions(int index)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3;
Parameter
Returns
public int getRestrictionsCount()
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3;
Returns
public List<ExamplesRestrictionsNamespace> getRestrictionsList()
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3;
Returns
public ExamplesRestrictionsNamespaceOrBuilder getRestrictionsOrBuilder(int index)
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3;
Parameter
Returns
public List<? extends ExamplesRestrictionsNamespaceOrBuilder> getRestrictionsOrBuilderList()
Restrict the resulting nearest neighbors to respect these constraints.
repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3;
Returns
Type | Description |
List<? extends com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespaceOrBuilder> | |
public boolean getReturnEmbeddings()
If true, return the embeddings instead of neighbors.
bool return_embeddings = 4;
Returns
Type | Description |
boolean | The returnEmbeddings.
|
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public ExamplesOverride.Builder newBuilderForType()
Returns
protected ExamplesOverride.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public ExamplesOverride.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions