Package biopb.image

Class OpInfo

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
biopb.image.OpInfo
All Implemented Interfaces:
OpInfoOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class OpInfo extends com.google.protobuf.GeneratedMessageV3 implements OpInfoOrBuilder
Protobuf type biopb.image.OpInfo
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Protobuf type biopb.image.OpInfo
    static enum 
    How the tensor arguments arrive: EAGER (numpy, fully materialized), LAZY (dask, may stay out-of-core), or BLOCKS (mapped over blocks -- see TensorArg.mapped).

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    The tensor arguments.
    boolean
     
    static OpInfo
     
     
    string description = 2;
    com.google.protobuf.ByteString
    string description = 2;
    static final com.google.protobuf.Descriptors.Descriptor
     
    .biopb.image.OpInfo.InputMode input = 6;
    int
    .biopb.image.OpInfo.InputMode input = 6;
    The non-tensor arguments, written as they'd appear in a call: "name=default" per argument, comma-separated, bare "name" when there is no default.
    com.google.protobuf.ByteString
    The non-tensor arguments, written as they'd appear in a call: "name=default" per argument, comma-separated, bare "name" when there is no default.
    getLabels(int index)
    For grouping, e.g.
    com.google.protobuf.ByteString
    getLabelsBytes(int index)
    For grouping, e.g.
    int
    For grouping, e.g.
    com.google.protobuf.ProtocolStringList
    For grouping, e.g.
    string name = 1;
    com.google.protobuf.ByteString
    string name = 1;
    com.google.protobuf.Parser<OpInfo>
     
    int
     
    boolean
    A streaming op sends more than one Event per call (see Event); a plain op sends exactly one.
    Deprecated.
    int
    The tensor arguments.
    The tensor arguments.
    getTensorsOrDefault(String key, TensorArg defaultValue)
    The tensor arguments.
    The tensor arguments.
    int
     
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    protected com.google.protobuf.MapFieldReflectionAccessor
     
    final boolean
     
     
    newBuilder(OpInfo prototype)
     
     
    protected OpInfo.Builder
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
    static OpInfo
     
    static OpInfo
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static OpInfo
    parseFrom(byte[] data)
     
    static OpInfo
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static OpInfo
    parseFrom(com.google.protobuf.ByteString data)
     
    static OpInfo
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static OpInfo
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static OpInfo
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static OpInfo
     
    static OpInfo
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static OpInfo
     
    static OpInfo
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<OpInfo>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getName

      public String getName()
      string name = 1;
      Specified by:
      getName in interface OpInfoOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      string name = 1;
      Specified by:
      getNameBytes in interface OpInfoOrBuilder
      Returns:
      The bytes for name.
    • getDescription

      public String getDescription()
      string description = 2;
      Specified by:
      getDescription in interface OpInfoOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
      string description = 2;
      Specified by:
      getDescriptionBytes in interface OpInfoOrBuilder
      Returns:
      The bytes for description.
    • getLabelsList

      public com.google.protobuf.ProtocolStringList getLabelsList()
       For grouping, e.g. ["segmentation"] or ["denoising", "pretrained"].
       
      repeated string labels = 3;
      Specified by:
      getLabelsList in interface OpInfoOrBuilder
      Returns:
      A list containing the labels.
    • getLabelsCount

      public int getLabelsCount()
       For grouping, e.g. ["segmentation"] or ["denoising", "pretrained"].
       
      repeated string labels = 3;
      Specified by:
      getLabelsCount in interface OpInfoOrBuilder
      Returns:
      The count of labels.
    • getLabels

      public String getLabels(int index)
       For grouping, e.g. ["segmentation"] or ["denoising", "pretrained"].
       
      repeated string labels = 3;
      Specified by:
      getLabels in interface OpInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The labels at the given index.
    • getLabelsBytes

      public com.google.protobuf.ByteString getLabelsBytes(int index)
       For grouping, e.g. ["segmentation"] or ["denoising", "pretrained"].
       
      repeated string labels = 3;
      Specified by:
      getLabelsBytes in interface OpInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the labels at the given index.
    • getKwargs

      public String getKwargs()
       The non-tensor arguments, written as they'd appear in a call: "name=default"
       per argument, comma-separated, bare "name" when there is no default. This
       is documentation for whoever calls the op, not a value any client parses
       back -- nothing here is typed.
       
      string kwargs = 4;
      Specified by:
      getKwargs in interface OpInfoOrBuilder
      Returns:
      The kwargs.
    • getKwargsBytes

      public com.google.protobuf.ByteString getKwargsBytes()
       The non-tensor arguments, written as they'd appear in a call: "name=default"
       per argument, comma-separated, bare "name" when there is no default. This
       is documentation for whoever calls the op, not a value any client parses
       back -- nothing here is typed.
       
      string kwargs = 4;
      Specified by:
      getKwargsBytes in interface OpInfoOrBuilder
      Returns:
      The bytes for kwargs.
    • getTensorsCount

      public int getTensorsCount()
      Description copied from interface: OpInfoOrBuilder
       The tensor arguments.
       
      map<string, .biopb.image.TensorArg> tensors = 5;
      Specified by:
      getTensorsCount in interface OpInfoOrBuilder
    • containsTensors

      public boolean containsTensors(String key)
       The tensor arguments.
       
      map<string, .biopb.image.TensorArg> tensors = 5;
      Specified by:
      containsTensors in interface OpInfoOrBuilder
    • getTensors

      @Deprecated public Map<String,TensorArg> getTensors()
      Deprecated.
      Use getTensorsMap() instead.
      Specified by:
      getTensors in interface OpInfoOrBuilder
    • getTensorsMap

      public Map<String,TensorArg> getTensorsMap()
       The tensor arguments.
       
      map<string, .biopb.image.TensorArg> tensors = 5;
      Specified by:
      getTensorsMap in interface OpInfoOrBuilder
    • getTensorsOrDefault

      public TensorArg getTensorsOrDefault(String key, TensorArg defaultValue)
       The tensor arguments.
       
      map<string, .biopb.image.TensorArg> tensors = 5;
      Specified by:
      getTensorsOrDefault in interface OpInfoOrBuilder
    • getTensorsOrThrow

      public TensorArg getTensorsOrThrow(String key)
       The tensor arguments.
       
      map<string, .biopb.image.TensorArg> tensors = 5;
      Specified by:
      getTensorsOrThrow in interface OpInfoOrBuilder
    • getInputValue

      public int getInputValue()
      .biopb.image.OpInfo.InputMode input = 6;
      Specified by:
      getInputValue in interface OpInfoOrBuilder
      Returns:
      The enum numeric value on the wire for input.
    • getInput

      public OpInfo.InputMode getInput()
      .biopb.image.OpInfo.InputMode input = 6;
      Specified by:
      getInput in interface OpInfoOrBuilder
      Returns:
      The input.
    • getStreaming

      public boolean getStreaming()
       A streaming op sends more than one Event per call (see Event); a plain
       op sends exactly one. Known ahead of the call, not just by making one.
       
      bool streaming = 7;
      Specified by:
      getStreaming in interface OpInfoOrBuilder
      Returns:
      The streaming.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static OpInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OpInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OpInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OpInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OpInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OpInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OpInfo parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OpInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static OpInfo parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static OpInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OpInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OpInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public OpInfo.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static OpInfo.Builder newBuilder()
    • newBuilder

      public static OpInfo.Builder newBuilder(OpInfo prototype)
    • toBuilder

      public OpInfo.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected OpInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static OpInfo getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<OpInfo> parser()
    • getParserForType

      public com.google.protobuf.Parser<OpInfo> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public OpInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder