
com.google.cloud.visionai.v1.Node Maven / Gradle / Ivy
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/visionai/v1/platform.proto
// Protobuf Java Version: 3.25.3
package com.google.cloud.visionai.v1;
/**
*
*
*
* Message describing node object.
*
*
* Protobuf type {@code google.cloud.visionai.v1.Node}
*/
public final class Node extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.Node)
NodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Node.newBuilder() to construct.
private Node(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Node() {
name_ = "";
displayName_ = "";
processor_ = "";
parents_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Node();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Node_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Node_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Node.class,
com.google.cloud.visionai.v1.Node.Builder.class);
}
public interface InputEdgeOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.Node.InputEdge)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The name of the parent node.
*
*
* string parent_node = 1;
*
* @return The parentNode.
*/
java.lang.String getParentNode();
/**
*
*
*
* The name of the parent node.
*
*
* string parent_node = 1;
*
* @return The bytes for parentNode.
*/
com.google.protobuf.ByteString getParentNodeBytes();
/**
*
*
*
* The connected output artifact of the parent node.
* It can be omitted if target processor only has 1 output artifact.
*
*
* string parent_output_channel = 2;
*
* @return The parentOutputChannel.
*/
java.lang.String getParentOutputChannel();
/**
*
*
*
* The connected output artifact of the parent node.
* It can be omitted if target processor only has 1 output artifact.
*
*
* string parent_output_channel = 2;
*
* @return The bytes for parentOutputChannel.
*/
com.google.protobuf.ByteString getParentOutputChannelBytes();
/**
*
*
*
* The connected input channel of the current node's processor.
* It can be omitted if target processor only has 1 input channel.
*
*
* string connected_input_channel = 3;
*
* @return The connectedInputChannel.
*/
java.lang.String getConnectedInputChannel();
/**
*
*
*
* The connected input channel of the current node's processor.
* It can be omitted if target processor only has 1 input channel.
*
*
* string connected_input_channel = 3;
*
* @return The bytes for connectedInputChannel.
*/
com.google.protobuf.ByteString getConnectedInputChannelBytes();
}
/**
*
*
*
* Message describing one edge pointing into a node.
*
*
* Protobuf type {@code google.cloud.visionai.v1.Node.InputEdge}
*/
public static final class InputEdge extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.Node.InputEdge)
InputEdgeOrBuilder {
private static final long serialVersionUID = 0L;
// Use InputEdge.newBuilder() to construct.
private InputEdge(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InputEdge() {
parentNode_ = "";
parentOutputChannel_ = "";
connectedInputChannel_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new InputEdge();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Node_InputEdge_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Node_InputEdge_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Node.InputEdge.class,
com.google.cloud.visionai.v1.Node.InputEdge.Builder.class);
}
public static final int PARENT_NODE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object parentNode_ = "";
/**
*
*
*
* The name of the parent node.
*
*
* string parent_node = 1;
*
* @return The parentNode.
*/
@java.lang.Override
public java.lang.String getParentNode() {
java.lang.Object ref = parentNode_;
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();
parentNode_ = s;
return s;
}
}
/**
*
*
*
* The name of the parent node.
*
*
* string parent_node = 1;
*
* @return The bytes for parentNode.
*/
@java.lang.Override
public com.google.protobuf.ByteString getParentNodeBytes() {
java.lang.Object ref = parentNode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
parentNode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARENT_OUTPUT_CHANNEL_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object parentOutputChannel_ = "";
/**
*
*
*
* The connected output artifact of the parent node.
* It can be omitted if target processor only has 1 output artifact.
*
*
* string parent_output_channel = 2;
*
* @return The parentOutputChannel.
*/
@java.lang.Override
public java.lang.String getParentOutputChannel() {
java.lang.Object ref = parentOutputChannel_;
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();
parentOutputChannel_ = s;
return s;
}
}
/**
*
*
*
* The connected output artifact of the parent node.
* It can be omitted if target processor only has 1 output artifact.
*
*
* string parent_output_channel = 2;
*
* @return The bytes for parentOutputChannel.
*/
@java.lang.Override
public com.google.protobuf.ByteString getParentOutputChannelBytes() {
java.lang.Object ref = parentOutputChannel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
parentOutputChannel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONNECTED_INPUT_CHANNEL_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object connectedInputChannel_ = "";
/**
*
*
*
* The connected input channel of the current node's processor.
* It can be omitted if target processor only has 1 input channel.
*
*
* string connected_input_channel = 3;
*
* @return The connectedInputChannel.
*/
@java.lang.Override
public java.lang.String getConnectedInputChannel() {
java.lang.Object ref = connectedInputChannel_;
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();
connectedInputChannel_ = s;
return s;
}
}
/**
*
*
*
* The connected input channel of the current node's processor.
* It can be omitted if target processor only has 1 input channel.
*
*
* string connected_input_channel = 3;
*
* @return The bytes for connectedInputChannel.
*/
@java.lang.Override
public com.google.protobuf.ByteString getConnectedInputChannelBytes() {
java.lang.Object ref = connectedInputChannel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
connectedInputChannel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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(parentNode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parentNode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentOutputChannel_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parentOutputChannel_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectedInputChannel_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, connectedInputChannel_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentNode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parentNode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentOutputChannel_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parentOutputChannel_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectedInputChannel_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, connectedInputChannel_);
}
size += getUnknownFields().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.google.cloud.visionai.v1.Node.InputEdge)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.Node.InputEdge other =
(com.google.cloud.visionai.v1.Node.InputEdge) obj;
if (!getParentNode().equals(other.getParentNode())) return false;
if (!getParentOutputChannel().equals(other.getParentOutputChannel())) return false;
if (!getConnectedInputChannel().equals(other.getConnectedInputChannel())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PARENT_NODE_FIELD_NUMBER;
hash = (53 * hash) + getParentNode().hashCode();
hash = (37 * hash) + PARENT_OUTPUT_CHANNEL_FIELD_NUMBER;
hash = (53 * hash) + getParentOutputChannel().hashCode();
hash = (37 * hash) + CONNECTED_INPUT_CHANNEL_FIELD_NUMBER;
hash = (53 * hash) + getConnectedInputChannel().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.Node.InputEdge parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Node.InputEdge parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.Node.InputEdge parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Node.InputEdge parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.Node.InputEdge parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Node.InputEdge parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.Node.InputEdge parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Node.InputEdge 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.google.cloud.visionai.v1.Node.InputEdge parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Node.InputEdge 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.google.cloud.visionai.v1.Node.InputEdge parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Node.InputEdge 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.google.cloud.visionai.v1.Node.InputEdge 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;
}
/**
*
*
*
* Message describing one edge pointing into a node.
*
*
* Protobuf type {@code google.cloud.visionai.v1.Node.InputEdge}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.Node.InputEdge)
com.google.cloud.visionai.v1.Node.InputEdgeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Node_InputEdge_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Node_InputEdge_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Node.InputEdge.class,
com.google.cloud.visionai.v1.Node.InputEdge.Builder.class);
}
// Construct using com.google.cloud.visionai.v1.Node.InputEdge.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
parentNode_ = "";
parentOutputChannel_ = "";
connectedInputChannel_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Node_InputEdge_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Node.InputEdge getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.Node.InputEdge.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.Node.InputEdge build() {
com.google.cloud.visionai.v1.Node.InputEdge result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Node.InputEdge buildPartial() {
com.google.cloud.visionai.v1.Node.InputEdge result =
new com.google.cloud.visionai.v1.Node.InputEdge(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.visionai.v1.Node.InputEdge result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.parentNode_ = parentNode_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.parentOutputChannel_ = parentOutputChannel_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.connectedInputChannel_ = connectedInputChannel_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.visionai.v1.Node.InputEdge) {
return mergeFrom((com.google.cloud.visionai.v1.Node.InputEdge) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.visionai.v1.Node.InputEdge other) {
if (other == com.google.cloud.visionai.v1.Node.InputEdge.getDefaultInstance()) return this;
if (!other.getParentNode().isEmpty()) {
parentNode_ = other.parentNode_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getParentOutputChannel().isEmpty()) {
parentOutputChannel_ = other.parentOutputChannel_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getConnectedInputChannel().isEmpty()) {
connectedInputChannel_ = other.connectedInputChannel_;
bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
parentNode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
parentOutputChannel_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
connectedInputChannel_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object parentNode_ = "";
/**
*
*
*
* The name of the parent node.
*
*
* string parent_node = 1;
*
* @return The parentNode.
*/
public java.lang.String getParentNode() {
java.lang.Object ref = parentNode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
parentNode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The name of the parent node.
*
*
* string parent_node = 1;
*
* @return The bytes for parentNode.
*/
public com.google.protobuf.ByteString getParentNodeBytes() {
java.lang.Object ref = parentNode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
parentNode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The name of the parent node.
*
*
* string parent_node = 1;
*
* @param value The parentNode to set.
* @return This builder for chaining.
*/
public Builder setParentNode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
parentNode_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The name of the parent node.
*
*
* string parent_node = 1;
*
* @return This builder for chaining.
*/
public Builder clearParentNode() {
parentNode_ = getDefaultInstance().getParentNode();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The name of the parent node.
*
*
* string parent_node = 1;
*
* @param value The bytes for parentNode to set.
* @return This builder for chaining.
*/
public Builder setParentNodeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
parentNode_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object parentOutputChannel_ = "";
/**
*
*
*
* The connected output artifact of the parent node.
* It can be omitted if target processor only has 1 output artifact.
*
*
* string parent_output_channel = 2;
*
* @return The parentOutputChannel.
*/
public java.lang.String getParentOutputChannel() {
java.lang.Object ref = parentOutputChannel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
parentOutputChannel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The connected output artifact of the parent node.
* It can be omitted if target processor only has 1 output artifact.
*
*
* string parent_output_channel = 2;
*
* @return The bytes for parentOutputChannel.
*/
public com.google.protobuf.ByteString getParentOutputChannelBytes() {
java.lang.Object ref = parentOutputChannel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
parentOutputChannel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The connected output artifact of the parent node.
* It can be omitted if target processor only has 1 output artifact.
*
*
* string parent_output_channel = 2;
*
* @param value The parentOutputChannel to set.
* @return This builder for chaining.
*/
public Builder setParentOutputChannel(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
parentOutputChannel_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The connected output artifact of the parent node.
* It can be omitted if target processor only has 1 output artifact.
*
*
* string parent_output_channel = 2;
*
* @return This builder for chaining.
*/
public Builder clearParentOutputChannel() {
parentOutputChannel_ = getDefaultInstance().getParentOutputChannel();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* The connected output artifact of the parent node.
* It can be omitted if target processor only has 1 output artifact.
*
*
* string parent_output_channel = 2;
*
* @param value The bytes for parentOutputChannel to set.
* @return This builder for chaining.
*/
public Builder setParentOutputChannelBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
parentOutputChannel_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object connectedInputChannel_ = "";
/**
*
*
*
* The connected input channel of the current node's processor.
* It can be omitted if target processor only has 1 input channel.
*
*
* string connected_input_channel = 3;
*
* @return The connectedInputChannel.
*/
public java.lang.String getConnectedInputChannel() {
java.lang.Object ref = connectedInputChannel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
connectedInputChannel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The connected input channel of the current node's processor.
* It can be omitted if target processor only has 1 input channel.
*
*
* string connected_input_channel = 3;
*
* @return The bytes for connectedInputChannel.
*/
public com.google.protobuf.ByteString getConnectedInputChannelBytes() {
java.lang.Object ref = connectedInputChannel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
connectedInputChannel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The connected input channel of the current node's processor.
* It can be omitted if target processor only has 1 input channel.
*
*
* string connected_input_channel = 3;
*
* @param value The connectedInputChannel to set.
* @return This builder for chaining.
*/
public Builder setConnectedInputChannel(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectedInputChannel_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The connected input channel of the current node's processor.
* It can be omitted if target processor only has 1 input channel.
*
*
* string connected_input_channel = 3;
*
* @return This builder for chaining.
*/
public Builder clearConnectedInputChannel() {
connectedInputChannel_ = getDefaultInstance().getConnectedInputChannel();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* The connected input channel of the current node's processor.
* It can be omitted if target processor only has 1 input channel.
*
*
* string connected_input_channel = 3;
*
* @param value The bytes for connectedInputChannel to set.
* @return This builder for chaining.
*/
public Builder setConnectedInputChannelBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
connectedInputChannel_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
@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:google.cloud.visionai.v1.Node.InputEdge)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.Node.InputEdge)
private static final com.google.cloud.visionai.v1.Node.InputEdge DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.Node.InputEdge();
}
public static com.google.cloud.visionai.v1.Node.InputEdge getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InputEdge parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.google.cloud.visionai.v1.Node.InputEdge getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
private int streamOutputConfigCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object streamOutputConfig_;
public enum StreamOutputConfigCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
OUTPUT_ALL_OUTPUT_CHANNELS_TO_STREAM(6),
STREAMOUTPUTCONFIG_NOT_SET(0);
private final int value;
private StreamOutputConfigCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static StreamOutputConfigCase valueOf(int value) {
return forNumber(value);
}
public static StreamOutputConfigCase forNumber(int value) {
switch (value) {
case 6:
return OUTPUT_ALL_OUTPUT_CHANNELS_TO_STREAM;
case 0:
return STREAMOUTPUTCONFIG_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public StreamOutputConfigCase getStreamOutputConfigCase() {
return StreamOutputConfigCase.forNumber(streamOutputConfigCase_);
}
public static final int OUTPUT_ALL_OUTPUT_CHANNELS_TO_STREAM_FIELD_NUMBER = 6;
/**
*
*
*
* 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;
*
* @return Whether the outputAllOutputChannelsToStream field is set.
*/
@java.lang.Override
public boolean hasOutputAllOutputChannelsToStream() {
return streamOutputConfigCase_ == 6;
}
/**
*
*
*
* 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;
*
* @return The outputAllOutputChannelsToStream.
*/
@java.lang.Override
public boolean getOutputAllOutputChannelsToStream() {
if (streamOutputConfigCase_ == 6) {
return (java.lang.Boolean) streamOutputConfig_;
}
return false;
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Required. A unique name for the node.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
*
*
* Required. A unique name for the node.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object displayName_ = "";
/**
*
*
*
* A user friendly display name for the node.
*
*
* string display_name = 2;
*
* @return The displayName.
*/
@java.lang.Override
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
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();
displayName_ = s;
return s;
}
}
/**
*
*
*
* A user friendly display name for the node.
*
*
* string display_name = 2;
*
* @return The bytes for displayName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NODE_CONFIG_FIELD_NUMBER = 3;
private com.google.cloud.visionai.v1.ProcessorConfig nodeConfig_;
/**
*
*
*
* Node config.
*
*
* .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
*
* @return Whether the nodeConfig field is set.
*/
@java.lang.Override
public boolean hasNodeConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Node config.
*
*
* .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
*
* @return The nodeConfig.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorConfig getNodeConfig() {
return nodeConfig_ == null
? com.google.cloud.visionai.v1.ProcessorConfig.getDefaultInstance()
: nodeConfig_;
}
/**
*
*
*
* Node config.
*
*
* .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
*/
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorConfigOrBuilder getNodeConfigOrBuilder() {
return nodeConfig_ == null
? com.google.cloud.visionai.v1.ProcessorConfig.getDefaultInstance()
: nodeConfig_;
}
public static final int PROCESSOR_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object processor_ = "";
/**
*
*
*
* Processor name refer to the chosen processor resource.
*
*
* string processor = 4;
*
* @return The processor.
*/
@java.lang.Override
public java.lang.String getProcessor() {
java.lang.Object ref = processor_;
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();
processor_ = s;
return s;
}
}
/**
*
*
*
* Processor name refer to the chosen processor resource.
*
*
* string processor = 4;
*
* @return The bytes for processor.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProcessorBytes() {
java.lang.Object ref = processor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
processor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARENTS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List parents_;
/**
*
*
*
* 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;
*/
@java.lang.Override
public java.util.List getParentsList() {
return parents_;
}
/**
*
*
*
* 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;
*/
@java.lang.Override
public java.util.List extends com.google.cloud.visionai.v1.Node.InputEdgeOrBuilder>
getParentsOrBuilderList() {
return parents_;
}
/**
*
*
*
* 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;
*/
@java.lang.Override
public int getParentsCount() {
return parents_.size();
}
/**
*
*
*
* 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;
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Node.InputEdge getParents(int index) {
return parents_.get(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;
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Node.InputEdgeOrBuilder getParentsOrBuilder(int index) {
return parents_.get(index);
}
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(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getNodeConfig());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processor_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, processor_);
}
for (int i = 0; i < parents_.size(); i++) {
output.writeMessage(5, parents_.get(i));
}
if (streamOutputConfigCase_ == 6) {
output.writeBool(6, (boolean) ((java.lang.Boolean) streamOutputConfig_));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNodeConfig());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processor_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, processor_);
}
for (int i = 0; i < parents_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, parents_.get(i));
}
if (streamOutputConfigCase_ == 6) {
size +=
com.google.protobuf.CodedOutputStream.computeBoolSize(
6, (boolean) ((java.lang.Boolean) streamOutputConfig_));
}
size += getUnknownFields().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.google.cloud.visionai.v1.Node)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.Node other = (com.google.cloud.visionai.v1.Node) obj;
if (!getName().equals(other.getName())) return false;
if (!getDisplayName().equals(other.getDisplayName())) return false;
if (hasNodeConfig() != other.hasNodeConfig()) return false;
if (hasNodeConfig()) {
if (!getNodeConfig().equals(other.getNodeConfig())) return false;
}
if (!getProcessor().equals(other.getProcessor())) return false;
if (!getParentsList().equals(other.getParentsList())) return false;
if (!getStreamOutputConfigCase().equals(other.getStreamOutputConfigCase())) return false;
switch (streamOutputConfigCase_) {
case 6:
if (getOutputAllOutputChannelsToStream() != other.getOutputAllOutputChannelsToStream())
return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
if (hasNodeConfig()) {
hash = (37 * hash) + NODE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getNodeConfig().hashCode();
}
hash = (37 * hash) + PROCESSOR_FIELD_NUMBER;
hash = (53 * hash) + getProcessor().hashCode();
if (getParentsCount() > 0) {
hash = (37 * hash) + PARENTS_FIELD_NUMBER;
hash = (53 * hash) + getParentsList().hashCode();
}
switch (streamOutputConfigCase_) {
case 6:
hash = (37 * hash) + OUTPUT_ALL_OUTPUT_CHANNELS_TO_STREAM_FIELD_NUMBER;
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashBoolean(getOutputAllOutputChannelsToStream());
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.Node parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Node parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.Node parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Node parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.Node parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Node parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.Node parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Node 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.google.cloud.visionai.v1.Node parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Node 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.google.cloud.visionai.v1.Node parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Node 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.google.cloud.visionai.v1.Node 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;
}
/**
*
*
*
* Message describing node object.
*
*
* Protobuf type {@code google.cloud.visionai.v1.Node}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.Node)
com.google.cloud.visionai.v1.NodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Node_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Node_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Node.class,
com.google.cloud.visionai.v1.Node.Builder.class);
}
// Construct using com.google.cloud.visionai.v1.Node.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getNodeConfigFieldBuilder();
getParentsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
displayName_ = "";
nodeConfig_ = null;
if (nodeConfigBuilder_ != null) {
nodeConfigBuilder_.dispose();
nodeConfigBuilder_ = null;
}
processor_ = "";
if (parentsBuilder_ == null) {
parents_ = java.util.Collections.emptyList();
} else {
parents_ = null;
parentsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
streamOutputConfigCase_ = 0;
streamOutputConfig_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Node_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Node getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.Node.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.Node build() {
com.google.cloud.visionai.v1.Node result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Node buildPartial() {
com.google.cloud.visionai.v1.Node result = new com.google.cloud.visionai.v1.Node(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.cloud.visionai.v1.Node result) {
if (parentsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
parents_ = java.util.Collections.unmodifiableList(parents_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.parents_ = parents_;
} else {
result.parents_ = parentsBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.visionai.v1.Node result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.displayName_ = displayName_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.nodeConfig_ = nodeConfigBuilder_ == null ? nodeConfig_ : nodeConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.processor_ = processor_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.cloud.visionai.v1.Node result) {
result.streamOutputConfigCase_ = streamOutputConfigCase_;
result.streamOutputConfig_ = this.streamOutputConfig_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.visionai.v1.Node) {
return mergeFrom((com.google.cloud.visionai.v1.Node) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.visionai.v1.Node other) {
if (other == com.google.cloud.visionai.v1.Node.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasNodeConfig()) {
mergeNodeConfig(other.getNodeConfig());
}
if (!other.getProcessor().isEmpty()) {
processor_ = other.processor_;
bitField0_ |= 0x00000010;
onChanged();
}
if (parentsBuilder_ == null) {
if (!other.parents_.isEmpty()) {
if (parents_.isEmpty()) {
parents_ = other.parents_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureParentsIsMutable();
parents_.addAll(other.parents_);
}
onChanged();
}
} else {
if (!other.parents_.isEmpty()) {
if (parentsBuilder_.isEmpty()) {
parentsBuilder_.dispose();
parentsBuilder_ = null;
parents_ = other.parents_;
bitField0_ = (bitField0_ & ~0x00000020);
parentsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getParentsFieldBuilder()
: null;
} else {
parentsBuilder_.addAllMessages(other.parents_);
}
}
}
switch (other.getStreamOutputConfigCase()) {
case OUTPUT_ALL_OUTPUT_CHANNELS_TO_STREAM:
{
setOutputAllOutputChannelsToStream(other.getOutputAllOutputChannelsToStream());
break;
}
case STREAMOUTPUTCONFIG_NOT_SET:
{
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 10
case 18:
{
displayName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 18
case 26:
{
input.readMessage(getNodeConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 26
case 34:
{
processor_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 34
case 42:
{
com.google.cloud.visionai.v1.Node.InputEdge m =
input.readMessage(
com.google.cloud.visionai.v1.Node.InputEdge.parser(), extensionRegistry);
if (parentsBuilder_ == null) {
ensureParentsIsMutable();
parents_.add(m);
} else {
parentsBuilder_.addMessage(m);
}
break;
} // case 42
case 48:
{
streamOutputConfig_ = input.readBool();
streamOutputConfigCase_ = 6;
break;
} // case 48
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int streamOutputConfigCase_ = 0;
private java.lang.Object streamOutputConfig_;
public StreamOutputConfigCase getStreamOutputConfigCase() {
return StreamOutputConfigCase.forNumber(streamOutputConfigCase_);
}
public Builder clearStreamOutputConfig() {
streamOutputConfigCase_ = 0;
streamOutputConfig_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
*
*
*
* 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;
*
* @return Whether the outputAllOutputChannelsToStream field is set.
*/
public boolean hasOutputAllOutputChannelsToStream() {
return streamOutputConfigCase_ == 6;
}
/**
*
*
*
* 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;
*
* @return The outputAllOutputChannelsToStream.
*/
public boolean getOutputAllOutputChannelsToStream() {
if (streamOutputConfigCase_ == 6) {
return (java.lang.Boolean) streamOutputConfig_;
}
return false;
}
/**
*
*
*
* 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;
*
* @param value The outputAllOutputChannelsToStream to set.
* @return This builder for chaining.
*/
public Builder setOutputAllOutputChannelsToStream(boolean value) {
streamOutputConfigCase_ = 6;
streamOutputConfig_ = value;
onChanged();
return this;
}
/**
*
*
*
* 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;
*
* @return This builder for chaining.
*/
public Builder clearOutputAllOutputChannelsToStream() {
if (streamOutputConfigCase_ == 6) {
streamOutputConfigCase_ = 0;
streamOutputConfig_ = null;
onChanged();
}
return this;
}
private java.lang.Object name_ = "";
/**
*
*
*
* Required. A unique name for the node.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Required. A unique name for the node.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Required. A unique name for the node.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Required. A unique name for the node.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Required. A unique name for the node.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object displayName_ = "";
/**
*
*
*
* A user friendly display name for the node.
*
*
* string display_name = 2;
*
* @return The displayName.
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* A user friendly display name for the node.
*
*
* string display_name = 2;
*
* @return The bytes for displayName.
*/
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* A user friendly display name for the node.
*
*
* string display_name = 2;
*
* @param value The displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
displayName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* A user friendly display name for the node.
*
*
* string display_name = 2;
*
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
displayName_ = getDefaultInstance().getDisplayName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* A user friendly display name for the node.
*
*
* string display_name = 2;
*
* @param value The bytes for displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
displayName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.cloud.visionai.v1.ProcessorConfig nodeConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.ProcessorConfig,
com.google.cloud.visionai.v1.ProcessorConfig.Builder,
com.google.cloud.visionai.v1.ProcessorConfigOrBuilder>
nodeConfigBuilder_;
/**
*
*
*
* Node config.
*
*
* .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
*
* @return Whether the nodeConfig field is set.
*/
public boolean hasNodeConfig() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Node config.
*
*
* .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
*
* @return The nodeConfig.
*/
public com.google.cloud.visionai.v1.ProcessorConfig getNodeConfig() {
if (nodeConfigBuilder_ == null) {
return nodeConfig_ == null
? com.google.cloud.visionai.v1.ProcessorConfig.getDefaultInstance()
: nodeConfig_;
} else {
return nodeConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Node config.
*
*
* .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
*/
public Builder setNodeConfig(com.google.cloud.visionai.v1.ProcessorConfig value) {
if (nodeConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodeConfig_ = value;
} else {
nodeConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Node config.
*
*
* .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
*/
public Builder setNodeConfig(
com.google.cloud.visionai.v1.ProcessorConfig.Builder builderForValue) {
if (nodeConfigBuilder_ == null) {
nodeConfig_ = builderForValue.build();
} else {
nodeConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Node config.
*
*
* .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
*/
public Builder mergeNodeConfig(com.google.cloud.visionai.v1.ProcessorConfig value) {
if (nodeConfigBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& nodeConfig_ != null
&& nodeConfig_ != com.google.cloud.visionai.v1.ProcessorConfig.getDefaultInstance()) {
getNodeConfigBuilder().mergeFrom(value);
} else {
nodeConfig_ = value;
}
} else {
nodeConfigBuilder_.mergeFrom(value);
}
if (nodeConfig_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* Node config.
*
*
* .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
*/
public Builder clearNodeConfig() {
bitField0_ = (bitField0_ & ~0x00000008);
nodeConfig_ = null;
if (nodeConfigBuilder_ != null) {
nodeConfigBuilder_.dispose();
nodeConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Node config.
*
*
* .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
*/
public com.google.cloud.visionai.v1.ProcessorConfig.Builder getNodeConfigBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getNodeConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Node config.
*
*
* .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
*/
public com.google.cloud.visionai.v1.ProcessorConfigOrBuilder getNodeConfigOrBuilder() {
if (nodeConfigBuilder_ != null) {
return nodeConfigBuilder_.getMessageOrBuilder();
} else {
return nodeConfig_ == null
? com.google.cloud.visionai.v1.ProcessorConfig.getDefaultInstance()
: nodeConfig_;
}
}
/**
*
*
*
* Node config.
*
*
* .google.cloud.visionai.v1.ProcessorConfig node_config = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.ProcessorConfig,
com.google.cloud.visionai.v1.ProcessorConfig.Builder,
com.google.cloud.visionai.v1.ProcessorConfigOrBuilder>
getNodeConfigFieldBuilder() {
if (nodeConfigBuilder_ == null) {
nodeConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.ProcessorConfig,
com.google.cloud.visionai.v1.ProcessorConfig.Builder,
com.google.cloud.visionai.v1.ProcessorConfigOrBuilder>(
getNodeConfig(), getParentForChildren(), isClean());
nodeConfig_ = null;
}
return nodeConfigBuilder_;
}
private java.lang.Object processor_ = "";
/**
*
*
*
* Processor name refer to the chosen processor resource.
*
*
* string processor = 4;
*
* @return The processor.
*/
public java.lang.String getProcessor() {
java.lang.Object ref = processor_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
processor_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Processor name refer to the chosen processor resource.
*
*
* string processor = 4;
*
* @return The bytes for processor.
*/
public com.google.protobuf.ByteString getProcessorBytes() {
java.lang.Object ref = processor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
processor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Processor name refer to the chosen processor resource.
*
*
* string processor = 4;
*
* @param value The processor to set.
* @return This builder for chaining.
*/
public Builder setProcessor(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
processor_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Processor name refer to the chosen processor resource.
*
*
* string processor = 4;
*
* @return This builder for chaining.
*/
public Builder clearProcessor() {
processor_ = getDefaultInstance().getProcessor();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*
*
* Processor name refer to the chosen processor resource.
*
*
* string processor = 4;
*
* @param value The bytes for processor to set.
* @return This builder for chaining.
*/
public Builder setProcessorBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
processor_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.util.List parents_ =
java.util.Collections.emptyList();
private void ensureParentsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
parents_ = new java.util.ArrayList(parents_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.Node.InputEdge,
com.google.cloud.visionai.v1.Node.InputEdge.Builder,
com.google.cloud.visionai.v1.Node.InputEdgeOrBuilder>
parentsBuilder_;
/**
*
*
*
* 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;
*/
public java.util.List getParentsList() {
if (parentsBuilder_ == null) {
return java.util.Collections.unmodifiableList(parents_);
} else {
return parentsBuilder_.getMessageList();
}
}
/**
*
*
*
* 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;
*/
public int getParentsCount() {
if (parentsBuilder_ == null) {
return parents_.size();
} else {
return parentsBuilder_.getCount();
}
}
/**
*
*
*
* 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;
*/
public com.google.cloud.visionai.v1.Node.InputEdge getParents(int index) {
if (parentsBuilder_ == null) {
return parents_.get(index);
} else {
return parentsBuilder_.getMessage(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;
*/
public Builder setParents(int index, com.google.cloud.visionai.v1.Node.InputEdge value) {
if (parentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParentsIsMutable();
parents_.set(index, value);
onChanged();
} else {
parentsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* 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;
*/
public Builder setParents(
int index, com.google.cloud.visionai.v1.Node.InputEdge.Builder builderForValue) {
if (parentsBuilder_ == null) {
ensureParentsIsMutable();
parents_.set(index, builderForValue.build());
onChanged();
} else {
parentsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* 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;
*/
public Builder addParents(com.google.cloud.visionai.v1.Node.InputEdge value) {
if (parentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParentsIsMutable();
parents_.add(value);
onChanged();
} else {
parentsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* 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;
*/
public Builder addParents(int index, com.google.cloud.visionai.v1.Node.InputEdge value) {
if (parentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParentsIsMutable();
parents_.add(index, value);
onChanged();
} else {
parentsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* 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;
*/
public Builder addParents(com.google.cloud.visionai.v1.Node.InputEdge.Builder builderForValue) {
if (parentsBuilder_ == null) {
ensureParentsIsMutable();
parents_.add(builderForValue.build());
onChanged();
} else {
parentsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* 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;
*/
public Builder addParents(
int index, com.google.cloud.visionai.v1.Node.InputEdge.Builder builderForValue) {
if (parentsBuilder_ == null) {
ensureParentsIsMutable();
parents_.add(index, builderForValue.build());
onChanged();
} else {
parentsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* 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;
*/
public Builder addAllParents(
java.lang.Iterable extends com.google.cloud.visionai.v1.Node.InputEdge> values) {
if (parentsBuilder_ == null) {
ensureParentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parents_);
onChanged();
} else {
parentsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* 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;
*/
public Builder clearParents() {
if (parentsBuilder_ == null) {
parents_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
parentsBuilder_.clear();
}
return this;
}
/**
*
*
*
* 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;
*/
public Builder removeParents(int index) {
if (parentsBuilder_ == null) {
ensureParentsIsMutable();
parents_.remove(index);
onChanged();
} else {
parentsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* 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;
*/
public com.google.cloud.visionai.v1.Node.InputEdge.Builder getParentsBuilder(int index) {
return getParentsFieldBuilder().getBuilder(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;
*/
public com.google.cloud.visionai.v1.Node.InputEdgeOrBuilder getParentsOrBuilder(int index) {
if (parentsBuilder_ == null) {
return parents_.get(index);
} else {
return parentsBuilder_.getMessageOrBuilder(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;
*/
public java.util.List extends com.google.cloud.visionai.v1.Node.InputEdgeOrBuilder>
getParentsOrBuilderList() {
if (parentsBuilder_ != null) {
return parentsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(parents_);
}
}
/**
*
*
*
* 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;
*/
public com.google.cloud.visionai.v1.Node.InputEdge.Builder addParentsBuilder() {
return getParentsFieldBuilder()
.addBuilder(com.google.cloud.visionai.v1.Node.InputEdge.getDefaultInstance());
}
/**
*
*
*
* 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;
*/
public com.google.cloud.visionai.v1.Node.InputEdge.Builder addParentsBuilder(int index) {
return getParentsFieldBuilder()
.addBuilder(index, com.google.cloud.visionai.v1.Node.InputEdge.getDefaultInstance());
}
/**
*
*
*
* 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;
*/
public java.util.List
getParentsBuilderList() {
return getParentsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.Node.InputEdge,
com.google.cloud.visionai.v1.Node.InputEdge.Builder,
com.google.cloud.visionai.v1.Node.InputEdgeOrBuilder>
getParentsFieldBuilder() {
if (parentsBuilder_ == null) {
parentsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.Node.InputEdge,
com.google.cloud.visionai.v1.Node.InputEdge.Builder,
com.google.cloud.visionai.v1.Node.InputEdgeOrBuilder>(
parents_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean());
parents_ = null;
}
return parentsBuilder_;
}
@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:google.cloud.visionai.v1.Node)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.Node)
private static final com.google.cloud.visionai.v1.Node DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.Node();
}
public static com.google.cloud.visionai.v1.Node getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Node parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.google.cloud.visionai.v1.Node getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy