Class Node.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Node.Builder>
com.google.cloud.visionai.v1.Node.Builder
All Implemented Interfaces:
NodeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Node

public static final class Node.Builder extends com.google.protobuf.GeneratedMessage.Builder<Node.Builder> implements NodeOrBuilder
 Message describing node object.
 
Protobuf type google.cloud.visionai.v1.Node
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Node.Builder>
    • clear

      public Node.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Node.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Node.Builder>
    • getDefaultInstanceForType

      public Node getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Node build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Node buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Node.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Node.Builder>
    • mergeFrom

      public Node.Builder mergeFrom(Node other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Node.Builder>
    • mergeFrom

      public Node.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Node.Builder>
      Throws:
      IOException
    • getStreamOutputConfigCase

      public Node.StreamOutputConfigCase getStreamOutputConfigCase()
      Specified by:
      getStreamOutputConfigCase in interface NodeOrBuilder
    • clearStreamOutputConfig

      public Node.Builder clearStreamOutputConfig()
    • hasOutputAllOutputChannelsToStream

      public boolean hasOutputAllOutputChannelsToStream()
       By default, the output of the node will only be available to downstream
       nodes. To consume the direct output from the application node, the output
       must be sent to Vision AI Streams at first.
      
       By setting output_all_output_channels_to_stream to true, App Platform
       will automatically send all the outputs of the current node to Vision AI
       Stream resources (one stream per output channel). The output stream
       resource will be created by App Platform automatically during deployment
       and deleted after application un-deployment.
       Note that this config applies to all the Application Instances.
      
       The output stream can be override at instance level by
       configuring the `output_resources` section of Instance resource.
       `producer_node` should be current node, `output_resource_binding` should
       be the output channel name (or leave it blank if there is only 1 output
       channel of the processor) and `output_resource` should be the target
       output stream.
       
      bool output_all_output_channels_to_stream = 6;
      Specified by:
      hasOutputAllOutputChannelsToStream in interface NodeOrBuilder
      Returns:
      Whether the outputAllOutputChannelsToStream field is set.
    • getOutputAllOutputChannelsToStream

      public boolean getOutputAllOutputChannelsToStream()
       By default, the output of the node will only be available to downstream
       nodes. To consume the direct output from the application node, the output
       must be sent to Vision AI Streams at first.
      
       By setting output_all_output_channels_to_stream to true, App Platform
       will automatically send all the outputs of the current node to Vision AI
       Stream resources (one stream per output channel). The output stream
       resource will be created by App Platform automatically during deployment
       and deleted after application un-deployment.
       Note that this config applies to all the Application Instances.
      
       The output stream can be override at instance level by
       configuring the `output_resources` section of Instance resource.
       `producer_node` should be current node, `output_resource_binding` should
       be the output channel name (or leave it blank if there is only 1 output
       channel of the processor) and `output_resource` should be the target
       output stream.
       
      bool output_all_output_channels_to_stream = 6;
      Specified by:
      getOutputAllOutputChannelsToStream in interface NodeOrBuilder
      Returns:
      The outputAllOutputChannelsToStream.
    • setOutputAllOutputChannelsToStream

      public Node.Builder setOutputAllOutputChannelsToStream(boolean value)
       By default, the output of the node will only be available to downstream
       nodes. To consume the direct output from the application node, the output
       must be sent to Vision AI Streams at first.
      
       By setting output_all_output_channels_to_stream to true, App Platform
       will automatically send all the outputs of the current node to Vision AI
       Stream resources (one stream per output channel). The output stream
       resource will be created by App Platform automatically during deployment
       and deleted after application un-deployment.
       Note that this config applies to all the Application Instances.
      
       The output stream can be override at instance level by
       configuring the `output_resources` section of Instance resource.
       `producer_node` should be current node, `output_resource_binding` should
       be the output channel name (or leave it blank if there is only 1 output
       channel of the processor) and `output_resource` should be the target
       output stream.
       
      bool output_all_output_channels_to_stream = 6;
      Parameters:
      value - The outputAllOutputChannelsToStream to set.
      Returns:
      This builder for chaining.
    • clearOutputAllOutputChannelsToStream

      public Node.Builder clearOutputAllOutputChannelsToStream()
       By default, the output of the node will only be available to downstream
       nodes. To consume the direct output from the application node, the output
       must be sent to Vision AI Streams at first.
      
       By setting output_all_output_channels_to_stream to true, App Platform
       will automatically send all the outputs of the current node to Vision AI
       Stream resources (one stream per output channel). The output stream
       resource will be created by App Platform automatically during deployment
       and deleted after application un-deployment.
       Note that this config applies to all the Application Instances.
      
       The output stream can be override at instance level by
       configuring the `output_resources` section of Instance resource.
       `producer_node` should be current node, `output_resource_binding` should
       be the output channel name (or leave it blank if there is only 1 output
       channel of the processor) and `output_resource` should be the target
       output stream.
       
      bool output_all_output_channels_to_stream = 6;
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       Required. A unique name for the node.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface NodeOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. A unique name for the node.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface NodeOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Node.Builder setName(String value)
       Required. A unique name for the node.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Node.Builder clearName()
       Required. A unique name for the node.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Node.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. A unique name for the node.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       A user friendly display name for the node.
       
      string display_name = 2;
      Specified by:
      getDisplayName in interface NodeOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       A user friendly display name for the node.
       
      string display_name = 2;
      Specified by:
      getDisplayNameBytes in interface NodeOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Node.Builder setDisplayName(String value)
       A user friendly display name for the node.
       
      string display_name = 2;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Node.Builder clearDisplayName()
       A user friendly display name for the node.
       
      string display_name = 2;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Node.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       A user friendly display name for the node.
       
      string display_name = 2;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasNodeConfig

      public boolean hasNodeConfig()
       Node config.
       
      .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
      Specified by:
      hasNodeConfig in interface NodeOrBuilder
      Returns:
      Whether the nodeConfig field is set.
    • getNodeConfig

      public ProcessorConfig getNodeConfig()
       Node config.
       
      .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
      Specified by:
      getNodeConfig in interface NodeOrBuilder
      Returns:
      The nodeConfig.
    • setNodeConfig

      public Node.Builder setNodeConfig(ProcessorConfig value)
       Node config.
       
      .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
    • setNodeConfig

      public Node.Builder setNodeConfig(ProcessorConfig.Builder builderForValue)
       Node config.
       
      .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
    • mergeNodeConfig

      public Node.Builder mergeNodeConfig(ProcessorConfig value)
       Node config.
       
      .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
    • clearNodeConfig

      public Node.Builder clearNodeConfig()
       Node config.
       
      .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
    • getNodeConfigBuilder

      public ProcessorConfig.Builder getNodeConfigBuilder()
       Node config.
       
      .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
    • getNodeConfigOrBuilder

      public ProcessorConfigOrBuilder getNodeConfigOrBuilder()
       Node config.
       
      .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
      Specified by:
      getNodeConfigOrBuilder in interface NodeOrBuilder
    • getProcessor

      public String getProcessor()
       Processor name refer to the chosen processor resource.
       
      string processor = 4;
      Specified by:
      getProcessor in interface NodeOrBuilder
      Returns:
      The processor.
    • getProcessorBytes

      public com.google.protobuf.ByteString getProcessorBytes()
       Processor name refer to the chosen processor resource.
       
      string processor = 4;
      Specified by:
      getProcessorBytes in interface NodeOrBuilder
      Returns:
      The bytes for processor.
    • setProcessor

      public Node.Builder setProcessor(String value)
       Processor name refer to the chosen processor resource.
       
      string processor = 4;
      Parameters:
      value - The processor to set.
      Returns:
      This builder for chaining.
    • clearProcessor

      public Node.Builder clearProcessor()
       Processor name refer to the chosen processor resource.
       
      string processor = 4;
      Returns:
      This builder for chaining.
    • setProcessorBytes

      public Node.Builder setProcessorBytes(com.google.protobuf.ByteString value)
       Processor name refer to the chosen processor resource.
       
      string processor = 4;
      Parameters:
      value - The bytes for processor to set.
      Returns:
      This builder for chaining.
    • getParentsList

      public List<Node.InputEdge> getParentsList()
       Parent node. Input node should not have parent node. For V1 Alpha1/Beta
       only media warehouse node can have multiple parents, other types of nodes
       will only have one parent.
       
      repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;
      Specified by:
      getParentsList in interface NodeOrBuilder
    • getParentsCount

      public int getParentsCount()
       Parent node. Input node should not have parent node. For V1 Alpha1/Beta
       only media warehouse node can have multiple parents, other types of nodes
       will only have one parent.
       
      repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;
      Specified by:
      getParentsCount in interface NodeOrBuilder
    • getParents

      public Node.InputEdge getParents(int index)
       Parent node. Input node should not have parent node. For V1 Alpha1/Beta
       only media warehouse node can have multiple parents, other types of nodes
       will only have one parent.
       
      repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;
      Specified by:
      getParents in interface NodeOrBuilder
    • setParents

      public Node.Builder setParents(int index, Node.InputEdge value)
       Parent node. Input node should not have parent node. For V1 Alpha1/Beta
       only media warehouse node can have multiple parents, other types of nodes
       will only have one parent.
       
      repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;
    • setParents

      public Node.Builder setParents(int index, Node.InputEdge.Builder builderForValue)
       Parent node. Input node should not have parent node. For V1 Alpha1/Beta
       only media warehouse node can have multiple parents, other types of nodes
       will only have one parent.
       
      repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;
    • addParents

      public Node.Builder addParents(Node.InputEdge value)
       Parent node. Input node should not have parent node. For V1 Alpha1/Beta
       only media warehouse node can have multiple parents, other types of nodes
       will only have one parent.
       
      repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;
    • addParents

      public Node.Builder addParents(int index, Node.InputEdge value)
       Parent node. Input node should not have parent node. For V1 Alpha1/Beta
       only media warehouse node can have multiple parents, other types of nodes
       will only have one parent.
       
      repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;
    • addParents

      public Node.Builder addParents(Node.InputEdge.Builder builderForValue)
       Parent node. Input node should not have parent node. For V1 Alpha1/Beta
       only media warehouse node can have multiple parents, other types of nodes
       will only have one parent.
       
      repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;
    • addParents

      public Node.Builder addParents(int index, Node.InputEdge.Builder builderForValue)
       Parent node. Input node should not have parent node. For V1 Alpha1/Beta
       only media warehouse node can have multiple parents, other types of nodes
       will only have one parent.
       
      repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;
    • addAllParents

      public Node.Builder addAllParents(Iterable<? extends Node.InputEdge> values)
       Parent node. Input node should not have parent node. For V1 Alpha1/Beta
       only media warehouse node can have multiple parents, other types of nodes
       will only have one parent.
       
      repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;
    • clearParents

      public Node.Builder clearParents()
       Parent node. Input node should not have parent node. For V1 Alpha1/Beta
       only media warehouse node can have multiple parents, other types of nodes
       will only have one parent.
       
      repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;
    • removeParents

      public Node.Builder removeParents(int index)
       Parent node. Input node should not have parent node. For V1 Alpha1/Beta
       only media warehouse node can have multiple parents, other types of nodes
       will only have one parent.
       
      repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;
    • getParentsBuilder

      public Node.InputEdge.Builder getParentsBuilder(int index)
       Parent node. Input node should not have parent node. For V1 Alpha1/Beta
       only media warehouse node can have multiple parents, other types of nodes
       will only have one parent.
       
      repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;
    • getParentsOrBuilder

      public Node.InputEdgeOrBuilder getParentsOrBuilder(int index)
       Parent node. Input node should not have parent node. For V1 Alpha1/Beta
       only media warehouse node can have multiple parents, other types of nodes
       will only have one parent.
       
      repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;
      Specified by:
      getParentsOrBuilder in interface NodeOrBuilder
    • getParentsOrBuilderList

      public List<? extends Node.InputEdgeOrBuilder> getParentsOrBuilderList()
       Parent node. Input node should not have parent node. For V1 Alpha1/Beta
       only media warehouse node can have multiple parents, other types of nodes
       will only have one parent.
       
      repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;
      Specified by:
      getParentsOrBuilderList in interface NodeOrBuilder
    • addParentsBuilder

      public Node.InputEdge.Builder addParentsBuilder()
       Parent node. Input node should not have parent node. For V1 Alpha1/Beta
       only media warehouse node can have multiple parents, other types of nodes
       will only have one parent.
       
      repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;
    • addParentsBuilder

      public Node.InputEdge.Builder addParentsBuilder(int index)
       Parent node. Input node should not have parent node. For V1 Alpha1/Beta
       only media warehouse node can have multiple parents, other types of nodes
       will only have one parent.
       
      repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;
    • getParentsBuilderList

      public List<Node.InputEdge.Builder> getParentsBuilderList()
       Parent node. Input node should not have parent node. For V1 Alpha1/Beta
       only media warehouse node can have multiple parents, other types of nodes
       will only have one parent.
       
      repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;