Package biopb.tensor
Class TensorReadOption.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TensorReadOption.Builder>
biopb.tensor.TensorReadOption.Builder
- All Implemented Interfaces:
TensorReadOptionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TensorReadOption
public static final class TensorReadOption.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<TensorReadOption.Builder>
implements TensorReadOptionOrBuilder
Tensor read request within a data source. Flattened structure - no nested messages for read options. Used in FlightCmd.tensor_read branch.Protobuf type
biopb.tensor.TensorReadOption-
Method Summary
Modifier and TypeMethodDescriptionaddAllScaleHint(Iterable<? extends Long> values) Per-dimension integer downsampling factors.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addScaleHint(long value) Per-dimension integer downsampling factors.build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Dynamic reduction/downsampling method: "nearest", "area", or "precompute" (serve a native on-disk pyramid level).Per-dimension integer downsampling factors.Optional sub-region to readWhich tensor to read -- normally the globally-unique array_id (see the tensor identity policy at the top of this file); the same value as TensorDescriptor.array_id.If true, server populates metadata_json with wrapped metadata.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDynamic reduction/downsampling method: "nearest", "area", or "precompute" (serve a native on-disk pyramid level).com.google.protobuf.ByteStringDynamic reduction/downsampling method: "nearest", "area", or "precompute" (serve a native on-disk pyramid level).longgetScaleHint(int index) Per-dimension integer downsampling factors.intPer-dimension integer downsampling factors.Per-dimension integer downsampling factors.Optional sub-region to readOptional sub-region to readOptional sub-region to readWhich tensor to read -- normally the globally-unique array_id (see the tensor identity policy at the top of this file); the same value as TensorDescriptor.array_id.com.google.protobuf.ByteStringWhich tensor to read -- normally the globally-unique array_id (see the tensor identity policy at the top of this file); the same value as TensorDescriptor.array_id.booleanIf true, server populates metadata_json with wrapped metadata.booleanOptional sub-region to readprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(TensorReadOption other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSliceHint(SliceHint value) Optional sub-region to readfinal TensorReadOption.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setReductionMethod(String value) Dynamic reduction/downsampling method: "nearest", "area", or "precompute" (serve a native on-disk pyramid level).setReductionMethodBytes(com.google.protobuf.ByteString value) Dynamic reduction/downsampling method: "nearest", "area", or "precompute" (serve a native on-disk pyramid level).setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setScaleHint(int index, long value) Per-dimension integer downsampling factors.setSliceHint(SliceHint value) Optional sub-region to readsetSliceHint(SliceHint.Builder builderForValue) Optional sub-region to readsetTensorId(String value) Which tensor to read -- normally the globally-unique array_id (see the tensor identity policy at the top of this file); the same value as TensorDescriptor.array_id.setTensorIdBytes(com.google.protobuf.ByteString value) Which tensor to read -- normally the globally-unique array_id (see the tensor identity policy at the top of this file); the same value as TensorDescriptor.array_id.final TensorReadOption.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setWithMetadata(boolean value) If true, server populates metadata_json with wrapped metadata.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TensorReadOption.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorReadOption.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TensorReadOption.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TensorReadOption.Builder>
-
setField
public TensorReadOption.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorReadOption.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorReadOption.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorReadOption.Builder>
-
setRepeatedField
public TensorReadOption.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorReadOption.Builder>
-
addRepeatedField
public TensorReadOption.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorReadOption.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TensorReadOption.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorReadOption.Builder>
-
mergeFrom
public TensorReadOption.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TensorReadOption.Builder>- Throws:
IOException
-
getTensorId
Which tensor to read -- normally the globally-unique array_id (see the tensor identity policy at the top of this file); the same value as TensorDescriptor.array_id. The server strips the source_id prefix (split on the first '/') to resolve the within-source tensor. For back-compat it also accepts a bare field name or the source_id; unset/empty means "the source's default (first) tensor" and is resolved server-side (#44).
string tensor_id = 1;- Specified by:
getTensorIdin interfaceTensorReadOptionOrBuilder- Returns:
- The tensorId.
-
getTensorIdBytes
public com.google.protobuf.ByteString getTensorIdBytes()Which tensor to read -- normally the globally-unique array_id (see the tensor identity policy at the top of this file); the same value as TensorDescriptor.array_id. The server strips the source_id prefix (split on the first '/') to resolve the within-source tensor. For back-compat it also accepts a bare field name or the source_id; unset/empty means "the source's default (first) tensor" and is resolved server-side (#44).
string tensor_id = 1;- Specified by:
getTensorIdBytesin interfaceTensorReadOptionOrBuilder- Returns:
- The bytes for tensorId.
-
setTensorId
Which tensor to read -- normally the globally-unique array_id (see the tensor identity policy at the top of this file); the same value as TensorDescriptor.array_id. The server strips the source_id prefix (split on the first '/') to resolve the within-source tensor. For back-compat it also accepts a bare field name or the source_id; unset/empty means "the source's default (first) tensor" and is resolved server-side (#44).
string tensor_id = 1;- Parameters:
value- The tensorId to set.- Returns:
- This builder for chaining.
-
clearTensorId
Which tensor to read -- normally the globally-unique array_id (see the tensor identity policy at the top of this file); the same value as TensorDescriptor.array_id. The server strips the source_id prefix (split on the first '/') to resolve the within-source tensor. For back-compat it also accepts a bare field name or the source_id; unset/empty means "the source's default (first) tensor" and is resolved server-side (#44).
string tensor_id = 1;- Returns:
- This builder for chaining.
-
setTensorIdBytes
Which tensor to read -- normally the globally-unique array_id (see the tensor identity policy at the top of this file); the same value as TensorDescriptor.array_id. The server strips the source_id prefix (split on the first '/') to resolve the within-source tensor. For back-compat it also accepts a bare field name or the source_id; unset/empty means "the source's default (first) tensor" and is resolved server-side (#44).
string tensor_id = 1;- Parameters:
value- The bytes for tensorId to set.- Returns:
- This builder for chaining.
-
hasSliceHint
public boolean hasSliceHint()Optional sub-region to read
.biopb.tensor.SliceHint slice_hint = 2;- Specified by:
hasSliceHintin interfaceTensorReadOptionOrBuilder- Returns:
- Whether the sliceHint field is set.
-
getSliceHint
Optional sub-region to read
.biopb.tensor.SliceHint slice_hint = 2;- Specified by:
getSliceHintin interfaceTensorReadOptionOrBuilder- Returns:
- The sliceHint.
-
setSliceHint
Optional sub-region to read
.biopb.tensor.SliceHint slice_hint = 2; -
setSliceHint
Optional sub-region to read
.biopb.tensor.SliceHint slice_hint = 2; -
mergeSliceHint
Optional sub-region to read
.biopb.tensor.SliceHint slice_hint = 2; -
clearSliceHint
Optional sub-region to read
.biopb.tensor.SliceHint slice_hint = 2; -
getSliceHintBuilder
Optional sub-region to read
.biopb.tensor.SliceHint slice_hint = 2; -
getSliceHintOrBuilder
Optional sub-region to read
.biopb.tensor.SliceHint slice_hint = 2;- Specified by:
getSliceHintOrBuilderin interfaceTensorReadOptionOrBuilder
-
getScaleHintList
Per-dimension integer downsampling factors. Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
repeated int64 scale_hint = 3;- Specified by:
getScaleHintListin interfaceTensorReadOptionOrBuilder- Returns:
- A list containing the scaleHint.
-
getScaleHintCount
public int getScaleHintCount()Per-dimension integer downsampling factors. Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
repeated int64 scale_hint = 3;- Specified by:
getScaleHintCountin interfaceTensorReadOptionOrBuilder- Returns:
- The count of scaleHint.
-
getScaleHint
public long getScaleHint(int index) Per-dimension integer downsampling factors. Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
repeated int64 scale_hint = 3;- Specified by:
getScaleHintin interfaceTensorReadOptionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The scaleHint at the given index.
-
setScaleHint
Per-dimension integer downsampling factors. Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
repeated int64 scale_hint = 3;- Parameters:
index- The index to set the value at.value- The scaleHint to set.- Returns:
- This builder for chaining.
-
addScaleHint
Per-dimension integer downsampling factors. Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
repeated int64 scale_hint = 3;- Parameters:
value- The scaleHint to add.- Returns:
- This builder for chaining.
-
addAllScaleHint
Per-dimension integer downsampling factors. Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
repeated int64 scale_hint = 3;- Parameters:
values- The scaleHint to add.- Returns:
- This builder for chaining.
-
clearScaleHint
Per-dimension integer downsampling factors. Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
repeated int64 scale_hint = 3;- Returns:
- This builder for chaining.
-
getReductionMethod
Dynamic reduction/downsampling method: "nearest", "area", or "precompute" (serve a native on-disk pyramid level). Compatibility aliases accepted: "stride" -> "nearest", "mean" -> "area", "precomputed" -> "precompute", "linear" (deprecated) -> "area".
string reduction_method = 4;- Specified by:
getReductionMethodin interfaceTensorReadOptionOrBuilder- Returns:
- The reductionMethod.
-
getReductionMethodBytes
public com.google.protobuf.ByteString getReductionMethodBytes()Dynamic reduction/downsampling method: "nearest", "area", or "precompute" (serve a native on-disk pyramid level). Compatibility aliases accepted: "stride" -> "nearest", "mean" -> "area", "precomputed" -> "precompute", "linear" (deprecated) -> "area".
string reduction_method = 4;- Specified by:
getReductionMethodBytesin interfaceTensorReadOptionOrBuilder- Returns:
- The bytes for reductionMethod.
-
setReductionMethod
Dynamic reduction/downsampling method: "nearest", "area", or "precompute" (serve a native on-disk pyramid level). Compatibility aliases accepted: "stride" -> "nearest", "mean" -> "area", "precomputed" -> "precompute", "linear" (deprecated) -> "area".
string reduction_method = 4;- Parameters:
value- The reductionMethod to set.- Returns:
- This builder for chaining.
-
clearReductionMethod
Dynamic reduction/downsampling method: "nearest", "area", or "precompute" (serve a native on-disk pyramid level). Compatibility aliases accepted: "stride" -> "nearest", "mean" -> "area", "precomputed" -> "precompute", "linear" (deprecated) -> "area".
string reduction_method = 4;- Returns:
- This builder for chaining.
-
setReductionMethodBytes
Dynamic reduction/downsampling method: "nearest", "area", or "precompute" (serve a native on-disk pyramid level). Compatibility aliases accepted: "stride" -> "nearest", "mean" -> "area", "precomputed" -> "precompute", "linear" (deprecated) -> "area".
string reduction_method = 4;- Parameters:
value- The bytes for reductionMethod to set.- Returns:
- This builder for chaining.
-
getWithMetadata
public boolean getWithMetadata()If true, server populates metadata_json with wrapped metadata. Wrapped structure: {"type": source_type, "dim_label": [...], "metadata": {...}}bool with_metadata = 5;- Specified by:
getWithMetadatain interfaceTensorReadOptionOrBuilder- Returns:
- The withMetadata.
-
setWithMetadata
If true, server populates metadata_json with wrapped metadata. Wrapped structure: {"type": source_type, "dim_label": [...], "metadata": {...}}bool with_metadata = 5;- Parameters:
value- The withMetadata to set.- Returns:
- This builder for chaining.
-
clearWithMetadata
If true, server populates metadata_json with wrapped metadata. Wrapped structure: {"type": source_type, "dim_label": [...], "metadata": {...}}bool with_metadata = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final TensorReadOption.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorReadOption.Builder>
-
mergeUnknownFields
public final TensorReadOption.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorReadOption.Builder>
-