Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/clarifai/api/resources.proto
package com.clarifai.grpc.api;
/**
*
* WorkflowNode
*
*
* Protobuf type {@code clarifai.api.WorkflowNode}
*/
public final class WorkflowNode extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.WorkflowNode)
WorkflowNodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use WorkflowNode.newBuilder() to construct.
private WorkflowNode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WorkflowNode() {
id_ = "";
nodeInputs_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WorkflowNode();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WorkflowNode(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
com.clarifai.grpc.api.Model.Builder subBuilder = null;
if (model_ != null) {
subBuilder = model_.toBuilder();
}
model_ = input.readMessage(com.clarifai.grpc.api.Model.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(model_);
model_ = subBuilder.buildPartial();
}
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
nodeInputs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
nodeInputs_.add(
input.readMessage(com.clarifai.grpc.api.NodeInput.parser(), extensionRegistry));
break;
}
case 32: {
suppressOutput_ = input.readBool();
break;
}
case 42: {
com.clarifai.grpc.api.OutputInfo.Builder subBuilder = null;
if (outputInfoOverride_ != null) {
subBuilder = outputInfoOverride_.toBuilder();
}
outputInfoOverride_ = input.readMessage(com.clarifai.grpc.api.OutputInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(outputInfoOverride_);
outputInfoOverride_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
nodeInputs_ = java.util.Collections.unmodifiableList(nodeInputs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_WorkflowNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_WorkflowNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.WorkflowNode.class, com.clarifai.grpc.api.WorkflowNode.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* An identifier for this node in the graph. This is used when connecting NodeInputs
* together.
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* An identifier for this node in the graph. This is used when connecting NodeInputs
* together.
*
*
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MODEL_FIELD_NUMBER = 2;
private com.clarifai.grpc.api.Model model_;
/**
*
* The model that will do the processing at this node. We only vlidate the model.id and
* model.model_version.id fields.
*
*
* .clarifai.api.Model model = 2;
* @return Whether the model field is set.
*/
@java.lang.Override
public boolean hasModel() {
return model_ != null;
}
/**
*
* The model that will do the processing at this node. We only vlidate the model.id and
* model.model_version.id fields.
*
*
* .clarifai.api.Model model = 2;
* @return The model.
*/
@java.lang.Override
public com.clarifai.grpc.api.Model getModel() {
return model_ == null ? com.clarifai.grpc.api.Model.getDefaultInstance() : model_;
}
/**
*
* The model that will do the processing at this node. We only vlidate the model.id and
* model.model_version.id fields.
*
*
* .clarifai.api.Model model = 2;
*/
@java.lang.Override
public com.clarifai.grpc.api.ModelOrBuilder getModelOrBuilder() {
return getModel();
}
public static final int NODE_INPUTS_FIELD_NUMBER = 3;
private java.util.List nodeInputs_;
/**
*
* Each WorkflowNode can connect to multiple input nodes so that we can handle multi-model data
* and more complex workflow operations.
*
* Each WorkflowNode can connect to multiple input nodes so that we can handle multi-model data
* and more complex workflow operations.
*
*
* repeated .clarifai.api.NodeInput node_inputs = 3;
*/
@java.lang.Override
public com.clarifai.grpc.api.NodeInputOrBuilder getNodeInputsOrBuilder(
int index) {
return nodeInputs_.get(index);
}
public static final int SUPPRESS_OUTPUT_FIELD_NUMBER = 4;
private boolean suppressOutput_;
/**
*
* suppress the output for workflow prediction
*
*
* bool suppress_output = 4;
* @return The suppressOutput.
*/
@java.lang.Override
public boolean getSuppressOutput() {
return suppressOutput_;
}
public static final int OUTPUT_INFO_OVERRIDE_FIELD_NUMBER = 5;
private com.clarifai.grpc.api.OutputInfo outputInfoOverride_;
/**
*
* Used to override the output_info.data and output_info.params of the model specified by the node.
* Values for fields_map, message, and output_config are ignored.
*
*
* .clarifai.api.OutputInfo output_info_override = 5;
* @return Whether the outputInfoOverride field is set.
*/
@java.lang.Override
public boolean hasOutputInfoOverride() {
return outputInfoOverride_ != null;
}
/**
*
* Used to override the output_info.data and output_info.params of the model specified by the node.
* Values for fields_map, message, and output_config are ignored.
*
* Used to override the output_info.data and output_info.params of the model specified by the node.
* Values for fields_map, message, and output_config are ignored.
*
*
* .clarifai.api.OutputInfo output_info_override = 5;
*/
@java.lang.Override
public com.clarifai.grpc.api.OutputInfoOrBuilder getOutputInfoOverrideOrBuilder() {
return getOutputInfoOverride();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (model_ != null) {
output.writeMessage(2, getModel());
}
for (int i = 0; i < nodeInputs_.size(); i++) {
output.writeMessage(3, nodeInputs_.get(i));
}
if (suppressOutput_ != false) {
output.writeBool(4, suppressOutput_);
}
if (outputInfoOverride_ != null) {
output.writeMessage(5, getOutputInfoOverride());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (model_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getModel());
}
for (int i = 0; i < nodeInputs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, nodeInputs_.get(i));
}
if (suppressOutput_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, suppressOutput_);
}
if (outputInfoOverride_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getOutputInfoOverride());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.clarifai.grpc.api.WorkflowNode)) {
return super.equals(obj);
}
com.clarifai.grpc.api.WorkflowNode other = (com.clarifai.grpc.api.WorkflowNode) obj;
if (!getId()
.equals(other.getId())) return false;
if (hasModel() != other.hasModel()) return false;
if (hasModel()) {
if (!getModel()
.equals(other.getModel())) return false;
}
if (!getNodeInputsList()
.equals(other.getNodeInputsList())) return false;
if (getSuppressOutput()
!= other.getSuppressOutput()) return false;
if (hasOutputInfoOverride() != other.hasOutputInfoOverride()) return false;
if (hasOutputInfoOverride()) {
if (!getOutputInfoOverride()
.equals(other.getOutputInfoOverride())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
if (hasModel()) {
hash = (37 * hash) + MODEL_FIELD_NUMBER;
hash = (53 * hash) + getModel().hashCode();
}
if (getNodeInputsCount() > 0) {
hash = (37 * hash) + NODE_INPUTS_FIELD_NUMBER;
hash = (53 * hash) + getNodeInputsList().hashCode();
}
hash = (37 * hash) + SUPPRESS_OUTPUT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSuppressOutput());
if (hasOutputInfoOverride()) {
hash = (37 * hash) + OUTPUT_INFO_OVERRIDE_FIELD_NUMBER;
hash = (53 * hash) + getOutputInfoOverride().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.WorkflowNode parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.WorkflowNode parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.WorkflowNode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.WorkflowNode parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.WorkflowNode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.WorkflowNode parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.WorkflowNode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.WorkflowNode parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.clarifai.grpc.api.WorkflowNode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.WorkflowNode parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.clarifai.grpc.api.WorkflowNode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.WorkflowNode parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.clarifai.grpc.api.WorkflowNode prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* An identifier for this node in the graph. This is used when connecting NodeInputs
* together.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* An identifier for this node in the graph. This is used when connecting NodeInputs
* together.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* An identifier for this node in the graph. This is used when connecting NodeInputs
* together.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* An identifier for this node in the graph. This is used when connecting NodeInputs
* together.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* An identifier for this node in the graph. This is used when connecting NodeInputs
* together.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private com.clarifai.grpc.api.Model model_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Model, com.clarifai.grpc.api.Model.Builder, com.clarifai.grpc.api.ModelOrBuilder> modelBuilder_;
/**
*
* The model that will do the processing at this node. We only vlidate the model.id and
* model.model_version.id fields.
*
*
* .clarifai.api.Model model = 2;
* @return Whether the model field is set.
*/
public boolean hasModel() {
return modelBuilder_ != null || model_ != null;
}
/**
*
* The model that will do the processing at this node. We only vlidate the model.id and
* model.model_version.id fields.
*
*
* .clarifai.api.Model model = 2;
* @return The model.
*/
public com.clarifai.grpc.api.Model getModel() {
if (modelBuilder_ == null) {
return model_ == null ? com.clarifai.grpc.api.Model.getDefaultInstance() : model_;
} else {
return modelBuilder_.getMessage();
}
}
/**
*
* The model that will do the processing at this node. We only vlidate the model.id and
* model.model_version.id fields.
*
*
* .clarifai.api.Model model = 2;
*/
public Builder setModel(com.clarifai.grpc.api.Model value) {
if (modelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
model_ = value;
onChanged();
} else {
modelBuilder_.setMessage(value);
}
return this;
}
/**
*
* The model that will do the processing at this node. We only vlidate the model.id and
* model.model_version.id fields.
*
* Used to override the output_info.data and output_info.params of the model specified by the node.
* Values for fields_map, message, and output_config are ignored.
*
*
* .clarifai.api.OutputInfo output_info_override = 5;
* @return Whether the outputInfoOverride field is set.
*/
public boolean hasOutputInfoOverride() {
return outputInfoOverrideBuilder_ != null || outputInfoOverride_ != null;
}
/**
*
* Used to override the output_info.data and output_info.params of the model specified by the node.
* Values for fields_map, message, and output_config are ignored.
*
* Used to override the output_info.data and output_info.params of the model specified by the node.
* Values for fields_map, message, and output_config are ignored.
*
*
* .clarifai.api.OutputInfo output_info_override = 5;
*/
public Builder setOutputInfoOverride(com.clarifai.grpc.api.OutputInfo value) {
if (outputInfoOverrideBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
outputInfoOverride_ = value;
onChanged();
} else {
outputInfoOverrideBuilder_.setMessage(value);
}
return this;
}
/**
*
* Used to override the output_info.data and output_info.params of the model specified by the node.
* Values for fields_map, message, and output_config are ignored.
*
* Used to override the output_info.data and output_info.params of the model specified by the node.
* Values for fields_map, message, and output_config are ignored.
*
* Used to override the output_info.data and output_info.params of the model specified by the node.
* Values for fields_map, message, and output_config are ignored.
*
* Used to override the output_info.data and output_info.params of the model specified by the node.
* Values for fields_map, message, and output_config are ignored.
*
* Used to override the output_info.data and output_info.params of the model specified by the node.
* Values for fields_map, message, and output_config are ignored.
*
* Used to override the output_info.data and output_info.params of the model specified by the node.
* Values for fields_map, message, and output_config are ignored.
*
*
* .clarifai.api.OutputInfo output_info_override = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.OutputInfo, com.clarifai.grpc.api.OutputInfo.Builder, com.clarifai.grpc.api.OutputInfoOrBuilder>
getOutputInfoOverrideFieldBuilder() {
if (outputInfoOverrideBuilder_ == null) {
outputInfoOverrideBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.OutputInfo, com.clarifai.grpc.api.OutputInfo.Builder, com.clarifai.grpc.api.OutputInfoOrBuilder>(
getOutputInfoOverride(),
getParentForChildren(),
isClean());
outputInfoOverride_ = null;
}
return outputInfoOverrideBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:clarifai.api.WorkflowNode)
}
// @@protoc_insertion_point(class_scope:clarifai.api.WorkflowNode)
private static final com.clarifai.grpc.api.WorkflowNode DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.WorkflowNode();
}
public static com.clarifai.grpc.api.WorkflowNode getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WorkflowNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WorkflowNode(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.clarifai.grpc.api.WorkflowNode getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}