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: the `data` flight's GetFlightInfo command. Flattened structure - no nested messages for read options.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()Which tensor to read: its globally-unique array_id ("source_id" or "source_id/field", per the identity policy at the top of this file).clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Which optional parts of the response to fill.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 readclone()Which tensor to read: its globally-unique array_id ("source_id" or "source_id/field", per the identity policy at the top of this file).com.google.protobuf.ByteStringWhich tensor to read: its globally-unique array_id ("source_id" or "source_id/field", per the identity policy at the top of this file).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.FieldMaskWhich optional parts of the response to fill.com.google.protobuf.FieldMask.BuilderWhich optional parts of the response to fill.com.google.protobuf.FieldMaskOrBuilderWhich optional parts of the response to fill.Dynamic 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 readbooleanWhich optional parts of the response to fill.booleanOptional sub-region to readprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFields(com.google.protobuf.FieldMask value) Which optional parts of the response to fill.mergeFrom(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) setArrayId(String value) Which tensor to read: its globally-unique array_id ("source_id" or "source_id/field", per the identity policy at the top of this file).setArrayIdBytes(com.google.protobuf.ByteString value) Which tensor to read: its globally-unique array_id ("source_id" or "source_id/field", per the identity policy at the top of this file).setFields(com.google.protobuf.FieldMask value) Which optional parts of the response to fill.setFields(com.google.protobuf.FieldMask.Builder builderForValue) Which optional parts of the response to fill.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 readfinal TensorReadOption.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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
-
getArrayId
Which tensor to read: its globally-unique array_id ("source_id" or "source_id/field", per the identity policy at the top of this file). A bare source_id selects the source's default (first) tensor (#44).string array_id = 1;- Specified by:
getArrayIdin interfaceTensorReadOptionOrBuilder- Returns:
- The arrayId.
-
getArrayIdBytes
public com.google.protobuf.ByteString getArrayIdBytes()Which tensor to read: its globally-unique array_id ("source_id" or "source_id/field", per the identity policy at the top of this file). A bare source_id selects the source's default (first) tensor (#44).string array_id = 1;- Specified by:
getArrayIdBytesin interfaceTensorReadOptionOrBuilder- Returns:
- The bytes for arrayId.
-
setArrayId
Which tensor to read: its globally-unique array_id ("source_id" or "source_id/field", per the identity policy at the top of this file). A bare source_id selects the source's default (first) tensor (#44).string array_id = 1;- Parameters:
value- The arrayId to set.- Returns:
- This builder for chaining.
-
clearArrayId
Which tensor to read: its globally-unique array_id ("source_id" or "source_id/field", per the identity policy at the top of this file). A bare source_id selects the source's default (first) tensor (#44).string array_id = 1;- Returns:
- This builder for chaining.
-
setArrayIdBytes
Which tensor to read: its globally-unique array_id ("source_id" or "source_id/field", per the identity policy at the top of this file). A bare source_id selects the source's default (first) tensor (#44).string array_id = 1;- Parameters:
value- The bytes for arrayId 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.
-
hasFields
public boolean hasFields()Which optional parts of the response to fill. **Empty means none.** The response then carries this tensor's base descriptor -- array_id, dim_labels, shape, chunk_shape, dtype, and the ~200-byte physical_scale/physical_unit, which stay unconditional as the one cheap describe fact -- and an empty endpoint list. Paths name what they fill on the response: "endpoints" - the per-request chunk read plan. O(chunks); a read asks for this, a describe does not. "metadata_json" - the full OME tree. Megabytes on a per-plane-annotated file. "pyramid" - the advertised resolution pyramid. Sizing a native one opens each level's store (network I/O per level on a cloud store). "upload_status" - progress of the upload backing this tensor, if any. The one cheap path: an in-memory record read. "is_resident" - whether the bytes are local right now. A bounded stat walk of the source (biopb/biopb#1035). Opt-in throughout, and that is the point of replacing the three `with_*` bools this supersedes: they defaulted the *most* expensive part, the read plan, to on, so a describe had to remember to turn it off. Nothing here is free, so nothing here is default. An unknown path is refused, not ignored: a client asking for something this server does not serve should learn so, rather than silently receive a response missing the field it planned around..google.protobuf.FieldMask fields = 9;- Specified by:
hasFieldsin interfaceTensorReadOptionOrBuilder- Returns:
- Whether the fields field is set.
-
getFields
public com.google.protobuf.FieldMask getFields()Which optional parts of the response to fill. **Empty means none.** The response then carries this tensor's base descriptor -- array_id, dim_labels, shape, chunk_shape, dtype, and the ~200-byte physical_scale/physical_unit, which stay unconditional as the one cheap describe fact -- and an empty endpoint list. Paths name what they fill on the response: "endpoints" - the per-request chunk read plan. O(chunks); a read asks for this, a describe does not. "metadata_json" - the full OME tree. Megabytes on a per-plane-annotated file. "pyramid" - the advertised resolution pyramid. Sizing a native one opens each level's store (network I/O per level on a cloud store). "upload_status" - progress of the upload backing this tensor, if any. The one cheap path: an in-memory record read. "is_resident" - whether the bytes are local right now. A bounded stat walk of the source (biopb/biopb#1035). Opt-in throughout, and that is the point of replacing the three `with_*` bools this supersedes: they defaulted the *most* expensive part, the read plan, to on, so a describe had to remember to turn it off. Nothing here is free, so nothing here is default. An unknown path is refused, not ignored: a client asking for something this server does not serve should learn so, rather than silently receive a response missing the field it planned around..google.protobuf.FieldMask fields = 9;- Specified by:
getFieldsin interfaceTensorReadOptionOrBuilder- Returns:
- The fields.
-
setFields
Which optional parts of the response to fill. **Empty means none.** The response then carries this tensor's base descriptor -- array_id, dim_labels, shape, chunk_shape, dtype, and the ~200-byte physical_scale/physical_unit, which stay unconditional as the one cheap describe fact -- and an empty endpoint list. Paths name what they fill on the response: "endpoints" - the per-request chunk read plan. O(chunks); a read asks for this, a describe does not. "metadata_json" - the full OME tree. Megabytes on a per-plane-annotated file. "pyramid" - the advertised resolution pyramid. Sizing a native one opens each level's store (network I/O per level on a cloud store). "upload_status" - progress of the upload backing this tensor, if any. The one cheap path: an in-memory record read. "is_resident" - whether the bytes are local right now. A bounded stat walk of the source (biopb/biopb#1035). Opt-in throughout, and that is the point of replacing the three `with_*` bools this supersedes: they defaulted the *most* expensive part, the read plan, to on, so a describe had to remember to turn it off. Nothing here is free, so nothing here is default. An unknown path is refused, not ignored: a client asking for something this server does not serve should learn so, rather than silently receive a response missing the field it planned around..google.protobuf.FieldMask fields = 9; -
setFields
Which optional parts of the response to fill. **Empty means none.** The response then carries this tensor's base descriptor -- array_id, dim_labels, shape, chunk_shape, dtype, and the ~200-byte physical_scale/physical_unit, which stay unconditional as the one cheap describe fact -- and an empty endpoint list. Paths name what they fill on the response: "endpoints" - the per-request chunk read plan. O(chunks); a read asks for this, a describe does not. "metadata_json" - the full OME tree. Megabytes on a per-plane-annotated file. "pyramid" - the advertised resolution pyramid. Sizing a native one opens each level's store (network I/O per level on a cloud store). "upload_status" - progress of the upload backing this tensor, if any. The one cheap path: an in-memory record read. "is_resident" - whether the bytes are local right now. A bounded stat walk of the source (biopb/biopb#1035). Opt-in throughout, and that is the point of replacing the three `with_*` bools this supersedes: they defaulted the *most* expensive part, the read plan, to on, so a describe had to remember to turn it off. Nothing here is free, so nothing here is default. An unknown path is refused, not ignored: a client asking for something this server does not serve should learn so, rather than silently receive a response missing the field it planned around..google.protobuf.FieldMask fields = 9; -
mergeFields
Which optional parts of the response to fill. **Empty means none.** The response then carries this tensor's base descriptor -- array_id, dim_labels, shape, chunk_shape, dtype, and the ~200-byte physical_scale/physical_unit, which stay unconditional as the one cheap describe fact -- and an empty endpoint list. Paths name what they fill on the response: "endpoints" - the per-request chunk read plan. O(chunks); a read asks for this, a describe does not. "metadata_json" - the full OME tree. Megabytes on a per-plane-annotated file. "pyramid" - the advertised resolution pyramid. Sizing a native one opens each level's store (network I/O per level on a cloud store). "upload_status" - progress of the upload backing this tensor, if any. The one cheap path: an in-memory record read. "is_resident" - whether the bytes are local right now. A bounded stat walk of the source (biopb/biopb#1035). Opt-in throughout, and that is the point of replacing the three `with_*` bools this supersedes: they defaulted the *most* expensive part, the read plan, to on, so a describe had to remember to turn it off. Nothing here is free, so nothing here is default. An unknown path is refused, not ignored: a client asking for something this server does not serve should learn so, rather than silently receive a response missing the field it planned around..google.protobuf.FieldMask fields = 9; -
clearFields
Which optional parts of the response to fill. **Empty means none.** The response then carries this tensor's base descriptor -- array_id, dim_labels, shape, chunk_shape, dtype, and the ~200-byte physical_scale/physical_unit, which stay unconditional as the one cheap describe fact -- and an empty endpoint list. Paths name what they fill on the response: "endpoints" - the per-request chunk read plan. O(chunks); a read asks for this, a describe does not. "metadata_json" - the full OME tree. Megabytes on a per-plane-annotated file. "pyramid" - the advertised resolution pyramid. Sizing a native one opens each level's store (network I/O per level on a cloud store). "upload_status" - progress of the upload backing this tensor, if any. The one cheap path: an in-memory record read. "is_resident" - whether the bytes are local right now. A bounded stat walk of the source (biopb/biopb#1035). Opt-in throughout, and that is the point of replacing the three `with_*` bools this supersedes: they defaulted the *most* expensive part, the read plan, to on, so a describe had to remember to turn it off. Nothing here is free, so nothing here is default. An unknown path is refused, not ignored: a client asking for something this server does not serve should learn so, rather than silently receive a response missing the field it planned around..google.protobuf.FieldMask fields = 9; -
getFieldsBuilder
public com.google.protobuf.FieldMask.Builder getFieldsBuilder()Which optional parts of the response to fill. **Empty means none.** The response then carries this tensor's base descriptor -- array_id, dim_labels, shape, chunk_shape, dtype, and the ~200-byte physical_scale/physical_unit, which stay unconditional as the one cheap describe fact -- and an empty endpoint list. Paths name what they fill on the response: "endpoints" - the per-request chunk read plan. O(chunks); a read asks for this, a describe does not. "metadata_json" - the full OME tree. Megabytes on a per-plane-annotated file. "pyramid" - the advertised resolution pyramid. Sizing a native one opens each level's store (network I/O per level on a cloud store). "upload_status" - progress of the upload backing this tensor, if any. The one cheap path: an in-memory record read. "is_resident" - whether the bytes are local right now. A bounded stat walk of the source (biopb/biopb#1035). Opt-in throughout, and that is the point of replacing the three `with_*` bools this supersedes: they defaulted the *most* expensive part, the read plan, to on, so a describe had to remember to turn it off. Nothing here is free, so nothing here is default. An unknown path is refused, not ignored: a client asking for something this server does not serve should learn so, rather than silently receive a response missing the field it planned around..google.protobuf.FieldMask fields = 9; -
getFieldsOrBuilder
public com.google.protobuf.FieldMaskOrBuilder getFieldsOrBuilder()Which optional parts of the response to fill. **Empty means none.** The response then carries this tensor's base descriptor -- array_id, dim_labels, shape, chunk_shape, dtype, and the ~200-byte physical_scale/physical_unit, which stay unconditional as the one cheap describe fact -- and an empty endpoint list. Paths name what they fill on the response: "endpoints" - the per-request chunk read plan. O(chunks); a read asks for this, a describe does not. "metadata_json" - the full OME tree. Megabytes on a per-plane-annotated file. "pyramid" - the advertised resolution pyramid. Sizing a native one opens each level's store (network I/O per level on a cloud store). "upload_status" - progress of the upload backing this tensor, if any. The one cheap path: an in-memory record read. "is_resident" - whether the bytes are local right now. A bounded stat walk of the source (biopb/biopb#1035). Opt-in throughout, and that is the point of replacing the three `with_*` bools this supersedes: they defaulted the *most* expensive part, the read plan, to on, so a describe had to remember to turn it off. Nothing here is free, so nothing here is default. An unknown path is refused, not ignored: a client asking for something this server does not serve should learn so, rather than silently receive a response missing the field it planned around..google.protobuf.FieldMask fields = 9;- Specified by:
getFieldsOrBuilderin interfaceTensorReadOptionOrBuilder
-
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>
-